nvc0/ir: output base for reading is based on laneid
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 29 Jul 2015 13:37:14 +0000 (09:37 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 29 Jul 2015 13:40:44 +0000 (09:40 -0400)
commitad75620863392b2164a415186087beb831ccfa4c
tree8cb05639f944ca1cd0e99ae7eebf7cfb49633097
parente42d2948d3c58b86d3770d296b96fafcd1218858
nvc0/ir: output base for reading is based on laneid

PFETCH retrieves the address for incoming vertices, not output vertices
in TCS. For output vertices, we must use the laneid as a base.

Fixes barrier piglit test, which was failing for entirely non-barrier
reasons, but rather that it was (a) trying to draw multiple patches and
(b) the incoming patch size was not the same as the outgoing patch size.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp