summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-06-09 00:23:16 +0800
committerChia-I Wu <[email protected]>2011-06-09 00:23:24 +0800
commit6b492d09767531915aa631bec470af1cf4653a6c (patch)
tree5311d75da6e316af5438693a72c5e2ab3a0fc1e0 /src/gallium/state_trackers
parent4bb748b609288205ddea750550185d7642025bff (diff)
st/egl: set EGL_ALPHA_MASK_SIZE
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/egl/common/egl_g3d.c4
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 4bd865638a3..29dbbefbf48 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;