mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
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:
parent
a81beee37e
commit
9bc47dbe50
1 changed files with 0 additions and 9 deletions
|
|
@ -217,20 +217,11 @@ static void r600_flush_dma_ring(void *ctx, unsigned flags)
|
|||
{
|
||||
struct r600_context *rctx = (struct r600_context *)ctx;
|
||||
struct radeon_winsys_cs *cs = rctx->b.rings.dma.cs;
|
||||
unsigned padding_dw, i;
|
||||
|
||||
if (!cs->cdw) {
|
||||
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.ws->cs_flush(cs, flags, 0);
|
||||
rctx->b.rings.dma.flushing = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue