summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-08-04 14:56:08 +1000
committerDave Airlie <airlied@redhat.com>2008-08-04 14:56:08 +1000
commit29649ddedee6b07b922c99233b8afc7c3a1db66f (patch)
tree302fa23ba3e3758c2f236f6c2b5377975c1a09d7 /linux-core
parentdff84851516a71639d734e134c584f6ed4d3ee07 (diff)
radeon: don't use ring if cp not going
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/radeon_buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/radeon_buffer.c b/linux-core/radeon_buffer.c
index e9ba11d4..a4ac38c1 100644
--- a/linux-core/radeon_buffer.c
+++ b/linux-core/radeon_buffer.c
@@ -55,10 +55,14 @@ int radeon_invalidate_caches(struct drm_device * dev, uint64_t flags)
drm_radeon_private_t *dev_priv = dev->dev_private;
RING_LOCALS;
+ if (!dev_priv->cp_running)
+ return 0;
+
BEGIN_RING(4);
RADEON_FLUSH_CACHE();
RADEON_FLUSH_ZCACHE();
ADVANCE_RING();
+ COMMIT_RING();
return 0;
}