st/egl: correctly return configs under wayland
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 8 Sep 2011 06:03:34 +0000 (08:03 +0200)
committerChia-I Wu <olv@lunarg.com>
Thu, 8 Sep 2011 08:05:40 +0000 (16:05 +0800)
commit1191d203632e2954ce59163f87c9896b1c6ed40a
treece00e834f368eb48ac7db605544b7fd2346784a6
parentee0e6ae2bb25bfa02547ef9986bdff8afc792d49
st/egl: correctly return configs under wayland

Handle "format" events and return configs for the supported formats.

(Based on Chia-I Wu's patch)

[olv: update and explain why PIPE_FORMAT_B8G8R8A8_UNORM should not be
      enabled without HAS_ARGB32]
src/gallium/state_trackers/egl/wayland/native_drm.c
src/gallium/state_trackers/egl/wayland/native_shm.c
src/gallium/state_trackers/egl/wayland/native_wayland.c
src/gallium/state_trackers/egl/wayland/native_wayland.h