radeon/winsys: pad IBs to a multiple of 8 DWs
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Sep 2013 20:43:34 +0000 (16:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Sep 2013 23:08:35 +0000 (19:08 -0400)
commita81beee37e0dd7b75422448420e8e8b0b4b76c1e
treea147e2d238c4e6c734e6f52cbc83aeea4ca79b15
parente8f9195e5fb34a45783d6491d2e0305a0b137439
radeon/winsys: pad IBs to a multiple of 8 DWs

This aligns the gfx, compute, and dma IBs to 8 DW boundries.
This aligns the the IB to the fetch size of the CP for optimal
performance. Additionally, r6xx hardware requires at least 4
DW alignment to avoid a hw bug.  This also aligns the DMA
IBs to 8 DW which is required for the DMA engine.  This
alignment is already handled in the gallium driver, but that
patch can be removed now that it's done in the winsys.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
CC: "9.2" <mesa-stable@lists.freedesktop.org>
CC: "9.1" <mesa-stable@lists.freedesktop.org>
src/gallium/winsys/radeon/drm/radeon_drm_cs.c