summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/dri_screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/dri/dri_screen.h')
-rw-r--r--src/gallium/state_trackers/dri/dri_screen.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/dri_screen.h b/src/gallium/state_trackers/dri/dri_screen.h
index e4a1a39..bdab74f 100644
--- a/src/gallium/state_trackers/dri/dri_screen.h
+++ b/src/gallium/state_trackers/dri/dri_screen.h
@@ -39,6 +39,8 @@
#include "pipe/p_context.h"
#include "pipe/p_state.h"
#include "state_tracker/st_api.h"
+#include "state_tracker/opencl_interop.h"
+#include "os/os_thread.h"
#include "postprocess/filters.h"
struct dri_context;
@@ -84,6 +86,13 @@ struct dri_screen
/* hooks filled in by dri2 & drisw */
__DRIimage * (*lookup_egl_image)(struct dri_screen *ctx, void *handle);
+
+ /* OpenCL interop */
+ pipe_mutex opencl_func_mutex;
+ opencl_dri_event_add_ref_t opencl_dri_event_add_ref;
+ opencl_dri_event_release_t opencl_dri_event_release;
+ opencl_dri_event_wait_t opencl_dri_event_wait;
+ opencl_dri_event_get_fence_t opencl_dri_event_get_fence;
};
/** cast wrapper */