[Intel-gfx] [PATCH 5/5] drm/i915: Convert execbuf code to use vmas

Chris Wilson chris at chris-wilson.co.uk
Sat Aug 10 11:01:35 CEST 2013


On Fri, Aug 09, 2013 at 10:12:16PM -0700, Ben Widawsky wrote:
>  static int
> -need_reloc_mappable(struct drm_i915_gem_object *obj)
> +need_reloc_mappable(struct i915_vma *vma)
>  {
> -	struct drm_i915_gem_exec_object2 *entry = obj->exec_entry;
> -	return entry->relocation_count && !use_cpu_reloc(obj);
> +	struct drm_i915_gem_exec_object2 *entry = vma->exec_entry;
> +	return entry->relocation_count && !use_cpu_reloc(vma->obj);
>  }

need_reloc_mappable() should return false if ppgtt. If we need to use a
GTT reloc that will setup a separate ggtt entry i.e. it doesn't
influence the decision during reservation.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list