Skip to content

Commit

Permalink
drm/radeon/kms/cayman: always set certain VGT regs at CP init
Browse files Browse the repository at this point in the history
These should be handled by the clear_state setup, but set them
directly as well just to be sure.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Mar 3, 2011
1 parent 3d106fb commit 9b91d18
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/gpu/drm/radeon/ni.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ static int cayman_cp_start(struct radeon_device *rdev)

cayman_cp_enable(rdev, true);

r = radeon_ring_lock(rdev, cayman_default_size + 15);
r = radeon_ring_lock(rdev, cayman_default_size + 19);
if (r) {
DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r);
return r;
Expand Down Expand Up @@ -1125,6 +1125,11 @@ static int cayman_cp_start(struct radeon_device *rdev)
radeon_ring_write(rdev, 0xffffffff);
radeon_ring_write(rdev, 0xffffffff);

radeon_ring_write(rdev, 0xc0026900);
radeon_ring_write(rdev, 0x00000316);
radeon_ring_write(rdev, 0x0000000e); /* VGT_VERTEX_REUSE_BLOCK_CNTL */
radeon_ring_write(rdev, 0x00000010); /* */

radeon_ring_unlock_commit(rdev);

/* XXX init other rings */
Expand Down

0 comments on commit 9b91d18

Please sign in to comment.