From 7c6ce4e62693f446d7d3c8a86502ccc03c0e55b0 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Thu, 2 Sep 2010 20:34:56 -0400 Subject: 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 --- src/evergreen_accel.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3