[waffle] [PATCH 0/2] Test and fix for EGL configs with alpha

Chad Versace chad.versace at linux.intel.com
Fri May 25 10:35:20 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/24/2012 07:33 AM, Pauli Nieminen wrote:
> Only EGL configs [1] that are available with alpha are using 32bit composite
> visual. To create a window with that visual requires a bit more parameters
> than waffle  is currently providing. The fix is relatively simple 
> 
> I hit this with piglit tests using GLUT_ALPHA.
> 
> I don't actually know any reason why mesa doesn't provide alpha bits for
> 24bit X visuals. Application could still use framebuffer alpha bits for 
> rendering even tough compositor won't read those values. But I suppose
> that is topic of later discussion in mesa list.


Many weeks ago, when I was prototyping Waffle's X11/EGL backend, I
encountered this problem. When I moved from prototyping to actually
implementing, I forgot about it and never fixed it.

Thanks for rediscovering and solving this problem.

> Will waffle provide application control to select between opaque and
> translucent window even if selecting config with alpha bit?

I haven't decided yet. We first need to investigate what analogous functionality
exists on MacOS and Wayland.
 
> [1] example config:
> 0x3d 32  0  8  8  8  8  0  0  0 0 0x66TC      a  y  y  y     win,pb,pix
> 
> Pauli Nieminen (2):
>   gl_basic_test: Add test that config with alpha works
>   x11: Support visuals that don't match root visual
> 
>  src/waffle/x11/x11.c             |   23 ++++++++++++++++++++---
>  tests/functional/gl_basic_test.c |   31 ++++++++++++++++++++-----------
>  2 files changed, 40 insertions(+), 14 deletions(-)
> 



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPv8LWAAoJEAIvNt057x8iVk8P/Alk4R+ALYlJCYkfdP8VQng6
+squjxvHIXDhmEl7nnVuv0SO3lUuWShSwcI2exG7lYyZksWW0NXmaFvZCu7WpcmQ
r1YHPOT8SG/m50Ni3arukGgOMxn8Krv7fmhn/UYwYDO1KpxhiHDQ9zp2fTy2Ps01
qZLKpO/NPyrSu1fjx4Yj17OCbqFX9vVH9+XuGztjU/0ijBh8DoVcH3/lQMgc9rNy
qIImGPJFTGIrodBhigNwwrzS6IP8Co3bUmcrRzrNbqTBMgJuFYWFJiLjoIxCfGam
B4cSayf4nnzFQVNF793Bo3mt9o1MIojx+Lb1tBsAZ/FwWjo7DqPQZk7bKppS4kmz
qf6xZdpXBNHYHYXOEzNgIR6XCDNXnkuz4xR2rS6oaL4DD91/xrCaRgOVlpr2K6il
972PiimcB34xOh409+DN7NqYPRq0VqqyJdoZcPnoovm8GshoHKpVKWRlv5Leh5Vu
U3q3ttU14rvRPQoOkkn8xRVkAzSe6f7KA7QAHmrT7RGljV+hp1WStLfSn+c5IDH6
a5zx0C47l+DmHMZ9olUb3W+9Y+v2EJg/Rq4BhMIvrjPiSSPowncKFxB3e1NQfS4j
354lo/5TW1LcdeK0rHu1vUSEjujjigAt751ZnPRt67Ro37cJgGw63ZNgu2qqGEme
PEOs/Ctxb+XaK5MEvqSX
=QuZK
-----END PGP SIGNATURE-----


More information about the waffle mailing list