From patchwork Tue May 29 13:28:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Juha-Pekka_Heikkil=C3=A4?= X-Patchwork-Id: 10435449 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F0350601C7 for ; Tue, 29 May 2018 13:29:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E183228397 for ; Tue, 29 May 2018 13:29:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D649628745; Tue, 29 May 2018 13:29:42 +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 932B128397 for ; Tue, 29 May 2018 13:29:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DD7356E424; Tue, 29 May 2018 13:29:41 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pl0-x22d.google.com (mail-pl0-x22d.google.com [IPv6:2607:f8b0:400e:c01::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 540116E418 for ; Tue, 29 May 2018 13:29:40 +0000 (UTC) Received: by mail-pl0-x22d.google.com with SMTP id t12-v6so8962378plo.7 for ; Tue, 29 May 2018 06:29:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CLIj7JJsG3d9L3YN+dJJduDOBj7gDrA5Yp+35XUJrqA=; b=dFeq1sApfKL3ZYMsiBMmq9P7Kn/bir9KMp+JxO0QZINFFRa+OyVLjcocpJutUNv8vI iY0vzbD1/vLEPDE14UZPmybe1Lv35kuxqLk3cFGl0e/pNXM/LeO/40BH7NHDZZfSX1p1 oXK0XVIwxMw25oX1yNErdkpmVf6I2/9dLhOB7opmr3MCC0+KTEGTF2CwbGzQmSHuQYQ7 jKtxr3gP22Zj0SfG1YRikgwMRiRA2j8YecogMg6UeNEK1zexiHpz4fYPdUAlOV+LwlMy 9Bvv41DpVN43KVLn4q6v7SBtBnKw7dEf/uy5WolXmXa/5Yr93uLwtY75VVNPreii3Hhq o4dQ== X-Gm-Message-State: ALKqPwfCiC+7ZjzKLpKfd8yES6jI3eNonntDqE3OsbqjFYgVHPahK9PD +I9pTAieyeND2iu3DeAFN4lMaI6b X-Google-Smtp-Source: ADUXVKKoO3oVWGizzxGoTayH7k7Vp/ZYXAQhI2QOz48/A1r07i5HG5ncr4MTyFw3GJWpTItLp5gp+A== X-Received: by 2002:a17:902:8b8c:: with SMTP id ay12-v6mr12778988plb.74.1527600579508; Tue, 29 May 2018 06:29:39 -0700 (PDT) Received: from jheikkil-mobl.fi.intel.com (fmdmzpr04-ext.fm.intel.com. [192.55.54.39]) by smtp.gmail.com with ESMTPSA id e18-v6sm50242739pfi.100.2018.05.29.06.29.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 May 2018 06:29:38 -0700 (PDT) From: Juha-Pekka Heikkila To: intel-gfx@lists.freedesktop.org Date: Tue, 29 May 2018 16:28:31 +0300 Message-Id: <1527600513-2162-3-git-send-email-juhapekka.heikkila@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527600513-2162-1-git-send-email-juhapekka.heikkila@gmail.com> References: <1527600513-2162-1-git-send-email-juhapekka.heikkila@gmail.com> Subject: [Intel-gfx] [PATCH 2/4] drm/i915: Add P010, P012, P016 plane control definitions X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Add needed plane control flag definitions for P010, P012 and P016 formats. Signed-off-by: Juha-Pekka Heikkila --- drivers/gpu/drm/i915/i915_reg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 6953419..a7e9316 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h @@ -6366,8 +6366,11 @@ enum { #define PLANE_CTL_FORMAT_YUV422 ( 0 << 24) #define PLANE_CTL_FORMAT_NV12 ( 1 << 24) #define PLANE_CTL_FORMAT_XRGB_2101010 ( 2 << 24) +#define PLANE_CTL_FORMAT_P010 ( 3 << 24) #define PLANE_CTL_FORMAT_XRGB_8888 ( 4 << 24) +#define PLANE_CTL_FORMAT_P012 ( 5 << 24) #define PLANE_CTL_FORMAT_XRGB_16161616F ( 6 << 24) +#define PLANE_CTL_FORMAT_P016 ( 7 << 24) #define PLANE_CTL_FORMAT_AYUV ( 8 << 24) #define PLANE_CTL_FORMAT_INDEXED ( 12 << 24) #define PLANE_CTL_FORMAT_RGB_565 ( 14 << 24)