compositor-drm: Match the EGLConfig native visual ID if it has one
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 25 Sep 2013 22:46:42 +0000 (15:46 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 26 Sep 2013 21:38:14 +0000 (14:38 -0700)
commitc3ea26c02d953e5d5c4046d03edd297d69a0797b
tree6d8ac624f16d5a2109bf6e512d58ea4929d65122
parentbe336c89182ce2acf608c889223cf7d1b8940083
compositor-drm: Match the EGLConfig native visual ID if it has one

We'll add the GBM format code as the native visual ID for EGLConfigs
when running on GBM.  This patch lets the drm backend pass in the
format code it's using with KMS and make sure we get a confing that
matches.  In the future, mesa will add support for 10 bpc configs
which will match the "at least 8 color bits" requirement.  By also
matching the native visual ID, we avoid rendering XRGB2101010 into a
XRGB8888 KMS framebuffer.
src/compositor-drm.c
src/gl-renderer.c