]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 2 Oct 2019 14:21:48 +0000 (17:21 +0300)
commit742a94578400b927595e69a216ce2e9af72980f4
tree9f0381b3f7b3011ffbccb7529e9a15c67b1c11a5
parent976ebf6183d4953c67b9d23808da965fbade62ab
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: ddf5ad752252 ("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>
drivers/gpu/drm/i915/display/intel_sprite.c