Mesa (master): st/egl: set EGL_ALPHA_MASK_SIZE
Chia-I Wu
olv at kemper.freedesktop.org
Wed Jun 8 16:23:45 UTC 2011
Module: Mesa
Branch: master
Commit: 6b492d09767531915aa631bec470af1cf4653a6c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b492d09767531915aa631bec470af1cf4653a6c
Author: Chia-I Wu <olv at lunarg.com>
Date: Thu Jun 9 00:23:16 2011 +0800
st/egl: set EGL_ALPHA_MASK_SIZE
---
src/gallium/state_trackers/egl/common/egl_g3d.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d.c b/src/gallium/state_trackers/egl/common/egl_g3d.c
index 4bd8656..29dbbef 100644
--- a/src/gallium/state_trackers/egl/common/egl_g3d.c
+++ b/src/gallium/state_trackers/egl/common/egl_g3d.c
@@ -259,6 +259,10 @@ init_config_attributes(_EGLConfig *conf, const struct native_config *nconf,
conf->DepthSize = depth_stencil[0];
conf->StencilSize = depth_stencil[1];
+ /* st/vega will allocate the mask on demand */
+ if (api_mask & EGL_OPENVG_BIT)
+ conf->AlphaMaskSize = 8;
+
conf->SurfaceType = surface_type;
conf->NativeRenderable = EGL_TRUE;
More information about the mesa-commit
mailing list