From patchwork Thu Sep 6 05:16:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haneen Mohammed X-Patchwork-Id: 10590119 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 513F613BB for ; Thu, 6 Sep 2018 09:10:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37B152A2F1 for ; Thu, 6 Sep 2018 09:10:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C3DA2A2FE; Thu, 6 Sep 2018 09:10:10 +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 C5E322A2F1 for ; Thu, 6 Sep 2018 09:10:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D00336E61B; Thu, 6 Sep 2018 09:10:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt0-x244.google.com (mail-qt0-x244.google.com [IPv6:2607:f8b0:400d:c0d::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id DFDD06E03D for ; Thu, 6 Sep 2018 05:16:09 +0000 (UTC) Received: by mail-qt0-x244.google.com with SMTP id t5-v6so10930006qtn.3 for ; Wed, 05 Sep 2018 22:16:09 -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=wtpDUA2mlqyL86tyBepLdWHmPHDgFrmWgugYc6DaB94=; b=nIheu/6kT7AeeevS/G3+earvoLHkZQjdx/ZjjBobh6Xhff7RtFbePs1WVvV02lPWyS Z/l8eJECT30xVwo3oSYAfeglnc8XSDKeFW+KLBzaP1Z+rtKQwP1ew2XDFnwtL7CXS22f n9CaEmBb6w04g9zhiQ8wvXk1lB74aN+1v7IOgfqRPh/fKdmcnh9bflLrRYUJZ2kYDl/4 n4yk0Q3V+jKrTWU2tfTsnjhYPyZ59mcc9Ta9L2QqebxOTvSgTnEwqOJQH6Ru9mnQXDFR Wg3iCqbYosY/DiJe+F1XVtrVp/YFwU/2yG/auCQaz1xiUvjXSNe/J1KYAzVs2enHgJFP X7HA== X-Gm-Message-State: APzg51DJaUW4VsHl7UdyTeVbnsczehF4dyr8DS9ApPwau+cRJk7vxBpq cGHd6rkVZs8ZaEfIj60Dw1SvgKJB X-Google-Smtp-Source: ANB0Vda99fBDEpcXXSiODUSLa4M4aJiwJObBroTpp4gazKfq4Dh33OxXQ23+Fwwdj+FHndibqKbr8w== X-Received: by 2002:ac8:11b:: with SMTP id e27-v6mr703047qtg.221.1536210968779; Wed, 05 Sep 2018 22:16:08 -0700 (PDT) Received: from haneenDRM (dyn-160-39-42-212.dyn.columbia.edu. [160.39.42.212]) by smtp.gmail.com with ESMTPSA id f23-v6sm2508814qtc.65.2018.09.05.22.16.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Sep 2018 22:16:08 -0700 (PDT) Date: Thu, 6 Sep 2018 08:16:06 +0300 From: Haneen Mohammed To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/3] Compute CRC with cursor plane support Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Mailman-Approved-At: Thu, 06 Sep 2018 09:10:02 +0000 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: hamohammed.sa@gmail.com, seanpaul@chromium.org, rodrigosiqueiramelo@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds cursor plane support and compute CRC for output frame with cursor and primary plane. changes in v2: - clear alpha channel before computing crc for XRGB plane format - add module option 'enable_cursor' to enable/disable cursor support Haneen Mohammed (3): drm/vkms: Add cursor plane support drm/vkms: Compute CRC with Cursor Plane drm/vkms: Enable/Disable cursor support with module option drivers/gpu/drm/vkms/vkms_crc.c | 154 ++++++++++++++++++++++++----- drivers/gpu/drm/vkms/vkms_drv.c | 4 + drivers/gpu/drm/vkms/vkms_drv.h | 18 +++- drivers/gpu/drm/vkms/vkms_output.c | 19 +++- drivers/gpu/drm/vkms/vkms_plane.c | 43 +++++--- 5 files changed, 196 insertions(+), 42 deletions(-)