summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_shader.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/drivers/etnaviv/etnaviv_shader.h')
-rw-r--r--lib/mesa/src/gallium/drivers/etnaviv/etnaviv_shader.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_shader.h b/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_shader.h
index 528603a55..3d244c112 100644
--- a/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_shader.h
+++ b/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_shader.h
@@ -27,7 +27,9 @@
#ifndef H_ETNAVIV_SHADER
#define H_ETNAVIV_SHADER
+#include "mesa/main/config.h"
#include "pipe/p_state.h"
+#include "util/disk_cache.h"
struct etna_context;
struct etna_shader_variant;
@@ -45,6 +47,9 @@ struct etna_shader_key
unsigned frag_rb_swap : 1;
/* do we need to invert front facing value? */
unsigned front_ccw : 1;
+ /* do we need to replace glTexCoord.xy ? */
+ unsigned sprite_coord_enable : MAX_TEXTURE_COORD_UNITS;
+ unsigned sprite_coord_yinvert : 1;
};
uint32_t global;
};
@@ -66,8 +71,11 @@ struct etna_shader {
struct tgsi_token *tokens;
struct nir_shader *nir;
const struct etna_specs *specs;
+ struct etna_compiler *compiler;
struct etna_shader_variant *variants;
+
+ cache_key cache_key; /* shader disk-cache key */
};
bool