Skip to content

Commit

Permalink
crocus: make sure aux is disabled for memory objects
Browse files Browse the repository at this point in the history
Cc: mesa-stable
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27948>
(cherry picked from commit 0df9571)
  • Loading branch information
tpalli authored and 1ace committed Mar 7, 2024
1 parent a3b1539 commit d88d664
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pick_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/gallium/drivers/crocus/crocus_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d88d664

Please sign in to comment.