[Mesa-dev] [PATCH 3/4] radeon: fix some potential big endian issues
Emil Velikov
emil.l.velikov at gmail.com
Mon Jul 13 08:58:21 PDT 2015
On 11 July 2015 at 19:39, <sroland at vmware.com> wrote:
> @@ -186,17 +172,24 @@ static inline void emit_cb_setup(struct r100_context *r100,
>
> /* XXX others? BE/LE? */
Drop the BE/LE part of the comment ?
> switch (mesa_format) {
> + /* le */
> case MESA_FORMAT_B8G8R8A8_UNORM:
> case MESA_FORMAT_B8G8R8X8_UNORM:
> + /* be */
> + case MESA_FORMAT_A8R8G8B8_UNORM:
> + case MESA_FORMAT_X8R8G8B8_UNORM:
Something like the following might be easier for you/others X months
down the line.
+ /* The former format of each pair is for LE while latter for BE systems. */
switch (mesa_format) {
case MESA_FORMAT_B8G8R8A8_UNORM:
+ case MESA_FORMAT_A8R8G8B8_UNORM:
case MESA_FORMAT_B8G8R8X8_UNORM:
+ case MESA_FORMAT_X8R8G8B8_UNORM:
Same suggestion applies for 4/4.
-Emil
More information about the mesa-dev
mailing list