diff options
author | Hal Gentz <[email protected]> | 2019-10-10 18:35:50 -0600 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2019-10-11 21:57:21 +0000 |
commit | 90a19074b4e1d4d8f8ababaade8170c05aeecffe (patch) | |
tree | 78803ff106d46c0fd627e643887c1011ec57b721 /src/mesa/drivers/dri/common | |
parent | 173bc9d6842efdec54ea3fd415a6946dcee7b02a (diff) |
egl: Fixes transparency with EGL and X11.
This commit does this by allowing both RGB and RGBA visuals to match with
EGL configs. We also expose the `EGL_MESA_config_select_group` egl
extension, which is similar to GLX's visual select group extension, to
allow the RGBA visuals to get less priority.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67676
Fixes: 049f343e8ac "egl: Allow 24-bit visuals for 32-bit RGBA8888 configs"
Cc: [email protected]
Reviewed-by: Adam Jackson <[email protected]>
Signed-off-by: Hal Gentz <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r-- | src/mesa/drivers/dri/common/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c index 0fdca2d9d84..2d57aef18f2 100644 --- a/src/mesa/drivers/dri/common/utils.c +++ b/src/mesa/drivers/dri/common/utils.c @@ -379,6 +379,7 @@ driCreateConfigs(mesa_format format, modes->yInverted = GL_TRUE; modes->sRGBCapable = is_srgb; modes->mutableRenderBuffer = mutable_render_buffer; + modes->configSelectGroup = 0; } } } @@ -468,6 +469,7 @@ static const struct { unsigned int attrib, offset; } attribMap[] = { __ATTRIB(__DRI_ATTRIB_YINVERTED, yInverted), __ATTRIB(__DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE, sRGBCapable), __ATTRIB(__DRI_ATTRIB_MUTABLE_RENDER_BUFFER, mutableRenderBuffer), + __ATTRIB(__DRI_ATTRIB_CONFIG_SELECT_GROUP, configSelectGroup), /* The struct field doesn't matter here, these are handled by the * switch in driGetConfigAttribIndex. We need them in the array |