drm/r300: fix bug in r300 userspace hardware wait emission
authorDave Airlie <airlied@linux.ie>
Sat, 29 Mar 2008 21:51:49 +0000 (07:51 +1000)
committerDave Airlie <airlied@linux.ie>
Sat, 29 Mar 2008 21:51:49 +0000 (07:51 +1000)
commit0c76be35194563f56e02fc1775d0fe29281e84d4
treece326ec271bb53323daf29f7098fb81ff6caae01
parentaf8be4e4b316df36a00c1e52a9970c253783b57e
drm/r300: fix bug in r300 userspace hardware wait emission

This interface was originally designed wrong, confusing bit-fields and
integers, major brown paper bag going back many years...

But userspace only ever used 4 values so fix the interface for new
users and fix the implementation to deal with the 4 values userspace
has ever emitted (0x1, 0x2, 0x3, 0x6).

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/drm/r300_cmdbuf.c
drivers/char/drm/radeon_drm.h