diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2011-11-17 14:25:56 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-20 14:51:46 -0500 |
commit | 78c5560a08114d7bbbce04cee1628049a22ea104 (patch) | |
tree | d0ad0e7e02e71ec66b9972f50d6c6dd3b3c65d40 /drivers/gpu/drm/radeon/rv770.c | |
parent | ce9548843756d2fc64bf11c7208de52be5774863 (diff) |
drm/radeon/kms: add some new ring params to better handle other ring types
Some rptr/wptrs fields have different offsets and not all rings are pm4
so add a new nop field.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rv770.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 0a1283d24027..d854fbfa5a52 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c | |||
@@ -1099,7 +1099,8 @@ static int rv770_startup(struct radeon_device *rdev) | |||
1099 | r600_irq_set(rdev); | 1099 | r600_irq_set(rdev); |
1100 | 1100 | ||
1101 | r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, | 1101 | r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, |
1102 | R600_CP_RB_RPTR, R600_CP_RB_WPTR); | 1102 | R600_CP_RB_RPTR, R600_CP_RB_WPTR, |
1103 | 0, 0xfffff, RADEON_CP_PACKET2); | ||
1103 | if (r) | 1104 | if (r) |
1104 | return r; | 1105 | return r; |
1105 | r = rv770_cp_load_microcode(rdev); | 1106 | r = rv770_cp_load_microcode(rdev); |