[PATCH xserver 5/5] glamor: Use GL_RGBA format for 8-bit depth

Eric Anholt eric at anholt.net
Thu Apr 20 19:07:46 UTC 2017


Olivier Fourdan <ofourdan at redhat.com> writes:

> For some hardware, GL_RGBA is the safest option for textures to bind to
> an FBO for depth 8 as GL_ALPHA might be unsupported.
>
> This allows using glamor-xv on hardware that don't support GL_ALPHA
> textures attaching to an FBO, such as nouveau on nv30.
>
> Newer hardware use GL_RED and texture swizzle anyway, so this change is
> of limited impact.

Does nv30 not support *any* 8-bit render target?

Also, blowing up our XV textures to 32-bit can't be good for its
performance.  Could we just use GLAMOR_CREATE_FBO_NO_FBO (worst name) to
have our XV pixmaps not actually create an FBO?  We already use
glamor_upload_boxes(), so I think that would work.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170420/8974488f/attachment-0001.sig>


More information about the xorg-devel mailing list