From cd930f7c8a9b802f00788928e7716d31f9c7a4b8 Mon Sep 17 00:00:00 2001 From: _VIFEXTech Date: Thu, 25 Jan 2024 16:58:54 +0800 Subject: [PATCH] chore(vg_lite): remove 64-bytes alignment requirement (#5477) Signed-off-by: pengyiqiang Co-authored-by: pengyiqiang --- src/draw/vg_lite/lv_vg_lite_utils.h | 4 ---- tests/src/lv_test_conf.h | 5 ----- 2 files changed, 9 deletions(-) diff --git a/src/draw/vg_lite/lv_vg_lite_utils.h b/src/draw/vg_lite/lv_vg_lite_utils.h index e78c73b9b..948b4eadb 100644 --- a/src/draw/vg_lite/lv_vg_lite_utils.h +++ b/src/draw/vg_lite/lv_vg_lite_utils.h @@ -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)) diff --git a/tests/src/lv_test_conf.h b/tests/src/lv_test_conf.h index a7b04c6d8..841a8b303 100644 --- a/tests/src/lv_test_conf.h +++ b/tests/src/lv_test_conf.h @@ -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