From 9c2afffedb773da27fd7506b31fc2164f329d3a8 Mon Sep 17 00:00:00 2001 From: Christian König Date: Wed, 22 Apr 2015 12:21:13 +0200 Subject: amdgpu: cleanup public interface v2 Remove the mostly unused device parameter, for the few cases where we really need it keep a copy in the context structure. v2: rebased on internal branch Signed-off-by: Christian König Reviewed-by: Jammy Zhou Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- amdgpu/amdgpu_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'amdgpu/amdgpu_internal.h') diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h index 19bc7e18..c91452ef 100644 --- a/amdgpu/amdgpu_internal.h +++ b/amdgpu/amdgpu_internal.h @@ -94,6 +94,7 @@ struct amdgpu_bo { * sequence_mutex -> pendings_mutex -> pool_mutex. */ struct amdgpu_context { + struct amdgpu_device *dev; /** Mutex for accessing fences and to maintain command submissions and pending lists in good sequence. */ pthread_mutex_t sequence_mutex; @@ -116,6 +117,7 @@ struct amdgpu_context { }; struct amdgpu_ib { + amdgpu_context_handle context; struct list_head list_node; amdgpu_bo_handle buf_handle; void *cpu; -- cgit v1.2.3-54-g00ecf