diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-25 21:45:28 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-25 21:45:28 +0000 |
commit | 96d21338d8fed1ef5b9aae65dd4646ce125dadcd (patch) | |
tree | d3c3aacf0be5558e66832213ef833ba261ce7514 /sys/dev/pci/drm | |
parent | 16db055b37b58bbde5043013e333bf94e41247e4 (diff) |
Don't bother binding the object in the gtt map ioctl.
these maps tend to be fairly long lived so it buys us nothing other than
code complexity.
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/i915_drv.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c index 6290db804fa..b879f750688 100644 --- a/sys/dev/pci/drm/i915_drv.c +++ b/sys/dev/pci/drm/i915_drv.c @@ -1218,15 +1218,6 @@ i915_gem_gtt_map_ioctl(struct drm_device *dev, void *data, goto done; } - /* bind to the gtt to speed faulting */ - if (obj_priv->dmamap == NULL) { - ret = i915_gem_object_bind_to_gtt(obj, 0, 1); - if (ret) - goto done; - i915_gem_object_move_to_inactive(obj); - } - - end = round_page(args->offset + args->size); offset = trunc_page(args->offset); nsize = end - offset; |