summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_context.h
diff options
context:
space:
mode:
authorGurchetan Singh <[email protected]>2019-01-03 10:31:06 -0800
committerGert Wollny <[email protected]>2019-02-15 11:19:05 +0100
commitf0e71b1088848e4190d6f8a5415571d0ddf130aa (patch)
tree05eaeb154c8acb8acdc79fbdba29cd9815e5663e /src/gallium/drivers/virgl/virgl_context.h
parent4a7857b377d2083f94c28fcdb85abdb8f9d12fde (diff)
virgl: use transfer queue
This improves Unigine Valley benchmark by 3 to 10 fps (depending on the scene). It also improves the Team Fortress 2 benchmark from 6 fps to 13 fps (host: 20 fps). Reviewed-by: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_context.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.h b/src/gallium/drivers/virgl/virgl_context.h
index 65485475d9d..f42a719966d 100644
--- a/src/gallium/drivers/virgl/virgl_context.h
+++ b/src/gallium/drivers/virgl/virgl_context.h
@@ -28,6 +28,8 @@
#include "util/slab.h"
#include "util/list.h"
+#include "virgl_transfer_queue.h"
+
struct pipe_screen;
struct tgsi_token;
struct u_upload_mgr;
@@ -64,8 +66,9 @@ struct virgl_context {
struct pipe_framebuffer_state framebuffer;
struct slab_child_pool transfer_pool;
-
+ struct virgl_transfer_queue queue;
struct u_upload_mgr *uploader;
+ bool encoded_transfers;
struct pipe_vertex_buffer vertex_buffer[PIPE_MAX_ATTRIBS];
unsigned num_vertex_buffers;