summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/iris/iris_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c
index 39b1df25b4d..6ab4614fb0e 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -484,7 +484,7 @@ iris_resource_from_handle(struct pipe_screen *pscreen,
.array_len = templ->array_size,
.samples = MAX2(templ->nr_samples, 1),
.min_alignment_B = 0,
- .row_pitch_B = 0,
+ .row_pitch_B = whandle->stride,
.usage = isl_usage,
.tiling_flags = 1 << mod_info->tiling);