Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1043405yba; Thu, 4 Apr 2019 03:07:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcwnPf53dFXvkYB8PDEATg8ejW+JBvPc9kI5hsfnWJZQ3bEofAAfnIhN/QpJgvy0SzV/Rx X-Received: by 2002:a17:902:8c97:: with SMTP id t23mr5468721plo.110.1554372431928; Thu, 04 Apr 2019 03:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554372431; cv=none; d=google.com; s=arc-20160816; b=hOQCtJHs2Vm4spoa0HRlucrRPAMU6HLqNImOQ31tU80EBYgqMHsJNVFZjnBe2hXkCg hbzEUvr7716KBk+cyEnMddqqANG/2XnOt7KOjg5a8OQ73JYj6iaPjJQFn6HEhg1qPAqm Sz+0T17mCC+J37rM4u2uyAP5fMywkeMYTYYQ65nby4epoXjj38lNAjpC+khAPl+H1CVD sfb7mJ8JkNn3sDk5HV0E8qTGMW6EGrGXbmYjyDvOISX+gSkDiU1qGLGHJ2A2s97Mw5oo +SNsDtpMEYozkKP49ILfWS1sN3BtuXGuf6N+QGMhWygxLORUCA+PtdqtZ3XFSAd4LMQH VpQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature; bh=oMxen7sXc1WBJneb2cacQ9YGw31pOzasd22fxQJIahU=; b=v7LxdcRHpKIjF25Ry/y7M7kNkJrRSCw8sa7FP/AGaXLjv07Wfisc5tkDiaE35MzG1J iF5AiTAyFsGZXHMH0ChSLeyG74OnyJDEzKLHMi/VC0A4ZImtUcw+5FTX1n/NAHWMTvPm VHT8qA+UGnYod2P+oHHAPaUdGiASdceMys9CEKzqM9zLgM0Z0Ri0yFoApzcNL8vPZr9X YMOAXxMybj2KgjWlaekB/dk6Ndn4m4X4gG0QUSdUeo3lUGOH9gL7EK4vwGjxsVNULpii UqR82rSw3RgcLqONQBj56sIZvt1EpHaB2ZM8cRPudDdbHzUJ5HYAaeVQcARl5gM07NIn hCeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tronnes.org header.s=ds201810 header.b=XRsYxes9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si8175286plr.110.2019.04.04.03.06.56; Thu, 04 Apr 2019 03:07:11 -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; dkim=pass header.i=@tronnes.org header.s=ds201810 header.b=XRsYxes9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728671AbfDDKGQ (ORCPT + 99 others); Thu, 4 Apr 2019 06:06:16 -0400 Received: from smtp.domeneshop.no ([194.63.252.55]:48639 "EHLO smtp.domeneshop.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727053AbfDDKGP (ORCPT ); Thu, 4 Apr 2019 06:06:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org; s=ds201810; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=oMxen7sXc1WBJneb2cacQ9YGw31pOzasd22fxQJIahU=; b=XRsYxes9lzGFsGSr+l9u3eiNy6QYuKDHDMwQw/XUX4kzx+B/aUZF9RcQwuFjqo87DfOoYD99YUNTtazTI1ZfvZyFFVSRorNseeNzV072D+JuD0el/s/s2CQrwDlITJay7fH1dVJqGgRGZw3UyUyuHLrf49eCGemjZj2zBZgXkYFW8xpEJP4LC8rScDBBs4t/GrwD6ZHa2ctbADfFw3ioQjixBGCSJKVM+MCs6X/wKIwtqKf5ohCXGgZQWEwJX0vFkDGu9RNY4Zr9QEx3/knKo2GsCtQBNlDbQm//Gq8r1urgdUkebeMrBgA5h+9I3JPjxqeUtOzYaHJIz4J7Hw8mmA==; Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:61712 helo=[192.168.10.179]) by smtp.domeneshop.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1hBzG8-0007Vh-V9; Thu, 04 Apr 2019 12:06:12 +0200 Subject: Re: [PATCH] drm/cirrus: rewrite and modernize driver. To: Daniel Vetter , Gerd Hoffmann Cc: David Airlie , David Airlie , open list , dri-devel , "open list:DRM DRIVER FOR QEMU'S CIRRUS DEVICE" References: <20190403072318.31507-1-kraxel@redhat.com> <20190404055056.ddc2bdgjbgjj7tby@sirius.home.kraxel.org> <20190404083034.f7vrvukzqx5v7qju@sirius.home.kraxel.org> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Message-ID: <2866e37e-8563-1f1e-8f16-1119f70d52e1@tronnes.org> Date: Thu, 4 Apr 2019 12:06:10 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 04.04.2019 10.52, skrev Daniel Vetter: > On Thu, Apr 4, 2019 at 10:30 AM Gerd Hoffmann wrote: >> >> Hi, >> >>>> Speaking of wayland: Seems at least gnome-shell insists on using XR24. >>> >>> Yeah XR24 is pretty much mandatory. Noralf added a few helpers to >>> convert XR24 to other formats, for display not supporting anything >>> else. Because userspace. >> >> Have a pointer to these helpers? grepping around in drm didn't turn up >> anything so far ... > > 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 ;-) Noralf. > From a quick look the xrgb8888_to_rgb888 is missing, but for a quick > hack you can just use rgb565 to get going. > -Daniel >