From 02b82fe80a7536e072515f7a86f9f2ad374badb1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 28 Jul 2018 21:10:17 +0100 Subject: iris: Set resource modifier on handle Required for gdm_bo_create_with_modifiers --- src/gallium/drivers/iris/iris_resource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 889b14c142f..8e50ee2c699 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -382,6 +382,7 @@ iris_resource_get_handle(struct pipe_screen *pscreen, struct iris_resource *res = (struct iris_resource *)resource; whandle->stride = res->surf.row_pitch_B; + whandle->modifier = tiling_to_modifier(res->bo->tiling_mode); switch (whandle->type) { case WINSYS_HANDLE_TYPE_SHARED: -- cgit v1.2.3