diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-01-25 11:55:50 -0500 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2011-01-27 13:54:13 +1000 |
commit | fa6bee46a655a750afb9a78a7ddf9a3bcda97db8 (patch) | |
tree | 899ff04db8e6ab05b2179037645c762117b9355c /drivers/gpu/drm/radeon/r600_reg.h | |
parent | d75ee3be44380040b9d2c7925298dc52e049768d (diff) | |
download | op-kernel-dev-fa6bee46a655a750afb9a78a7ddf9a3bcda97db8.zip op-kernel-dev-fa6bee46a655a750afb9a78a7ddf9a3bcda97db8.tar.gz |
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 33cda01..f869897 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 |