From: Chris Wilson Date: Sat, 28 Jul 2018 20:10:17 +0000 (+0100) Subject: iris: Set resource modifier on handle X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02b82fe80a7536e072515f7a86f9f2ad374badb1;p=mesa.git iris: Set resource modifier on handle Required for gdm_bo_create_with_modifiers --- 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: