egl_dri2: allow RGBA masks to be specified for matching
authorChia-I Wu <olvaffe@gmail.com>
Fri, 5 Aug 2011 05:36:14 +0000 (14:36 +0900)
committerChia-I Wu <olv@lunarg.com>
Sun, 28 Aug 2011 13:56:22 +0000 (21:56 +0800)
commit58911b86a15676f116c693e84ea6b9ebabb906ed
tree612968f230b2ea4589dd25b770deb222ed82455e
parentc8fed01c732fa20e1ae035ed5f7b6156a5d6ffe9
egl_dri2: allow RGBA masks to be specified for matching

Add rgba_masks to dri2_add_config.  When it is non-NULL, the DRI config
is accepted only when the offsets and sizes of the its channels match
rgba_mask.

Reviewed-by: Chad Versace <chad@chad-versace.us>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c