Mesa (main): iris: Not all gfx12+ have aux_map_ctx
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Dec 13 22:28:16 UTC 2021
Module: Mesa
Branch: main
Commit: f94ff2cc0387430a25e56e8b91fc6129a29ec0fa
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f94ff2cc0387430a25e56e8b91fc6129a29ec0fa
Author: Jordan Justen <jordan.l.justen at intel.com>
Date: Mon Feb 1 13:23:10 2021 -0800
iris: Not all gfx12+ have aux_map_ctx
This code matches other similar cases in iris.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14152>
---
src/gallium/drivers/iris/iris_resource.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c
index a93d3db5d60..8b9037866b8 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -560,10 +560,11 @@ static void
map_aux_addresses(struct iris_screen *screen, struct iris_resource *res,
enum isl_format format, unsigned plane)
{
- const struct intel_device_info *devinfo = &screen->devinfo;
- if (devinfo->ver >= 12 && isl_aux_usage_has_ccs(res->aux.usage)) {
- void *aux_map_ctx = iris_bufmgr_get_aux_map_context(screen->bufmgr);
- assert(aux_map_ctx);
+ void *aux_map_ctx = iris_bufmgr_get_aux_map_context(screen->bufmgr);
+ if (!aux_map_ctx)
+ return;
+
+ if (isl_aux_usage_has_ccs(res->aux.usage)) {
const unsigned aux_offset = res->aux.extra_aux.surf.size_B > 0 ?
res->aux.extra_aux.offset : res->aux.offset;
const uint64_t format_bits =
More information about the mesa-commit
mailing list