mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
freedreno/a5xx: drop WFIs in emit_marker5()
Results in always having at least one WFI between draws, which was slowing stk down by ~5% and ~10% in xonotic. (also drop bogus assert while we're at it.) Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
76214b9919
commit
45e97c994b
1 changed files with 0 additions and 5 deletions
|
|
@ -410,13 +410,8 @@ emit_marker5(struct fd_ringbuffer *ring, int scratch_idx)
|
||||||
extern unsigned marker_cnt;
|
extern unsigned marker_cnt;
|
||||||
//XXX unsigned reg = REG_A5XX_CP_SCRATCH_REG(scratch_idx);
|
//XXX unsigned reg = REG_A5XX_CP_SCRATCH_REG(scratch_idx);
|
||||||
unsigned reg = 0x00000b78 + scratch_idx;
|
unsigned reg = 0x00000b78 + scratch_idx;
|
||||||
assert(reg != HW_QUERY_BASE_REG);
|
|
||||||
if (reg == HW_QUERY_BASE_REG)
|
|
||||||
return;
|
|
||||||
OUT_WFI5(ring);
|
|
||||||
OUT_PKT4(ring, reg, 1);
|
OUT_PKT4(ring, reg, 1);
|
||||||
OUT_RING(ring, ++marker_cnt);
|
OUT_RING(ring, ++marker_cnt);
|
||||||
OUT_WFI5(ring);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* helper to get numeric value from environment variable.. mostly
|
/* helper to get numeric value from environment variable.. mostly
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue