summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-27 21:21:06 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-27 21:21:06 +0200
commit928bdc6c1c9cd1e60f0b070533768aaca56c84d8 (patch)
treef43417f3621b292d32ffe9dec3ae15f096f98b99 /shared-core
parentb4b7b997605f88f3ffdcb0cc7cd1271e0cb24073 (diff)
Initialize i915 saved flush flags.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_dma.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index d6bb6c8e..8ef9d8e1 100644
--- a/shared-core/i915_dma.c
+++ b/shared-core/i915_dma.c
@@ -195,7 +195,9 @@ static int i915_initialize(drm_device_t * dev,
I915_WRITE(0x02080, dev_priv->dma_status_page);
DRM_DEBUG("Enabled hardware status page\n");
-
+#ifdef I915_HAVE_FENCE
+ dev_priv->saved_flush_status = READ_HWSP(dev_priv, 0);
+#endif
dev->dev_private = (void *)dev_priv;
return 0;