mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
radv: fix radv_get_aspect_format() for D+S formats
This restores the previous behaviour before YCBCR landed. For D+S
formats, it returns the depth format.
This fixes an assertion with Thrones of Britannia.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110540
Fixes: 66507cc656 ("radv: Add single plane image views & meta operations")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
aa675cef5e
commit
e68d7bec67
1 changed files with 2 additions and 0 deletions
|
|
@ -1189,6 +1189,8 @@ radv_get_aspect_format(struct radv_image *image, VkImageAspectFlags mask)
|
|||
return vk_format_stencil_only(image->vk_format);
|
||||
case VK_IMAGE_ASPECT_DEPTH_BIT:
|
||||
return vk_format_depth_only(image->vk_format);
|
||||
case VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT:
|
||||
return vk_format_depth_only(image->vk_format);
|
||||
default:
|
||||
return image->vk_format;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue