Received: by 10.192.165.148 with SMTP id m20csp390310imm; Fri, 20 Apr 2018 00:33:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx481APGPIYrSuA4vFKscdE8i/sfEYB0XSsv/cPR09+yuGrLoLrxQVcpC94Bys2ITssxedWjI X-Received: by 10.99.51.137 with SMTP id z131mr7693315pgz.386.1524209627595; Fri, 20 Apr 2018 00:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524209627; cv=none; d=google.com; s=arc-20160816; b=A6+QYDYpxklDxVU8iHIJzb8q55rZT0z5awy37U67CTxlu0O6wJrr3+NBsxLET+s8NQ 53jMITwhDjCX4g8uedXYsYyb80+BIoJ1JLee3fzOTRwEr8SXzyOjVTh9Cd+KVupvAiFN IllCvLVkLrbFhyyR65c66Hl/Fs3P3Ema6K6jlaxT/NFzWOLSzNWJRtbYwCMHfaI61XrR xsbcNj8eaRRMRPnszJz/cuaV4sSaC/CoCC+BW5TXpBAqNSDQtOApz3enaNQNiYVDs9QP GqdnQWcs2iIt0bi4pavZMJc5MiobfdHX5RjvDOI52N1RiY4W6IjAa+Z5jhuhk5ocmyuR gQ3Q== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=9DAHw+khZV7Bx8yEgjLd6SvJPWR57q929r+wwt0WnZg=; b=Q67MzjzNiU2D+5NkLaFSerCt777LhxS0XM+sf4VoezXMCdZA7FjKmny3iiXOS+HWyE 71NhSo2mZFn/UFmp/+CLNrvcBkbsyJl09AzhQUWTHW6TzTgIdmXI9EOYEsMk7pZYHZ/O lyThbOFgtFNcSCB9BsIWydZcXr5L9qVp8OpiN49ZaBM4lAH7Wq7MXdrZsMTVgwjrMQ8i WNrTrVHOq6qIP/y+b6g5Yf0+qcrcwumkR8v/CMESZeyPKI5u3+mzaFrm49Rn5G9HVkgX 7otsssGubpGQwPT5zBfy8XYxPSYVlCCbyUImAftIL8VUCQoJXixvD9IAACfxMDLSO7Bk H1DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=PUzK4qx1; 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 x124si4518890pgb.651.2018.04.20.00.33.33; Fri, 20 Apr 2018 00:33:47 -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=fail header.i=@ffwll.ch header.s=google header.b=PUzK4qx1; 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 S1754014AbeDTHb0 (ORCPT + 99 others); Fri, 20 Apr 2018 03:31:26 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:44604 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753765AbeDTHbY (ORCPT ); Fri, 20 Apr 2018 03:31:24 -0400 Received: by mail-wr0-f193.google.com with SMTP id o15-v6so20226244wro.11 for ; Fri, 20 Apr 2018 00:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=9DAHw+khZV7Bx8yEgjLd6SvJPWR57q929r+wwt0WnZg=; b=PUzK4qx1jHIm2OnKX9hGNukdnfrQQz4ERkxZEpJca9iLXMGF+TNiphhqyqOfoGUvwv 0Z9h7I8dMxrp6m03Uwkqq7O0UQ0gXRU3CkM3RZzkt1OkhLBRx8Vtmv9JVgrvPiZiWhpG 9VoB/BVJthFpsvyCaaJHY2cDZbkE/poPEmHE4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=9DAHw+khZV7Bx8yEgjLd6SvJPWR57q929r+wwt0WnZg=; b=hQLTmaConUuDIAxyTqh6jWDYLHyIHQJfsTh3TigROiCXHig3orj4EQ1JlVCiqIMLKH tCxEk/EIpFgjJuivV6kMy/s13Mp6pNFn127Te/7lPXlE8a4D3Eh4zFBvpXJqDfRXrMHk XRKhvvLJ2b4+5+6v6Q4bSnwQx6TMVdSeSUWc9Tt1QnXPIwXippG2Vfum0mzqa6kfjQtn XdNzoEQbJR0R1xPXESWjnoLzqeR0SFiK8oCnm7AN1YDr3XwtFHZ1dAGIX9IDt4WcFP04 Vwi9kmSvEMhwgnLaPVz0qFeevWVLNIREa6cEHk0PT6kOKE/MVUPDrkebjEoGG4OcT7R4 hwow== X-Gm-Message-State: ALQs6tBUaAiL5sBk6O+grUDP/gL0HIxMT/QVmJC3h0BhqqbAJK3CK2uU h/ANEv2cMAFdXyUBMnJOK8EOzw== X-Received: by 10.80.135.14 with SMTP id i14mr9224196edb.86.1524209482565; Fri, 20 Apr 2018 00:31:22 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5635:0:39d2:f87e:2033:9f6]) by smtp.gmail.com with ESMTPSA id b7sm3922120eda.18.2018.04.20.00.31.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Apr 2018 00:31:21 -0700 (PDT) Date: Fri, 20 Apr 2018 09:31:19 +0200 From: Daniel Vetter To: Dmitry Osipenko Cc: Thierry Reding , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v1 3/4] drm/tegra: plane: Add custom colorkey properties for older Tegra's Message-ID: <20180420073119.GJ31310@phenom.ffwll.local> Mail-Followup-To: Dmitry Osipenko , Thierry Reding , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20180417090040.GY31310@phenom.ffwll.local> <6ff89658-28e4-fa9f-173d-4e9a885a7962@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6ff89658-28e4-fa9f-173d-4e9a885a7962@gmail.com> X-Operating-System: Linux phenom 4.15.0-1-amd64 User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2018 at 08:08:27PM +0300, Dmitry Osipenko wrote: > On 17.04.2018 12:00, Daniel Vetter wrote: > > On Mon, Apr 16, 2018 at 03:16:27PM +0300, Dmitry Osipenko wrote: > >> Colorkey'ing allows to draw on top of overlapping planes, like for example > >> on top of a video plane. Older Tegra's have a limited colorkey'ing > >> capability such that blending features are reduced when colorkey'ing is > >> enabled. In particular dependent weighting isn't possible, meaning that > >> cursors plane can't be displayed properly. In most cases it is more useful > >> to display content on top of video overlay, sacrificing mouse cursor > >> in the area of three planes intersection with colorkey mismatch. This > >> patch adds a custom colorkey properties to primary plane and CRTC's of > >> older Tegra's, allowing userspace like Opentegra Xorg driver to implement > >> colorkey support for XVideo extension. > >> > >> Signed-off-by: Dmitry Osipenko > > > > Since this is your own uapi, where's the userspace per > > > > https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html#open-source-userspace-requirements > > Userspace patches for colorkey and CSC utilization are in my personal github > repos for now [0][1]. The longterm plan is to get Opentegra driver / libdrm bits > of [2] to repos on freedesktop.org, which should be considered as upstream. We > have everything depending on libdrm-tegra and it is currently on hold because of > upcoming massive rework of Tegra DRM UAPI with further de-staging of jobs > submission UAPI, that reworking should start with 4.18 kernel. > > For now I wanted to get initial input on the patches. Once everyone is in > agreement, I'd like to have colorkey / CSC supported by the upstream DRM driver, > so that at least grate-driver projects could utilize them right now. > > > And why wo we need a tegra-private colorkey property here? I thought > > other's have been discussing this in the context of other drivers. > > At least older Tegra's have limitations in regards to colorkey, like planes > blending capabilities are reduced a lot when colorkey'ing is enabled. I'm not > sure whether we'd want to have it as a generic property, because generic > userspace should be aware of those limitations, otherwise there is a good chance > to get undesirable result using colorkey. Though I'm not really sure how widely > colorkey property could be utilize by userspace and what kind of applications > that userspace could have for it, maybe having colorkey as a generic property > would be good enough after all. > > I've looked up the DRI ML archive and seems the most recent colorkey-related > patches are [3]. These patches are a bit odd to me because by generic property I > assume a property that is HW-agnostic and the patchset does opposite to it. > Maybe I'm misunderstanding what is meant by 'generic' property then? Anyway I've > applied [3] and made Tegra to use that generic property, it works fine. I'll be > happy to switch to a generic property if we'll consider that it is a viable way. > > [0] https://github.com/digetx/xf86-video-opentegra/commits/ckey > [1] https://github.com/digetx/libvdpau-tegra/commits/ckey > [2] https://github.com/grate-driver > [3] https://patchwork.kernel.org/patch/10117593/ Yes that's the patches I meant, thanks for surfacing them. Please work together with Laurent, Maxime and Boris on this (jump on that thread and Cc them on your own patches for the next round). And pls also work together on a common userspace for this. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch