xserver: Branch 'server-1.14-branch'
Matt Dew
marcoz at kemper.freedesktop.org
Sat Apr 12 09:07:13 PDT 2014
glx/glxdricommon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b83f2f74fc6a584fd8823e192d21097dab7796b9
Author: Eric Anholt <eric at anholt.net>
Date: Thu Mar 6 18:50:07 2014 -0800
glx: Clear new FBConfig attributes to 0 by default.
The visualSelectGroup wasn't getting set (since our DRI drivers don't
use it), and and since it's the top priority in the sort order, you
got random sorting of your visuals unless malloc really returned you
new memory. This manifested as Xephyr -glamor rendering to a
multisampled window on my system, which as you might guess was
slightly lower performance than expected.
Signed-off-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
diff --git a/glx/glxdricommon.c b/glx/glxdricommon.c
index 5686c5f..b1c3ca2 100644
--- a/glx/glxdricommon.c
+++ b/glx/glxdricommon.c
@@ -128,7 +128,7 @@ createModeFromConfig(const __DRIcoreExtension * core,
unsigned int attrib, value;
int i;
- config = malloc(sizeof *config);
+ config = calloc(1, sizeof *config);
config->driConfig = driConfig;
More information about the xorg-commit
mailing list