summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-12-20 16:28:20 +0800
committerChia-I Wu <[email protected]>2011-12-20 16:59:09 +0800
commitf957cac772d34b3406be3236b81571e456ee40e8 (patch)
tree1627dcf5771967c0b5677618638d0e31c8cbf63f /src/gallium
parented1ff2acec2cdfe3eace9f4caa6cfe5e0f175534 (diff)
egl: remove #ifdef's for official extensions
There is no point in having them when we distribute eglext.h. As for unofficial extensions, there is a chance that we might remove some of them evetually. Keeping the #ifdef's for now should make that easier.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/egl/common/egl_g3d.h4
-rw-r--r--src/gallium/state_trackers/egl/common/egl_g3d_api.c2
-rw-r--r--src/gallium/state_trackers/egl/common/egl_g3d_sync.c4
-rw-r--r--src/gallium/state_trackers/egl/common/egl_g3d_sync.h4
4 files changed, 0 insertions, 14 deletions
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d.h b/src/gallium/state_trackers/egl/common/egl_g3d.h
index 5989a023573..b00b0a79933 100644
--- a/src/gallium/state_trackers/egl/common/egl_g3d.h
+++ b/src/gallium/state_trackers/egl/common/egl_g3d.h
@@ -99,8 +99,6 @@ struct egl_g3d_image {
_EGL_DRIVER_STANDARD_TYPECASTS(egl_g3d)
_EGL_DRIVER_TYPECAST(egl_g3d_image, _EGLImage, obj)
-#ifdef EGL_KHR_reusable_sync
-
struct egl_g3d_sync {
_EGLSync base;
@@ -113,8 +111,6 @@ struct egl_g3d_sync {
};
_EGL_DRIVER_TYPECAST(egl_g3d_sync, _EGLSync, obj)
-#endif /* EGL_KHR_reusable_sync */
-
#ifdef EGL_MESA_screen_surface
struct egl_g3d_screen {
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_api.c b/src/gallium/state_trackers/egl/common/egl_g3d_api.c
index 2e3ead6c8f3..ed424f9fc11 100644
--- a/src/gallium/state_trackers/egl/common/egl_g3d_api.c
+++ b/src/gallium/state_trackers/egl/common/egl_g3d_api.c
@@ -878,12 +878,10 @@ egl_g3d_init_driver_api(_EGLDriver *drv)
#endif
-#ifdef EGL_KHR_reusable_sync
drv->API.CreateSyncKHR = egl_g3d_create_sync;
drv->API.DestroySyncKHR = egl_g3d_destroy_sync;
drv->API.ClientWaitSyncKHR = egl_g3d_client_wait_sync;
drv->API.SignalSyncKHR = egl_g3d_signal_sync;
-#endif
#ifdef EGL_MESA_screen_surface
drv->API.CreateScreenSurfaceMESA = egl_g3d_create_screen_surface;
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_sync.c b/src/gallium/state_trackers/egl/common/egl_g3d_sync.c
index dd07af140a7..9a1002b29a7 100644
--- a/src/gallium/state_trackers/egl/common/egl_g3d_sync.c
+++ b/src/gallium/state_trackers/egl/common/egl_g3d_sync.c
@@ -35,8 +35,6 @@
#include "egl_g3d.h"
#include "egl_g3d_sync.h"
-#ifdef EGL_KHR_reusable_sync
-
/**
* Wait for the conditional variable.
*/
@@ -279,5 +277,3 @@ egl_g3d_signal_sync(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync,
return EGL_TRUE;
}
-
-#endif /* EGL_KHR_reusable_sync */
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_sync.h b/src/gallium/state_trackers/egl/common/egl_g3d_sync.h
index 3179ca04e1a..11137ef86f3 100644
--- a/src/gallium/state_trackers/egl/common/egl_g3d_sync.h
+++ b/src/gallium/state_trackers/egl/common/egl_g3d_sync.h
@@ -31,8 +31,6 @@
#include "egl_g3d.h"
-#ifdef EGL_KHR_reusable_sync
-
_EGLSync *
egl_g3d_create_sync(_EGLDriver *drv, _EGLDisplay *dpy,
EGLenum type, const EGLint *attrib_list);
@@ -48,6 +46,4 @@ EGLBoolean
egl_g3d_signal_sync(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync,
EGLenum mode);
-#endif /* EGL_KHR_reusable_sync */
-
#endif /* _EGL_G3D_SYNC_H_ */