aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-10-05 09:36:39 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-10-25 14:38:37 -0400
commit21cd942e5c471941769cd0515164b169d012ad8a (patch)
treed3f70705cbb5b625404bc220abc0aa36d565dbff /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
parente12f3d7a23c99617f72305a805ed827567a43a9c (diff)
drm/amdgpu: move the ring type into the funcs structure (v2)
It's constant, so it doesn't make to much sense to keep it with the variable data. v2: update vce and uvd phys mode ring structures as well Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
index 767843c2b1d7..6cf89c97ef8e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
@@ -92,6 +92,8 @@ unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring);
92 92
93/* provided by hw blocks that expose a ring buffer for commands */ 93/* provided by hw blocks that expose a ring buffer for commands */
94struct amdgpu_ring_funcs { 94struct amdgpu_ring_funcs {
95 enum amdgpu_ring_type type;
96
95 /* ring read/write ptr handling */ 97 /* ring read/write ptr handling */
96 u32 (*get_rptr)(struct amdgpu_ring *ring); 98 u32 (*get_rptr)(struct amdgpu_ring *ring);
97 u32 (*get_wptr)(struct amdgpu_ring *ring); 99 u32 (*get_wptr)(struct amdgpu_ring *ring);
@@ -161,7 +163,6 @@ struct amdgpu_ring {
161 unsigned wptr_offs; 163 unsigned wptr_offs;
162 unsigned fence_offs; 164 unsigned fence_offs;
163 uint64_t current_ctx; 165 uint64_t current_ctx;
164 enum amdgpu_ring_type type;
165 char name[16]; 166 char name[16];
166 unsigned cond_exe_offs; 167 unsigned cond_exe_offs;
167 u64 cond_exe_gpu_addr; 168 u64 cond_exe_gpu_addr;
@@ -178,8 +179,7 @@ void amdgpu_ring_commit(struct amdgpu_ring *ring);
178void amdgpu_ring_undo(struct amdgpu_ring *ring); 179void amdgpu_ring_undo(struct amdgpu_ring *ring);
179int amdgpu_ring_init(struct amdgpu_device *adev, struct amdgpu_ring *ring, 180int amdgpu_ring_init(struct amdgpu_device *adev, struct amdgpu_ring *ring,
180 unsigned ring_size, u32 nop, u32 align_mask, 181 unsigned ring_size, u32 nop, u32 align_mask,
181 struct amdgpu_irq_src *irq_src, unsigned irq_type, 182 struct amdgpu_irq_src *irq_src, unsigned irq_type);
182 enum amdgpu_ring_type ring_type);
183void amdgpu_ring_fini(struct amdgpu_ring *ring); 183void amdgpu_ring_fini(struct amdgpu_ring *ring);
184 184
185#endif 185#endif