summaryrefslogtreecommitdiff
path: root/src/evergreen_accel.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-09-02 20:34:56 -0400
committerAlex Deucher <alexdeucher@gmail.com>2010-09-02 21:33:23 -0400
commit7c6ce4e62693f446d7d3c8a86502ccc03c0e55b0 (patch)
treee0c24e8c365924a0138c5ba6da335533fa76eefa /src/evergreen_accel.c
parent141cbc283fddeb67c2a6c47a0f0f5c2aa2bfb430 (diff)
evergreen: add additional default state
Note, you also need a drm patch to fix the GPU hangs: drm/radeon/kms/evergreen: fix gpu hangs in userspace accel code Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src/evergreen_accel.c')
-rw-r--r--src/evergreen_accel.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/evergreen_accel.c b/src/evergreen_accel.c
index 1b40aca1..d319bc22 100644
--- a/src/evergreen_accel.c
+++ b/src/evergreen_accel.c
@@ -868,9 +868,18 @@ evergreen_set_default_state(ScrnInfoPtr pScrn)
RELOC_BATCH(accel_state->shaders_bo, RADEON_GEM_DOMAIN_VRAM, 0);
END_BATCH();
- BEGIN_BATCH(45);
+ BEGIN_BATCH(3 + 2);
+ EREG(DB_HTILE_DATA_BASE, 0);
+ RELOC_BATCH(accel_state->shaders_bo, RADEON_GEM_DOMAIN_VRAM, 0);
+ END_BATCH();
+
+ BEGIN_BATCH(49);
EREG(DB_DEPTH_CONTROL, 0);
+ PACK0(PA_SC_VPORT_ZMIN_0, 2);
+ EFLOAT(0.0); // PA_SC_VPORT_ZMIN_0
+ EFLOAT(1.0); // PA_SC_VPORT_ZMAX_0
+
PACK0(DB_RENDER_CONTROL, 5);
E32(STENCIL_COMPRESS_DISABLE_bit | DEPTH_COMPRESS_DISABLE_bit); // DB_RENDER_CONTROL
E32(0); // DB_COUNT_CONTROL