[Intel-gfx] [PATCH v3] drm/i915: Do not use ggtt_view with (aliasing) PPGTT
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Tue Mar 17 07:19:18 PDT 2015
Hi,
On 03/16/2015 12:11 PM, Joonas Lahtinen wrote:
> GGTT views are only applicable when dealing with GGTT. Change the code to
> reject ggtt_view where it should not be used and require it when it should
> be.
>
> v2:
> - Dropped _ppgtt_ infixes, allow both types to be passed
> - Disregard other but normal views when no view is specified
> - More checks that valid parameters are passed
> - More readable error checking
>
> v3:
> - Prefer WARN_ONCE over BUG_ON when there is code path for failure
[snip]
> +unsigned long
> +i915_gem_obj_ggtt_offset_view(struct drm_i915_gem_object *o,
> + enum i915_ggtt_view_type view)
> {
> + struct drm_i915_private *dev_priv = o->base.dev->dev_private;
Unused variable slipped through, oops! :)
Regards,
Tvrtko
More information about the Intel-gfx
mailing list