mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-20 21:35:19 +08:00
chore(vg_lite): remove 64-bytes alignment requirement (#5477)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -31,10 +31,6 @@ extern "C" {
|
||||
* DEFINES
|
||||
*********************/
|
||||
|
||||
#if LV_DRAW_BUF_ALIGN != 64
|
||||
#error "LV_DRAW_BUF_ALIGN must be 64"
|
||||
#endif
|
||||
|
||||
#define LV_VG_LITE_IS_ERROR(err) (err > 0)
|
||||
|
||||
#define VLC_GET_OP_CODE(ptr) (*((uint8_t*)ptr))
|
||||
|
||||
@@ -82,9 +82,6 @@ typedef void * lv_user_data_t;
|
||||
/* Simulate VG-Lite hardware using ThorVG */
|
||||
#define LV_USE_VG_LITE_THORVG 1
|
||||
|
||||
/* VG-Lite GPU buffer alignment. */
|
||||
#define LV_DRAW_BUF_ALIGN 64
|
||||
|
||||
#include "lv_test_conf_full.h"
|
||||
#elif LV_TEST_OPTION == 4
|
||||
#define LV_COLOR_DEPTH 24
|
||||
@@ -109,10 +106,8 @@ typedef void * lv_user_data_t;
|
||||
/*Use a large value be sure any issues will cause crash*/
|
||||
#define LV_DRAW_BUF_STRIDE_ALIGN 64
|
||||
|
||||
#if !defined(LV_DRAW_BUF_ALIGN)
|
||||
/*Use non power of 2 to avoid the case when `malloc` returns aligned pointer by default, and use a large value be sure any issues will cause crash*/
|
||||
#define LV_DRAW_BUF_ALIGN 852
|
||||
#endif
|
||||
|
||||
/*For screenshots*/
|
||||
#undef LV_USE_PERF_MONITOR
|
||||
|
||||
Reference in New Issue
Block a user