freedreno: Rename RB_DONE_TS
This makes the various cache_flush implementations make more sense. Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4065> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4065>
This commit is contained in:
parent
36133a5434
commit
73e574acb8
|
@ -314,7 +314,7 @@ cache_flush(struct fd_ringbuffer *ring, struct kernel *kernel)
|
|||
struct a6xx_backend *a6xx_backend = to_a6xx_backend(ir3_kernel->backend);
|
||||
unsigned seqno;
|
||||
|
||||
seqno = event_write(ring, kernel, CACHE_FLUSH_AND_INV_EVENT, true);
|
||||
seqno = event_write(ring, kernel, RB_DONE_TS, true);
|
||||
|
||||
OUT_PKT7(ring, CP_WAIT_REG_MEM, 6);
|
||||
OUT_RING(ring, CP_WAIT_REG_MEM_0_FUNCTION(WRITE_EQ) |
|
||||
|
|
|
@ -1176,7 +1176,7 @@ tu6_cache_flush(struct tu_cmd_buffer *cmd, struct tu_cs *cs)
|
|||
{
|
||||
unsigned seqno;
|
||||
|
||||
seqno = tu6_emit_event_write(cmd, cs, CACHE_FLUSH_AND_INV_EVENT, true);
|
||||
seqno = tu6_emit_event_write(cmd, cs, RB_DONE_TS, true);
|
||||
|
||||
tu_cs_emit_pkt7(cs, CP_WAIT_REG_MEM, 6);
|
||||
tu_cs_emit(cs, CP_WAIT_REG_MEM_0_FUNCTION(WRITE_EQ) |
|
||||
|
|
|
@ -166,7 +166,7 @@ timestamp_resume(struct fd_acc_query *aq, struct fd_batch *batch)
|
|||
struct fd_ringbuffer *ring = batch->draw;
|
||||
|
||||
OUT_PKT7(ring, CP_EVENT_WRITE, 4);
|
||||
OUT_RING(ring, CP_EVENT_WRITE_0_EVENT(CACHE_FLUSH_AND_INV_EVENT) |
|
||||
OUT_RING(ring, CP_EVENT_WRITE_0_EVENT(RB_DONE_TS) |
|
||||
CP_EVENT_WRITE_0_TIMESTAMP);
|
||||
OUT_RELOCW(ring, query_sample(aq, start));
|
||||
OUT_RING(ring, 0x00000000);
|
||||
|
@ -180,7 +180,7 @@ timestamp_pause(struct fd_acc_query *aq, struct fd_batch *batch)
|
|||
struct fd_ringbuffer *ring = batch->draw;
|
||||
|
||||
OUT_PKT7(ring, CP_EVENT_WRITE, 4);
|
||||
OUT_RING(ring, CP_EVENT_WRITE_0_EVENT(CACHE_FLUSH_AND_INV_EVENT) |
|
||||
OUT_RING(ring, CP_EVENT_WRITE_0_EVENT(RB_DONE_TS) |
|
||||
CP_EVENT_WRITE_0_TIMESTAMP);
|
||||
OUT_RELOCW(ring, query_sample(aq, stop));
|
||||
OUT_RING(ring, 0x00000000);
|
||||
|
|
|
@ -1399,7 +1399,7 @@ fd6_framebuffer_barrier(struct fd_context *ctx)
|
|||
struct fd_ringbuffer *ring = batch->draw;
|
||||
unsigned seqno;
|
||||
|
||||
seqno = fd6_event_write(batch, ring, CACHE_FLUSH_AND_INV_EVENT, true);
|
||||
seqno = fd6_event_write(batch, ring, RB_DONE_TS, true);
|
||||
|
||||
OUT_PKT7(ring, CP_WAIT_REG_MEM, 6);
|
||||
OUT_RING(ring, CP_WAIT_REG_MEM_0_FUNCTION(WRITE_EQ) |
|
||||
|
|
|
@ -179,7 +179,7 @@ fd6_cache_flush(struct fd_batch *batch, struct fd_ringbuffer *ring)
|
|||
struct fd6_context *fd6_ctx = fd6_context(batch->ctx);
|
||||
unsigned seqno;
|
||||
|
||||
seqno = fd6_event_write(batch, ring, CACHE_FLUSH_AND_INV_EVENT, true);
|
||||
seqno = fd6_event_write(batch, ring, RB_DONE_TS, true);
|
||||
|
||||
OUT_PKT7(ring, CP_WAIT_REG_MEM, 6);
|
||||
OUT_RING(ring, CP_WAIT_REG_MEM_0_FUNCTION(WRITE_EQ) |
|
||||
|
|
|
@ -166,7 +166,7 @@ timestamp_resume(struct fd_acc_query *aq, struct fd_batch *batch)
|
|||
struct fd_ringbuffer *ring = batch->draw;
|
||||
|
||||
OUT_PKT7(ring, CP_EVENT_WRITE, 4);
|
||||
OUT_RING(ring, CP_EVENT_WRITE_0_EVENT(CACHE_FLUSH_AND_INV_EVENT) |
|
||||
OUT_RING(ring, CP_EVENT_WRITE_0_EVENT(RB_DONE_TS) |
|
||||
CP_EVENT_WRITE_0_TIMESTAMP);
|
||||
OUT_RELOCW(ring, query_sample(aq, start));
|
||||
OUT_RING(ring, 0x00000000);
|
||||
|
@ -180,7 +180,7 @@ time_elapsed_pause(struct fd_acc_query *aq, struct fd_batch *batch)
|
|||
struct fd_ringbuffer *ring = batch->draw;
|
||||
|
||||
OUT_PKT7(ring, CP_EVENT_WRITE, 4);
|
||||
OUT_RING(ring, CP_EVENT_WRITE_0_EVENT(CACHE_FLUSH_AND_INV_EVENT) |
|
||||
OUT_RING(ring, CP_EVENT_WRITE_0_EVENT(RB_DONE_TS) |
|
||||
CP_EVENT_WRITE_0_TIMESTAMP);
|
||||
OUT_RELOCW(ring, query_sample(aq, stop));
|
||||
OUT_RING(ring, 0x00000000);
|
||||
|
@ -209,7 +209,7 @@ static void
|
|||
record_timestamp(struct fd_ringbuffer *ring, struct fd_bo *bo, unsigned offset)
|
||||
{
|
||||
OUT_PKT7(ring, CP_EVENT_WRITE, 4);
|
||||
OUT_RING(ring, CP_EVENT_WRITE_0_EVENT(CACHE_FLUSH_AND_INV_EVENT) |
|
||||
OUT_RING(ring, CP_EVENT_WRITE_0_EVENT(RB_DONE_TS) |
|
||||
CP_EVENT_WRITE_0_TIMESTAMP);
|
||||
OUT_RELOCW(ring, bo, offset, 0, 0);
|
||||
OUT_RING(ring, 0x00000000);
|
||||
|
|
Loading…
Reference in New Issue