gfx: drv: overlay: More thorough fix for SWIDTHSW issues
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Jan 2012 16:27:14 +0000 (18:27 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:29:32 +0000 (12:29 +0300)
commitfc526cbd31a8030cf641023cadd7c41e06875157
tree47f8d0b001b6ad846ff2412ee885bdf29ac756bf
parentc9d75bc4b28b261f4663c5733a387959ca204684
gfx: drv: overlay: More thorough fix for SWIDTHSW issues

The current code can still misprogram SWIDTHSW if fb->offsets[] is
suitably misaligned. Simply limit SWIDTHSW to 2k pixels in such cases.

Change the SWIDTHSW alignment code to be more readable, and align the
width to 32 bytes (SWORD), instead of 64 bytes.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/drv/mdfld_overlay.c