armbian-build/patch/kernel/archive/sunxi-6.1/patches.armbian/include-uapi-drm_fourcc-add-ARM-tiled-format-modifier.patch
The-going b7ab460983
Move sunxi legacy to 5.15.y, current to 6.1.y and edge to 6.2.y (#4890)
* sunxi-6.1: rebase to v6.1.14, reexport patches megous

* sunxi-6.1: rename fixes patches

* sunxi-6.1: reexport armbian patches

* sunxi-6.1: fix the series.conf file to the current state

* sunxi-6.1: switch edge to v6.1.14

* Adjust sunxi to 5.15 / 6.1 / 6.2

- change configs
- adjust broken patches
- disable patch that only changes /readme.md and it has issues

---------

Co-authored-by: Igor Pečovnik <igor@armbian.com>
2023-03-03 22:13:49 +01:00

37 lines
1.0 KiB
Diff

From 9470f605b82e0bacc2cb4057358e35e6c2044e7a Mon Sep 17 00:00:00 2001
From: Qiang Yu <yuq825@gmail.com>
Date: Tue, 19 Jun 2018 13:51:17 +0800
Subject: [PATCH 028/158] include:uapi:drm_fourcc: add ARM tiled format
modifier
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
---
include/uapi/drm/drm_fourcc.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
index 868d6909b..7e1d2765a 100644
--- a/include/uapi/drm/drm_fourcc.h
+++ b/include/uapi/drm/drm_fourcc.h
@@ -1238,6 +1238,15 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier)
*/
#define AFRC_FORMAT_MOD_LAYOUT_SCAN (1ULL << 8)
+/*
+ * ARM tiled format
+ *
+ * This is used by ARM Mali Utgard/Midgard GPU. It divides buffer into
+ * 16x16 pixel blocks. Blocks are stored linearly in order, but pixels
+ * in the block are reordered.
+ */
+#define DRM_FORMAT_MOD_ARM_TILED fourcc_mod_code(ARM, 1)
+
/*
* Arm 16x16 Block U-Interleaved modifier
*
--
2.35.3