summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_bufmgr.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-08-19 10:08:05 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:08 -0800
commit04e8c5bb439d7263df96ce32282b729d770a748c (patch)
tree7293485c7f82aa224a6576f2ce503ceb9bd42bf3 /src/gallium/drivers/iris/iris_bufmgr.h
parentd209cc51709c2511b7d063388ef79689958bb65b (diff)
iris: precompute hashes for cache tracking
saves a touch of cpu overhead in the new resolve tracking
Diffstat (limited to 'src/gallium/drivers/iris/iris_bufmgr.h')
-rw-r--r--src/gallium/drivers/iris/iris_bufmgr.h3
1 files changed, 3 insertions, 0 deletions
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)