diff options
author | Marek Olšák <[email protected]> | 2014-12-07 20:14:41 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-12-10 21:59:37 +0100 |
commit | 34350131ded27e7584cfde273675a9a99b1ba7db (patch) | |
tree | cdabb6e6097ccc0bab96f5caf943df0425b387b3 /src/gallium/drivers/radeonsi/si_pipe.h | |
parent | 3382036946cf7c7859c9027c4ffe4881e30ead56 (diff) |
radeonsi: emit primitive restart only if it changes
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index e3cc09a0b85..471a55440d6 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -34,10 +34,11 @@ #define SI_BIG_ENDIAN 0 #endif -/* The base vertex can be any number, but we must pick one which - * will mean "unknown" for the purpose of state tracking and the number - * shouldn't be a commonly-used one. */ +/* The base vertex and primitive restart can be any number, but we must pick + * one which will mean "unknown" for the purpose of state tracking and + * the number shouldn't be a commonly-used one. */ #define SI_BASE_VERTEX_UNKNOWN INT_MIN +#define SI_RESTART_INDEX_UNKNOWN INT_MIN #define SI_TRACE_CS 0 #define SI_TRACE_CS_DWORDS 6 @@ -179,6 +180,8 @@ struct si_context { int last_base_vertex; int last_start_instance; int last_sh_base_reg; + int last_primitive_restart_en; + int last_restart_index; }; /* si_blit.c */ |