aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-02-09 22:46:28 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:05 -0800
commita235da3e6865d92485e1ddbe947ea06f737027ff (patch)
treedbb847faf90f95493e137e7669f079c703bfb67b
parent6891f70d871238a59bec5c3cdedf78f4d5674061 (diff)
iris: set strides on transfers
-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) &&