[PATCH] d3d11: Set more format support flags.
Józef Kucia
joseph.kucia at gmail.com
Sat May 4 06:00:35 CDT 2019
From: Józef Kucia <jkucia at codeweavers.com>
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47096
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/d3d11/device.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index 588395b4b6a6..768fe4bc5503 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -3342,6 +3342,20 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFormatSupport(ID3D11Device2 *
}
wined3d_mutex_unlock();
+ if (*format_support & (D3D11_FORMAT_SUPPORT_TEXTURE1D
+ | D3D11_FORMAT_SUPPORT_TEXTURE2D | D3D11_FORMAT_SUPPORT_TEXTURE3D))
+ {
+ *format_support |= D3D11_FORMAT_SUPPORT_SHADER_LOAD;
+ *format_support |= D3D11_FORMAT_SUPPORT_SHADER_SAMPLE;
+ *format_support |= D3D11_FORMAT_SUPPORT_SHADER_GATHER;
+
+ if (*format_support & D3D11_FORMAT_SUPPORT_DEPTH_STENCIL)
+ {
+ *format_support |= D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON;
+ *format_support |= D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON;
+ }
+ }
+
return S_OK;
}
--
2.19.2
More information about the wine-devel
mailing list