summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/egl_dri2.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-04-10 10:56:02 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-04-30 14:38:38 +0200
commit9a0bda2430f10fbf43c64573412d97b6cc38e5d7 (patch)
treeb260f1d6528847ce9f66582f22a73b3f27eb4036 /src/egl/drivers/dri2/egl_dri2.h
parent592ee249a139a46168cd8e3335039ce28e8a2c39 (diff)
downloadexternal_mesa3d-9a0bda2430f10fbf43c64573412d97b6cc38e5d7.zip
external_mesa3d-9a0bda2430f10fbf43c64573412d97b6cc38e5d7.tar.gz
external_mesa3d-9a0bda2430f10fbf43c64573412d97b6cc38e5d7.tar.bz2
egl/dri2: implement EGL_KHR_fence_sync
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.h')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
index 167b3b1..371fb4a 100644
--- a/src/egl/drivers/dri2/egl_dri2.h
+++ b/src/egl/drivers/dri2/egl_dri2.h
@@ -74,6 +74,7 @@
#include "egllog.h"
#include "eglsurface.h"
#include "eglimage.h"
+#include "eglsync.h"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
@@ -164,6 +165,7 @@ struct dri2_egl_display
const __DRIimageExtension *image;
const __DRIrobustnessExtension *robustness;
const __DRI2configQueryExtension *config;
+ const __DRI2fenceExtension *fence;
int fd;
int own_device;
@@ -283,6 +285,12 @@ struct dri2_egl_image
__DRIimage *dri_image;
};
+struct dri2_egl_sync {
+ _EGLSync base;
+ int refcount;
+ void *fence;
+};
+
/* From xmlpool/options.h, user exposed so should be stable */
#define DRI_CONF_VBLANK_NEVER 0
#define DRI_CONF_VBLANK_DEF_INTERVAL_0 1
@@ -292,6 +300,7 @@ struct dri2_egl_image
/* standard typecasts */
_EGL_DRIVER_STANDARD_TYPECASTS(dri2_egl)
_EGL_DRIVER_TYPECAST(dri2_egl_image, _EGLImage, obj)
+_EGL_DRIVER_TYPECAST(dri2_egl_sync, _EGLSync, obj)
extern const __DRIimageLookupExtension image_lookup_extension;
extern const __DRIuseInvalidateExtension use_invalidate;