summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-09-04 18:21:29 -0400
committerEmil Velikov <emil.l.velikov@gmail.com>2016-09-05 11:37:18 +0100
commit8e9b6161eb327f9fb030b976a6078376f80a8f9b (patch)
treea949a1bee92a83d18302e8f90030b1719eed77d6
parent7c96b11fd6aaf74578f32f8f1c79b4cc93d50ec1 (diff)
downloadmesa-8e9b6161eb327f9fb030b976a6078376f80a8f9b.tar.gz
gk110/ir: fix quadop dall emission
We recently starting to always emit the NDV (== dall) bit for quadops. However it was folded into the wrong code word. Fixes: e0a067ed48 (nv50/ir: always emit the NDV bit for OP_QUADOP) Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: <mesa-stable@lists.freedesktop.org> (cherry picked from commit 61e978524a0e5de4f8570b44bcb9b907a9187684)
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp4
1 files changed, 2 insertions, 2 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 b3e6c560b3f..939972d90e8 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
@@ -1320,8 +1320,8 @@ CodeEmitterGK110::emitTXQ(const TexInstruction *i)
void
CodeEmitterGK110::emitQUADOP(const Instruction *i, uint8_t qOp, uint8_t laneMask)
{
- code[0] = 0x00000202 | ((qOp & 1) << 31); // dall
- code[1] = 0x7fc00000 | (qOp >> 1) | (laneMask << 12);
+ code[0] = 0x00000002 | ((qOp & 1) << 31);
+ code[1] = 0x7fc00200 | (qOp >> 1) | (laneMask << 12); // dall
defId(i->def(0), 2);
srcId(i->src(0), 10);