mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +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>
(cherry picked from commit 0df9571bfb)
This commit is contained in:
parent
a3b1539bb3
commit
d88d664399
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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