drm/radeon: fix ring free alignment calculations
authorDave Airlie <airlied@linux.ie>
Wed, 3 Jun 2009 21:08:13 +0000 (07:08 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 3 Jun 2009 23:14:28 +0000 (09:14 +1000)
commit9863871bd1bbf218b921af5e0bc48ca4f6ea9f12
tree5e6c5a64fd48d4030fe10da7d541ecf93f6f3cf3
parentb8da7de56ca0ad34726478a50d138a29a9ff76cb
drm/radeon: fix ring free alignment calculations

fd.o bz#21849

We were aligning to +16 dwords, instead of to the next 16dword
boundary in the ring. Fix the calculation to go to the next 16dword
boundary when space checking.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_cp.c
drivers/gpu/drm/radeon/radeon_drv.h