glsl2: Fix inlining with sampler array or struct dereferences as arguments.
authorEric Anholt <eric@anholt.net>
Fri, 6 Aug 2010 07:21:12 +0000 (00:21 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 6 Aug 2010 07:51:08 +0000 (00:51 -0700)
commit199c441239762eec86b3cb4b558aef486907a8b6
tree093c9e046b86e9f1ff57255f24f0d638ed7892d8
parent8d61a23b1a1d0d4b21f0fab64f6d863a8ee3d7f1
glsl2: Fix inlining with sampler array or struct dereferences as arguments.

Previously, we'd replace an argument of mysampler[2] with a plain
reference to mysampler by using the cloning hash table.  Instead, use
a visitor to clone whatever complicated sampler dereference into the
sampler parameter derefs in the inlined function body.
src/glsl/ir_function_inlining.cpp