nvc0/ir: LOAD's can't be used for shader inputs
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 22 May 2015 23:03:58 +0000 (19:03 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 22 May 2015 23:08:24 +0000 (19:08 -0400)
commit217301843aea0299ab245e260b20af7ad250e9d8
treedc9ad7abd6081197b9fbb4f0d752a26b2e68bd96
parent0bab3962f5f313ea829c95920c02f32afb23715d
nvc0/ir: LOAD's can't be used for shader inputs

We forgot to convert to VFETCH in case of indirect access. Fix that.

This avoids crashes on the new gs-input-array-vec4-index-rd and
vs-output-array-vec4-index-wr-before-gs but they still fail.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp