d3d11: Add support for D3D11_FEATURE_D3D11_OPTIONS in CheckFeatureSupport().

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2018-04-10 14:33:43 +04:30 committed by Alexandre Julliard
parent 076f542dc5
commit ad6b7a3af9
1 changed files with 27 additions and 0 deletions

View File

@ -3396,6 +3396,33 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFeatureSupport(ID3D11Device *
return S_OK;
}
case D3D11_FEATURE_D3D11_OPTIONS:
{
D3D11_FEATURE_DATA_D3D11_OPTIONS *options = feature_support_data;
if (feature_support_data_size != sizeof(*options))
{
WARN("Invalid data size.\n");
return E_INVALIDARG;
}
FIXME("Returning fake Options support data.\n");
options->OutputMergerLogicOp = FALSE;
options->UAVOnlyRenderingForcedSampleCount = FALSE;
options->DiscardAPIsSeenByDriver = FALSE;
options->FlagsForUpdateAndCopySeenByDriver = FALSE;
options->ClearView = FALSE;
options->CopyWithOverlap = FALSE;
options->ConstantBufferPartialUpdate = FALSE;
options->ConstantBufferOffsetting = FALSE;
options->MapNoOverwriteOnDynamicConstantBuffer = FALSE;
options->MapNoOverwriteOnDynamicBufferSRV = FALSE;
options->MultisampleRTVWithForcedSampleCountOne = FALSE;
options->SAD4ShaderInstructions = FALSE;
options->ExtendedDoublesShaderInstructions = FALSE;
options->ExtendedResourceSharing = FALSE;
return S_OK;
}
case D3D11_FEATURE_D3D11_OPTIONS1:
{
D3D11_FEATURE_DATA_D3D11_OPTIONS1 *options = feature_support_data;