From 3c53f1e9c92cf11618a05638d76b4d1ca0a2405c Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 8 Sep 2025 15:39:01 +0300 Subject: utils: c_draw_test_pattern() takes format name, not fourcc We can generate test patterns for pixel formats not in DRM, so we can't take DRM fourcc as a parameter for c_draw_test_pattern(). Switch it to format name instead. This is a ABI change, but it is marked as super experimental. Also, it feels a bit odd to add non-DRM format handling to kms++. But it feels a bit pointless to split the testpat generation to a separate library. Signed-off-by: Tomi Valkeinen --- kms++util/inc/kms++util/kms++util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kms++util/inc') diff --git a/kms++util/inc/kms++util/kms++util.h b/kms++util/inc/kms++util/kms++util.h index 6522632..396d18c 100644 --- a/kms++util/inc/kms++util/kms++util.h +++ b/kms++util/inc/kms++util/kms++util.h @@ -90,7 +90,7 @@ extern "C" { struct CDrawTestPatternParameters { uint32_t width; uint32_t height; - uint32_t fourcc;; + const char* format_name; uint8_t* buffers[4]; uint32_t sizes[4]; uint32_t pitches[4]; -- cgit v1.2.3