Project

General

Profile

Bug #2903 » scatter.diff

davshao, 04/24/2016 12:25 AM

View differences:

sys/dev/drm/i915/i915_gem.c
vm_size_t size;
int error = 0, rv;
if (args->flags & ~(I915_MMAP_WC))
return -EINVAL;
// Switch to the Linux scatterlist API
// if (args->flags & ~(I915_MMAP_WC))
// return -EINVAL;
obj = drm_gem_object_lookup(dev, file, args->handle);
if (obj == NULL)
sys/dev/drm/i915/i915_gem_gtt.c
}
ppgtt->base.allocate_va_range = aliasing ? NULL : gen6_alloc_va_range;
ppgtt->base.allocate_va_range = gen6_alloc_va_range;
// Typo duplication? from 7ec9f8e589 Switch to the Linux scatterlist API
// ppgtt->base.allocate_va_range = gen6_alloc_va_range;
ppgtt->base.clear_range = gen6_ppgtt_clear_range;
ppgtt->base.insert_entries = gen6_ppgtt_insert_entries;
ppgtt->base.unbind_vma = ppgtt_unbind_vma;
(1-1/2)