Alistair Leslie-Hughes : d3d11: Add support for D3D11_FEATURE_D3D11_OPTIONS in CheckFeatureSupport().

Alexandre Julliard julliard at winehq.org
Tue Apr 10 17:24:29 CDT 2018


Module: wine
Branch: master
Commit: ad6b7a3af9f3b8ee7dc80e1af2ba880817873366
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ad6b7a3af9f3b8ee7dc80e1af2ba880817873366

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Tue Apr 10 14:51:43 2018 +0430

d3d11: Add support for D3D11_FEATURE_D3D11_OPTIONS in CheckFeatureSupport().

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d11/device.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index ce7ef0b..1fe6297 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;




More information about the wine-cvs mailing list