xf86-video-ati: Branch 'evergreen_accel'
Alex Deucher
agd5f at kemper.freedesktop.org
Thu Sep 2 18:35:48 PDT 2010
src/evergreen_accel.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
New commits:
commit 7c6ce4e62693f446d7d3c8a86502ccc03c0e55b0
Author: Alex Deucher <alexdeucher at gmail.com>
Date: Thu Sep 2 20:34:56 2010 -0400
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 at gmail.com>
diff --git a/src/evergreen_accel.c b/src/evergreen_accel.c
index 1b40aca..d319bc2 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
More information about the xorg-commit
mailing list