]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/radeon: enable ABGR and XBGR formats (v2)
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 12 Aug 2018 19:43:03 +0000 (21:43 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:19 +0000 (11:10 -0500)
commita69e40fd824ddae4f515ca8e754882bebf644ed4
tree32b9b6c846280d4ce4ec91ddac74343cd078d6a3
parent00ecc6e6d4eeba9681ec91f9601a9ed1a68a9e7f
drm/radeon: enable ABGR and XBGR formats (v2)

Add support for DRM_FORMAT_{A,X}BGR8888 in atombios_crtc
Swapping of red and blue channels is implemented for radeon chipsets:
DCE2/R6xx and later - crossbar registers defined where needed and used
DCE1/R5xx - AVIVO_D1GRPH_SWAP_RB bit is used

(v2) Set AVIVO_D1GRPH_SWAP_RB bit in fb_format, using bitwise OR for DCE1 path
     Use bitwise OR where required for big endian settings in fb_swap
     Use existing code style CHIP_R600 condition, fix typo in R600 blue crossbar

Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_crtc.c
drivers/gpu/drm/radeon/r600_reg.h