[Mesa-dev] [PATCH 0/3] Fix desktop colors for r600g on Big-Endian machines

Oded Gabbay oded.gabbay at gmail.com
Thu Feb 25 21:09:16 UTC 2016


So I finally managed to get the desktop colors to work correctly. Apparently,
my previous fixes were partially wrong (but also partially correct).

There are two major points:

1. Because the mesa <--> pipe format conversion takes into account 
   endianess (see p_format.h), there is no need to do a colorformat endian 
   swap in the H/w

2. evergreen_do_fast_color_clear is broken on BE, probably because of the 
   packing. I need to fix that, but it may take a bit more time, so in the 
   meantime, I would like to disable this path for BE. No real harm is done 
   but now the colors on the desktop are correct.

Thanks,

    Oded

Oded Gabbay (3):
  gallium/radeon: remove separate BE path in r600_translate_colorswap
  gallium/r600: Don't let h/w do endian swap for colorformat
  gallium/radeon: disable evergreen_do_fast_color_clear for BE

 src/gallium/drivers/r600/r600_state_common.c |  6 ++++++
 src/gallium/drivers/radeon/r600_texture.c    | 18 ++++++------------
 2 files changed, 12 insertions(+), 12 deletions(-)

-- 
2.5.0



More information about the mesa-dev mailing list