This is the same that was already being done for R32G8X24, not sure
why it was missed for R24G8.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20614>
if (aspects & VK_IMAGE_ASPECT_DEPTH_BIT)
return DXGI_FORMAT_R24_UNORM_X8_TYPELESS;
- else
+ else if (aspects & VK_IMAGE_ASPECT_STENCIL_BIT)
return DXGI_FORMAT_X24_TYPELESS_G8_UINT;
+ else
+ return DXGI_FORMAT_R24G8_TYPELESS;
case PIPE_FORMAT_X24S8_UINT:
return usage == VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT ?