Mesa (master): iris: Make use of devinfo has_aux_map field

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 22 22:42:31 UTC 2020


Module: Mesa
Branch: master
Commit: 8c36936832bb2af3edb5d4829e3a8d0a97812379
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c36936832bb2af3edb5d4829e3a8d0a97812379

Author: Jordan Justen <jordan.l.justen at intel.com>
Date:   Sat Mar 14 01:01:35 2020 -0700

iris: Make use of devinfo has_aux_map field

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5572>

---

 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);



More information about the mesa-commit mailing list