[Mesa-dev] [PATCH 1/2] radv/winsys: fix freeing imported memory.
Dave Airlie
airlied at gmail.com
Mon Feb 27 00:03:48 UTC 2017
From: Andres Rodriguez <andresx7 at gmail.com>
This bo->fd wasn't setting some stuff correctly that could
lead to crashes for anything using this path later.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
index 7319a98..7f7fc7a 100644
--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
+++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
@@ -205,6 +205,8 @@ radv_amdgpu_winsys_bo_from_fd(struct radeon_winsys *_ws,
bo->initial_domain = initial;
bo->size = result.alloc_size;
bo->is_shared = true;
+ bo->ws = ws;
+ radv_amdgpu_add_buffer_to_global_list(bo);
return (struct radeon_winsys_bo *)bo;
error_va_map:
amdgpu_va_range_free(va_handle);
--
2.7.4
More information about the mesa-dev
mailing list