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/winsys/virgl/drm | |
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/winsys/virgl/drm')
-rw-r--r-- | src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c index 36655c63886..aad6430c417 100644 --- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c +++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c @@ -250,6 +250,7 @@ static int virgl_bo_transfer_put(struct virgl_winsys *vws, struct virgl_hw_res *res, const struct pipe_box *box, + uint32_t stride, uint32_t layer_stride, uint32_t buf_offset, uint32_t level) { struct virgl_drm_winsys *vdws = virgl_drm_winsys(vws); @@ -265,6 +266,8 @@ virgl_bo_transfer_put(struct virgl_winsys *vws, tohostcmd.box.d = box->depth; tohostcmd.offset = buf_offset; tohostcmd.level = level; + // tohostcmd.stride = stride; + // tohostcmd.layer_stride = stride; return drmIoctl(vdws->fd, DRM_IOCTL_VIRTGPU_TRANSFER_TO_HOST, &tohostcmd); } @@ -272,6 +275,7 @@ static int virgl_bo_transfer_get(struct virgl_winsys *vws, struct virgl_hw_res *res, const struct pipe_box *box, + uint32_t stride, uint32_t layer_stride, uint32_t buf_offset, uint32_t level) { struct virgl_drm_winsys *vdws = virgl_drm_winsys(vws); @@ -281,6 +285,8 @@ virgl_bo_transfer_get(struct virgl_winsys *vws, fromhostcmd.bo_handle = res->bo_handle; fromhostcmd.level = level; fromhostcmd.offset = buf_offset; + // fromhostcmd.stride = stride; + // fromhostcmd.layer_stride = layer_stride; fromhostcmd.box.x = box->x; fromhostcmd.box.y = box->y; fromhostcmd.box.z = box->z; |