r600g: remove DMA padding
This is now handled in the winsys. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -217,20 +217,11 @@ static void r600_flush_dma_ring(void *ctx, unsigned flags)
|
|||||||
{
|
{
|
||||||
struct r600_context *rctx = (struct r600_context *)ctx;
|
struct r600_context *rctx = (struct r600_context *)ctx;
|
||||||
struct radeon_winsys_cs *cs = rctx->b.rings.dma.cs;
|
struct radeon_winsys_cs *cs = rctx->b.rings.dma.cs;
|
||||||
unsigned padding_dw, i;
|
|
||||||
|
|
||||||
if (!cs->cdw) {
|
if (!cs->cdw) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pad the DMA CS to a multiple of 8 dwords. */
|
|
||||||
padding_dw = 8 - cs->cdw % 8;
|
|
||||||
if (padding_dw < 8) {
|
|
||||||
for (i = 0; i < padding_dw; i++) {
|
|
||||||
cs->buf[cs->cdw++] = DMA_PACKET(DMA_PACKET_NOP, 0, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rctx->b.rings.dma.flushing = true;
|
rctx->b.rings.dma.flushing = true;
|
||||||
rctx->b.ws->cs_flush(cs, flags, 0);
|
rctx->b.ws->cs_flush(cs, flags, 0);
|
||||||
rctx->b.rings.dma.flushing = false;
|
rctx->b.rings.dma.flushing = false;
|
||||||
|
Reference in New Issue
Block a user