diff options
author | Christian König <christian.koenig@amd.com> | 2016-10-05 09:36:39 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-10-25 14:38:37 -0400 |
commit | 21cd942e5c471941769cd0515164b169d012ad8a (patch) | |
tree | d3f70705cbb5b625404bc220abc0aa36d565dbff /drivers/gpu/drm/amd/amdgpu/cik_sdma.c | |
parent | e12f3d7a23c99617f72305a805ed827567a43a9c (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/cik_sdma.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c index 49b34decce58..472cfff28ccf 100644 --- a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c +++ b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c | |||
@@ -946,8 +946,8 @@ static int cik_sdma_sw_init(void *handle) | |||
946 | SDMA_PACKET(SDMA_OPCODE_NOP, 0, 0), 0xf, | 946 | SDMA_PACKET(SDMA_OPCODE_NOP, 0, 0), 0xf, |
947 | &adev->sdma.trap_irq, | 947 | &adev->sdma.trap_irq, |
948 | (i == 0) ? | 948 | (i == 0) ? |
949 | AMDGPU_SDMA_IRQ_TRAP0 : AMDGPU_SDMA_IRQ_TRAP1, | 949 | AMDGPU_SDMA_IRQ_TRAP0 : |
950 | AMDGPU_RING_TYPE_SDMA); | 950 | AMDGPU_SDMA_IRQ_TRAP1); |
951 | if (r) | 951 | if (r) |
952 | return r; | 952 | return r; |
953 | } | 953 | } |
@@ -1209,6 +1209,7 @@ const struct amd_ip_funcs cik_sdma_ip_funcs = { | |||
1209 | }; | 1209 | }; |
1210 | 1210 | ||
1211 | static const struct amdgpu_ring_funcs cik_sdma_ring_funcs = { | 1211 | static const struct amdgpu_ring_funcs cik_sdma_ring_funcs = { |
1212 | .type = AMDGPU_RING_TYPE_SDMA, | ||
1212 | .get_rptr = cik_sdma_ring_get_rptr, | 1213 | .get_rptr = cik_sdma_ring_get_rptr, |
1213 | .get_wptr = cik_sdma_ring_get_wptr, | 1214 | .get_wptr = cik_sdma_ring_get_wptr, |
1214 | .set_wptr = cik_sdma_ring_set_wptr, | 1215 | .set_wptr = cik_sdma_ring_set_wptr, |