summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-04-27 12:54:43 -0400
committerIlia Mirkin <[email protected]>2015-04-27 21:25:28 -0400
commit89e0b08794a56e2ef78e8573a8c11e0cc4589f9e (patch)
tree1164d843b80023f82e7c7741c9c1c38061b81701
parent52614f59b7a9c4ae5efeacba26fa811568818811 (diff)
gk110/ir: add support for writing per-patch and shader outputs
Signed-off-by: Ilia Mirkin <[email protected]>
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp10
1 files changed, 3 insertions, 7 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 34cb06a8786..a73bee272d7 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
@@ -1347,12 +1347,10 @@ CodeEmitterGK110::emitVFETCH(const Instruction *i)
code[1] = 0x7ec00000 | (offset >> 9);
code[1] |= (size / 4 - 1) << 18;
-#if 0
if (i->perPatch)
- code[0] |= 0x100;
+ code[1] |= 0x4;
if (i->getSrc(0)->reg.file == FILE_SHADER_OUTPUT)
- code[0] |= 0x200; // yes, TCPs can read from *outputs* of other threads
-#endif
+ code[1] |= 0x8; // yes, TCPs can read from *outputs* of other threads
emitPredicate(i);
@@ -1371,10 +1369,8 @@ CodeEmitterGK110::emitEXPORT(const Instruction *i)
code[1] = 0x7f000000 | (offset >> 9);
code[1] |= (size / 4 - 1) << 18;
-#if 0
if (i->perPatch)
- code[0] |= 0x100;
-#endif
+ code[1] |= 0x4;
emitPredicate(i);