summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2016-09-18 12:42:20 (GMT)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>2016-09-18 14:42:33 (GMT)
commitd8b4f5fcca2ce299b8ef248b6f57896c7b85d18c (patch)
treecc525b7207a527e6f9afe8ea0c9efdb42bfd8e2f
parent15804c4b9093179f6dd6be2b3a45e18b1318d5a3 (diff)
downloadmesa-d8b4f5fcca2ce299b8ef248b6f57896c7b85d18c.tar.gz
mesa-d8b4f5fcca2ce299b8ef248b6f57896c7b85d18c.tar.xz
gk110/ir: fix wrong emission of OP_NOT
This should emit src0 instead of src1. Found by inspection. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp2
1 files changed, 1 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 8d36799..61c450b 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
@@ -773,7 +773,7 @@ CodeEmitterGK110::emitNOT(const Instruction *i)
break;
case FILE_MEMORY_CONST:
code[1] |= 0x4 << 28;
- setCAddress14(i->src(1));
+ setCAddress14(i->src(0));
break;
default:
assert(0);