Mesa (master): egl/dri: don't expose configs with an accumulation buffer
Marek Olšák
mareko at kemper.freedesktop.org
Thu Apr 30 12:43:15 UTC 2015
Module: Mesa
Branch: master
Commit: 396cbabbefaae64deac6d33c79898bb07db8a621
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=396cbabbefaae64deac6d33c79898bb07db8a621
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Apr 9 23:25:07 2015 +0200
egl/dri: don't expose configs with an accumulation buffer
---
src/egl/drivers/dri2/egl_dri2.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index a428f28..14b9be9 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -194,6 +194,15 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
dri_masks[3] = value;
break;
+ case __DRI_ATTRIB_ACCUM_RED_SIZE:
+ case __DRI_ATTRIB_ACCUM_GREEN_SIZE:
+ case __DRI_ATTRIB_ACCUM_BLUE_SIZE:
+ case __DRI_ATTRIB_ACCUM_ALPHA_SIZE:
+ /* Don't expose visuals with the accumulation buffer. */
+ if (value > 0)
+ return NULL;
+ break;
+
default:
key = dri2_to_egl_attribute_map[attrib];
if (key != 0)
More information about the mesa-commit
mailing list