crocus: make sure aux is disabled for memory objects

Cc: mesa-stable
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27948>
This commit is contained in:
Tapani Pälli 2024-03-04 08:50:41 +02:00
parent 9d18cde8ed
commit 0df9571bfb

View file

@ -216,6 +216,10 @@ crocus_resource_configure_main(const struct crocus_screen *screen,
tiling_flags = ISL_TILING_W_BIT;
}
/* Disable aux for external memory objects. */
if (!res->mod_info && res->external_format != PIPE_FORMAT_NONE)
usage |= ISL_SURF_USAGE_DISABLE_AUX_BIT;
const enum isl_format format =
crocus_format_for_usage(&screen->devinfo, templ->format, usage).fmt;