diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-01-25 17:55:50 +0100 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2011-01-27 04:54:13 +0100 |
commit | fa6bee46a655a750afb9a78a7ddf9a3bcda97db8 (patch) | |
tree | 899ff04db8e6ab05b2179037645c762117b9355c /drivers/gpu/drm/radeon/r600_reg.h | |
parent | drm/radeon/kms: clean up some magic numbers (diff) | |
download | linux-fa6bee46a655a750afb9a78a7ddf9a3bcda97db8.tar.xz linux-fa6bee46a655a750afb9a78a7ddf9a3bcda97db8.zip |
drm/radeon/kms: fix r6xx+ scanout on BE systems
R6xx+ have per-block swappers. BE content in the
framebuffer will now be swapped properly during scanout.
Untested, however, the same code is reported working in
the UMS ddx.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_reg.h')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_reg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r600_reg.h b/drivers/gpu/drm/radeon/r600_reg.h index 33cda016b083..f869897c7456 100644 --- a/drivers/gpu/drm/radeon/r600_reg.h +++ b/drivers/gpu/drm/radeon/r600_reg.h @@ -81,7 +81,11 @@ #define R600_MEDIUM_VID_LOWER_GPIO_CNTL 0x720 #define R600_LOW_VID_LOWER_GPIO_CNTL 0x724 - +#define R600_D1GRPH_SWAP_CONTROL 0x610C +# define R600_D1GRPH_SWAP_ENDIAN_NONE (0 << 0) +# define R600_D1GRPH_SWAP_ENDIAN_16BIT (1 << 0) +# define R600_D1GRPH_SWAP_ENDIAN_32BIT (2 << 0) +# define R600_D1GRPH_SWAP_ENDIAN_64BIT (3 << 0) #define R600_HDP_NONSURFACE_BASE 0x2c04 |