diff options
author | Erik Faye-Lund <[email protected]> | 2018-07-18 11:57:13 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-07-23 11:21:09 +0100 |
commit | dc938b8398c0dafb60507e41685f7518b681c24d (patch) | |
tree | f4b0ccb98bbf06bb2dfc64388c9c3848fc529333 /src/gallium/drivers/virgl/virgl_buffer.c | |
parent | 6c58bc8d9c987f3e6d5263d94762eddb48d6f1be (diff) |
virgl: remove unused stride-arguments
The IOCTLs doesn't pass this along, so computing them in the first
place is kinda pointless.
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_buffer.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/virgl/virgl_buffer.c b/src/gallium/drivers/virgl/virgl_buffer.c index 2e63aebc72c..97b2854b9ca 100644 --- a/src/gallium/drivers/virgl/virgl_buffer.c +++ b/src/gallium/drivers/virgl/virgl_buffer.c @@ -77,7 +77,7 @@ static void *virgl_buffer_transfer_map(struct pipe_context *ctx, readback = virgl_res_needs_readback(vctx, &vbuf->base, usage); if (readback) - vs->vws->transfer_get(vs->vws, vbuf->base.hw_res, box, trans->base.stride, trans->base.layer_stride, offset, level); + vs->vws->transfer_get(vs->vws, vbuf->base.hw_res, box, offset, level); if (!(usage & PIPE_TRANSFER_UNSYNCHRONIZED)) doflushwait = true; @@ -109,7 +109,7 @@ static void virgl_buffer_transfer_unmap(struct pipe_context *ctx, vbuf->base.clean = FALSE; vctx->num_transfers++; vs->vws->transfer_put(vs->vws, vbuf->base.hw_res, - &transfer->box, trans->base.stride, trans->base.layer_stride, trans->offset, transfer->level); + &transfer->box, trans->offset, transfer->level); } } |