st/egl: overload NATIVE_PARAM_PREMULTIPLIED_ALPHA
authorChia-I Wu <olv@lunarg.com>
Wed, 7 Sep 2011 18:39:01 +0000 (02:39 +0800)
committerChia-I Wu <olv@lunarg.com>
Thu, 8 Sep 2011 03:16:12 +0000 (11:16 +0800)
commit41f5d2e8acbe3d6393f8012813609215534b5678
treec6247ab9c3f15de35c4b18a3c8d3867cdbdb1adf
parentf4c37d6ab256f860a755fe69dfea5fb8df217a2f
st/egl: overload NATIVE_PARAM_PREMULTIPLIED_ALPHA

EGL does not export this capability of a display server.  But wayland
makes use of EGL_VG_ALPHA_FORMAT to achieve it.

So, when the native display returns true for the parameter, st/egl will
set EGL_VG_ALPHA_FORMAT_PRE_BIT for all EGLConfig's with non-zero
EGL_ALPHA_SIZE.  EGL_VG_ALPHA_FORMAT attribute of a surface will affect
how the surface is presented.

Because st/vega does not support EGL_VG_ALPHA_FORMAT_PRE_BIT,
EGL_OPENVG_BIT will be cleared.
src/gallium/state_trackers/egl/common/egl_g3d.c
src/gallium/state_trackers/egl/common/egl_g3d_api.c
src/gallium/state_trackers/egl/common/native.h