r300: Correctly translate the value for the R300_CMD_WAIT command.
authorOliver McFadden <z3ro.geek@gmail.com>
Sat, 29 Mar 2008 17:25:44 +0000 (17:25 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Sat, 29 Mar 2008 17:31:39 +0000 (17:31 +0000)
commit1674d2817929fe4ee4e1c4762e89600119dbdc50
treeba3b9241eb8b4f81134cc3309ba0a9135343a419
parenta81d07f64d7557da3c4888867a20d2eec94b4ec1
r300: Correctly translate the value for the R300_CMD_WAIT command.

Previously, the R300_CMD_WAIT command would write the passed directly to the
hardware. However this is incorrect because the R300_WAIT_* values used are
internal interface values that do not map directly to the hardware.

The new function I have added translates the R300_WAIT_* values into appropriate
values for the hardware before writing the register.

Thanks to John Bridgman for pointing this out. :-)
shared-core/r300_cmdbuf.c