summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_context.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-04-16 14:52:16 -0400
committerRob Clark <[email protected]>2017-04-18 16:32:00 -0400
commitdf37902e346e0fc8e7db4cecb6f2dbd6aa370adb (patch)
tree15e3004428932e6160ba4914bf2c9620e74af0ae /src/gallium/drivers/freedreno/freedreno_context.h
parent71f9e03d211a17e7c53de595966d4c0ed41a97f1 (diff)
freedreno: add helper to mark all state clean
Note that this involves juggling around a bit when we emit and clear texture state. So split out from the patch that adds the helper to set all state dirty. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.h b/src/gallium/drivers/freedreno/freedreno_context.h
index 9db34ef8a03..7f47eaf2a71 100644
--- a/src/gallium/drivers/freedreno/freedreno_context.h
+++ b/src/gallium/drivers/freedreno/freedreno_context.h
@@ -332,6 +332,12 @@ fd_context_all_dirty(struct fd_context *ctx)
ctx->dirty = ~0;
}
+static inline void
+fd_context_all_clean(struct fd_context *ctx)
+{
+ ctx->dirty = 0;
+}
+
static inline struct pipe_scissor_state *
fd_context_get_scissor(struct fd_context *ctx)
{