drm/radeon/r600: Replace repeated calculations with variable.
authorRobert Noland <rnoland@2hip.net>
Tue, 20 Oct 2009 13:11:36 +0000 (08:11 -0500)
committerDave Airlie <airlied@redhat.com>
Mon, 26 Oct 2009 03:28:21 +0000 (13:28 +1000)
commitc54b1820d69a1043acaf50d084852e628266e0e2
treebdf3f36f5d9fde3106706ed1f81564ed60d3ed2b
parentbc293e58cb4095f2ad43fe672ae269e31d1a18e2
drm/radeon/r600: Replace repeated calculations with variable.

- Reduce the chance of error and avoid a bit of overhead.
  - Use switch to assign color and format

Signed-off-by: Robert Noland <rnoland@2hip.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600_blit.c