drm/i915: Adding dbuf support for skl nv12 format.
authorChandra Konduru <chandra.konduru@intel.com>
Mon, 27 Apr 2015 22:47:37 +0000 (15:47 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 May 2015 09:25:39 +0000 (11:25 +0200)
commit2cd601c620ccf7be1e8e317e2e208d395d309237
treeca3b371e2cd8d8bd3dafd3a457f037327d5d5905
parent7e35ab88d8ec652803eb2965c00e3ed9967c4f9d
drm/i915: Adding dbuf support for skl nv12 format.

Skylake nv12 format requires dbuf (aka. ddb) calculations
and programming for each of y and uv sub-planes. Made minor
changes to reuse current dbuf calculations and programming
for uv plane. i.e., with this change, existing computation
is used for either packed format or uv portion of nv12
depending on incoming format. Added new code for dbuf
computation and programming for y plane.

This patch is a pre-requisite for adding NV12 format support.
Actual nv12 support is coming in later patches.

Signed-off-by: Chandra Konduru <chandra.konduru@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c