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>
(cherry picked from commit 0df9571bfb)
This commit is contained in:
Tapani Pälli 2024-03-04 08:50:41 +02:00 committed by Eric Engestrom
parent a3b1539bb3
commit d88d664399
2 changed files with 5 additions and 1 deletions

View file

@ -1284,7 +1284,7 @@
"description": "crocus: make sure aux is disabled for memory objects",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

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;