radeon: fix some potential big endian issues
authorRoland Scheidegger <sroland@vmware.com>
Thu, 16 Jul 2015 01:18:20 +0000 (03:18 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 16 Jul 2015 01:54:53 +0000 (03:54 +0200)
commitd21320f6258b2e1780a15c1ca718963d8a15ca18
tree64f19b9ec7aefd75b8a7c3b1c37b9e7d997307de
parent882476fea3ba4fdd05d21582eeb968f84523fb9a
radeon: fix some potential big endian issues

The formats chosen (both by texture format choser, fbo storage allocation)
are different for big endian not just for rgba8 but also lower bit width
formats (why I don't actually know). Even the function to test for renderable
formats used different formats, however the actual colorbuffer setup did not.
And the blitter did not take that into account neither.
Untested (what could possibly go wrong...).

Acked-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/drivers/dri/radeon/radeon_blit.c
src/mesa/drivers/dri/radeon/radeon_state_init.c
src/mesa/drivers/dri/radeon/radeon_tex.h
src/mesa/drivers/dri/radeon/radeon_texstate.c