mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 03:30:36 +02:00
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:
parent
9d18cde8ed
commit
0df9571bfb
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue