]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitecbb21d4568e4b82a44cb7ef421c81861e8e112c
treebdf3f36f5d9fde3106706ed1f81564ed60d3ed2b
parent5730ae3a49e8142014a8c4b5240f56176c35bdba
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