aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_context.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-10-10 14:17:15 +0200
committerEric Anholt <[email protected]>2014-10-10 15:49:22 +0200
commitd09509da2aa5ff709c48bdc4163a2c57811c70ab (patch)
tree3bdeeeeda0d651036af40fbaaeaafb765ec64edf /src/gallium/drivers/vc4/vc4_context.h
parentc6f50c4086a96c3a8d84522ed7ee5c75a8b0868c (diff)
vc4: Don't look up the compiled shaders unless state has changed.
Improves simulated norast performance on a little benchmark by 38.0965% +/- 3.27534% (n=11).
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.h b/src/gallium/drivers/vc4/vc4_context.h
index da07cfa6cb2..31dec046860 100644
--- a/src/gallium/drivers/vc4/vc4_context.h
+++ b/src/gallium/drivers/vc4/vc4_context.h
@@ -57,6 +57,7 @@
#define VC4_DIRTY_INDEXBUF (1 << 16)
#define VC4_DIRTY_SCISSOR (1 << 17)
#define VC4_DIRTY_FLAT_SHADE_FLAGS (1 << 18)
+#define VC4_DIRTY_PRIM_MODE (1 << 19)
#define VC4_SHADER_DIRTY_VP (1 << 0)
#define VC4_SHADER_DIRTY_FP (1 << 1)
@@ -177,6 +178,8 @@ struct vc4_context {
unsigned int reg_class_any;
unsigned int reg_class_a;
+ uint8_t prim_mode;
+
/** @{ Current pipeline state objects */
struct pipe_scissor_state scissor;
struct pipe_blend_state *blend;