[Mesa-dev] [PATCH v2] st/dri: add 32-bit RGBX/RGBA formats

Rob Herring robh at kernel.org
Mon Jul 31 16:17:06 UTC 2017


On Sun, Jul 30, 2017 at 10:48 AM, Chih-Wei Huang
<cwhuang at android-x86.org> wrote:
> Hi Rob,
> Sorry to bother you again.
> This patch also breaks the srwast/llvmpipe on Android
> since the red and blue are just swapped.

My guess is because in this case you use the framebuffer (/dev/fb0)
and the format is fixed. The same problem exists with KMS and dumb
buffers as there is no way to either communicate what is the format or
set the format. It should be a simple switch in the kernel to change
the format, but I'm not sure what the proper fix is as there's
resistance to any extending of dumb buffers.

I've been trying to get llvmpipe to work in my build. I think I'm
close using kms_swrast, but the only thing I can get on screen is the
color I memset allocated buffers too.

> I guess nouveau has the same issue but
> I'm waiting Mauro's confirmation.

I'd guess it doesn't. However, it could just not support those
formats. I had to add them on freedreno for example.

Rob


More information about the mesa-dev mailing list