diff options
author | Kenneth Graunke <[email protected]> | 2018-08-19 10:08:05 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | 04e8c5bb439d7263df96ce32282b729d770a748c (patch) | |
tree | 7293485c7f82aa224a6576f2ce503ceb9bd42bf3 /src/gallium/drivers/iris/iris_bufmgr.h | |
parent | d209cc51709c2511b7d063388ef79689958bb65b (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.h | 3 |
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) |