summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-06-04 12:47:22 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-06-05 11:14:54 +0200
commitf04107b8a25e242a3aa5ae2a15a6216fe09bb239 (patch)
treef82d475875de51e0c073131a7688d337b524a370
parent374fb3ff26287a833ec298960350be252d287acd (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 b34abb85..3d586a8c 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;