summaryrefslogtreecommitdiff
path: root/src/r6xx_accel.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2012-03-07 11:01:40 -0500
committerAlex Deucher <alexdeucher@gmail.com>2012-03-07 11:01:40 -0500
commitb5cf9bd693cf4090956add4c33c4fae9c3069a03 (patch)
treeca43049c6b6a6303eb67ba8033500bf08fcbc7e6 /src/r6xx_accel.c
parent355dc4295912c153f5333421594fa90aa119a056 (diff)
r6xx: initialize SX_MISC
If Mesa set it to 1, the DDX would not render anything = the monitor would basically freeze. agd5f: update emit count as well. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src/r6xx_accel.c')
-rw-r--r--src/r6xx_accel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/r6xx_accel.c b/src/r6xx_accel.c
index 8e6bffa7..8d254241 100644
--- a/src/r6xx_accel.c
+++ b/src/r6xx_accel.c
@@ -1161,7 +1161,7 @@ r600_set_default_state(ScrnInfoPtr pScrn, drmBufPtr ib)
r600_fs_setup(pScrn, ib, &fs_conf, RADEON_GEM_DOMAIN_VRAM);
// VGT
- BEGIN_BATCH(43);
+ BEGIN_BATCH(46);
PACK0(ib, VGT_MAX_VTX_INDX, 4);
E32(ib, 0xffffff); // VGT_MAX_VTX_INDX
E32(ib, 0); // VGT_MIN_VTX_INDX
@@ -1200,6 +1200,7 @@ r600_set_default_state(ScrnInfoPtr pScrn, drmBufPtr ib)
E32(ib, 0); // VGT_VTX_CNT_EN
EREG(ib, VGT_STRMOUT_BUFFER_EN, 0);
+ EREG(ib, SX_MISC, 0);
END_BATCH();
}