summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/radeon
diff options
context:
space:
mode:
authorChristian König <[email protected]>2013-09-22 10:41:27 +0200
committerChristian König <[email protected]>2013-09-25 10:58:58 +0200
commitf9f14201c18fcb4ba73605e20f015c00e70c1cdd (patch)
tree5c5352f92ee8349d8f3e4a27170c69bf2822eb64 /src/gallium/winsys/radeon
parent5f6ae61e69463b344247e088be41f0c036e1e412 (diff)
radeon/uvd: move alignment to winsys
Similar to GFX and DMA. Signed-off-by: Christian König <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/winsys/radeon')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_cs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
index d530011be66..62f77044b3a 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
@@ -494,6 +494,12 @@ static void radeon_drm_cs_flush(struct radeon_winsys_cs *rcs, unsigned flags, ui
OUT_CS(&cs->base, 0x80000000); /* type2 nop packet */
}
break;
+ case RING_UVD:
+ while (rcs->cdw & 15)
+ OUT_CS(&cs->base, 0x80000000); /* type2 nop packet */
+ break;
+ default:
+ break;
}
if (rcs->cdw > RADEON_MAX_CMDBUF_DWORDS) {