aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_compiler_cmdline.c
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2017-03-19 17:19:10 +0100
committerChristian Gmeiner <[email protected]>2017-04-05 19:58:10 +0200
commit7d2a80626633b08a347aa11f85f4d96585958e6a (patch)
treef7222634ecb2e30c13c915da3d5a00779d4c41c3 /src/gallium/drivers/etnaviv/etnaviv_compiler_cmdline.c
parent9da54fdcb5b591a7d6c96871e92f8b183c0a5130 (diff)
etnaviv: add etna_shader_key and generate variants if needed
Signed-off-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_compiler_cmdline.c')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_compiler_cmdline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler_cmdline.c b/src/gallium/drivers/etnaviv/etnaviv_compiler_cmdline.c
index 035ee86f4be..1fea2d1a48b 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_compiler_cmdline.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_compiler_cmdline.c
@@ -102,6 +102,7 @@ main(int argc, char **argv)
struct tgsi_token toks[65536];
struct tgsi_parse_context parse;
struct etna_shader s = {};
+ struct etna_shader_key key = {};
void *ptr;
size_t size;
@@ -147,6 +148,7 @@ main(int argc, char **argv)
s.tokens = toks;
v->shader = &s;
+ v->key = key;
if (!etna_compile_shader(v)) {
fprintf(stderr, "compiler failed!\n");