[Intel-gfx] [PATCH 0/4] NV12 rotation GTT handling prep work

Ville Syrjälä ville.syrjala at linux.intel.com
Mon Sep 21 05:18:19 PDT 2015


On Mon, Sep 21, 2015 at 10:45:31AM +0100, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> GTT page remapping logic for 90/270 rotation needs some
> extensions to support NV12 90/270 rotation work which is
> currently underway.
> 
> Main thing is really to support building of the rotated
> page mapping from two planes instead of one, and adding
> appropriate calculations for the half-height UV plane
> geometry.
> 
> Those are stored in the existing rotation info data
> associated with the rotated view and are also used to
> return the appropriate plane start address when queried
> from the display code.

BTW I started to hatch something to uswe
intel_gen4_compute_page_offset() on SKL+, and also start to handle fb
offsets[0] somehow. I didn't get too far yet, but I figured I'll post a
reference here in case people are intersted in this sort of stuff:

git://github.com/vsyrjala/linux.git tile_size

> 
> Tvrtko Ursulin (4):
>   drm/i915: Support planar formats in tile height calculations
>   drm/i915: Support appending to the rotated pages mapping
>   drm/i915: Support NV12 in rotated GGTT mapping
>   drm/i915: Enable querying offset of UV plane with
>     intel_plane_obj_offset
> 
>  drivers/gpu/drm/i915/i915_gem_gtt.c  | 58 ++++++++++++++++++++++++++++--------
>  drivers/gpu/drm/i915/i915_gem_gtt.h  |  4 +++
>  drivers/gpu/drm/i915/intel_display.c | 48 ++++++++++++++++++++++-------
>  drivers/gpu/drm/i915/intel_drv.h     |  6 ++--
>  drivers/gpu/drm/i915/intel_sprite.c  |  4 +--
>  5 files changed, 93 insertions(+), 27 deletions(-)
> 
> -- 
> 2.5.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ville Syrjälä
Intel OTC


More information about the Intel-gfx mailing list