diff options
author | Ilia Mirkin <[email protected]> | 2015-04-02 20:48:44 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-04-05 16:36:34 -0400 |
commit | dacf22e0a34d4dc2595f3cb0dbee52318dc9d0d7 (patch) | |
tree | 1edadeb6b96f00a49c0fec986619f8c670fc85bc /src/gallium/drivers/freedreno/freedreno_resource.h | |
parent | 2e1445c8f3df7608ba4522f8d088170de4ec788c (diff) |
freedreno: mark resources as being read so that writes flush the queue
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.h | 3 |
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 1f246328969..1539fc9ad1a 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.h +++ b/src/gallium/drivers/freedreno/freedreno_resource.h @@ -29,6 +29,7 @@ #ifndef FREEDRENO_RESOURCE_H_ #define FREEDRENO_RESOURCE_H_ +#include "util/u_double_list.h" #include "util/u_transfer.h" #include "freedreno_util.h" @@ -67,6 +68,8 @@ struct fd_resource { struct fd_resource_slice slices[MAX_MIP_LEVELS]; uint32_t timestamp; bool dirty, reading; + + struct list_head list; }; static INLINE struct fd_resource * |