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 <erik.faye-lund@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
Erik Faye-Lund
2019-03-13 17:25:41 +01:00
parent 3c5a9ab9f0
commit 18a721fd56
4 changed files with 2 additions and 4 deletions
-1
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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];
@@ -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,