svga: fix indirect non-indexable temp access
authorCharmaine Lee <charmainel@vmware.com>
Tue, 25 Aug 2015 21:53:51 +0000 (14:53 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Aug 2016 12:19:51 +0000 (06:19 -0600)
commit479199180871432030d3eebc2822bd7cb3dc6fd6
tree5f285cce880b63614d6ffe119012d6d5ac5ef02d
parentd221a6545cc0778716f1abf45fd096d6cd5a1b8e
svga: fix indirect non-indexable temp access

If the shader has indirect access to non-indexable temporaries,
convert these non-indexable temporaries to indexable temporary array.
This works around a bug in the GLSL->TGSI translator.

Fixes glsl-1.20/execution/fs-const-array-of-struct-of-array.shader_test
on DX11Renderer.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_tgsi_vgpu10.c