mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-30 20:10:14 +01:00
amdgpu: allow exporting KMS handles with render nodes
Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
b9ef29d1be
commit
908f34e70c
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue