tgsi/exec: fix system value handling.
authorDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 01:14:24 +0000 (11:14 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 22:25:38 +0000 (08:25 +1000)
commit9013d9267ce11efc9b841816630b34cbe8820d1d
tree301047bb7308aba0c14cadbedbd0f2891ea6acc2
parent4040fff81d6bafdf71fae86fc4cb17bf007194af
tgsi/exec: fix system value handling.

a) SysSemanticToIndex needs to be indexed with the semantic name
not the decl->Declaration.Semantic.

b) doing this in run is too late, as the mappings are all setup
prior to run in the execs.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c