• Mauro Rossi's avatar
    drm/radeon: enable ABGR and XBGR formats (v2) · a69e40fd
    Mauro Rossi authored
    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: default avatarMauro Rossi <issor.oruam@gmail.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    a69e40fd
atombios_crtc.c 71.6 KB