[PATCH 4/4] d3d11: Add support for D3D11_FEATURE_D3D11_OPTIONS in CheckFeatureSupport().
Henri Verbeet
hverbeet at codeweavers.com
Tue Apr 10 05:03:43 CDT 2018
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/d3d11/device.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index ce7ef0b0aeb..1fe62975d56 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -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;
--
2.11.0
More information about the wine-devel
mailing list