aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/winsys
diff options
context:
space:
mode:
authorAndres Rodriguez <[email protected]>2017-02-26 23:50:25 +0000
committerDave Airlie <[email protected]>2017-02-27 00:22:39 +0000
commit35189d32797af4fd7759f4a88e7d8f1b3e6994c8 (patch)
treeab43603b143a380d2964cbd97922b1993ec7b5aa /src/amd/vulkan/winsys
parentf695735ed61ea2f11f0fdf032a8ad2c99b6b064c (diff)
radv/winsys: fix freeing imported memory.
This bo->fd wasn't setting some stuff correctly that could lead to crashes for anything using this path later. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/winsys')
-rw-r--r--src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
index 7319a988872..7f7fc7ac1ad 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);