summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2013-09-06 19:10:27 -0400
committerAlex Deucher <[email protected]>2013-09-06 19:10:27 -0400
commit9bc47dbe5062fe1f462f62bf3a2dda7b2f3ddea3 (patch)
tree0911ab0af0b79237237ea25501066cf5369aadec /src/gallium/drivers
parenta81beee37e0dd7b75422448420e8e8b0b4b76c1e (diff)
r600g: remove DMA padding
This is now handled in the winsys. Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index b4b8c886f64..aa5cadf93e9 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->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;