Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/veboxcopy: Add packed 64bpp 16b per channel yuv support
@ 2023-05-30 12:04 Juha-Pekka Heikkila
  2023-05-30 12:59 ` Kahola, Mika
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Juha-Pekka Heikkila @ 2023-05-30 12:04 UTC (permalink / raw)
  To: igt-dev

Enable Vebox engine to copy packed 64bpp yuv surfaces.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
 lib/veboxcopy_gen12.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/veboxcopy_gen12.c b/lib/veboxcopy_gen12.c
index 4ab6ced3..44c914e7 100644
--- a/lib/veboxcopy_gen12.c
+++ b/lib/veboxcopy_gen12.c
@@ -30,6 +30,7 @@
 #define PLANAR_420_8	4
 #define PACKED_444A_8	5
 #define R8G8B8A8_UNORM	8
+#define PACKED_444_16	9
 #define PLANAR_420_16	12
 
 struct vebox_surface_state {
@@ -342,6 +343,10 @@ void gen12_vebox_copyfunc(struct intel_bb *ibb,
 		format = src->format_is_yuv ? PACKED_444A_8 :
 					      R8G8B8A8_UNORM;
 		break;
+	case 64:
+		igt_assert(!src->format_is_yuv_semiplanar && src->format_is_yuv);
+		format = PACKED_444_16;
+		break;
 	default:
 		igt_assert_f(0, "Unsupported bpp: %u\n", src->bpp);
 	}
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-31 18:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-30 12:04 [igt-dev] [PATCH i-g-t] lib/veboxcopy: Add packed 64bpp 16b per channel yuv support Juha-Pekka Heikkila
2023-05-30 12:59 ` Kahola, Mika
2023-05-30 19:00 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-05-31 18:49 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox