diff options
author | Chris Wilson <[email protected]> | 2018-07-28 21:10:17 +0100 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | 02b82fe80a7536e072515f7a86f9f2ad374badb1 (patch) | |
tree | 415be5568d4aec3fb2aa784af857844e45ac8a39 | |
parent | 682aeff8d04088c50d3a37e5fa62d002d3f67d91 (diff) |
iris: Set resource modifier on handle
Required for gdm_bo_create_with_modifiers
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.c | 1 |
1 files changed, 1 insertions, 0 deletions
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: |