[Mesa-dev] [PATCH] nvc0/ir: joins get a sched of 0x2f

Karol Herbst karolherbst at gmail.com
Fri Sep 9 19:08:10 UTC 2016


slightly improves performance for GpuTest /test=pixmark_piano /benchmark
/no_scorebox /msaa=0 /benchmark_duration_ms=60000 /width=1024 /height=640

score: 1031 -> 1033

observed from the binary generated by nvidia

Signed-off-by: Karol Herbst <karolherbst at gmail.com>
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
index d83028c..a8e9a33 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
@@ -3033,7 +3033,7 @@ SchedDataCalculator::setDelay(Instruction *insn, int delay, Instruction *next)
       insn->sched = 0xc2;
    } else
    if (insn->op == OP_JOIN || insn->join) {
-      insn->sched = 0x00;
+      insn->sched = 0x2f;
    } else
    if (delay >= 0 || prevData == 0x04 ||
        !next || !targ->canDualIssue(insn, next)) {
-- 
2.10.0



More information about the mesa-dev mailing list