aboutsummaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-22 10:24:48 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-22 10:24:48 +0200
commit7058d06317e17253d874bf4df7b09d0d52a5fd74 (patch)
treedd48a7b248b12b6bc32266f6cdf34a4d0c48587a /shared-core
parentb81ca5e031b2fbd9c5c401057c72f5857f7f5a3a (diff)
Initial i915 buffer object driver
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_drv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/shared-core/i915_drv.h b/shared-core/i915_drv.h
index 475ff474..403124c9 100644
--- a/shared-core/i915_drv.h
+++ b/shared-core/i915_drv.h
@@ -53,6 +53,7 @@
#if defined(__linux__)
#define I915_HAVE_FENCE
+#define I915_HAVE_BUFFER
#endif
typedef struct _drm_i915_ring_buffer {
@@ -153,6 +154,12 @@ extern void i915_poke_flush(drm_device_t *dev);
extern void i915_sync_flush(drm_device_t *dev);
#endif
+#ifdef I915_HAVE_BUFFER
+/* i915_buffer.c */
+extern drm_ttm_backend_t *i915_create_ttm_backend_entry(drm_device_t *dev,
+ int cached);
+#endif
+
#define I915_READ(reg) DRM_READ32(dev_priv->mmio_map, (reg))
#define I915_WRITE(reg,val) DRM_WRITE32(dev_priv->mmio_map, (reg), (val))
#define I915_READ16(reg) DRM_READ16(dev_priv->mmio_map, (reg))