gk104/ir: sampler doesn't matter for txf
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 7 Dec 2015 21:14:53 +0000 (16:14 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 7 Dec 2015 21:22:54 +0000 (16:22 -0500)
commit63b850403c90f33c295d3ad6be4ad749d4ea6274
treebec08b699004b5ebcccf2a6899f942b2b8b0d1c8
parent32f05fadbbdf2a3fb60055e610bbbdcd82dd3ce5
gk104/ir: sampler doesn't matter for txf

We actually leave the sampler unset for OP_TXF, which caused the GK104+
logic to treat some texel fetches as indirect. While this works, it's
incredibly wasteful. This only happened when the texture was > 0 (since
sampler remained == 0).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp