mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
dzn: Use R24G8_TYPELESS for 24/8 depth resources
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>
This commit is contained in:
parent
a3005ecb56
commit
10282bbd96
1 changed files with 3 additions and 1 deletions
|
|
@ -295,8 +295,10 @@ dzn_image_get_dxgi_format(VkFormat format,
|
|||
|
||||
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 ?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue