summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp10
1 files changed, 9 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 754a31daa85..7ec3b570c8b 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
@@ -1175,7 +1175,15 @@ CodeEmitterGK110::emitFlow(const Instruction *i)
void
CodeEmitterGK110::emitPFETCH(const Instruction *i)
{
- emitNOP(i); // TODO
+ uint32_t prim = i->src(0).get()->reg.data.u32;
+
+ code[0] = 0x00000002 | ((prim & 0xff) << 23);
+ code[1] = 0x7f800000;
+
+ emitPredicate(i);
+
+ defId(i->def(0), 2);
+ srcId(i->src(1), 10);
}
void