anv: add missing ISL storage usage
ISL makes a bunch of decision on programming (MOCS, RENDER_SURFACE_STATE values) based on this flag. It's important to set it if we're going to use an image as storage. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: mesa-stable Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23620>
This commit is contained in:
committed by
Marge Bot
parent
28c1053c07
commit
34d5db0583
@@ -214,6 +214,9 @@ choose_isl_surf_usage(VkImageCreateFlags vk_create_flags,
|
||||
if (vk_usage & VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT)
|
||||
isl_usage |= ISL_SURF_USAGE_TEXTURE_BIT;
|
||||
|
||||
if (vk_usage & VK_IMAGE_USAGE_STORAGE_BIT)
|
||||
isl_usage |= ISL_SURF_USAGE_STORAGE_BIT;
|
||||
|
||||
if (vk_usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT)
|
||||
isl_usage |= ISL_SURF_USAGE_RENDER_TARGET_BIT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user