[Intel-gfx] [PATCH] drm/i915: Pin tiled objects for L-shaped configs
Chris Wilson
chris at chris-wilson.co.uk
Tue Nov 18 15:01:37 CET 2014
On Tue, Nov 18, 2014 at 02:41:22PM +0100, Daniel Vetter wrote:
> struct intel_fbdev;
> struct intel_fbc_work;
> diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> index 1de94cc63517..196ebd07d118 100644
> --- a/drivers/gpu/drm/i915/i915_gem.c
> +++ b/drivers/gpu/drm/i915/i915_gem.c
> @@ -2120,6 +2120,10 @@ i915_gem_object_get_pages_gtt(struct drm_i915_gem_object *obj)
> if (i915_gem_object_needs_bit17_swizzle(obj))
> i915_gem_object_do_bit_17_swizzle(obj);
>
> + if (obj->tiling_mode != I915_TILING_NONE &&
> + dev_priv->quirks & QUIRK_PIN_SWIZZLED_PAGES)
> + i915_gem_object_pin_pages(obj);
Note that we have a WARN_ON(obj->pages_pin_count) in
i915_gem_free_object() now.
if (dev_priv->quirks & QUIRK_PIN_SWIZZLED_PAGES)
obj->pages_pin_count = 0;
or we could just throw away the WARN_ON().
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list