aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/glsl_to_nir.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-07-15 16:57:06 -0700
committerJason Ekstrand <[email protected]>2016-12-05 15:40:09 -0800
commit507626304c047dacb959feaf94ff520a4e9f6c60 (patch)
treea9fc195e6ff20437403bb144a185f7a78ac6ebb7 /src/compiler/glsl/glsl_to_nir.cpp
parentc5d664f9dc2d281c74844cef36ecb9f5862a8f6a (diff)
glsl/nir: Call nir_lower_constant_initializers
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_to_nir.cpp')
-rw-r--r--src/compiler/glsl/glsl_to_nir.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp
index 0b74b7e5aa3..f60139c2f2a 100644
--- a/src/compiler/glsl/glsl_to_nir.cpp
+++ b/src/compiler/glsl/glsl_to_nir.cpp
@@ -144,6 +144,8 @@ glsl_to_nir(const struct gl_shader_program *shader_prog,
v2.run(sh->ir);
visit_exec_list(sh->ir, &v1);
+ nir_lower_constant_initializers(shader, (nir_variable_mode)~0);
+
shader->info->name = ralloc_asprintf(shader, "GLSL%d", shader_prog->Name);
if (shader_prog->Label)
shader->info->label = ralloc_strdup(shader, shader_prog->Label);