summaryrefslogtreecommitdiff
path: root/linux-core/i915_drv.c
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 /linux-core/i915_drv.c
parentb81ca5e031b2fbd9c5c401057c72f5857f7f5a3a (diff)
Initial i915 buffer object driver
Diffstat (limited to 'linux-core/i915_drv.c')
-rw-r--r--linux-core/i915_drv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux-core/i915_drv.c b/linux-core/i915_drv.c
index 56ac5fc7..64ab3f50 100644
--- a/linux-core/i915_drv.c
+++ b/linux-core/i915_drv.c
@@ -48,6 +48,12 @@ static drm_fence_driver_t i915_fence_driver = {
.poke_flush = i915_poke_flush,
};
+static drm_bo_driver_t i915_bo_driver = {
+ .cached_pages = 1,
+ .create_ttm_backend_entry = i915_create_ttm_backend_entry
+};
+
+
static int probe(struct pci_dev *pdev, const struct pci_device_id *ent);
static struct drm_driver driver = {
/* don't use mtrr's here, the Xserver or user space app should
@@ -89,6 +95,8 @@ static struct drm_driver driver = {
},
.fence_driver = &i915_fence_driver,
+ .bo_driver = &i915_bo_driver,
+
.name = DRIVER_NAME,
.desc = DRIVER_DESC,
.date = DRIVER_DATE,