summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_resource.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-12-02 13:37:55 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:10 -0800
commitc03fbb41aa3c880daae74b9c7a3684565b0bef9d (patch)
tree03c49f0943a15dd7199b2575925112e945852749 /src/gallium/drivers/iris/iris_resource.c
parent90274bd48fac640af8a7f6a673ae72363aaa4491 (diff)
iris: fix dma buf import strides
Diffstat (limited to 'src/gallium/drivers/iris/iris_resource.c')
-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);