From: Ilia Mirkin Date: Tue, 11 Mar 2014 14:48:15 +0000 (-0400) Subject: nv50/ir/gk110: add pfetch support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c17f7247ec5b7acf44e462accf5b5124fb713772;p=mesa.git nv50/ir/gk110: add pfetch support Signed-off-by: Ilia Mirkin --- 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