diff options
author | Erik Faye-Lund <[email protected]> | 2019-03-13 17:25:41 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-04-17 07:27:07 +0000 |
commit | 18a721fd566eb484772496110eed1bf0d1db0c83 (patch) | |
tree | 282d7cdf901e627f0534ffa1078efe98b0f2382b /src | |
parent | 3c5a9ab9f01d1d299eea1b99b9346c639fc30612 (diff) |
virgl: remove pointless transfer-counter
This is only written to, never read. Let's just get rid of it.
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_buffer.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.h | 2 | ||||
-rw-r--r-- | src/gallium/drivers/virgl/virgl_texture.c | 1 |
4 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/virgl/virgl_buffer.c b/src/gallium/drivers/virgl/virgl_buffer.c index 784cc02a545..7081c090814 100644 --- a/src/gallium/drivers/virgl/virgl_buffer.c +++ b/src/gallium/drivers/virgl/virgl_buffer.c @@ -88,7 +88,6 @@ static void virgl_buffer_transfer_unmap(struct pipe_context *ctx, trans->offset = transfer->box.x; } - vctx->num_transfers++; virgl_transfer_queue_unmap(&vctx->queue, trans); } else virgl_resource_destroy_transfer(&vctx->transfer_pool, trans); diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index 5e608e47fd0..b5188654892 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -755,7 +755,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 = ctx->num_compute = 0; + ctx->num_draws = ctx->num_compute = 0; virgl_transfer_queue_clear(&ctx->queue, ctx->cbuf); rs->vws->submit_cmd(rs->vws, ctx->cbuf, fence); diff --git a/src/gallium/drivers/virgl/virgl_context.h b/src/gallium/drivers/virgl/virgl_context.h index f42a719966d..1ac4ddb0541 100644 --- a/src/gallium/drivers/virgl/virgl_context.h +++ b/src/gallium/drivers/virgl/virgl_context.h @@ -82,7 +82,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]; - uint32_t num_transfers, num_draws, num_compute; + uint32_t num_draws, num_compute; struct pipe_resource *atomic_buffers[PIPE_MAX_HW_ATOMIC_BUFFERS]; diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c index 3871f265d4a..12543eaeec4 100644 --- a/src/gallium/drivers/virgl/virgl_texture.c +++ b/src/gallium/drivers/virgl/virgl_texture.c @@ -178,7 +178,6 @@ static void virgl_texture_transfer_unmap(struct pipe_context *ctx, if (trans->base.usage & PIPE_TRANSFER_WRITE) { if (!(transfer->usage & PIPE_TRANSFER_FLUSH_EXPLICIT)) { struct virgl_screen *vs = virgl_screen(ctx->screen); - vctx->num_transfers++; if (trans->resolve_tmp) { vs->vws->transfer_put(vs->vws, vtex->hw_res, |