nvc0/ir: fix INTERP_* with indirect inputs
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 24 Mar 2018 19:15:45 +0000 (15:15 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 28 Mar 2018 00:41:11 +0000 (20:41 -0400)
commit776e6af879318050cdf8245cd409ada7b843e358
tree73f301b9b79c0d73296f182d88d4eb560ac91b0d
parent629ee690addad9b3dc8f68cfff5ae09858f31caf
nvc0/ir: fix INTERP_* with indirect inputs

There were two problems, both of which are fixed now:
 - The indirect address was not being shifted by 4
 - The indirect address was being placed as an argument in the offset case

This fixes some of the new interpolateAt* piglits which now test for
these situations.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp