From: Jordan Justen Date: Sat, 14 Mar 2020 08:01:35 +0000 (-0700) Subject: iris: Make use of devinfo has_aux_map field X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c36936832bb2af3edb5d4829e3a8d0a97812379;p=mesa.git iris: Make use of devinfo has_aux_map field Signed-off-by: Jordan Justen Reviewed-by: Lionel Landwerlin Part-of: --- 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);