aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_resource.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-10-12 09:24:21 -0400
committerRob Clark <[email protected]>2018-10-17 12:44:48 -0400
commite8606b11dd5f8a2c8df16a719b0fc8852ceb7977 (patch)
tree26dc8c8bb45afe72693793a677eaa678c94b97b7 /src/gallium/drivers/freedreno/freedreno_resource.h
parentabcdf5627a29b7f1856b86bce4ff9bd0029a3099 (diff)
freedreno: add resource seqno
Intended to be something more compact than a 64b pointer, which could be used as a key into hashtables. Prep work for texture state objects. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_resource.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.h b/src/gallium/drivers/freedreno/freedreno_resource.h
index c833beb835c..09abb512d7e 100644
--- a/src/gallium/drivers/freedreno/freedreno_resource.h
+++ b/src/gallium/drivers/freedreno/freedreno_resource.h
@@ -95,6 +95,9 @@ struct fd_resource {
*/
uint32_t bc_batch_mask;
+ /* Sequence # incremented each time bo changes: */
+ uint16_t seqno;
+
unsigned tile_mode : 2;
unsigned preferred_tile_mode : 2;