[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
1 changed files with 2 additions and 3 deletions

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;