Mesa (master): nv50/ir/gk110: add emit/restart implementations
Ilia Mirkin
imirkin at kemper.freedesktop.org
Tue Mar 18 09:58:23 UTC 2014
Module: Mesa
Branch: master
Commit: 15b1f420d04e2fbff8e1ed4a863239e8ddf602de
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=15b1f420d04e2fbff8e1ed4a863239e8ddf602de
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Tue Mar 11 10:25:29 2014 -0400
nv50/ir/gk110: add emit/restart implementations
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
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 aec9b52..754a31d 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
@@ -1225,7 +1225,14 @@ CodeEmitterGK110::emitEXPORT(const Instruction *i)
void
CodeEmitterGK110::emitOUT(const Instruction *i)
{
- emitNOP(i); // TODO
+ assert(i->src(0).getFile() == FILE_GPR);
+
+ emitForm_21(i, 0x1f0, 0xb70);
+
+ if (i->op == OP_EMIT)
+ code[1] |= 1 << 10;
+ if (i->op == OP_RESTART || i->subOp == NV50_IR_SUBOP_EMIT_RESTART)
+ code[1] |= 1 << 11;
}
void
More information about the mesa-commit
mailing list