Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1285104pxj; Fri, 4 Jun 2021 10:20:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgHfSpKm90/FFWvG2aIZpx4PzZSMh8Mko/6qrJaCkvjBz7p6ngcP1DK4K4fhLG5mh/eg7o X-Received: by 2002:aa7:de99:: with SMTP id j25mr5848517edv.91.1622827257930; Fri, 04 Jun 2021 10:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622827257; cv=none; d=google.com; s=arc-20160816; b=iRZO3K38nGWnDAtE13mjU/zHW1y6OzsdxHpnI/ylwA2lHynNhZncMGMcTysBVejske L6ierRNkJMHF009tZcHWYT1JIoNYr0e/2XvR8T1O7Rj/likbp3s0xfThyZgqWxaCOmtN wv/8ca787lfj0jexiEjn6WxEJXvnRw/0B08lybJdd/cG98t0P1U/3d7/0IBIdYDasEEe Xk9emUQYWduJ6RwNdtCT/Y62YPS/AKtBfYHjaPETJzFbVsB2qfzyBP0jOwDYdQEsNDjI teQdFkegjsniuyCRvVriMwlmFZto1+qRr5GJlUvIzOITl3ggGaDLTECYrYcw1/D3HeEQ WOcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=oRjpY8l2QyPgbHeauWxzKCAliz7KWPwsLyXlFhASDwc=; b=xNH4kt9WRNKCDL8pi+rfc1WRYOph6JtVPnUA897v4hK/kCShVxKV+2JSKDj5Cww081 oihiyGN0d7p3c4O04fD1tu0vtKuwm8rbeTv59KzYQkj+hR7Kc7P2Xk+jF7yCQYlB/Mz/ gcaazqS4SPwk41BdLuw6mq0TPtEEbdIa5xfWeBIjOesQk6JmpgXbXpylC0HZ0MxnfnA0 hz/LFZZv9IjDRqm9aIY1qHMm66ztPJVaPoLT2SPVfYCKoVhWKdUQiOejoIhY9/WQ2vHQ T6Zfri7viEeg9uzK4EkxflDY8drLPx4MgoaArRpn1bh8PGfTsU/uVL3VuGaUbxiiOtEx hYag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mc3si2191442ejb.654.2021.06.04.10.20.32; Fri, 04 Jun 2021 10:20:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230123AbhFDRTZ (ORCPT + 99 others); Fri, 4 Jun 2021 13:19:25 -0400 Received: from srv6.fidu.org ([159.69.62.71]:44530 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbhFDRTX (ORCPT ); Fri, 4 Jun 2021 13:19:23 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 18728C800C9; Fri, 4 Jun 2021 19:17:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at srv6.fidu.org Received: from srv6.fidu.org ([127.0.0.1]) by localhost (srv6.fidu.org [127.0.0.1]) (amavisd-new, port 10026) with LMTP id z-AHphTjNJKM; Fri, 4 Jun 2021 19:17:35 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (p200300E37f2e2a0038b625C68b541A92.dip0.t-ipconnect.de [IPv6:2003:e3:7f2e:2a00:38b6:25c6:8b54:1a92]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id 5DA8BC800C7; Fri, 4 Jun 2021 19:17:35 +0200 (CEST) From: Werner Sembach To: harry.wentland@amd.com, sunpeng.li@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org Cc: Werner Sembach Subject: [PATCH 1/4] drm/amd/display: Add missing cases convert_dc_color_depth_into_bpc Date: Fri, 4 Jun 2021 19:17:20 +0200 Message-Id: <20210604171723.10276-2-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210604171723.10276-1-wse@tuxedocomputers.com> References: <20210604171723.10276-1-wse@tuxedocomputers.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org convert_dc_color_depth_into_bpc() that converts the enum dc_color_depth to an integer had the casses for COLOR_DEPTH_999 and COLOR_DEPTH_111111 missing. Signed-off-by: Werner Sembach --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 389eff96fcf6..6e82889271d5 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -6515,6 +6515,10 @@ static int convert_dc_color_depth_into_bpc (enum dc_color_depth display_color_de return 14; case COLOR_DEPTH_161616: return 16; + case COLOR_DEPTH_999: + return 9; + case COLOR_DEPTH_111111: + return 11; default: break; } -- 2.25.1