Skip to contentSkip to conversation

tests/intel/kms_flip_scaled_crc: Add support for FP16 format of MTL compressed modifier

PATCH In review Melanie Lobo 2 participants 5 messages Oct 11, 2023 – Oct 12, 2023 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/intel/kms_flip_scaled_crc: Add support for FP16 format of MTL compressed modifier

MTL supports new FP16 format which is a binary floating-point computer number format that occupies 16 bits in computer memory.

Change-Id I7fa8169d54cbd9e6dcdf765065659e541a31e481
---
 lib/intel_aux_pgtable.c           |  5 +++++
 tests/intel/kms_flip_scaled_crc.c | 16 ++++++++++++++++
 2 files changed, 21 insertions(+)
lib/intel_aux_pgtable.c +5 -0
index 7c79521344de..a612df407692 100644
@@ -21,6 +21,7 @@
 #define AUX_FORMAT_AYUV		0x09
 #define AUX_FORMAT_ARGB_8B	0x0A
 #define AUX_FORMAT_NV12_21	0x0F
+#define AUX_FORMAT_XRGB16161616_64B 0x10
 
 struct pgtable_level_desc {
 	int idx_shift;
@@ -305,6 +306,10 @@ static uint64_t pgt_get_l1_flags(const struct intel_buf *buf, int surface_idx)
 			entry.e.format = AUX_FORMAT_ARGB_8B;
 			entry.e.depth = bpp_to_depth_val(32);
 			break;
+		case 64:
+			entry.e.format = AUX_FORMAT_XRGB16161616_64B;
+			entry.e.depth = bpp_to_depth_val(64);
+			break;
 		default:
 			igt_assert(0);
 		}
tests/intel/kms_flip_scaled_crc.c +16 -0
index 2997b63fac40..0d5e994af2b7 100644
@@ -590,6 +590,22 @@ const struct {
 		0.5,
 		1.0,
 	},
