From 71f9e03d211a17e7c53de595966d4c0ed41a97f1 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sun, 16 Apr 2017 12:21:49 -0400 Subject: 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 --- src/gallium/drivers/freedreno/freedreno_context.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gallium/drivers/freedreno/freedreno_context.h') 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) { -- cgit v1.2.3