summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_encode.h
diff options
context:
space:
mode:
authorGurchetan Singh <[email protected]>2018-11-28 15:36:07 -0800
committerGert Wollny <[email protected]>2019-02-15 11:19:05 +0100
commit9c4930946a53d4f547e3c3ee6dcf672fbf0ac3a5 (patch)
treec379f99afc53df50c02266ffd783a46be31089bd /src/gallium/drivers/virgl/virgl_encode.h
parent5510cc67e06d8c1b7ba24f3eac4d0dcee5472f45 (diff)
virgl: add encoder functions for new protocol
Let's encode the new protocol with new helper functions. Reviewed-by: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_encode.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_encode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.h b/src/gallium/drivers/virgl/virgl_encode.h
index 70fae1db4e5..150ed17f994 100644
--- a/src/gallium/drivers/virgl/virgl_encode.h
+++ b/src/gallium/drivers/virgl/virgl_encode.h
@@ -32,6 +32,8 @@ struct tgsi_token;
struct virgl_context;
struct virgl_resource;
+struct virgl_screen;
+struct virgl_transfer;
struct virgl_sampler_view;
struct virgl_surface {
@@ -287,4 +289,8 @@ 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_end_transfers(struct virgl_cmd_buf *buf);
#endif