diff options
author | Dave Airlie <airlied@redhat.com> | 2009-11-22 21:01:09 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-01 20:37:11 -0500 |
commit | 23956dfa82eab95931aab5fa9886c1e96c41e4dc (patch) | |
tree | ce7c40366ea7cefcb8f7314cfa3e74f764211a84 /drivers/gpu/drm/radeon/r100.c | |
parent | 38e1492130c42ac806ffd8b21ccf64eb1c997d10 (diff) |
drm/radeon/kms: add HDP flushing for all GPUs.
rendercheck under kms on r600s was failing due to HDP flushing not happening.
This adds HDP flushing to the object wait function for r100->r700 families.
rendercheck passes basic tests on r600 with this change.
Acked-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r100.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 4e0a80467b44..772bcd863741 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -1589,6 +1589,14 @@ void r100_gpu_init(struct radeon_device *rdev) | |||
1589 | r100_hdp_reset(rdev); | 1589 | r100_hdp_reset(rdev); |
1590 | } | 1590 | } |
1591 | 1591 | ||
1592 | void r100_hdp_flush(struct radeon_device *rdev) | ||
1593 | { | ||
1594 | u32 tmp; | ||
1595 | tmp = RREG32(RADEON_HOST_PATH_CNTL); | ||
1596 | tmp |= RADEON_HDP_READ_BUFFER_INVALIDATE; | ||
1597 | WREG32(RADEON_HOST_PATH_CNTL, tmp); | ||
1598 | } | ||
1599 | |||
1592 | void r100_hdp_reset(struct radeon_device *rdev) | 1600 | void r100_hdp_reset(struct radeon_device *rdev) |
1593 | { | 1601 | { |
1594 | uint32_t tmp; | 1602 | uint32_t tmp; |