Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1060421yba; Thu, 4 Apr 2019 03:29:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjRUkgPp3mcM6zJBCYdGw8ruESx35b9UmYdd0PRMUV0/XksjUXGJ01CN64/vyYGC56GyFC X-Received: by 2002:a63:e845:: with SMTP id a5mr5194142pgk.246.1554373774514; Thu, 04 Apr 2019 03:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554373774; cv=none; d=google.com; s=arc-20160816; b=rF0kzmHFDfpVGUFdVt0AgIWfNZ14lYJdLF8k1h8y34Lc5hHR6ITQWwdmVz0WQ3WgW9 yLcOx2dMQRv5V6FBMX9ZaEzFZkZRqhu5ijBo3mMkzP9YgFE0DpBIGwk2joOGuVLcpG0q 9NrYqnfTNzefNLsbBSPDUt9WWoEr7BW7mSNiKKFYsET7dMSolUV9ucLCZqFNekuRamDo rkkV6FJQgETAH/VYW41KVpYz29j1LMUPSrJmXstk9vlHzlhYv40aOay9Zh/iGtQ47bGF Hb3TFcvD2Ts/1RCTwTSrY2PvWivBkXv9OmEzx/Xm70tdwEyGQ3MiZdDyahR0mVY+FF9W tirQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fXYRyKCsIOk4VjuCDoT2pyg6BbbJTPoPHVkFMuBU9Yw=; b=LoHnIsSz3ZvVEv1Zzu5Jk0FmhckioFzdQXcf12ti29kShQmf/S8GEKfp16i6igdJvr yZLp41758N+Iy9Vc05hjiFamMM1YHJTZ3Akiry4yrlHn9IdQcN5+IgbaDjAqftVvwenJ Li+ZJt16R7fReCMH7+f4b0o92bSAHWsIMCrDUmhQNqso7TbdxM0eEiPa8t9Jnz0ccRBl EP3K+QOt02Fgv1eiK1lkCQuRmz692VO2/k5ZLnHhluj0dt7WGzEw3QdZxwiR5d4t3piS EixjO8k/DWrv7LD4ZMzTWY0Cd9bvhubuQ3mlkp09skzb+DelCIxZssg0b9ajlsjBtyRM Nf3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g136si16774996pfb.29.2019.04.04.03.29.19; Thu, 04 Apr 2019 03:29:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729491AbfDDK11 (ORCPT + 99 others); Thu, 4 Apr 2019 06:27:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50150 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727310AbfDDK1X (ORCPT ); Thu, 4 Apr 2019 06:27:23 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7945B20264; Thu, 4 Apr 2019 10:27:23 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-22.ams2.redhat.com [10.36.116.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1F19B62669; Thu, 4 Apr 2019 10:27:23 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 4EA2B16E31; Thu, 4 Apr 2019 12:27:22 +0200 (CEST) Date: Thu, 4 Apr 2019 12:27:22 +0200 From: Gerd Hoffmann To: Noralf =?utf-8?Q?Tr=C3=B8nnes?= Cc: Daniel Vetter , David Airlie , David Airlie , open list , dri-devel , "open list:DRM DRIVER FOR QEMU'S CIRRUS DEVICE" Subject: Re: [PATCH] drm/cirrus: rewrite and modernize driver. Message-ID: <20190404102722.w6c7aoxzcrhn5xhi@sirius.home.kraxel.org> References: <20190403072318.31507-1-kraxel@redhat.com> <20190404055056.ddc2bdgjbgjj7tby@sirius.home.kraxel.org> <20190404083034.f7vrvukzqx5v7qju@sirius.home.kraxel.org> <2866e37e-8563-1f1e-8f16-1119f70d52e1@tronnes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2866e37e-8563-1f1e-8f16-1119f70d52e1@tronnes.org> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 04 Apr 2019 10:27:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > tinydrm_xrgb8888_to_* > > > > imo these could be put into some drm_format_helpers.c to be shared. > > I agree, my long term goal is to get rid of tinydrm.ko. Just haven't got > there yet. > > Gerd, if you end up using some of those functions, feel free to move > just those you need and I can do the rest later. But if you have time to > spare I wouldn't mind getting all of them moved ;-) For now I just promoted cirrus to be a tinydrm driver ;) Noticed that those helpers (including tinydrm_memcpy for the non-converting case) apply clipping on the source but not on the destination. So, for fullscreen updates that works ok, but for updating sub-rectangles it doesn't ... So I guess I have to add a dest_clip bool parameter when moving them. /me looks for a good place. drm_fb_helpers.c I think. cheers, Gerd