aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König2015-04-22 05:21:13 -0500
committerAlex Deucher2015-08-05 12:47:49 -0500
commit9c2afffedb773da27fd7506b31fc2164f329d3a8 (patch)
tree0b99a1763fdc9fc977d3575bc1dba584d955d7e0 /amdgpu/amdgpu_internal.h
parent9c3bec246e5f1f7d2fcb2bd7e7cc0deab4d8b20d (diff)
downloadexternal-libdrm-9c2afffedb773da27fd7506b31fc2164f329d3a8.tar.gz
external-libdrm-9c2afffedb773da27fd7506b31fc2164f329d3a8.tar.xz
external-libdrm-9c2afffedb773da27fd7506b31fc2164f329d3a8.zip
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 <christian.koenig@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_internal.h')
-rw-r--r--amdgpu/amdgpu_internal.h2
1 files changed, 2 insertions, 0 deletions
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 {
94 * sequence_mutex -> pendings_mutex -> pool_mutex. 94 * sequence_mutex -> pendings_mutex -> pool_mutex.
95*/ 95*/
96struct amdgpu_context { 96struct amdgpu_context {
97 struct amdgpu_device *dev;
97 /** Mutex for accessing fences and to maintain command submissions 98 /** Mutex for accessing fences and to maintain command submissions
98 and pending lists in good sequence. */ 99 and pending lists in good sequence. */
99 pthread_mutex_t sequence_mutex; 100 pthread_mutex_t sequence_mutex;
@@ -116,6 +117,7 @@ struct amdgpu_context {
116}; 117};
117 118
118struct amdgpu_ib { 119struct amdgpu_ib {
120 amdgpu_context_handle context;
119 struct list_head list_node; 121 struct list_head list_node;
120 amdgpu_bo_handle buf_handle; 122 amdgpu_bo_handle buf_handle;
121 void *cpu; 123 void *cpu;