1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 05:52:11 +01:00

[d3d9] Make reported sample counts consistent with DecodeMultiSampleType behavior.

This commit is contained in:
Georg Lehmann 2022-07-14 16:20:20 +02:00 committed by Joshie
parent 9e110cd3e5
commit 5ae5476d71

View File

@ -195,9 +195,8 @@ namespace dxvk {
// Therefore...
VkSampleCountFlags sampleFlags = VkSampleCountFlags(sampleCount);
auto availableFlags = !IsDepthFormat(SurfaceFormat)
? m_adapter->deviceProperties().limits.framebufferColorSampleCounts
: m_adapter->deviceProperties().limits.framebufferDepthSampleCounts;
auto availableFlags = m_adapter->deviceProperties().limits.framebufferColorSampleCounts
& m_adapter->deviceProperties().limits.framebufferDepthSampleCounts;
if (!(availableFlags & sampleFlags))
return D3DERR_NOTAVAILABLE;