Matteo Bruni : d3d11: Report multisample flags in CheckFormatSupport().
Alexandre Julliard
julliard at winehq.org
Fri Sep 11 14:51:45 CDT 2020
Module: wine
Branch: master
Commit: 0b56461f35417ea56fbbe32116c49bf22decce9a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0b56461f35417ea56fbbe32116c49bf22decce9a
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Thu Sep 10 21:20:42 2020 +0200
d3d11: Report multisample flags in CheckFormatSupport().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49614
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d11/device.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index 29fa8b3752..0508fa3f7b 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -3402,6 +3402,18 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFormatSupport(ID3D11Device2 *
}
}
+ /* d3d11 requires 4 and 8 sample counts support for formats reported to
+ * support multisample. */
+ if (wined3d_check_device_multisample_type(wined3d_adapter, params.device_type, wined3d_format,
+ TRUE, WINED3D_MULTISAMPLE_4_SAMPLES, NULL) == WINED3D_OK &&
+ wined3d_check_device_multisample_type(wined3d_adapter, params.device_type, wined3d_format,
+ TRUE, WINED3D_MULTISAMPLE_8_SAMPLES, NULL) == WINED3D_OK)
+ {
+ *format_support |= D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE
+ | D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET
+ | D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD;
+ }
+
return S_OK;
}
More information about the wine-cvs
mailing list