From 8c36936832bb2af3edb5d4829e3a8d0a97812379 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Sat, 14 Mar 2020 01:01:35 -0700 Subject: [PATCH] iris: Make use of devinfo has_aux_map field Signed-off-by: Jordan Justen Reviewed-by: Lionel Landwerlin Part-of: --- src/gallium/drivers/iris/iris_bufmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index 7a654e677ba..c781f99d4b5 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -1889,7 +1889,7 @@ iris_bufmgr_create(struct gen_device_info *devinfo, int fd, bool bo_reuse) bufmgr->handle_table = _mesa_hash_table_create(NULL, _mesa_hash_uint, _mesa_key_uint_equal); - if (devinfo->gen >= 12) { + if (devinfo->has_aux_map) { bufmgr->aux_map_ctx = gen_aux_map_init(bufmgr, &aux_map_allocator, devinfo); assert(bufmgr->aux_map_ctx); -- 2.30.2