OSDN Git Service

gk104/ir: sampler doesn't matter for txf
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 18 Dec 2015 12:25:53 +0000 (12:25 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 18 Dec 2015 12:26:21 +0000 (12:26 +0000)
commitaccb4cdb3b52044d1029c856bc636087eb6dee6a
tree7f92e80cc9c8a409ba196e69869b6558ac74fb52
parentc18d27b72082da9abd50931c3b0364125740e103
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>
(cherry picked from commit 63b850403c90f33c295d3ad6be4ad749d4ea6274)
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp