From: Alex Deucher Date: Thu, 3 Mar 2011 01:07:39 +0000 (-0500) Subject: drm/radeon/kms/cayman: always set certain VGT regs at CP init X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9b91d18d20fbd3e907cee71d1acaba7943de887a;p=linux-beck.git drm/radeon/kms/cayman: always set certain VGT regs at CP init These should be handled by the clear_state setup, but set them directly as well just to be sure. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 227173bf0127..8c199c49731b 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c @@ -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; @@ -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 */