iris: Set resource modifier on handle

Required for gdm_bo_create_with_modifiers
This commit is contained in:
Chris Wilson
2018-07-28 21:10:17 +01:00
committed by Kenneth Graunke
parent 682aeff8d0
commit 02b82fe80a
+1
View File
@@ -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: