From 3e17ccfaaa44bd1abcb0b89f8fc72ebaab14dd4d Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 15 Sep 2019 14:03:42 +0200 Subject: [PATCH] [d3d11] Implement missing D3D11_FEATURE_D3D9_OPTIONS feature query --- src/d3d11/d3d11_device.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index 59523888..93dd3f28 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -1273,6 +1273,14 @@ namespace dxvk { auto info = static_cast(pFeatureSupportData); info->TileBasedDeferredRenderer = FALSE; } return S_OK; + + case D3D11_FEATURE_D3D9_OPTIONS: { + if (FeatureSupportDataSize != sizeof(D3D11_FEATURE_DATA_D3D9_OPTIONS)) + return E_INVALIDARG; + + auto info = static_cast(pFeatureSupportData); + info->FullNonPow2TextureSupport = TRUE; + } return S_OK; case D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT: { if (FeatureSupportDataSize != sizeof(D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT))