gk104/ir: fix conditions for adding a texbar
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 7 Jun 2016 01:25:05 +0000 (21:25 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 7 Jun 2016 14:18:13 +0000 (10:18 -0400)
commit71ad8a173f5c64d6384c13f04361455571c42ffe
treef5ebf35b0f61dd46d71f978d8be1d54b7cc77b2c
parent8239da28e8b31b4727ecf59681aeebc65e17bf2f
gk104/ir: fix conditions for adding a texbar

Sometimes a register source can actually be double- or even quad-wide.
We must make sure that the inserted texbars take that width into
account.

Based on an earlier patch by Samuel Pitoiset.

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