diff options
author | Rob Clark <[email protected]> | 2017-04-16 12:21:49 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-04-18 16:32:00 -0400 |
commit | 71f9e03d211a17e7c53de595966d4c0ed41a97f1 (patch) | |
tree | a83f9b25f28f7653a8db212bf9c898bc291c3672 /src/gallium/drivers/freedreno/freedreno_context.h | |
parent | 248a508f243a0fb6ef92d3048e60a278a4326ddd (diff) |
freedreno: add helper to mark all state dirty
This will simplify things when we break out per-shader-stage dirty bits.
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.h b/src/gallium/drivers/freedreno/freedreno_context.h index 67291a097cc..9db34ef8a03 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.h +++ b/src/gallium/drivers/freedreno/freedreno_context.h @@ -325,6 +325,13 @@ fd_context_unlock(struct fd_context *ctx) mtx_unlock(&ctx->screen->lock); } +/* mark all state dirty: */ +static inline void +fd_context_all_dirty(struct fd_context *ctx) +{ + ctx->dirty = ~0; +} + static inline struct pipe_scissor_state * fd_context_get_scissor(struct fd_context *ctx) { |