diff options
author | Dave Airlie <[email protected]> | 2018-07-24 06:03:03 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-07-24 06:03:20 +1000 |
commit | 83332618c1e178c0ead93afc1d7cfc0a33438874 (patch) | |
tree | 80d254a085214211123668c238259e64bb0dd713 /src/gallium/drivers/virgl/virgl_buffer.c | |
parent | 69c2cd0b14634b28ba080f8a37b84ced0dbb8f6f (diff) |
Revert "virgl: remove unused stride-arguments"
This reverts commit dc938b8398c0dafb60507e41685f7518b681c24d.
This adds warnings in vtest, and possibly breaks it.
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 48fbef09a1e..3288bb20bd1 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, offset, level); + vs->vws->transfer_get(vs->vws, vbuf->base.hw_res, box, trans->base.stride, trans->base.layer_stride, 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->offset, transfer->level); + &transfer->box, trans->base.stride, trans->base.layer_stride, trans->offset, transfer->level); } } |