iris: fix dma buf import strides
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 2 Dec 2018 21:37:55 +0000 (13:37 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_resource.c

index 39b1df25b4de4fdbb555b5869e849d2ec376f131..6ab4614fb0ebecc9d64a7c7105e634c321290e1b 100644 (file)
@@ -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);