From patchwork Fri Jan 30 03:58:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1779 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org Authentication-Results: mail.u-boot.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=gNs1814C; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BD09E69738 for ; Thu, 29 Jan 2026 20:59:18 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id XoC0pFmGy2G0 for ; Thu, 29 Jan 2026 20:59:18 -0700 (MST) Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id ECD8C697E9 for ; Thu, 29 Jan 2026 20:59:16 -0700 (MST) Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 002D4697CD for ; Thu, 29 Jan 2026 20:59:13 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 8Nd7WAq20c4i for ; Thu, 29 Jan 2026 20:59:12 -0700 (MST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.48; helo=mail-oa1-f48.google.com; envelope-from=sjg@chromium.org; receiver=u-boot.org Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) by mail.u-boot.org (Postfix) with ESMTPS id 87FE769738 for ; Thu, 29 Jan 2026 20:59:11 -0700 (MST) Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-4097b420ce0so1033863fac.2 for ; Thu, 29 Jan 2026 19:59:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1769745550; x=1770350350; darn=u-boot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EFauf4fqicl44oAn+RykyYt4SJp9sRJ3UturRwVY7rw=; b=gNs1814CpTfZbKEFf8wERaPBwETZzrgSzDKl1hj0BVIHAn0MLNpE4WqjI5RrctlXFP J41CZei2l36Zn2ZtkFECTyRdSReZopdnWJ3MmSrdd6DZdenQlzAWOEFQIv+5NbUhcMrT tMWI1K5ijugldqO4YrYcMENsQ0B7SJLoh5p/w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769745550; x=1770350350; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=EFauf4fqicl44oAn+RykyYt4SJp9sRJ3UturRwVY7rw=; b=R/kzDhhu2rFC36HXDJPIYz3PjunhqlilAZl6qiO0nhrZbswMLnkTfUVJ6T7bsXNM+V 3uLIEBvZUdYl0tdpoRWFKo5wvkZnTVlqp8nUi2xcrggpql3gqKLvGNEOe0HkUATEc9Eb LWIs8CbbrFNQI36B3xdVsT7p2X+mMK5l+2OFnkXk/K5Hx6Mm+NVgAsLG+++C+aC2JT3G Cpx/RjJ1fsgP38Oc+gxhb5xTBDvcO4ViIFoMWQwVQLNRdRmE21/AkcsJZCnIiihDHVIQ uzZ95O/tFlE9IBQyT5mjoc3+TM9vsBFP31fzEqjKwNTxE7UE1GzH3rbhE+YAyriPbZRc TWjg== X-Gm-Message-State: AOJu0Yz04wT0ojJ6HTnuML8dxL4W+9UK6ylsxh83792cK/gdYwpr8PsZ 76MNScY3pf0jv/vEoQ343k0tX3DrhppPTF36qgm5n8Fg82h0+7S8HiSFREJ6wfuvyes1LUBplDS wFiZy4Q== X-Gm-Gg: AZuq6aI2zYllZ2Sa2FfAjxtJCqXf5sy2h/Zfoq1zB1AfLbgPQDAYaeOcabNxtrEThql ZizEb1KljTg/S5hjNojuCHivB0qBWCrMWoJyzBHsed9+Ily/J8kPJGYk8/pcXM+YU0c7sHjCpsp hqO54uLGX+V70icqJwCze6MTlKvsMOympo+HW6SAXLFOyX+gynmCm42uZQ6aw1uwcvHjaI49l/4 c+Hs2LM4jeK5A4ncwVW1LrZV15V4F1PEdsA/Z9zfLozaIoi6kFvSAUDi6y1kXBger7EqwJyPbWU hX7ZakUm3zklVcnfpqhEjc5XbIFKel277YNk64BfCKD8+0lo98IOefLDNIKtUrtrvl+N24CBaEW dJqNCo18fu+EXnJ54IQ9Ua+PS3cJlv9rKOmQ8JhoT1YAtAgBg5NnhuqZR6nPAQE5Iu2LIdoRmty QthVXEN+J7XR3govA7 X-Received: by 2002:a4a:d383:0:b0:663:1239:9eac with SMTP id 006d021491bc7-6631239a21amr195825eaf.59.1769745550246; Thu, 29 Jan 2026 19:59:10 -0800 (PST) Received: from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-662f9a4e491sm4128687eaf.16.2026.01.29.19.59.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jan 2026 19:59:08 -0800 (PST) From: Simon Glass X-Google-Original-From: Simon Glass To: U-Boot Concept Date: Thu, 29 Jan 2026 20:58:27 -0700 Message-ID: <20260130035849.3580212-5-simon.glass@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260130035849.3580212-1-simon.glass@canonical.com> References: <20260130035849.3580212-1-simon.glass@canonical.com> MIME-Version: 1.0 Message-ID-Hash: HWQQLIIOFZ4OI3WXGWW72WVR757MEOFR X-Message-ID-Hash: HWQQLIIOFZ4OI3WXGWW72WVR757MEOFR X-MailFrom: sjg@chromium.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 04/19] test: Add video_compress_fb_() with message parameter List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add video_compress_fb_() which takes an additional msg parameter to describe the frame being checked. This helps with debugging when a frame check fails. The existing video_compress_fb() becomes a wrapper that passes NULL for the message. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- test/dm/video.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/dm/video.c b/test/dm/video.c index b7aa835c86a..421d50df064 100644 --- a/test/dm/video.c +++ b/test/dm/video.c @@ -138,8 +138,8 @@ static int video_write_bmp(struct unit_test_state *uts, struct udevice *dev, return ret; } -int video_compress_fb(struct unit_test_state *uts, struct udevice *dev, - bool use_copy) +static int video_compress_fb_(struct unit_test_state *uts, struct udevice *dev, + bool use_copy, const char *msg) { struct sandbox_state *state = state_get_current(); struct video_priv *priv = dev_get_uclass_priv(dev); @@ -184,6 +184,12 @@ int video_compress_fb(struct unit_test_state *uts, struct udevice *dev, return destlen; } +int video_compress_fb(struct unit_test_state *uts, struct udevice *dev, + bool use_copy) +{ + return video_compress_fb_(uts, dev, use_copy, NULL); +} + int video_check_copy_fb(struct unit_test_state *uts, struct udevice *dev) { struct video_priv *priv = dev_get_uclass_priv(dev);