mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
iris: make sure aux is disabled for external 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/27614>
(cherry picked from commit 9058a2a78e)
This commit is contained in:
parent
5f5cecd9e5
commit
ff6336ff29
2 changed files with 5 additions and 1 deletions
|
|
@ -3464,7 +3464,7 @@
|
|||
"description": "iris: make sure aux is disabled for external objects",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -745,6 +745,10 @@ iris_resource_configure_main(const struct iris_screen *screen,
|
|||
|
||||
if (res->mod_info && !isl_drm_modifier_has_aux(modifier))
|
||||
usage |= ISL_SURF_USAGE_DISABLE_AUX_BIT;
|
||||
|
||||
else if (!res->mod_info && res->external_format != PIPE_FORMAT_NONE)
|
||||
usage |= ISL_SURF_USAGE_DISABLE_AUX_BIT;
|
||||
|
||||
else if (templ->bind & PIPE_BIND_CONST_BW)
|
||||
usage |= ISL_SURF_USAGE_DISABLE_AUX_BIT;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue