llvmpipe: add compute debug option
[mesa.git] / src / gallium / drivers / virgl / virgl_encode.h
index 70fae1db4e5d4d248c6fd28e675fdf2d8e7fdf53..3a12f9e935c73645d2d1a8f33a669657bcebc910 100644 (file)
 #include "pipe/p_state.h"
 
 #include "virgl_winsys.h"
+#include "virgl_protocol.h"
 
 struct tgsi_token;
 
 struct virgl_context;
 struct virgl_resource;
+struct virgl_screen;
+struct virgl_transfer;
 struct virgl_sampler_view;
 
 struct virgl_surface {
@@ -287,4 +290,15 @@ int virgl_encode_get_query_result_qbo(struct virgl_context *ctx,
                                       uint32_t offset,
                                       uint32_t index);
 
+void virgl_encode_transfer(struct virgl_screen *vs, struct virgl_cmd_buf *buf,
+                           struct virgl_transfer *trans, uint32_t direction);
+
+void virgl_encode_copy_transfer(struct virgl_context *ctx,
+                                struct virgl_transfer *trans);
+
+void virgl_encode_end_transfers(struct virgl_cmd_buf *buf);
+
+int virgl_encode_tweak(struct virgl_context *ctx, enum vrend_tweak_type tweak, uint32_t value);
+
+enum virgl_formats pipe_to_virgl_format(enum pipe_format format);
 #endif