summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_resource.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_resource.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_resource.h b/src/gallium/drivers/virgl/virgl_resource.h
index 87b3ea71673..358ce3d926f 100644
--- a/src/gallium/drivers/virgl/virgl_resource.h
+++ b/src/gallium/drivers/virgl/virgl_resource.h
@@ -73,6 +73,13 @@ struct virgl_transfer {
struct list_head queue_link;
struct pipe_transfer *resolve_transfer;
void *hw_res_map;
+ /* If not NULL, denotes that this is a copy transfer, i.e.,
+ * that the transfer source data should be taken from this
+ * resource instead of the original transfer resource.
+ */
+ struct pipe_resource *copy_src_res;
+ /* The offset in the copy source resource to copy data from. */
+ uint32_t copy_src_offset;
};
void virgl_resource_destroy(struct pipe_screen *screen,