aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3d_context.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-07-23 13:30:58 -0700
committerEric Anholt <[email protected]>2018-07-26 11:02:20 -0700
commitd29435e7cb3f8a9ef369c90ff890c018463890a7 (patch)
treee7010353396b97d1a2e448af19dfbd5fcac22cbf /src/gallium/drivers/v3d/v3d_context.h
parent47f5d158aebe69136a844f82c59b6b70336248e6 (diff)
v3d: Track the buffers being loaded separately.
We were computing this at RCL generation time, but that means you can't unflag the store for an invalidate_resource, or not flag the store if writmasking is disabled.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_context.h')
-rw-r--r--src/gallium/drivers/v3d/v3d_context.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h
index 1f1b3d0edea..b61dacf66c7 100644
--- a/src/gallium/drivers/v3d/v3d_context.h
+++ b/src/gallium/drivers/v3d/v3d_context.h
@@ -281,6 +281,10 @@ struct v3d_job {
* first rendering.
*/
uint32_t clear;
+ /* Bitmask of PIPE_CLEAR_* of buffers that have been read by a draw
+ * call without having been cleared first.
+ */
+ uint32_t load;
/* Bitmask of PIPE_CLEAR_* of buffers that have been rendered to
* (either clears or draws) and should be stored.
*/