summaryrefslogtreecommitdiffstats
path: root/src/glsl/test_optpass.cpp
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-05-28 23:24:08 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-07-23 00:59:27 +0200
commitfb800b3dcd32ddb6f57143b46105d677eb01da80 (patch)
treed4ff07137695c7484afabdc8ebb6474b3fd9b184 /src/glsl/test_optpass.cpp
parent0cfac917554aeb46bd78ba5b5f5ee1c8ed1d68bc (diff)
downloadexternal_mesa3d-fb800b3dcd32ddb6f57143b46105d677eb01da80.zip
external_mesa3d-fb800b3dcd32ddb6f57143b46105d677eb01da80.tar.gz
external_mesa3d-fb800b3dcd32ddb6f57143b46105d677eb01da80.tar.bz2
glsl: don't lower variable indexing on non-patch tessellation inputs/outputs
There is no way to lower them, because the array sizes are unknown at compile time. Based on a patch from: Fabian Bieler <fabianbieler@fastmail.fm> v2: add comments Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/glsl/test_optpass.cpp')
-rw-r--r--src/glsl/test_optpass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/test_optpass.cpp b/src/glsl/test_optpass.cpp
index ac3e3f4..fed1fab 100644
--- a/src/glsl/test_optpass.cpp
+++ b/src/glsl/test_optpass.cpp
@@ -124,7 +124,8 @@ do_optimization(struct exec_list *ir, const char *optimization,
} else if (sscanf(optimization, "lower_variable_index_to_cond_assign "
"( %d , %d , %d , %d ) ", &int_0, &int_1, &int_2,
&int_3) == 4) {
- return lower_variable_index_to_cond_assign(ir, int_0 != 0, int_1 != 0,
+ return lower_variable_index_to_cond_assign(MESA_SHADER_VERTEX, ir,
+ int_0 != 0, int_1 != 0,
int_2 != 0, int_3 != 0);
} else if (sscanf(optimization, "lower_quadop_vector ( %d ) ",
&int_0) == 1) {