summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMykhailo Sopiha2019-06-04 14:47:02 -0500
committerPraneeth Bajjuri2019-06-18 17:41:27 -0500
commitef3412ac548a0afa97c68d00f1d494b137289a0e (patch)
tree6b99c298b2cb73b467e2c0ecf69168e9edca2f63 /libhwcomposer/hal_public.h
parentb9d1ef4713bab0ead7b0eacaa3d1e3f94469135d (diff)
downloadhardware-ti-am57x-ef3412ac548a0afa97c68d00f1d494b137289a0e.tar.gz
hardware-ti-am57x-ef3412ac548a0afa97c68d00f1d494b137289a0e.tar.xz
hardware-ti-am57x-ef3412ac548a0afa97c68d00f1d494b137289a0e.zip
libhwcomposer: change stride alignment to 8
The UM GPU driver assumes that pixel alignment is 8. The HWV and Gralloc should report the same value of alignment, so it was changed from 16 to 8. The issue can be reproduced by observation of corrupted images with pixel width that is multiple to 8, but not multiple to 16 (example: 56x56 pixel icons). Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Diffstat (limited to 'libhwcomposer/hal_public.h')
-rw-r--r--libhwcomposer/hal_public.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhwcomposer/hal_public.h b/libhwcomposer/hal_public.h
index 5ca9bd2..9ac2d64 100644
--- a/libhwcomposer/hal_public.h
+++ b/libhwcomposer/hal_public.h
@@ -32,7 +32,7 @@
32#include <hardware/memtrack.h> 32#include <hardware/memtrack.h>
33 33
34#define ALIGN(x,a) (((x) + (a) - 1L) & ~((a) - 1L)) 34#define ALIGN(x,a) (((x) + (a) - 1L) & ~((a) - 1L))
35#define HW_ALIGN 16 35#define HW_ALIGN 8
36 36
37/* This can be tuned down as appropriate for the SOC. 37/* This can be tuned down as appropriate for the SOC.
38 * 38 *