nvc0/ir: reset the base offset for indirect images accesses
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 4 Jul 2016 22:08:03 +0000 (00:08 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 4 Jul 2016 23:44:12 +0000 (01:44 +0200)
commitf3b9fff3c362146da2e8e2c3eefa812ad166491c
tree236d7939e851773e635cb8ef721a8a71272a4c97
parentcb828b7b18d83cb2ea3dcaed54c1678616c56fc8
nvc0/ir: reset the base offset for indirect images accesses

In presence of an indirect image access, the base offset should be
zeroed because the stride will be computed twice. This is a pretty
rare situation but it can happen when tex.r > 0.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp