glsl: don't lower variable indexing on non-patch tessellation inputs/outputs
authorMarek Olšák <marek.olsak@amd.com>
Thu, 28 May 2015 21:24:08 +0000 (23:24 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Jul 2015 22:59:27 +0000 (00:59 +0200)
commitfb800b3dcd32ddb6f57143b46105d677eb01da80
treed4ff07137695c7484afabdc8ebb6474b3fd9b184
parent0cfac917554aeb46bd78ba5b5f5ee1c8ed1d68bc
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>
src/glsl/ir_optimization.h
src/glsl/lower_variable_index_to_cond_assign.cpp
src/glsl/test_optpass.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp