OSDN Git Service

mesa/glsl: new compiler option EmitNoIndirectSampler
authorTapani Pälli <tapani.palli@intel.com>
Tue, 9 Jun 2015 10:33:39 +0000 (13:33 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 30 Jun 2015 08:12:43 +0000 (11:12 +0300)
commite4512e1581cf90f56d13cfa6a809832ef3517283
tree2973c51b7bc7656b0b50cd92ca6b6c94bc7c7486
parentedb8383c98ee23385731d0fc23a6b6673528a8ec
mesa/glsl: new compiler option EmitNoIndirectSampler

Patch provides new compiler option for backend to force unroll loops
that have non-constant expression indexing on sampler arrays.

This makes sure that we can never end up with a shader that uses loop
induction variable as sampler array index but does not unroll because
of having too much instructions. This would not work without dynamic
indexing support.

v2: change option name as EmitNoIndirectSampler

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Cc: "10.5" and "10.6" <mesa-stable@lists.freedesktop.org>
src/glsl/loop_unroll.cpp
src/mesa/main/mtypes.h