mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
anv: limit aux disabling on concurrent images to pre-Xe2
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40141>
This commit is contained in:
parent
98cdcf9467
commit
3a503b4898
1 changed files with 7 additions and 1 deletions
|
|
@ -1879,8 +1879,14 @@ anv_image_init(struct anv_device *device, struct anv_image *image,
|
|||
/* If the resource is created with the CONCURRENT sharing mode, we can't
|
||||
* support compression because we aren't allowed barriers in order to
|
||||
* construct the main surface data with FULL_RESOLVE/PARTIAL_RESOLVE.
|
||||
*
|
||||
* Only applies pre-Xe2, first there is no resolve going on color images
|
||||
* on that platform (only for HIZ_CCS we need a partial resolve, but it
|
||||
* would be handled with layout transitions), second we don't have
|
||||
* restriction on the cache not being coherent between engines.
|
||||
*/
|
||||
if (image->vk.sharing_mode == VK_SHARING_MODE_CONCURRENT)
|
||||
if (image->vk.sharing_mode == VK_SHARING_MODE_CONCURRENT &&
|
||||
device->info->ver < 20)
|
||||
isl_extra_usage_flags |= ISL_SURF_USAGE_DISABLE_AUX_BIT;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue