From patchwork Fri Feb 12 00:29:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandre Demers X-Patchwork-Id: 8286711 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ECF0B9F6DA for ; Fri, 12 Feb 2016 00:29:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 32003203AE for ; Fri, 12 Feb 2016 00:29:20 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 5634E203AB for ; Fri, 12 Feb 2016 00:29:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D13786E2AA; Thu, 11 Feb 2016 16:29:17 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) by gabe.freedesktop.org (Postfix) with ESMTPS id CB1EB6E2AA for ; Thu, 11 Feb 2016 16:29:16 -0800 (PST) Received: by mail-ig0-f171.google.com with SMTP id y8so16570565igp.1 for ; Thu, 11 Feb 2016 16:29:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=W2NCXFqwNdUiBIBQEh9JMMG9MM1vFaJyGoHeMKq4UgU=; b=oreDwD6oCM4P+gehRD2JQI7ju3tMD9sAylmBHatZI9hLhzhM596RaP3q1PoFOw2FU6 2AWG1MZsRcfVZ2xi3Wg1QfX0skmZlwYRFZq5WqFOwlsUlswbnDAgF3B5FaCDa4JLkbzT viJtb3Pbosn4hNE7BYBPqAB04Wv86//dcoHtlRsc9E8wHq1ewLFX/5ttpG2yjNS05fJM dhiCNxanEdBI9XcBZk9MF0k+ZCwGaPiMOAHYyvykdBx1bXoW2Y5ow8gz7JPGGgeOZFCn Sd1MlR3jC+E/aNyvvZ4urVwn70cRxfbCIcNiKungDPmzSC+9MfxrF+L8EOQVEKPcoPdo wsUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=W2NCXFqwNdUiBIBQEh9JMMG9MM1vFaJyGoHeMKq4UgU=; b=Kh20wXVkpHA1wIltcUqBHZ1vwdfWgNtoE4tYlUAvtNZAIr1rEbATvFGZXPPmpEs+T8 vpbovkDqJng7Cxm9EiV1aa2d5qGGVqw11OvPyL7+ZL7qEXuK6Ks3SIMJ+dgBTh4sJOCZ np6j/Y+1kQUAE9rLPpASz7B48gXuwppa/JguWe12A3MUH01Q28Aed+2djAlZPN1QykvZ aA3mxB3z6FDw7okI+K5Bpn8MdL+ebK6PPHUEbNqmCfMQL00OV9LLIkb/Z9uGPSEMOKlJ 7S/WXJPpSt4OOIT3REJZYlvMLZ+zsCLGrk3INYLVgxKvzgJwaBozW2CXckbok0C6xrkt izIQ== X-Gm-Message-State: AG10YOSp4GjxQWlkh0agdT/U5HZ95jH5LNxNIiu1pRo7cgTvPyL4N0iBNqltuhYItA/w0g== X-Received: by 10.50.183.2 with SMTP id ei2mr862150igc.57.1455236956194; Thu, 11 Feb 2016 16:29:16 -0800 (PST) Received: from Xander.localdomain (209-197-171-172.cpe.distributel.net. [209.197.171.172]) by smtp.gmail.com with ESMTPSA id mu8sm17039igb.16.2016.02.11.16.29.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Feb 2016 16:29:14 -0800 (PST) From: Alexandre Demers To: dri-devel@lists.freedesktop.org Subject: [PATCH] radeon: Define SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP for consistency and readability Date: Thu, 11 Feb 2016 19:29:12 -0500 Message-Id: <1455236952-3529-1-git-send-email-alexandre.f.demers@gmail.com> X-Mailer: git-send-email 2.7.1 Cc: alexander.deucher@amd.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP --- drivers/gpu/drm/radeon/atombios_crtc.c | 2 +- include/uapi/drm/radeon_drm.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Michel Dänzer diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 801dd60..c88f9fe 100644 --- a/drivers/gpu/drm/radeon/atombios_crtc.c +++ b/drivers/gpu/drm/radeon/atombios_crtc.c @@ -1287,7 +1287,7 @@ static int dce4_crtc_do_set_base(struct drm_crtc *crtc, } else { switch (target_fb->bits_per_pixel) { case 8: - index = 10; + index = SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP; break; case 16: index = SI_TILE_MODE_COLOR_2D_SCANOUT_16BPP; diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h index ccb9bcd..407a092 100644 --- a/include/uapi/drm/radeon_drm.h +++ b/include/uapi/drm/radeon_drm.h @@ -1057,6 +1057,7 @@ struct drm_radeon_info { #define SI_TILE_MODE_COLOR_2D_16BPP 15 #define SI_TILE_MODE_COLOR_2D_32BPP 16 #define SI_TILE_MODE_COLOR_2D_64BPP 17 +#define SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP 10 #define SI_TILE_MODE_COLOR_2D_SCANOUT_16BPP 11 #define SI_TILE_MODE_COLOR_2D_SCANOUT_32BPP 12 #define SI_TILE_MODE_DEPTH_STENCIL_1D 4