feat(wayland): rewrite driver (#9195)

Co-authored-by: ychsiao168 <ychsiao168@pm.me>
This commit is contained in:
André Costa
2025-12-01 18:02:27 +01:00
committed by GitHub
parent 5cf3c8e887
commit 6cd095724e
31 changed files with 2295 additions and 4358 deletions
+5 -1
View File
@@ -64,7 +64,11 @@ def parse_defaults(path: str):
for line in file.readlines():
if len(line.strip()) == 0 or line.startswith('#'):
continue
groups = re.search(r'([A-Z0-9_]+)\s+(.+)', line).groups()
search_result = re.search(r'([A-Z0-9_]+)\s+(.+)', line)
if not search_result:
print(f"WARNING: Ignoring line {line}")
continue
groups = search_result.groups()
defaults[groups[0]] = groups[1]
return defaults
+13 -4
View File
@@ -218,10 +218,19 @@ LV_EXPORT_CONST_INT(LV_DRAW_BUF_ALIGN);
#define LV_LOG_TRACE_ANIM 0
#endif /*LV_USE_LOG*/
#if LV_USE_WAYLAND == 0
#define LV_WAYLAND_USE_DMABUF 0
#define LV_WAYLAND_WINDOW_DECORATIONS 0
#endif /* LV_USE_WAYLAND */
#if LV_USE_WAYLAND
/*Automatically detect wayland backend*/
#if LV_USE_G2D
#define LV_WAYLAND_USE_G2D 1
#define LV_WAYLAND_USE_SHM 0
#else
#define LV_WAYLAND_USE_G2D 0
#define LV_WAYLAND_USE_SHM 1
#endif
#else
#define LV_WAYLAND_USE_G2D 0
#define LV_WAYLAND_USE_SHM 0
#endif
#if LV_USE_LINUX_DRM == 0
#define LV_LINUX_DRM_USE_EGL 0