[PATCH] [glint] Fix uploading YV12 data to texture buffer on BE machines

Matt Turner mattst88 at gmail.com
Fri Mar 11 19:51:09 PST 2011


On Mon, Feb 28, 2011 at 11:32 PM, Mark Kettenis <mark.kettenis at xs4all.nl> wrote:
> On BE machines various hardware byteswapping options are used for the
> framebuffer aperture.  Which option gets used depends on the depth of the
> framebuffer.  Uploading YV12 data to the texture buffer is done through the
> same aperture, but is always done in 32-bit wide units.  Therefore the code
> that does the uploading needs to take into account the byteswapping done by
> the hardware.  For 32bpp modes we can use the same code as on LE machines,
> but 16bpp and 8bpp modes need their own versions.
>
> Signed-off-by: Mark Kettenis <kettenis at openbsd.org>

I think you've got commit access, so go for it!

Thanks :)
Matt


More information about the xorg-devel mailing list