aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2017-03-27 21:55:41 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2017-05-10 19:28:33 +0300
commit1e1bb8710e6018e932d18f9064d815634e3179f8 (patch)
tree14b41dccbd3568ea0413f142b2a00f695cc8b9f8 /drivers/gpu/drm/i915/i915_reg.h
parentdrm/i915: Generalize cursor size checks a bit (diff)
downloadlinux-dev-1e1bb8710e6018e932d18f9064d815634e3179f8.tar.xz
linux-dev-1e1bb8710e6018e932d18f9064d815634e3179f8.zip
drm/i915: Use fb->pitches[0] in cursor code
The cursor code currently ignores fb->pitches[0] (except when creating the fb itself), and just uses the cursor_width*4 as the stride. Let's make sure fb->pitches[0] actually matches what we expect it to be. We can also relax the stride vs. cursor width relationship on 845/865 since the stride is programmed separately. The only constraint is that width*cpp doesn't exceed the stride, and that's already been checked by the core since it makes sure the entire plane fits within the fb. We can also drop the bo size check as that's already checked when we create the fb. That is the fb is guaranteed to fit within the bo. v2: Rebase due to i845_cursor_ctl() and i9xx_cursor_ctl() Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> #v1 Link: http://patchwork.freedesktop.org/patch/msgid/20170327185546.2977-11-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
0 files changed, 0 insertions, 0 deletions