st/egl: set EGL_ALPHA_MASK_SIZE
authorChia-I Wu <olv@lunarg.com>
Wed, 8 Jun 2011 16:23:16 +0000 (00:23 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 8 Jun 2011 16:23:24 +0000 (00:23 +0800)
src/gallium/state_trackers/egl/common/egl_g3d.c

index 4bd865638a377ca8a10cbc49a0cdcb62de57a8d6..29dbbefbf481c74f866c9ad64a1bc017cf965317 100644 (file)
@@ -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;