See https://github.com/intel/intel-vaapi-driver/issues/419 for the
information
Note: don't export the interface symbol in case others may reuse it.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
/** \brief Indicate whether buffer sharing with prime fd is supported. */
unsigned int has_prime_sharing;
+ /**
+ * Pointer to an implementation of struct wl_interface
+ *
+ * It is set by libva-wayland when a context is created, then the backend
+ * driver may reuse it.
+ */
+ const void *wl_interface;
+
/** \brief Reserved bytes for future use, must be zero */
- unsigned long reserved[8];
+ unsigned long reserved[7];
};
#endif /* VA_BACKEND_WAYLAND_H */
struct VADriverVTableWayland *vtable = ctx->vtable_wayland;
vtable->has_prime_sharing = 0;
+ vtable->wl_interface = NULL;
wl_drm_ctx->is_authenticated = 0;
struct VADriverVTableWayland *vtable = ctx->vtable_wayland;
struct wl_display *wrapped_display = NULL;
+ vtable->wl_interface = NULL;
+
wl_drm_ctx = malloc(sizeof(*wl_drm_ctx));
if (!wl_drm_ctx) {
va_wayland_error("could not allocate wl_drm_ctx");
goto end;
}
+ vtable->wl_interface = &wl_drm_interface;
result = true;
end: