aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-01 04:49:16 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-01 04:52:54 -0400
commite269f90f3d3f7c70cf661c660bf445597261f54a (patch)
treef09685517e9efa7d675dad8fd13694157ce50521 /drivers/gpu/drm/i915/i915_drv.c
parent112abd291db7d47974f166e742104d761bc76977 (diff)
parent63bc620b45af8c743ac291c8725933278c712692 (diff)
Merge remote-tracking branch 'airlied/drm-prime-vmap' into drm-intel-next-queued
We need the latest dma-buf code from Dave Airlie so that we can pimp the backing storage handling code in drm/i915 with Chris Wilson's unbound tracking and stolen mem backed gem object code. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index d3e194853061..238a52165833 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1012,7 +1012,7 @@ static const struct dev_pm_ops i915_pm_ops = {
1012 .restore = i915_pm_resume, 1012 .restore = i915_pm_resume,
1013}; 1013};
1014 1014
1015static struct vm_operations_struct i915_gem_vm_ops = { 1015static const struct vm_operations_struct i915_gem_vm_ops = {
1016 .fault = i915_gem_fault, 1016 .fault = i915_gem_fault,
1017 .open = drm_gem_vm_open, 1017 .open = drm_gem_vm_open,
1018 .close = drm_gem_vm_close, 1018 .close = drm_gem_vm_close,
@@ -1039,7 +1039,7 @@ static struct drm_driver driver = {
1039 */ 1039 */
1040 .driver_features = 1040 .driver_features =
1041 DRIVER_USE_AGP | DRIVER_REQUIRE_AGP | /* DRIVER_USE_MTRR |*/ 1041 DRIVER_USE_AGP | DRIVER_REQUIRE_AGP | /* DRIVER_USE_MTRR |*/
1042 DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | DRIVER_GEM, 1042 DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | DRIVER_GEM | DRIVER_PRIME,
1043 .load = i915_driver_load, 1043 .load = i915_driver_load,
1044 .unload = i915_driver_unload, 1044 .unload = i915_driver_unload,
1045 .open = i915_driver_open, 1045 .open = i915_driver_open,
@@ -1062,6 +1062,12 @@ static struct drm_driver driver = {
1062 .gem_init_object = i915_gem_init_object, 1062 .gem_init_object = i915_gem_init_object,
1063 .gem_free_object = i915_gem_free_object, 1063 .gem_free_object = i915_gem_free_object,
1064 .gem_vm_ops = &i915_gem_vm_ops, 1064 .gem_vm_ops = &i915_gem_vm_ops,
1065
1066 .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
1067 .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
1068 .gem_prime_export = i915_gem_prime_export,
1069 .gem_prime_import = i915_gem_prime_import,
1070
1065 .dumb_create = i915_gem_dumb_create, 1071 .dumb_create = i915_gem_dumb_create,
1066 .dumb_map_offset = i915_gem_mmap_gtt, 1072 .dumb_map_offset = i915_gem_mmap_gtt,
1067 .dumb_destroy = i915_gem_dumb_destroy, 1073 .dumb_destroy = i915_gem_dumb_destroy,