From 51ff65fbc53710a306ecf260a16d209af235dfcb Mon Sep 17 00:00:00 2001
From: Philip Rebohle <philip.rebohle@tu-dortmund.de>
Date: Sun, 15 Sep 2019 13:57:26 +0200
Subject: [PATCH] [d3d11] Implement D3D11.3 feature queries

---
 src/d3d11/d3d11_device.cpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp
index 18922b25..cd96dc33 100644
--- a/src/d3d11/d3d11_device.cpp
+++ b/src/d3d11/d3d11_device.cpp
@@ -1363,6 +1363,20 @@ namespace dxvk {
         info->TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported = TRUE;
       } return S_OK;
 
+      case D3D11_FEATURE_D3D11_OPTIONS2: {
+        if (FeatureSupportDataSize != sizeof(D3D11_FEATURE_DATA_D3D11_OPTIONS2))
+          return E_INVALIDARG;
+
+        auto info = static_cast<D3D11_FEATURE_DATA_D3D11_OPTIONS2*>(pFeatureSupportData);
+        info->PSSpecifiedStencilRefSupported = FALSE; // TODO
+        info->TypedUAVLoadAdditionalFormats  = FALSE; // TODO
+        info->ROVsSupported                  = FALSE;
+        info->ConservativeRasterizationTier  = D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED;
+        info->TiledResourcesTier             = D3D11_TILED_RESOURCES_NOT_SUPPORTED;
+        info->StandardSwizzle                = FALSE;
+        info->UnifiedMemoryArchitecture      = FALSE; // Maybe on some APUs?
+      } return S_OK;
+
       default:
         Logger::err(str::format(
           "D3D11Device: CheckFeatureSupport: Unknown feature: ",