summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-03-11 11:21:35 -0400
committerIlia Mirkin <[email protected]>2014-03-18 05:56:54 -0400
commit08505549ab938a6650024aab68f7713989c5c6fe (patch)
treeb8e88584ee30a8e11f1a53615d7e1c34fb3b6d9d /src/gallium/drivers/nouveau
parentc17f7247ec5b7acf44e462accf5b5124fb713772 (diff)
nv50/ir/gk110: add texcsaa implementation
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp12
1 files changed, 11 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 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