iris: Set resource modifier on handle
Required for gdm_bo_create_with_modifiers
This commit is contained in:
committed by
Kenneth Graunke
parent
682aeff8d0
commit
02b82fe80a
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user