Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp660509rdg; Wed, 11 Oct 2023 01:38:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXf1kuEt2TEXOxiVnmYIcgB9xpnx6cZ/ISxP4V2eqtpp6XXk5iixiatuTcgR5KpCKeiI3u X-Received: by 2002:a05:6358:279e:b0:134:e458:688d with SMTP id l30-20020a056358279e00b00134e458688dmr17814378rwb.15.1697013503924; Wed, 11 Oct 2023 01:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697013503; cv=none; d=google.com; s=arc-20160816; b=DgfmDrxaU8BnJgoUZhmpp4L1kGIXH5nllmJ9Myopd29BIbxeXHIB1Rr6orgsMqjbDA 1tIhLLBPW/5B+VDDjFMJJo4ZPtTwCWMe8xoHGu9ageP7kPPPnT8hQIbH2HEbV2xowczi R645rGcTwX2CjvDwnATmj23EhqKHe4WCYuuMZkNnkhudxlXcGI6YNI/hQUBQE0sC02Ry FaEbMilhr6Jbz3nYLw1/P8pujxIR11NhyWA1TbX9ErHCqsL9vhGnQkvGE/igc2EAtaPr 7E8A24IRM+t/1LQlIA279S95Abs5XAObc/T3jElRHw3yvzALN22JLEB2E4cmQVhqWyFQ EiYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=E7J164Jv856pwHwwnBhSJ7e6PzthL3kRqEqL41tQ+DM=; fh=WCLl/0OP2znUT5nQ+L2Y+VfsP2QrcJjkWbcfgeEn9Vw=; b=JTNoOYoX3J6Xf9E7V0p8HFNUb9bY58NmpPn4aLa0iSKg54pOiGtPQK3y9/VKDbDIUw SWRwz0N1YBW35T0nVhPS4wo8IwIuWIrFs/ZtElnSaTKnpSnxEXMgsVQNz8oOv66WacAN GPUaYmb7KIG2WiM3t21lsgPY1Rg36ThIZqKBXGz4If5EYgAgwXk8jpehqHQj9sr8KhYp P15sw/y0RUjR7bjjC87qkdoRQ7OB+OClTnhPb5l3ozFy/lvGFLWIcBqSq2GYqFRf5XX3 fYvcOR+uE9JwdEB+l8aIsunPAYKtFsYTWxI3npGeQdJSTFfzXV3dwm+Kjnr3Lo822Lu3 fEYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KxZiU2QW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id x33-20020a634a21000000b0056fbf327dd5si13493690pga.131.2023.10.11.01.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:38:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KxZiU2QW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9DECF801B822; Wed, 11 Oct 2023 01:38:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230461AbjJKIiI (ORCPT + 99 others); Wed, 11 Oct 2023 04:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbjJKIiH (ORCPT ); Wed, 11 Oct 2023 04:38:07 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F32193 for ; Wed, 11 Oct 2023 01:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697013439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E7J164Jv856pwHwwnBhSJ7e6PzthL3kRqEqL41tQ+DM=; b=KxZiU2QW8Vpc4StTiYYPtcspNTQhJeW+XnRg9iZqt3VqQ+uqap6QpzLwUQNoYIb3GTgRt2 gXjN3spsyIE71K9W1hMbyqsW0TywjPhW//XSYPWLESvC7+7Hos4VzRhX+nfLfbiL2QQd1Q K1FC76OK2Q7yP4vYMPwQyIP+RjuMC2A= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-1-llKCFs0TPlebHCUyFElKyw-1; Wed, 11 Oct 2023 04:37:03 -0400 X-MC-Unique: llKCFs0TPlebHCUyFElKyw-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-4074f9d17a5so18173665e9.1 for ; Wed, 11 Oct 2023 01:37:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697013422; x=1697618222; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E7J164Jv856pwHwwnBhSJ7e6PzthL3kRqEqL41tQ+DM=; b=XOJcIH5b4QLR9FXQ3Dsh8DMD/qP6NpnBrFU59tWAxor78XF/khEbhf/DeaG7aUa+ej 7l1Z9tDGK2MV39m+NTSA3TExUwJDg8r2MD6Pdzhuo7EVuKVe2iWoJRTbPg7Sncq8oZE4 JmtVIzWbD2bmnSIPHYvLKEH7s/v2ojtERlmdHbfBjf5tBo8FcE9IHQfL9lO+hwwE9j02 Hk7fPFY5V/COqokHS5qqou1zIzBXbvMZEK1COYUaWMWaWg946kc8wkVOLzkzMTh6V4g/ 7zvHEpQhIKyhRcBB4dtkmKNJaD3IREgXiV5JyGlE3vhc78ORUQT2GtcduV3Yy/v/UO5z D+tw== X-Gm-Message-State: AOJu0YySZt0GkGqUR/nDpn3dXQSHBZwRq/mOFT+Qz48lpgw1fyjBAcf1 49oF4OIib8XpAIjQIeja3EfJwzWm2f7yCYRIMHJ4MBKlIY/hHZdRwJX0erhVpNuiY8cUUmt56OM 1xFvvavl5NCHY4GgRDJ8rGrk5 X-Received: by 2002:a5d:6549:0:b0:319:6caa:ada2 with SMTP id z9-20020a5d6549000000b003196caaada2mr17296327wrv.47.1697013422249; Wed, 11 Oct 2023 01:37:02 -0700 (PDT) X-Received: by 2002:a5d:6549:0:b0:319:6caa:ada2 with SMTP id z9-20020a5d6549000000b003196caaada2mr17296309wrv.47.1697013421899; Wed, 11 Oct 2023 01:37:01 -0700 (PDT) Received: from localhost ([185.124.31.160]) by smtp.gmail.com with ESMTPSA id j13-20020adfe50d000000b003196b1bb528sm14727110wrm.64.2023.10.11.01.37.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:37:01 -0700 (PDT) From: Javier Martinez Canillas To: Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, Maxime Ripard , Thomas Zimmermann , Daniel Vetter , David Airlie , Maarten Lankhorst , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 4/8] drm/ssd13xx: Use drm_format_info_min_pitch() to calculate the dest_pitch In-Reply-To: References: <20231009183522.543918-1-javierm@redhat.com> <20231009183522.543918-5-javierm@redhat.com> Date: Wed, 11 Oct 2023 10:37:00 +0200 Message-ID: <87mswpsggj.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:38:21 -0700 (PDT) X-Spam-Level: ** Geert Uytterhoeven writes: > Hi Javier, > > On Mon, Oct 9, 2023 at 8:36=E2=80=AFPM Javier Martinez Canillas > wrote: >> Don't assume bpp of 1 and instead compute the destination pitch using the >> intermediate buffer pixel format info when doing a format conversion. >> >> Signed-off-by: Javier Martinez Canillas > > Thanks for your patch! > >> --- a/drivers/gpu/drm/solomon/ssd13xx.c >> +++ b/drivers/gpu/drm/solomon/ssd13xx.c >> @@ -148,6 +148,8 @@ struct ssd13xx_plane_state { >> struct drm_shadow_plane_state base; >> /* Intermediate buffer to convert pixels from XRGB8888 to HW for= mat */ >> u8 *buffer; >> + /* Pixel format info for the intermediate buffer */ >> + const struct drm_format_info *fi; > > This is really intermediate, as it is removed again in the next patch :-) > > In fact 60% of this patch is changed again in the next patch. > So perhaps combine this with the next patch? > I actually had it like that but then thought that maybe someone would say that should be a separate patch :) I will squash it then. > Gr{oetje,eeting}s, > --=20 Best regards, Javier Martinez Canillas Core Platforms Red Hat