OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 14 Jun 2016 14:48:38 +0000 (15:48 +0100)
commitbba2299735787d3c2f7b9933e9034b958b6d77d1
tree96a311e79d1c4627368371c56fd447bf3ec28883
parent49c53a298715c62083e620d3f85ea2622a3a6fab
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>
(cherry picked from commit 71ad8a173f5c64d6384c13f04361455571c42ffe)
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp