Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18135>
#include "kopper_interface.h"
#include "u_queue.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct kopper_swapchain_image {
bool init;
bool acquired;
zink_kopper_set_swap_interval(struct pipe_screen *pscreen, struct pipe_resource *pres, int interval);
int
zink_kopper_query_buffer_age(struct pipe_context *pctx, struct pipe_resource *pres);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
#define ZINK_BIND_TRANSIENT (1 << 30) //transient fb attachment
#define ZINK_BIND_VIDEO (1 << 31)
+#ifdef __cplusplus
+extern "C" {
+#endif
bool
zink_screen_resource_init(struct pipe_screen *pscreen);
return res->swapchain;
}
-#ifndef __cplusplus
+#ifdef __cplusplus
+}
+#else
#include "zink_batch.h"
#include "zink_bo.h"
}
#endif
+
#endif