projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9ef29d
)
amdgpu: allow exporting KMS handles with render nodes
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 4 Jun 2015 10:47:22 +0000
(12:47 +0200)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 5 Aug 2015 17:47:51 +0000
(13:47 -0400)
Reviewed-by: Christian König <christian.koenig@amd.com>
amdgpu/amdgpu_bo.c
patch
|
blob
|
history
diff --git
a/amdgpu/amdgpu_bo.c
b/amdgpu/amdgpu_bo.c
index
f797234
..
5ac78de
100644
(file)
--- 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;