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/src/testpat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kms++util/src/testpat.cpp') diff --git a/kms++util/src/testpat.cpp b/kms++util/src/testpat.cpp index 5b7ca1b..bdbe647 100644 --- a/kms++util/src/testpat.cpp +++ b/kms++util/src/testpat.cpp @@ -500,7 +500,7 @@ int c_draw_test_pattern(struct CDrawTestPatternParameters* params) using namespace kms; try { - auto fmt = fourcc_to_pixel_format(params->fourcc); + auto fmt = find_pixel_format_by_name(params->format_name); ExtCPUFramebuffer fb(params->width, params->height, -- cgit v1.2.3