Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp130384lqi; Wed, 6 Mar 2024 12:04:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVKcFchcWCUslAcWDTCuDP7C8vEs+Xaw+rDNv8Iw0WIFl6CGDFM+CmgV3FzSTUJvCcZStfDVnShCjXKWJilur+L2M7vZeb4U6AP/ZxiSw== X-Google-Smtp-Source: AGHT+IEH68mtNbRzfxwU9Y/6XGBwwRKNf+d2YQeAQ/eEx/uK4xqnwKWCyAZnqtwb0pjaH87rj+xH X-Received: by 2002:a50:cac7:0:b0:565:ebf2:a257 with SMTP id f7-20020a50cac7000000b00565ebf2a257mr11587487edi.19.1709755476861; Wed, 06 Mar 2024 12:04:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709755476; cv=pass; d=google.com; s=arc-20160816; b=HJord6PuR08XdZOwITN8TgLl6CNwqQhoNS0GBLqfAEQsovTLuYJsQWhUdOtcB8Rl6Z W9qE+c1gHT/Icsunc8e8adBu7T6UdDary7L0Wgej8hPexGy5wNfx9dn6nhqtea2u1Dc7 m7DbYZ4mV+EZybp0odcbW6va0/3jocpeCKNx0kpamUcbdiWPPEhAzlHAwi/t6q0BYcou fK6igbtRRDniB/MHczj8sKeToR5wCWKeS9eJ51rCBt3D9jNYBp3wjvBhpUqSe8/gr+/K lt6OCn+oCAHtMgIRTT76gGJnQ/Uia5TJEXxIVjE0JGl3vPO3O++i6Dt9TXtsjfE8mvRs SK/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=EePdvzrLC5NUzIbkbhl/VB3dNpTty5w7Ow6A0JWOasQ=; fh=4CsK72aiJy+h/EShV5QBE7/0hoTm6C2hvI6ysn6ZfMM=; b=aPJ21NKpG+7Sb8RputWcCZsQSGcsFvpTC2/gI6sCwp8IsNCBjgWk7Uj5UPqMQz7WMj 7N/yljWo2eGTFwsb6EDbHhSO1MBsVdiobMjc7yZC6FMfpU1uWU0w6oJdRTO4YDScr9gd GXgqCewPPpp5SxW443NzujMiOeCFaVeD+SR7bYiBJbirJyp2x551FvAUIo0s+yfU23E9 5+gyzZzsBB8SCxTP3oh35knwlFPhwmK1+PuijSUSSgxRpFitazEoTe35b4++ZtXKZbSU EKaZu2tB+MnlRlPhpq8x8QnzNA76grHXXpHp6baIBo+OTXoeN4GAQXUFfA8SNh2txqVK Oo7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=KBUssgDW; arc=pass (i=1 spf=pass spfdomain=riseup.net dkim=pass dkdomain=riseup.net dmarc=pass fromdomain=riseup.net); spf=pass (google.com: domain of linux-kernel+bounces-94525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k11-20020a508acb000000b00564432b527dsi6434262edk.551.2024.03.06.12.04.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 12:04:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=KBUssgDW; arc=pass (i=1 spf=pass spfdomain=riseup.net dkim=pass dkdomain=riseup.net dmarc=pass fromdomain=riseup.net); spf=pass (google.com: domain of linux-kernel+bounces-94525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 936F51F239C2 for ; Wed, 6 Mar 2024 20:04:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE435142916; Wed, 6 Mar 2024 20:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=riseup.net header.i=@riseup.net header.b="KBUssgDW" Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFDF1142906 for ; Wed, 6 Mar 2024 20:03:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.252.153.129 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709755433; cv=none; b=umStkdhyUxojdqY0rRLJRw1AorJtK9dwJ9HsfZz70tE+Uo8+iCOgpr+1T9liCcZ/g4JagVoUrvwbAKZBIOvAoaGNiUL2iGq3zN0hxWgw59wDjYZAtRj3fZCNAzWCP8pRKdfbyC1Zm5nAg1mkgd6S23rYdMNaWlohCHxxVAq2xi4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709755433; c=relaxed/simple; bh=59X3+X8y6CRkn1d/16QLRYbU3Gb1zh88V0W6zGldVwE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ibC1FYk0hjP2hGPF+h73v8/GnO80k+SsScrC1rOB3Mkmi/Krue2NxNZOltHqqtycTLLMaUYKKp0D5ucg0trkr8lQIF2tOYjZCe4gb/oSyumKuzdSSd+qbgXUZC3vRos/NawoVO/kARgL0Pkp9hpu/57nEbL+O9/tQCWuRsDib20= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riseup.net; spf=pass smtp.mailfrom=riseup.net; dkim=pass (1024-bit key) header.d=riseup.net header.i=@riseup.net header.b=KBUssgDW; arc=none smtp.client-ip=198.252.153.129 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riseup.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riseup.net Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4Tqk063sk5zDqKS; Wed, 6 Mar 2024 20:03:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1709755431; bh=59X3+X8y6CRkn1d/16QLRYbU3Gb1zh88V0W6zGldVwE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=KBUssgDWvwO9q+Gyw3HMYjgIM0oUz4Z4asd7o11r9o4zGCFdblqryU2gx7x8V81z2 kOpIk+hRxkw7eCFKbyMVZNdx8Gh1VR2BuUxu0yi2kgu69UCAAUH68c/n13pYgyxF4T DcnFyDwhSPa4wEalA6KhGslmAeaYJnK3jpRmsi0w= X-Riseup-User-ID: 6CED4191914E2568ECF5ECDD7B8DA489F5CCA88F9C04B501EB2B99EDD3282301 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Tqk014150zFvsZ; Wed, 6 Mar 2024 20:03:45 +0000 (UTC) From: Arthur Grillo Date: Wed, 06 Mar 2024 17:03:11 -0300 Subject: [PATCH 4/7] drm/vkms: Fix compilation issues Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240306-louis-vkms-conv-v1-4-5bfe7d129fdd@riseup.net> References: <20240306-louis-vkms-conv-v1-0-5bfe7d129fdd@riseup.net> In-Reply-To: <20240306-louis-vkms-conv-v1-0-5bfe7d129fdd@riseup.net> To: Rodrigo Siqueira , Melissa Wen , =?utf-8?q?Ma=C3=ADra_Canal?= , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , arthurgrillo@riseup.net, Jonathan Corbet , pekka.paalanen@haloniitty.fi, Louis Chauvet Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, jeremie.dautheribes@bootlin.com, miquel.raynal@bootlin.com, thomas.petazzoni@bootlin.com, seanpaul@google.com, marcheu@google.com, nicolejadeyee@google.com Signed-off-by: Arthur Grillo --- drivers/gpu/drm/vkms/tests/vkms_format_test.c | 2 +- drivers/gpu/drm/vkms/vkms_drv.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vkms/tests/vkms_format_test.c b/drivers/gpu/drm/vkms/tests/vkms_format_test.c index 4636b013602f..3522ecee960f 100644 --- a/drivers/gpu/drm/vkms/tests/vkms_format_test.c +++ b/drivers/gpu/drm/vkms/tests/vkms_format_test.c @@ -113,7 +113,7 @@ static void vkms_format_test_yuv_u8_to_argb_u16(struct kunit *test) for (size_t i = 0; i < param->n_colors; i++) { const struct format_pair *color = ¶m->colors[i]; - const struct conversion_matrix *matrix = get_conversion_matrix_to_argb_u16 + struct conversion_matrix *matrix = get_conversion_matrix_to_argb_u16 (DRM_FORMAT_NV12, param->encoding, param->range); argb = argb_u16_from_yuv888(color->yuv.y, color->yuv.u, color->yuv.v, matrix); diff --git a/drivers/gpu/drm/vkms/vkms_drv.h b/drivers/gpu/drm/vkms/vkms_drv.h index 393b76e7c694..3d62578499ab 100644 --- a/drivers/gpu/drm/vkms/vkms_drv.h +++ b/drivers/gpu/drm/vkms/vkms_drv.h @@ -47,6 +47,10 @@ struct pixel_argb_u16 { u16 a, r, g, b; }; +struct pixel_yuv_u8 { + u8 y, u, v; +}; + struct line_buffer { size_t n_pixels; struct pixel_argb_u16 *pixels; -- 2.43.0