From: Jeevan B <jeevan.b@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: juha-pekka.heikkila@intel.com
Subject: [igt-dev] [PATCH i-g-t v2 02/10] include/drm-uapi: Import drm_fourcc header from c6e7deb0f092
Date: Wed, 2 Mar 2022 20:09:15 +0530 [thread overview]
Message-ID: <20220302143923.26498-3-jeevan.b@intel.com> (raw)
In-Reply-To: <20220302143923.26498-1-jeevan.b@intel.com>
Generated with make headers_install:
commit c6e7deb0f092616bd8cb19e8c436b212c64daaab
Author: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Date: Tue Jan 18 13:55:43 2022 +0200
drm/i915: Introduce new Tile 4 format
Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
include/drm-uapi/drm_fourcc.h | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/include/drm-uapi/drm_fourcc.h b/include/drm-uapi/drm_fourcc.h
index 91b6a0fd..d8f7cad9 100644
--- a/include/drm-uapi/drm_fourcc.h
+++ b/include/drm-uapi/drm_fourcc.h
@@ -104,6 +104,12 @@ extern "C" {
/* 8 bpp Red */
#define DRM_FORMAT_R8 fourcc_code('R', '8', ' ', ' ') /* [7:0] R */
+/* 10 bpp Red */
+#define DRM_FORMAT_R10 fourcc_code('R', '1', '0', ' ') /* [15:0] x:R 6:10 little endian */
+
+/* 12 bpp Red */
+#define DRM_FORMAT_R12 fourcc_code('R', '1', '2', ' ') /* [15:0] x:R 4:12 little endian */
+
/* 16 bpp Red */
#define DRM_FORMAT_R16 fourcc_code('R', '1', '6', ' ') /* [15:0] R little endian */
@@ -308,6 +314,13 @@ extern "C" {
*/
#define DRM_FORMAT_P016 fourcc_code('P', '0', '1', '6') /* 2x2 subsampled Cr:Cb plane 16 bits per channel */
+/* 2 plane YCbCr420.
+ * 3 10 bit components and 2 padding bits packed into 4 bytes.
+ * index 0 = Y plane, [31:0] x:Y2:Y1:Y0 2:10:10:10 little endian
+ * index 1 = Cr:Cb plane, [63:0] x:Cr2:Cb2:Cr1:x:Cb1:Cr0:Cb0 [2:10:10:10:2:10:10:10] little endian
+ */
+#define DRM_FORMAT_P030 fourcc_code('P', '0', '3', '0') /* 2x2 subsampled Cr:Cb plane 10 bits per channel packed */
+
/* 3 plane non-subsampled (444) YCbCr
* 16 bits per component, but only 10 bits are used and 6 bits are padded
* index 0: Y plane, [15:0] Y:x [10:6] little endian
@@ -559,6 +572,17 @@ extern "C" {
*/
#define I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC fourcc_mod_code(INTEL, 8)
+/*
+ * Intel Tile 4 layout
+ *
+ * This is a tiled layout using 4KB tiles in a row-major layout. It has the same
+ * shape as Tile Y at two granularities: 4KB (128B x 32) and 64B (16B x 4). It
+ * only differs from Tile Y at the 256B granularity in between. At this
+ * granularity, Tile Y has a shape of 16B x 32 rows, but this tiling has a shape
+ * of 64B x 8 rows.
+ */
+#define I915_FORMAT_MOD_4_TILED fourcc_mod_code(INTEL, 9)
+
/*
* Tiled, NV12MT, grouped in 64 (pixels) x 32 (lines) -sized macroblocks
*
@@ -848,6 +872,10 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier)
* and UV. Some SAND-using hardware stores UV in a separate tiled
* image from Y to reduce the column height, which is not supported
* with these modifiers.
+ *
+ * The DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT modifier is also
+ * supported for DRM_FORMAT_P030 where the columns remain as 128 bytes
+ * wide, but as this is a 10 bpp format that translates to 96 pixels.
*/
#define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) \
--
2.17.1
next prev parent reply other threads:[~2022-03-02 14:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-02 14:39 [igt-dev] [PATCH i-g-t v2 00/10] Tile 4 plane format support Jeevan B
2022-03-02 14:39 ` [igt-dev] [PATCH i-g-t v2 01/10] lib/intel_device_info: Add a flag to indicate tiling 4 support Jeevan B
2022-03-02 14:39 ` Jeevan B [this message]
2022-03-03 7:33 ` [igt-dev] [PATCH i-g-t v2 02/10] include/drm-uapi: Import drm_fourcc header from c6e7deb0f092 Lisovskiy, Stanislav
2022-03-02 14:39 ` [igt-dev] [PATCH i-g-t v2 03/10] igt/lib: Add tile 4(F-tile) format support Jeevan B
2022-03-02 14:39 ` [igt-dev] [PATCH i-g-t v2 04/10] lib/igt_draw: Add pixel math for tile-4 Jeevan B
2022-03-02 14:39 ` [igt-dev] [PATCH i-g-t v2 05/10] igt/tests: Add support for Tile4(TileF) format to kms_draw_crc Jeevan B
2022-03-02 14:39 ` [igt-dev] [PATCH i-g-t v2 06/10] igt/tests: Add support for Tile4(TileF) format to tests/kms_plane_multiple Jeevan B
2022-03-02 14:39 ` [igt-dev] [PATCH i-g-t v2 07/10] igt/tests: Add support for Tile4(TileF) format to tests/kms_plane_lowres Jeevan B
2022-03-02 14:39 ` [igt-dev] [PATCH i-g-t v2 08/10] igt/tests: Add support for Tile4(TileF) format to tests/kms_big_fb Jeevan B
2022-03-02 14:39 ` [igt-dev] [PATCH i-g-t v2 09/10] igt/tests: Add support for Tile4(TileF) format to testdisplay Jeevan B
2022-03-02 14:39 ` [igt-dev] [PATCH i-g-t v2 10/10] igt/tests: Add support for Tile4(TileF) format to kms_rotation_crc Jeevan B
2022-03-02 16:51 ` [igt-dev] ✓ Fi.CI.BAT: success for Tile 4 plane format support (rev2) Patchwork
2022-03-03 1:20 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-03-03 10:26 ` B, Jeevan
2022-03-03 16:36 ` Vudum, Lakshminarayana
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220302143923.26498-3-jeevan.b@intel.com \
--to=jeevan.b@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=juha-pekka.heikkila@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox