aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a3xx/fd3_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx/fd3_context.h')
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_context.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_context.h b/src/gallium/drivers/freedreno/a3xx/fd3_context.h
index 48bbb47e9ca..2736470b93a 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_context.h
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_context.h
@@ -35,6 +35,9 @@
#include "freedreno_context.h"
+#include "ir3_shader.h"
+
+
struct fd3_context {
struct fd_context base;
@@ -86,6 +89,12 @@ struct fd3_context {
* shader:
*/
unsigned fsaturate_s, fsaturate_t, fsaturate_r;
+
+ /* some state changes require a different shader variant. Keep
+ * track of this so we know when we need to re-emit shader state
+ * due to variant change. See fixup_shader_state()
+ */
+ struct ir3_shader_key last_key;
};
static INLINE struct fd3_context *