gm107/ir: fix bit offset of tex lod setting for indirect texturing
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 18 Oct 2016 04:21:13 +0000 (00:21 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 18 Oct 2016 13:56:14 +0000 (09:56 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp

index 3fedafdae3a957c4a2310abcb8d9087a838f6458..5ed2ad4ba93a3ebad6b6c76c6bf25665edb772ba 100644 (file)
@@ -2560,7 +2560,7 @@ CodeEmitterGM107::emitTEX()
 
    if (insn->tex.rIndirectSrc >= 0) {
       emitInsn (0xdeb80000);
-      emitField(0x35, 2, lodm);
+      emitField(0x25, 2, lodm);
       emitField(0x24, 1, insn->tex.useOffsets == 1);
    } else {
       emitInsn (0xc0380000);