diff options
author | Marek Olšák <marek.olsak@amd.com> | 2015-06-04 12:47:22 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-05 13:47:51 -0400 |
commit | 908f34e70cc9a7cd46edee1737c652e0a59893aa (patch) | |
tree | 2da933b4e44003a0edfb2ba2075c2e34f1202a1a /amdgpu/amdgpu_bo.c | |
parent | b9ef29d1be7bfb2fd6b59023792208e5028b95f0 (diff) |
amdgpu: allow exporting KMS handles with render nodes
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_bo.c')
-rw-r--r-- | amdgpu/amdgpu_bo.c | 8 |
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; |