1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[d3d9] Use converted format for multiplane formats in CheckFormat

This commit is contained in:
Robin Kertels 2024-07-19 18:08:08 +02:00 committed by Joshie
parent bac7ae2929
commit b7d61b70c1

View File

@ -169,7 +169,11 @@ namespace dxvk {
return D3D_OK;
// Let's actually ask Vulkan now that we got some quirks out the way!
return CheckDeviceVkFormat(mapping.FormatColor, Usage, RType);
VkFormat format = mapping.FormatColor;
if (unlikely(mapping.ConversionFormatInfo.FormatColor != VK_FORMAT_UNDEFINED)) {
format = mapping.ConversionFormatInfo.FormatColor;
}
return CheckDeviceVkFormat(format, Usage, RType);
}