summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-06-04 12:47:22 +0200
committerAlex Deucher <alexander.deucher@amd.com>2015-07-30 00:11:11 -0400
commit1842b3f52fa23fc592611874a0b38a928774bd17 (patch)
treece2e5a12b8edeb5bae998c1405ecc9bcd36ecec3
parent06b6173e8d3c054ea75fd2b529759972852050f5 (diff)
amdgpu: allow exporting KMS handles with render nodes
Reviewed-by: Christian König <christian.koenig@amd.com>
-rw-r--r--amdgpu/amdgpu_bo.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
index f7972343..5ac78de9 100644
--- a/amdgpu/amdgpu_bo.c
+++ b/amdgpu/amdgpu_bo.c
@@ -303,9 +303,11 @@ int amdgpu_bo_export(amdgpu_bo_handle bo,
return 0;
case amdgpu_bo_handle_type_kms:
- r = amdgpu_bo_export_flink(bo);
- if (r)
- return r;
+ /* don't check the return value, because exporting KMS
+ * handles should work with render nodes too, which don't
+ * support flink exports
+ */
+ amdgpu_bo_export_flink(bo);
amdgpu_add_handle_to_table(bo);
*shared_handle = bo->handle;