From fd31da45e22c276ac31917c6f87ef71d0e7fa931 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Wed, 14 Mar 2012 11:50:58 +0100 Subject: [PATCH] winsys-glx: Don't assume that copy_sub_buffer is synchronized We initially assumed that copy_sub_buffer is synchronized on which is only the case for a subset of GPUs for example it is not synchronized on INTEL gen6 and gen7, so we remove this assumption for now. We should have a specific driver / GPU whitelist if we want to enable this. https://bugzilla.gnome.org/show_bug.cgi?id=669122 Reviewed-by: Robert Bragg Reviewed-by: Neil Roberts --- cogl/winsys/cogl-winsys-glx-feature-functions.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cogl/winsys/cogl-winsys-glx-feature-functions.h b/cogl/winsys/cogl-winsys-glx-feature-functions.h index b903ebdc7..71fd827fa 100644 --- a/cogl/winsys/cogl-winsys-glx-feature-functions.h +++ b/cogl/winsys/cogl-winsys-glx-feature-functions.h @@ -89,7 +89,15 @@ COGL_WINSYS_FEATURE_BEGIN (copy_sub_buffer, "copy_sub_buffer\0", 0, 0, +/* We initially assumed that copy_sub_buffer is synchronized on + * which is only the case for a subset of GPUs for example it is not + * synchronized on INTEL gen6 and gen7, so we remove this assumption + * for now + */ +#if 0 COGL_WINSYS_FEATURE_SWAP_REGION_SYNCHRONIZED) +#endif + 0) COGL_WINSYS_FEATURE_FUNCTION (void, glXCopySubBuffer, (Display *dpy, GLXDrawable drawable,