anv: Don't disable HiZ/MCS in anv_BindImageMemory2
When an image is bound to a BO lacking implicit CCS, we disable any compression it may have had. This is unnecessary in the cases where the compression type doesn't depend on the BO having implicit CCS support. Avoid this disabling for ISL_AUX_USAGE_MCS and ISL_AUX_USAGE_HIZ. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15068>
This commit is contained in:
@@ -1847,6 +1847,9 @@ VkResult anv_BindImageMemory2(
|
||||
const struct anv_bo *bo =
|
||||
image->bindings[binding].address.bo;
|
||||
|
||||
if (!isl_aux_usage_has_ccs(image->planes[p].aux_usage))
|
||||
continue;
|
||||
|
||||
if (bo && !bo->has_implicit_ccs &&
|
||||
device->physical->has_implicit_ccs)
|
||||
image->planes[p].aux_usage = ISL_AUX_USAGE_NONE;
|
||||
|
Reference in New Issue
Block a user