drm/i915: Fix g4x sprite scaling stride check with GTT remapping
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Sep 2019 18:30:45 +0000 (21:30 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 3 Oct 2019 05:20:33 +0000 (22:20 -0700)
commiteb0192fed016db1c5a9701cd6ca47233ff4a43e5
tree065e1f74035b7a9b6acad2bbc864ba5898d237a8
parentcffb4c3ea37248c4fc2f4ce747e5c24af88aec76
drm/i915: Fix g4x sprite scaling stride check with GTT remapping

I forgot to update the g4x sprite scaling stride check when GTT
remapping was introduced. The stride of the original framebuffer
is irrelevant when remapping is used and instead we want to check
the stride of the remapped view.

Also drop the duplicate width_bytes check. We already check that
a few lines earlier.

Fixes: df79cf441910 ("drm/i915: Store the final plane stride in plane_state")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190930183045.662-1-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 006e570128f413759b9df64b51bae79903679c9b)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_sprite.c