]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/skl: Add DDB allocation management structures
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 4 Nov 2014 17:06:41 +0000 (17:06 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Nov 2014 17:42:04 +0000 (18:42 +0100)
commitda4c7ba38f70cec5a37f7a61364d2a23c98d7a20
tree962f6a66c97ea492704126c8a059622645185737
parent7e1f2e25e05b07583f00779c6365b34a86a75bcd
drm/i915/skl: Add DDB allocation management structures

We now need to allocate space in the DDB for planes being scanned out
ourselves. The data structure to represent an allocation mirrors what
we'll need to write in the registers later on: (start, end).

We add that allocation datat to the skl_wm_values structure as part of
the values to program the hardware with.

v2: Split planes and cursor for consistency.

v3: Make the skl_ddb_entry_size() parameter const

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h