From: Kenneth Graunke Date: Sun, 2 Dec 2018 21:37:55 +0000 (-0800) Subject: iris: fix dma buf import strides X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c03fbb41aa3c880daae74b9c7a3684565b0bef9d;p=mesa.git iris: fix dma buf import strides --- 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);