summaryrefslogtreecommitdiff
path: root/shared-core/nouveau_drm.h
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-02-22 13:35:13 +0100
committerMaarten Maathuis <madman2003@gmail.com>2008-02-22 19:28:54 +0100
commit7e5f9c8bd33c503fef9bea20b955a5a48e255621 (patch)
tree12dfd34aa0e95581c8d104b24148e32b1aba7be9 /shared-core/nouveau_drm.h
parentb7086e6ae5632ad3c0f7c54ffd641519959d84a6 (diff)
nouveau: A single define of dma skips is more than enough.
Diffstat (limited to 'shared-core/nouveau_drm.h')
-rw-r--r--shared-core/nouveau_drm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-core/nouveau_drm.h b/shared-core/nouveau_drm.h
index 3bf40089..5f07fcbc 100644
--- a/shared-core/nouveau_drm.h
+++ b/shared-core/nouveau_drm.h
@@ -70,6 +70,12 @@ struct drm_nouveau_gpuobj_free {
uint32_t handle;
};
+/* This is needed to avoid a race condition.
+ * Otherwise you may be writing in the fetch area.
+ * Is this large enough, as it's only 32 bytes, and the maximum fetch size is 256 bytes?
+ */
+#define NOUVEAU_DMA_SKIPS 8
+
#define NOUVEAU_MEM_FB 0x00000001
#define NOUVEAU_MEM_AGP 0x00000002
#define NOUVEAU_MEM_FB_ACCEPTABLE 0x00000004