glsl: make a copy of array indices that are used to deref a function out param
authorTimothy Arceri <tarceri@itsqueeze.com>
Sat, 21 Jul 2018 05:22:24 +0000 (15:22 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 2 Aug 2018 01:06:28 +0000 (11:06 +1000)
commitbea4722c2e387162d677eb8fff726be44d720cdb
treeb026b141daa46158c4933631c85ddfcf371cd8f9
parentde9e5cf35a1fd0c66288e49c30dc100ad3e1d3aa
glsl: make a copy of array indices that are used to deref a function out param

Fixes new piglit test:
tests/spec/glsl-1.20/execution/qualifiers/vs-out-conversion-int-to-float-vec4-index.shader_test

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/ast_function.cpp