diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2015-09-21 10:45:32 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-23 17:28:02 +0200 |
commit | fe47ea0cfa4adffe2a20edb22376d7af76b6a74c (patch) | |
tree | 0f63de4c59ebe8c6653e1c96e383bd9ea74a6184 /drivers/gpu/drm/i915/intel_sprite.c | |
parent | 5ca4163a612068d8f942c454218d3d631f22af1b (diff) | |
download | op-kernel-dev-fe47ea0cfa4adffe2a20edb22376d7af76b6a74c.zip op-kernel-dev-fe47ea0cfa4adffe2a20edb22376d7af76b6a74c.tar.gz |
drm/i915: Support planar formats in tile height calculations
This will be needed for NV12 support.
v2: Rebase.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sprite.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sprite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index 79f7cc2..4372fa0 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c @@ -240,7 +240,7 @@ skl_update_plane(struct drm_plane *drm_plane, struct drm_crtc *crtc, if (intel_rotation_90_or_270(rotation)) { /* stride: Surface height in tiles */ tile_height = intel_tile_height(dev, fb->pixel_format, - fb->modifier[0]); + fb->modifier[0], 0); stride = DIV_ROUND_UP(fb->height, tile_height); plane_size = (src_w << 16) | src_h; x_offset = stride * tile_height - y - (src_h + 1); |