From 08505549ab938a6650024aab68f7713989c5c6fe Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Tue, 11 Mar 2014 11:21:35 -0400 Subject: nv50/ir/gk110: add texcsaa implementation Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/nouveau') 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 7ec3b570c8b..c11aa798638 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp @@ -949,7 +949,17 @@ void CodeEmitterGK110::emitTEXBAR(const Instruction *i) void CodeEmitterGK110::emitTEXCSAA(const TexInstruction *i) { - emitNOP(i); // TODO + code[0] = 0x00000002; + code[1] = 0x76c00000; + + // code[1] |= i->tex.r << 9; + // code[1] |= i->tex.s << (9 + 8); + + if (i->tex.liveOnly) + code[0] |= 0x80000000; + + defId(i->def(0), 2); + srcId(i->src(0), 10); } static inline bool -- cgit v1.2.3