diff options
author | Dave Airlie <airlied@linux.ie> | 2005-09-30 06:41:10 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-09-30 06:41:10 +0000 |
commit | f42cdc8dcb4ae85c15580dd0bc2a07495d8f049e (patch) | |
tree | 29bdf88698fd7797476b4dd39465f5e0af85b22c /shared-core | |
parent | 6ff57e2d7cd0b9b513070f72ffd894e8d6f57149 (diff) |
Add support to turn writeback off via radeon module option
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/radeon_cp.c | 4 | ||||
-rw-r--r-- | shared-core/radeon_drv.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c index f3c5ecfa..9b5c9a8f 100644 --- a/shared-core/radeon_cp.c +++ b/shared-core/radeon_cp.c @@ -1206,6 +1206,10 @@ static void radeon_cp_init_ring_buffer(drm_device_t * dev, dev_priv->writeback_works = 0; DRM_DEBUG("writeback test failed\n"); } + if (radeon_no_wb == 1) { + dev_priv->writeback_works = 0; + DRM_DEBUG("writeback forced off\n"); + } dev_priv->sarea_priv->last_frame = dev_priv->scratch[0] = 0; RADEON_WRITE(RADEON_LAST_FRAME_REG, dev_priv->sarea_priv->last_frame); diff --git a/shared-core/radeon_drv.h b/shared-core/radeon_drv.h index 265697c7..8455d599 100644 --- a/shared-core/radeon_drv.h +++ b/shared-core/radeon_drv.h @@ -275,6 +275,7 @@ typedef struct drm_radeon_buf_priv { u32 age; } drm_radeon_buf_priv_t; +extern int radeon_no_wb; /* radeon_cp.c */ extern int radeon_cp_init(DRM_IOCTL_ARGS); extern int radeon_cp_start(DRM_IOCTL_ARGS); |