iris: Fix assigning the output handle for exporting for KMS
Fixes gbm_bo_get_handle() used for KMS in glamor.
This commit is contained in:
committed by
Kenneth Graunke
parent
01e729f883
commit
e5528151a7
@@ -498,7 +498,8 @@ iris_resource_get_handle(struct pipe_screen *pscreen,
|
||||
case WINSYS_HANDLE_TYPE_SHARED:
|
||||
return iris_bo_flink(res->bo, &whandle->handle) == 0;
|
||||
case WINSYS_HANDLE_TYPE_KMS:
|
||||
return iris_bo_export_gem_handle(res->bo) != 0;
|
||||
whandle->handle = iris_bo_export_gem_handle(res->bo);
|
||||
return true;
|
||||
case WINSYS_HANDLE_TYPE_FD:
|
||||
return iris_bo_export_dmabuf(res->bo, (int *) &whandle->handle) == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user