From: Kenneth Graunke Date: Sat, 10 Feb 2018 06:46:28 +0000 (-0800) Subject: iris: set strides on transfers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a235da3e6865d92485e1ddbe947ea06f737027ff;p=mesa.git iris: set strides on transfers --- diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 6773eeddf7d..93855741f84 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -389,8 +389,8 @@ iris_transfer_map(struct pipe_context *ctx, transfer->level = level; transfer->usage = usage; transfer->box = *box; - transfer->stride = 1; - transfer->layer_stride = 1; + transfer->stride = isl_surf_get_row_pitch_B(&res->surf); + transfer->layer_stride = isl_surf_get_array_pitch(&res->surf); *ptransfer = transfer; if (!(usage & PIPE_TRANSFER_UNSYNCHRONIZED) &&