diff options
author | Rob Clark <[email protected]> | 2015-07-26 13:30:26 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-07-27 13:51:06 -0400 |
commit | bda1354aac9d32e236048af4d353d5530f644c34 (patch) | |
tree | c576969a93da91735c2136c6d9076c515369bb11 /src/gallium/drivers/freedreno/freedreno_resource.h | |
parent | 65d36a109a7dd333c15180a0f30ad919eb01d78f (diff) |
freedreno: add resource tracking support for written buffers
With stream-out (transform-feedback) we have the case where resources
are *written* by the gpu, which needs basically the same tracking to
figure out when rendering must be flushed.
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.h b/src/gallium/drivers/freedreno/freedreno_resource.h index 9833b30e17f..e7f127edca4 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.h +++ b/src/gallium/drivers/freedreno/freedreno_resource.h @@ -68,7 +68,7 @@ struct fd_resource { uint32_t layer_size; struct fd_resource_slice slices[MAX_MIP_LEVELS]; uint32_t timestamp; - bool dirty, reading; + bool dirty, reading, writing; /* buffer range that has been initialized */ struct util_range valid_buffer_range; |