From 447731348ea32f0912671b7dcf186779a2c73bd7 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 5 Mar 2018 18:22:38 +0000 Subject: gallium/x11: remove empty GLX_SGIX_swap_barrier stubs The extension was never implemented. Quick search suggests: - no actual users (on my Arch setup) - the Nvidia driver does not implement the extension Signed-off-by: Emil Velikov Acked-by: Ian Romanick Acked-by: Brian Paul Reviewed-by: Adam Jackson --- src/gallium/state_trackers/glx/xlib/glx_api.c | 21 --------------------- src/gallium/state_trackers/glx/xlib/glx_getproc.c | 4 ---- 2 files changed, 25 deletions(-) diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index 6ec3a31d5f..80bf3e5494 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -2659,27 +2659,6 @@ glXJoinSwapGroupSGIX(Display *dpy, GLXDrawable drawable, GLXDrawable member) -/*** GLX_SGIX_swap_barrier ***/ - -PUBLIC void -glXBindSwapBarrierSGIX(Display *dpy, GLXDrawable drawable, int barrier) -{ - (void) dpy; - (void) drawable; - (void) barrier; -} - -PUBLIC Bool -glXQueryMaxSwapBarriersSGIX(Display *dpy, int screen, int *max) -{ - (void) dpy; - (void) screen; - (void) max; - return False; -} - - - /*** GLX_SUN_get_transparent_index ***/ PUBLIC Status diff --git a/src/gallium/state_trackers/glx/xlib/glx_getproc.c b/src/gallium/state_trackers/glx/xlib/glx_getproc.c index e7564ad9cd..71d3ad8c8a 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_getproc.c +++ b/src/gallium/state_trackers/glx/xlib/glx_getproc.c @@ -150,10 +150,6 @@ static struct name_address_pair GLX_functions[] = { /*** GLX_SGIX_swap_group ***/ { "glXJoinSwapGroupSGIX", (__GLXextFuncPtr) glXJoinSwapGroupSGIX }, - /*** GLX_SGIX_swap_barrier ***/ - { "glXBindSwapBarrierSGIX", (__GLXextFuncPtr) glXBindSwapBarrierSGIX }, - { "glXQueryMaxSwapBarriersSGIX", (__GLXextFuncPtr) glXQueryMaxSwapBarriersSGIX }, - /*** GLX_SUN_get_transparent_index ***/ { "glXGetTransparentIndexSUN", (__GLXextFuncPtr) glXGetTransparentIndexSUN }, -- cgit v1.2.3