[PATCH 0/4] fb support for 8bpp bitmaps

Keith Packard keithp at keithp.com
Tue Jan 14 07:04:32 PST 2014


Marek Olšák <maraeo at gmail.com> writes:

> Even though GL has no support for 1bpp textures, they can be supported
> indirectly. You can do the 1bpp <-> 8bpp conversion on the GPU using a
> simple fragment shader. All you need is GL 3.0.

I'm not sure how you'd manage to draw to a 1bpp target with the GPU
using a fragment shader? Even still, there's no particular reason to
struggle with it when we can simply use a directly supported format.

> Same for A8. You can do the swizzling in the fragment shader for GLES,
> but I'm not sure why we care about it. GL is superior to it and
> eventually we would like to use GL_ARB_buffer_storage for vertex
> uploads in glamor, which isn't available for GLES.

Yeah, GLES is not our favorite API, but I think one of the goals for
Glamor should be to easily stick X on top of any random existing driver,
including GLES (even though it will suck more than real GL).

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140114/174db024/attachment.pgp>


More information about the xorg-devel mailing list