mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
radv: add support for VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13549>
This commit is contained in:
parent
936ac58b77
commit
ad3cd581f4
1 changed files with 3 additions and 1 deletions
|
|
@ -2100,6 +2100,7 @@ radv_layout_is_htile_compressed(const struct radv_device *device, const struct r
|
|||
case VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL:
|
||||
case VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL:
|
||||
case VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL:
|
||||
case VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR:
|
||||
return radv_image_has_htile(image);
|
||||
case VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL:
|
||||
return radv_image_is_tc_compat_htile(image) ||
|
||||
|
|
@ -2151,7 +2152,8 @@ radv_layout_can_fast_clear(const struct radv_device *device, const struct radv_i
|
|||
if (!(image->usage & RADV_IMAGE_USAGE_WRITE_BITS))
|
||||
return false;
|
||||
|
||||
if (layout != VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL)
|
||||
if (layout != VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL &&
|
||||
layout != VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR)
|
||||
return false;
|
||||
|
||||
/* Exclusive images with CMASK or DCC can always be fast-cleared on the gfx queue. Concurrent
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue