[PATCH i-g-t v2 06/18] lib/igt_fb: Add 10bpc compression format for the blitter

Ville Syrjala ville.syrjala at linux.intel.com
Wed Sep 18 12:05:06 UTC 2024


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Pick the correct compression format for the block copy when
using a 2:10:10:10 pixel format.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 lib/igt_fb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 7f87d40ed3d6..213ee7e9aa69 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -2911,6 +2911,7 @@ const struct {
 	enum blt_compression_type type;
 	uint32_t return_value;
 } compression_mappings[] = {
+	{ DRM_FORMAT_XRGB2101010, COMPRESSION_TYPE_3D, 0xc },
 	{ DRM_FORMAT_XRGB8888, COMPRESSION_TYPE_3D, 0x8 },
 	{ DRM_FORMAT_XRGB8888, COMPRESSION_TYPE_MEDIA, 8 },
 	{ DRM_FORMAT_XYUV8888, COMPRESSION_TYPE_MEDIA, 9 },
-- 
2.44.2



More information about the igt-dev mailing list