projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a81beee
)
r600g: remove DMA padding
author
Alex Deucher
<alexander.deucher@amd.com>
Fri, 6 Sep 2013 23:10:27 +0000
(19:10 -0400)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 6 Sep 2013 23:10:27 +0000
(19:10 -0400)
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>
src/gallium/drivers/r600/r600_pipe.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_pipe.c
b/src/gallium/drivers/r600/r600_pipe.c
index b4b8c886f64610e3aa57d20495e3f144370be674..aa5cadf93e9bd6275062d7ae8be49a4dc61a3700 100644
(file)
--- 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;