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

2017-04-21 Thread Olivier Fourdan
Hi Eric, > Olivier Fourdan 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

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

2017-04-20 Thread Eric Anholt
Olivier Fourdan 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

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

2017-04-20 Thread Olivier Fourdan
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