[Mesa-dev] [PATCH 2/2] r600g: remove DMA padding

Alex Deucher alexdeucher at gmail.com
Fri Sep 6 14:00:38 PDT 2013


This is now handled in the winsys.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 src/gallium/drivers/r600/r600_pipe.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 2be5910..c684e6b 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -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->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->rings.dma.flushing = true;
 	rctx->ws->cs_flush(cs, flags, 0);
 	rctx->rings.dma.flushing = false;
-- 
1.8.3.1



More information about the mesa-dev mailing list