author | Jiyu Yang <jiyu.yang@amlogic.com> | 2016-05-26 11:57:58 (GMT) |
---|---|---|
committer | Jiyu Yang <jiyu.yang@amlogic.com> | 2016-05-26 12:18:18 (GMT) |
commit | 20baf518052aded034ae72e02d68fc91af5e87be (patch) | |
tree | c7186855a2c9ce0703e1e23db388e2b868eef3d4 | |
parent | cc5d2dfc3c37baa497f113e64bf78e3b95721229 (diff) | |
download | gralloc-20baf518052aded034ae72e02d68fc91af5e87be.zip gralloc-20baf518052aded034ae72e02d68fc91af5e87be.tar.gz gralloc-20baf518052aded034ae72e02d68fc91af5e87be.tar.bz2 |
PD#125963 gralloc yuv align is 32 on aml platform
this bug was imported in PD#125571
Change-Id: I77c16ae22bfd94bef4e0c85e957257f6a8bd28cf
-rw-r--r-- | alloc_device.cpp | 7 | ||||
-rw-r--r-- | gralloc_priv.h | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/alloc_device.cpp b/alloc_device.cpp index f081f88..76fdf74 100644 --- a/alloc_device.cpp +++ b/alloc_device.cpp @@ -42,13 +42,6 @@ #define AFBC_HEADER_BUFFER_BYTES_PER_BLOCKENTRY 16 #define AFBC_WIDEBLK_WIDTH_ALIGN 32 -// This value is platform specific and should be set according to hardware YUV planes restrictions. -// Please note that EGL winsys platform config file needs to use the same value when importing buffers. -#define YUV_MALI_PLANE_ALIGN 128 - -// Default YUV stride aligment in Android -#define YUV_ANDROID_PLANE_ALIGN 16 - static int gralloc_alloc_framebuffer_locked(alloc_device_t* dev, size_t size, int usage, buffer_handle_t* pHandle, int* stride, int* byte_stride) { private_module_t* private_t = reinterpret_cast<private_module_t*>(dev->common.module); diff --git a/gralloc_priv.h b/gralloc_priv.h index 0908809..8e51370 100644 --- a/gralloc_priv.h +++ b/gralloc_priv.h @@ -97,6 +97,12 @@ struct fb_dmabuf_export #define NUM_INTS_IN_PRIVATE_HANDLE ((sizeof(struct private_handle_t) - sizeof(native_handle)) / sizeof(int) - sNumFds) +// This value is platform specific and should be set according to hardware YUV planes restrictions. +// Please note that EGL winsys platform config file needs to use the same value when importing buffers. +#define YUV_MALI_PLANE_ALIGN 32 + +// Default YUV stride aligment in Android +#define YUV_ANDROID_PLANE_ALIGN 16 #if GRALLOC_ARM_UMP_MODULE |