diff options
author | Ilia Mirkin <[email protected]> | 2014-04-26 02:08:23 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-04-28 19:09:18 -0400 |
commit | f3aa999383074d666d6e3f3506e66b0c937904ca (patch) | |
tree | 2c71884220504ba390e2bef267cf8ea196f6dc60 /src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | |
parent | 46364a53ef30e5c97e1eeb5a879dd99a47415b73 (diff) |
nv50/ir: change texture offsets to ValueRefs, allow nonconst
This allows us to have non-constant offsets for textureGatherOffset and
textureGatherOffsets.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp index 63d55252b54..5992c543d69 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp @@ -1104,12 +1104,14 @@ CodeEmitterGK110::emitTEX(const TexInstruction *i) // ? } - if (i->tex.useOffsets) { + if (i->tex.useOffsets == 1) { switch (i->op) { case OP_TXF: code[1] |= 0x200; break; default: code[1] |= 0x800; break; } } + if (i->tex.useOffsets == 4) + code[1] |= 0x1000; } void |