From a235da3e6865d92485e1ddbe947ea06f737027ff Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 9 Feb 2018 22:46:28 -0800 Subject: [PATCH] iris: set strides on transfers --- src/gallium/drivers/iris/iris_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) && -- 2.30.2