iris: Set resource modifier on handle
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 28 Jul 2018 20:10:17 +0000 (21:10 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
Required for gdm_bo_create_with_modifiers

src/gallium/drivers/iris/iris_resource.c

index 889b14c142f97dbe01e6f5a15388a7745bde75e7..8e50ee2c699d23d1f61c8b12c52496c26b97c9c3 100644 (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: