From 04e8c5bb439d7263df96ce32282b729d770a748c Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 19 Aug 2018 10:08:05 -0700 Subject: iris: precompute hashes for cache tracking saves a touch of cpu overhead in the new resolve tracking --- src/gallium/drivers/iris/iris_bufmgr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/iris/iris_bufmgr.h') diff --git a/src/gallium/drivers/iris/iris_bufmgr.h b/src/gallium/drivers/iris/iris_bufmgr.h index f966b021ea3..8be545cb04b 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.h +++ b/src/gallium/drivers/iris/iris_bufmgr.h @@ -187,6 +187,9 @@ struct iris_bo { * Boolean of whether this buffer points into user memory */ bool userptr; + + /** Pre-computed hash using _mesa_hash_pointer for cache tracking sets */ + uint32_t hash; }; #define BO_ALLOC_ZEROED (1<<0) -- cgit v1.2.3