armbian-build/patch/kernel/archive/sunxi-5.16/patches.armbian/include-uapi-drm_fourcc-add-ARM-tiled-format-modifie.patch
The-going f80117f21c
Recycling of megous v5.16.4 patches (#3449)
* Recycling of megous v5.16.4 patches

The patches were sorted as far as possible. Some patches are renamed
according to their place of application. The length of the patch name
has been changed to improve readability using
the `git format-patch --filename-max-length=75` method.

The folder containing the patches will have the name `patches.name`
and the corresponding file `series.name` for the convenience
of processing and moving them upstream. But the control file remains
`series.conf`.


Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Add a series of armbian patches for 5.16

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Remove patches whose fixes are already in the kernel

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2022-02-02 11:03:44 +01:00

37 lines
1.0 KiB
Diff

From 491fd5378aa64b111306fadad61169cb87e0533f Mon Sep 17 00:00:00 2001
From: Qiang Yu <yuq825@gmail.com>
Date: Tue, 19 Jun 2018 13:51:17 +0800
Subject: [PATCH 062/101] 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 9f4bb4a6f..57b8acd1f 100644
--- a/include/uapi/drm/drm_fourcc.h
+++ b/include/uapi/drm/drm_fourcc.h
@@ -1120,6 +1120,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.31.1