summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Glisse <glisse@freedesktop.org>2008-06-15 20:18:29 +0200
committerJerome Glisse <glisse@freedesktop.org>2008-06-15 20:18:29 +0200
commit59112c9e521d1543e8b76635ef223e7f29d35e6a (patch)
treea2f1de9e394ca967d72a849814a6e9a350df11a6
parent6f8cc957034a887a9cbd576c1af9922862f6a7a7 (diff)
radeon: *really* fix screen corruption thanks to Lukasz Krotowski
-rw-r--r--shared-core/r300_cmdbuf.c1
-rw-r--r--shared-core/radeon_cp.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/shared-core/r300_cmdbuf.c b/shared-core/r300_cmdbuf.c
index eac15b0b..cdb35d27 100644
--- a/shared-core/r300_cmdbuf.c
+++ b/shared-core/r300_cmdbuf.c
@@ -980,7 +980,6 @@ int r300_do_cp_cmdbuf(struct drm_device *dev,
struct drm_buf *buf = NULL;
int emit_dispatch_age = 0;
int ret = 0;
- RING_LOCALS;
DRM_DEBUG("\n");
diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c
index ec914df1..9b1ea855 100644
--- a/shared-core/radeon_cp.c
+++ b/shared-core/radeon_cp.c
@@ -442,7 +442,7 @@ static void radeon_do_cp_start(drm_radeon_private_t * dev_priv)
OUT_RING(CP_PACKET0(RADEON_ISYNC_CNTL, 0));
OUT_RING(RADEON_ISYNC_ANY2D_IDLE3D |
RADEON_ISYNC_ANY3D_IDLE2D |
- RADEON_ISYNC_CPSCRATCH_IDLEGUI |
+ RADEON_ISYNC_WAIT_IDLEGUI |
RADEON_ISYNC_CPSCRATCH_IDLEGUI);
RADEON_PURGE_CACHE();
RADEON_PURGE_ZCACHE();