+	{
+		"flip-64bpp-4tile-to-32bpp-4tilemtlrcccs-upscaling",
+		"Flip from 64bpp non scaled fb to 32bpp upscaled fb to stress CD clock programming",
+		I915_FORMAT_MOD_4_TILED, DRM_FORMAT_XRGB16161616F,
+		I915_FORMAT_MOD_4_TILED_MTL_RC_CCS, DRM_FORMAT_XRGB16161616F,
+		0.5,
+		1.0,
+	},
+	{
+		"flip-64bpp-4tile-to-32bpp-4tilemtlrcccs-downscaling",
+		"Flip from 64bpp non scaled fb to 32bpp downscaled fb to stress CD clock programming",
+		I915_FORMAT_MOD_4_TILED, DRM_FORMAT_XRGB16161616F,
+		I915_FORMAT_MOD_4_TILED_MTL_RC_CCS, DRM_FORMAT_XRGB16161616F,
+		1.0,
+		2.0,
+	},
 };
 
 static void setup_fb(data_t *data, struct igt_fb *newfb, uint32_t width,
Signature · 1 line
2.17.1
#1 lore raw

Hi Melanie,

please subscribe to igt-dev mailinglist.

Quoted 4 lines · Melanie Lobo

MTL supports new FP16 format which is a binary floating-point computer number format that occupies 16 bits in computer memory.

Change-Id: I7fa8169d54cbd9e6dcdf765065659e541a31e481

- ^^^^^^^^^
Drop this line.

Regards,
Kamil

Quoted 59 lines
---
 lib/intel_aux_pgtable.c           |  5 +++++
 tests/intel/kms_flip_scaled_crc.c | 16 ++++++++++++++++
 2 files changed, 21 insertions(+)
lib/intel_aux_pgtable.c +5 -0
index 7c79521344de..a612df407692 100644
@@ -21,6 +21,7 @@
 #define AUX_FORMAT_AYUV		0x09
 #define AUX_FORMAT_ARGB_8B	0x0A
 #define AUX_FORMAT_NV12_21	0x0F
+#define AUX_FORMAT_XRGB16161616_64B 0x10
 
 struct pgtable_level_desc {
 	int idx_shift;
@@ -305,6 +306,10 @@ static uint64_t pgt_get_l1_flags(const struct intel_buf *buf, int surface_idx)
 			entry.e.format = AUX_FORMAT_ARGB_8B;
 			entry.e.depth = bpp_to_depth_val(32);
 			break;
+		case 64:
+			entry.e.format = AUX_FORMAT_XRGB16161616_64B;
+			entry.e.depth = bpp_to_depth_val(64);
+			break;
 		default:
 			igt_assert(0);
 		}
tests/intel/kms_flip_scaled_crc.c +16 -0
index 2997b63fac40..0d5e994af2b7 100644
@@ -590,6 +590,22 @@ const struct {
 		0.5,
 		1.0,
 	},
+	{
+		"flip-64bpp-4tile-to-32bpp-4tilemtlrcccs-upscaling",
+		"Flip from 64bpp non scaled fb to 32bpp upscaled fb to stress CD clock programming",
+		I915_FORMAT_MOD_4_TILED, DRM_FORMAT_XRGB16161616F,
+		I915_FORMAT_MOD_4_TILED_MTL_RC_CCS, DRM_FORMAT_XRGB16161616F,
+		0.5,
+		1.0,
+	},
+	{
+		"flip-64bpp-4tile-to-32bpp-4tilemtlrcccs-downscaling",
+		"Flip from 64bpp non scaled fb to 32bpp downscaled fb to stress CD clock programming",
+		I915_FORMAT_MOD_4_TILED, DRM_FORMAT_XRGB16161616F,
+		I915_FORMAT_MOD_4_TILED_MTL_RC_CCS, DRM_FORMAT_XRGB16161616F,
+		1.0,
+		2.0,
+	},
 };
 
 static void setup_fb(data_t *data, struct igt_fb *newfb, uint32_t width,
Signature · 1 line
2.17.1
#2 lore raw
Quoted 19 lines

-----Original Message-----
From: Kamil Konieczny <[email protected]>
Sent: Wednesday, October 11, 2023 6:46 PM
To: [email protected]
Cc: Lobo, Melanie <[email protected]>; Heikkila, Juha-pekka <juha- [email protected]>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/intel/kms_flip_scaled_crc: Add support for FP16 format of MTL compressed modifier

Hi Melanie,

please subscribe to igt-dev mailinglist.

Quoted 3 lines · Melanie Lobo

MTL supports new FP16 format which is a binary floating-point computer number format that occupies 16 bits in computer memory.

Quoted 7 lines
Quoted 1 line

Change-Id: I7fa8169d54cbd9e6dcdf765065659e541a31e481

- ^^^^^^^^^
Drop this line.

Regards,
Kamil

Hi Kamil,

Thank you for your reply. I have subscribed to igt-dev mailing list. I will remove the Change-Id and float the next revision.

Regards,
Melanie Lobo

Quoted 68 lines

lib/intel_aux_pgtable.c static uint64_t pgt_get_l1_flags(const struct

Quoted 19 lines
---
 lib/intel_aux_pgtable.c           |  5 +++++
 tests/intel/kms_flip_scaled_crc.c | 16 ++++++++++++++++
 2 files changed, 21 insertions(+)
lib/intel_aux_pgtable.c index renamed from lib/intel_aux_pgtable.c +0 -0

7c79521344de..a612df407692 100644

lib/intel_aux_pgtable.c +1 -0
@@ -21,6 +21,7 @@
 #define AUX_FORMAT_AYUV		0x09
 #define AUX_FORMAT_ARGB_8B	0x0A
 #define AUX_FORMAT_NV12_21	0x0F
+#define AUX_FORMAT_XRGB16161616_64B 0x10
 
 struct pgtable_level_desc {
 	int idx_shift;
@@ -305,6 +306,10 @@ static uint64_t pgt_get_l1_flags(const struct

intel_buf *buf, int surface_idx)

Quoted 16 lines
lib/intel_aux_pgtable.c +4 -0
 			entry.e.format = AUX_FORMAT_ARGB_8B;
 			entry.e.depth = bpp_to_depth_val(32);
 			break;
+		case 64:
+			entry.e.format = AUX_FORMAT_XRGB16161616_64B;
+			entry.e.depth = bpp_to_depth_val(64);
+			break;
 		default:
 			igt_assert(0);
 		}
tests/intel/kms_flip_scaled_crc.c +0 -0
index 2997b63fac40..0d5e994af2b7 100644

tests/intel/kms_flip_scaled_crc.c const struct { · line 595

Quoted 6 lines
tests/intel/kms_flip_scaled_crc.c +3 -0
@@ -590,6 +590,22 @@ const struct {
 		0.5,
 		1.0,
 	},
+	{
+		"flip-64bpp-4tile-to-32bpp-4tilemtlrcccs-upscaling",
+		"Flip from 64bpp non scaled fb to 32bpp upscaled fb to stress

CD clock programming",

tests/intel/kms_flip_scaled_crc.c const struct { · line 596

Quoted 1 line
tests/intel/kms_flip_scaled_crc.c +1 -0
+		I915_FORMAT_MOD_4_TILED,

DRM_FORMAT_XRGB16161616F,

tests/intel/kms_flip_scaled_crc.c const struct { · line 597

Quoted 1 line
tests/intel/kms_flip_scaled_crc.c +1 -0
+		I915_FORMAT_MOD_4_TILED_MTL_RC_CCS,

DRM_FORMAT_XRGB16161616F,

tests/intel/kms_flip_scaled_crc.c const struct {

Quoted 6 lines
tests/intel/kms_flip_scaled_crc.c +6 -0
+		0.5,
+		1.0,
+	},
+	{
+		"flip-64bpp-4tile-to-32bpp-4tilemtlrcccs-downscaling",
+		"Flip from 64bpp non scaled fb to 32bpp downscaled fb to

stress CD clock programming",

tests/intel/kms_flip_scaled_crc.c const struct { · line 604

Quoted 1 line
tests/intel/kms_flip_scaled_crc.c +1 -0
+		I915_FORMAT_MOD_4_TILED,

DRM_FORMAT_XRGB16161616F,

tests/intel/kms_flip_scaled_crc.c const struct { · line 605

Quoted 1 line
tests/intel/kms_flip_scaled_crc.c +1 -0
+		I915_FORMAT_MOD_4_TILED_MTL_RC_CCS,

DRM_FORMAT_XRGB16161616F,

Quoted 10 lines
tests/intel/kms_flip_scaled_crc.c +3 -0
+		1.0,
+		2.0,
+	},
 };
 
 static void setup_fb(data_t *data, struct igt_fb *newfb, uint32_t

width,
--
2.17.1

#3 lore raw

[igt-dev] intel/kms_flip_scaled_crc.c : Add support for FP16 compressed formats in MTL

In reply to Melanie Lobo

MTL supports FP16 format which is a binary floating-point computer number format that occupies 16 bits in computer memory.In this test platform shall render compression in display engine to receive FP16 compressed formats.

---
 lib/intel_aux_pgtable.c           |  5 +++++
 tests/intel/kms_flip_scaled_crc.c | 16 ++++++++++++++++
 2 files changed, 21 insertions(+)
lib/intel_aux_pgtable.c +5 -0
index 7c79521344de..a612df407692 100644
@@ -21,6 +21,7 @@
 #define AUX_FORMAT_AYUV		0x09
 #define AUX_FORMAT_ARGB_8B	0x0A
 #define AUX_FORMAT_NV12_21	0x0F
+#define AUX_FORMAT_XRGB16161616_64B 0x10
 
 struct pgtable_level_desc {
 	int idx_shift;
@@ -305,6 +306,10 @@ static uint64_t pgt_get_l1_flags(const struct intel_buf *buf, int surface_idx)
 			entry.e.format = AUX_FORMAT_ARGB_8B;
 			entry.e.depth = bpp_to_depth_val(32);
 			break;
+		case 64:
+			entry.e.format = AUX_FORMAT_XRGB16161616_64B;
+			entry.e.depth = bpp_to_depth_val(64);
+			break;
 		default:
 			igt_assert(0);
 		}
tests/intel/kms_flip_scaled_crc.c +16 -0
index 2997b63fac40..0d5e994af2b7 100644
@@ -590,6 +590,22 @@ const struct {
 		0.5,
 		1.0,
 	},
+	{
+		"flip-64bpp-4tile-to-32bpp-4tilemtlrcccs-upscaling",
+		"Flip from 64bpp non scaled fb to 32bpp upscaled fb to stress CD clock programming",
+		I915_FORMAT_MOD_4_TILED, DRM_FORMAT_XRGB16161616F,
+		I915_FORMAT_MOD_4_TILED_MTL_RC_CCS, DRM_FORMAT_XRGB16161616F,
+		0.5,
+		1.0,
+	},
+	{
+		"flip-64bpp-4tile-to-32bpp-4tilemtlrcccs-downscaling",
+		"Flip from 64bpp non scaled fb to 32bpp downscaled fb to stress CD clock programming",
+		I915_FORMAT_MOD_4_TILED, DRM_FORMAT_XRGB16161616F,
+		I915_FORMAT_MOD_4_TILED_MTL_RC_CCS, DRM_FORMAT_XRGB16161616F,
+		1.0,
+		2.0,
+	},
 };
 
 static void setup_fb(data_t *data, struct igt_fb *newfb, uint32_t width,
Signature · 1 line
2.17.1
#4 lore raw

PATCH 1/1 intel/kms_flip_scaled_crc.c : Add support for FP16 compressed formats in MTL

In reply to Melanie Lobo

MTL supports FP16 format which is a binary floating-point computer number format that occupies 16 bits in computer memory.In this test platform shall render compression in display engine to receive FP16 compressed formats.

---
 lib/intel_aux_pgtable.c           |  5 +++++
 tests/intel/kms_flip_scaled_crc.c | 16 ++++++++++++++++
 2 files changed, 21 insertions(+)
lib/intel_aux_pgtable.c +5 -0
index 7c79521344de..a612df407692 100644
@@ -21,6 +21,7 @@
 #define AUX_FORMAT_AYUV		0x09
 #define AUX_FORMAT_ARGB_8B	0x0A
 #define AUX_FORMAT_NV12_21	0x0F
+#define AUX_FORMAT_XRGB16161616_64B 0x10
 
 struct pgtable_level_desc {
 	int idx_shift;
@@ -305,6 +306,10 @@ static uint64_t pgt_get_l1_flags(const struct intel_buf *buf, int surface_idx)
 			entry.e.format = AUX_FORMAT_ARGB_8B;
 			entry.e.depth = bpp_to_depth_val(32);
 			break;
+		case 64:
+			entry.e.format = AUX_FORMAT_XRGB16161616_64B;
+			entry.e.depth = bpp_to_depth_val(64);
+			break;
 		default:
 			igt_assert(0);
 		}
tests/intel/kms_flip_scaled_crc.c +16 -0
index 2997b63fac40..0d5e994af2b7 100644
@@ -590,6 +590,22 @@ const struct {
 		0.5,
 		1.0,
 	},
+	{
+		"flip-64bpp-4tile-to-32bpp-4tilemtlrcccs-upscaling",
+		"Flip from 64bpp non scaled fb to 32bpp upscaled fb to stress CD clock programming",
+		I915_FORMAT_MOD_4_TILED, DRM_FORMAT_XRGB16161616F,
+		I915_FORMAT_MOD_4_TILED_MTL_RC_CCS, DRM_FORMAT_XRGB16161616F,
+		0.5,
+		1.0,
+	},
+	{
+		"flip-64bpp-4tile-to-32bpp-4tilemtlrcccs-downscaling",
+		"Flip from 64bpp non scaled fb to 32bpp downscaled fb to stress CD clock programming",
+		I915_FORMAT_MOD_4_TILED, DRM_FORMAT_XRGB16161616F,
+		I915_FORMAT_MOD_4_TILED_MTL_RC_CCS, DRM_FORMAT_XRGB16161616F,
+		1.0,
+		2.0,
+	},
 };
 
 static void setup_fb(data_t *data, struct igt_fb *newfb, uint32_t width,
Signature · 1 line
2.17.1