freedreno/a4xx: call fd4_emit_ib() directly from fd4

Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
Rob Clark 2019-07-31 17:37:57 -07:00
parent 4326eeac97
commit 50e15e1c6f
3 changed files with 7 additions and 7 deletions

View File

@ -912,12 +912,6 @@ fd4_emit_restore(struct fd_batch *batch, struct fd_ringbuffer *ring)
fd_hw_query_enable(batch, ring);
}
static void
fd4_emit_ib(struct fd_ringbuffer *ring, struct fd_ringbuffer *target)
{
__OUT_IB(ring, true, target);
}
static void
fd4_mem_to_mem(struct fd_ringbuffer *ring, struct pipe_resource *dst,
unsigned dst_off, struct pipe_resource *src, unsigned src_off,

View File

@ -103,4 +103,10 @@ void fd4_emit_restore(struct fd_batch *batch, struct fd_ringbuffer *ring);
void fd4_emit_init(struct pipe_context *pctx);
static inline void
fd4_emit_ib(struct fd_ringbuffer *ring, struct fd_ringbuffer *target)
{
__OUT_IB(ring, true, target);
}
#endif /* FD4_EMIT_H */

View File

@ -639,7 +639,7 @@ emit_binning_pass(struct fd_batch *batch)
}
/* emit IB to binning drawcmds: */
ctx->emit_ib(ring, batch->binning);
fd4_emit_ib(ring, batch->binning);
fd_reset_wfi(batch);
fd_wfi(batch, ring);