Mikulas Patocka 3c6c6a7878 mach64: fix display corruption on big endian machines
The code for manual bit triple is not endian-clean. It builds the variable
"hostdword" using byte accesses, therefore we must read the variable with
"le32_to_cpu".

The patch also enables (hardware or software) bit triple only if the image
is monochrome (image->depth). If we want to blit full-color image, we
shouldn't use the triple code.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reviewed-by: Ville Syrjälä <syrjala@sci.fi>
Cc: stable@vger.kernel.org
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
2018-10-08 12:57:34 +02:00
..
2018-06-17 05:00:24 +09:00
2018-06-17 05:00:24 +09:00
2017-02-25 13:20:22 -08:00
2018-06-17 05:00:24 +09:00
2018-09-26 18:11:22 +02:00
2017-09-04 16:00:49 +02:00
2017-05-27 15:41:17 -04:00
2018-06-12 16:19:22 -07:00
2018-03-12 17:06:54 +01:00
2018-09-26 18:11:22 +02:00
2018-10-08 12:57:34 +02:00
2018-06-12 16:19:22 -07:00