mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
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>
This commit is contained in:
parent
32f05fadbb
commit
63b850403c
1 changed files with 1 additions and 1 deletions
|
|
@ -686,7 +686,7 @@ NVC0LoweringPass::handleTEX(TexInstruction *i)
|
|||
i->tex.s = 0x1f;
|
||||
i->setIndirectR(hnd);
|
||||
i->setIndirectS(NULL);
|
||||
} else if (i->tex.r == i->tex.s) {
|
||||
} else if (i->tex.r == i->tex.s || i->op == OP_TXF) {
|
||||
i->tex.r += prog->driver->io.texBindBase / 4;
|
||||
i->tex.s = 0; // only a single cX[] value possible here
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue