From ed29f7984ec35abbd7abf70230130f7566db09ce Mon Sep 17 00:00:00 2001 From: xunmod <116288337+xunmod@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:50:30 +0800 Subject: [PATCH] Fix drm_fourcc.h --- sl8521e_1h10ll-common/0001-Add-adf_test.patch | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/sl8521e_1h10ll-common/0001-Add-adf_test.patch b/sl8521e_1h10ll-common/0001-Add-adf_test.patch index 0692800..f550800 100644 --- a/sl8521e_1h10ll-common/0001-Add-adf_test.patch +++ b/sl8521e_1h10ll-common/0001-Add-adf_test.patch @@ -1,4 +1,4 @@ -From 6b415324ba48036849af29088c392d373a6c0568 Mon Sep 17 00:00:00 2001 +From f9d83b25ec76e2bb88c371fa6903928d7ba92508 Mon Sep 17 00:00:00 2001 From: xunmod <116288337+xunmod@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:24:24 +0800 Subject: [PATCH] Add adf_test @@ -6,8 +6,8 @@ Subject: [PATCH] Add adf_test --- Android.mk | 2 + adf_test/Android.mk | 27 +++ - adf_test/adf_test.c | 406 ++++++++++++++++++++++++++++++++++++++++++++ - 3 files changed, 435 insertions(+) + adf_test/adf_test.c | 405 ++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 434 insertions(+) create mode 100644 adf_test/Android.mk create mode 100644 adf_test/adf_test.c @@ -66,10 +66,10 @@ index 0000000..7dceb1b +include $(BUILD_EXECUTABLE) diff --git a/adf_test/adf_test.c b/adf_test/adf_test.c new file mode 100644 -index 0000000..ddc864e +index 0000000..4ac4c5f --- /dev/null +++ b/adf_test/adf_test.c -@@ -0,0 +1,406 @@ +@@ -0,0 +1,405 @@ +/* + * Copyright (C) 2013 The Android Open Source Project + * @@ -91,7 +91,6 @@ index 0000000..ddc864e +#include + +#include -+#include +#include +#include +#include @@ -113,14 +112,14 @@ index 0000000..ddc864e +int eng; + +uint32_t fmt8888[] = { -+ DRM_FORMAT_XRGB8888, -+ DRM_FORMAT_XBGR8888, -+ DRM_FORMAT_RGBX8888, -+ DRM_FORMAT_BGRX8888, -+ DRM_FORMAT_ARGB8888, -+ DRM_FORMAT_ABGR8888, -+ DRM_FORMAT_RGBA8888, -+ DRM_FORMAT_BGRA8888 ++ ((uint32_t)('X') | ((uint32_t)('R') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), ++ ((uint32_t)('X') | ((uint32_t)('B') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), ++ ((uint32_t)('R') | ((uint32_t)('X') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), ++ ((uint32_t)('B') | ((uint32_t)('X') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), ++ ((uint32_t)('A') | ((uint32_t)('R') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), ++ ((uint32_t)('A') | ((uint32_t)('B') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), ++ ((uint32_t)('R') | ((uint32_t)('A') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), ++ ((uint32_t)('B') | ((uint32_t)('A') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)) +}; +size_t n_fmt8888 = sizeof(fmt8888) / sizeof(fmt8888[0]); +