aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/iris/iris_resource.c4
1 files 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) &&