From patchwork Wed Jul 10 01:52:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 11037701 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 56C6513A4 for ; Wed, 10 Jul 2019 01:52:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48CDD288A9 for ; Wed, 10 Jul 2019 01:52:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C97D28900; Wed, 10 Jul 2019 01:52:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E4239288A9 for ; Wed, 10 Jul 2019 01:52:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 607AC89590; Wed, 10 Jul 2019 01:52:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9F94B89590 for ; Wed, 10 Jul 2019 01:52:10 +0000 (UTC) Received: by mail-qk1-x742.google.com with SMTP id d15so694968qkl.4 for ; Tue, 09 Jul 2019 18:52:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=/vJaT+pqGNNv8eMpv9fAaGOGmsc6Sqo+aqF8frZ6VU4=; b=QKu4Yp2BQBqdGL+r1CUp9gCGd9HKi7ms8JxDH3dfJSD09Iii0ugAPW9A/xEYaqkN02 uONb0vr8Vq5P3+Kkj+Rgf4ns32laStRny8b6MLZexEARH4RQOd2rXt1YOP06Vv7+Hio7 3Fwb8CGuPdrBjl1lDUaFbw/Z7R3S969TWJId7TY4nZuScGbH9OkHNrzqRAyGaLcXQoZv imYeP1X7RPFMh/N+NuLLoyQtacJngv6nWc3Tzr2fQHGlQkvThOtjtbhtwa92T70o/cNb 8ZNalAbbIkF9zl5RB/MrAKkb2saYwiWgj2JnAVaZSwIY36trxUjN/szlQ6PWHqMTJWwx qhXg== X-Gm-Message-State: APjAAAX7ZiceFclcBSCvM5V5//VFfti+Abyl/rbgc7XWkgX7znI3cCBh 8iAeaAcBOhJGXk+24mLBEy0= X-Google-Smtp-Source: APXvYqzjNiMJsDIb05GsaQaXWWCIkmVWa2PyK/6tCX9e2QA8jGN+nQ7bs1D9eeOKrISYN1nQyceSwA== X-Received: by 2002:a37:9506:: with SMTP id x6mr21748901qkd.107.1562723529657; Tue, 09 Jul 2019 18:52:09 -0700 (PDT) Received: from smtp.gmail.com ([187.121.151.22]) by smtp.gmail.com with ESMTPSA id y16sm385418qkf.93.2019.07.09.18.52.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 18:52:09 -0700 (PDT) Date: Tue, 9 Jul 2019 22:52:02 -0300 From: Rodrigo Siqueira To: Daniel Vetter , Haneen Mohammed , David Airlie , Simon Ser , Oleg Vasilev , Mamta Shukla , Harry Wentland Subject: [PATCH 0/2] drm/vkms: Use alpha value for blending Message-ID: MIME-Version: 1.0 User-Agent: NeoMutt/20180716 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=/vJaT+pqGNNv8eMpv9fAaGOGmsc6Sqo+aqF8frZ6VU4=; b=EOI7rPcvGy/A6BcL9HiADyvraniOSlO+5sCUSl/uIvTRJhpbgfLfd3m19LO1ovXVTM AHWQJbQD/ZMI6HA0Kn80unoTcoA6SgNGRgjbSA2omtQkdG5Aud66/RfOygTCIU8Wi31+ 5ZB0du45nRhBRU8N21nvVcmBmkAYUeKPobUFHwJn9JzdTykK0EI3IUyaFEZolNP9ggjW jlOmYhhOJJ0ZE3d0+lF5d9/IdyaeIattRgY6SeHwAg6SatLYULev9sHYtum8iGOiSePx K9yDYElmtREqM2UkXyOQZs78lwbzwTAFSHV3YyiwImrZWR+9Blkh7Dedla8hNQxHp7vH +a6Q== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The first patch of this series reworks part of the blend function to improve the readability and also for preparing it for using alpha value. The second patch updates the blend function for applying alpha value for a fully transparent blend. After applying this patchset, pipe-a-cursor-alpha-transparent in kms_cursor_crc start to pass. This patchset depends on: https://patchwork.freedesktop.org/series/61738/ Rodrigo Siqueira (2): drm/vkms: Rework blend function drm/vkms: Use alpha channel for blending cursor with primary drivers/gpu/drm/vkms/vkms_composer.c | 54 ++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 15 deletions(-)