From e5528151a733d06f67a70d0bf739d961a09fc215 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 13 Nov 2018 17:55:45 +0000 Subject: [PATCH] iris: Fix assigning the output handle for exporting for KMS Fixes gbm_bo_get_handle() used for KMS in glamor. --- src/gallium/drivers/iris/iris_resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 7fe13e2ed76..0ea72a9075b 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -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; } -- 2.30.2