summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/virgl/virgl_context.c3
-rw-r--r--src/gallium/drivers/virgl/virgl_context.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c
index 41201c59d1c..664f0fe915b 100644
--- a/src/gallium/drivers/virgl/virgl_context.c
+++ b/src/gallium/drivers/virgl/virgl_context.c
@@ -751,7 +751,7 @@ static void virgl_flush_eq(struct virgl_context *ctx, void *closure,
u_upload_unmap(ctx->uploader);
/* send the buffer to the remote side for decoding */
- ctx->num_transfers = ctx->num_draws = 0;
+ ctx->num_transfers = ctx->num_draws = ctx->num_compute = 0;
rs->vws->submit_cmd(rs->vws, ctx->cbuf, ctx->cbuf->in_fence_fd,
ctx->cbuf->needs_out_fence_fd ? &out_fence_fd : NULL);
@@ -1163,6 +1163,7 @@ static void virgl_launch_grid(struct pipe_context *ctx,
{
struct virgl_context *vctx = virgl_context(ctx);
virgl_encode_launch_grid(vctx, info);
+ vctx->num_compute++;
}
static void
diff --git a/src/gallium/drivers/virgl/virgl_context.h b/src/gallium/drivers/virgl/virgl_context.h
index 79a1a73e615..65485475d9d 100644
--- a/src/gallium/drivers/virgl/virgl_context.h
+++ b/src/gallium/drivers/virgl/virgl_context.h
@@ -79,8 +79,7 @@ struct virgl_context {
struct pipe_resource *ssbos[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_BUFFERS];
struct pipe_resource *images[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_BUFFERS];
- int num_transfers;
- int num_draws;
+ uint32_t num_transfers, num_draws, num_compute;
struct pipe_resource *atomic_buffers[PIPE_MAX_HW_ATOMIC_BUFFERS];