drm/radeon: fix ring commit padding
authorChristian König <deathsimple@vodafone.de>
Sat, 7 Jul 2012 10:11:32 +0000 (12:11 +0200)
committerChristian König <deathsimple@vodafone.de>
Tue, 17 Jul 2012 08:32:08 +0000 (10:32 +0200)
commit07a713305a2b55d6ec424000f2c5bed1268ac56b
tree1f28b262a609dfcd631e8ae13f700faa581d70bf
parentdee53e7fb3ee01b83c75a8e8df8c444049d38058
drm/radeon: fix ring commit padding

We don't need to pad anything if the number of dwords
written to the ring already matches the requirements.

Fixes some "writting more dword to ring than expected"
warnings.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_ring.c