Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1107776pxj; Fri, 4 Jun 2021 06:18:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzXQPJ8TWOO0hzVjWAZTxq1fNqol8DcH5eBDGpvOes4k/CJKQXAvrTqPMwfYxxUU1VWrh5 X-Received: by 2002:a17:906:4e96:: with SMTP id v22mr4015026eju.23.1622812713710; Fri, 04 Jun 2021 06:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622812713; cv=none; d=google.com; s=arc-20160816; b=SNHEjTItgGVZ5pf6Mat2VNubfDXOC9dwY4ujqdLuyZZUI7vYdJHqrI9GlY/8JUhMuA RljjHXoNLAncHWcNKUfTPaOexI87Mer3EL3jNzT0v65xzR3a0lWgyEJV+d6AYFD3+fVs rPPW3aGtL/3Eq1rSzUpDB/oDxB/vzHxv6AhvMPddInQ6odW6QLZ7Vwmf+O0Uh5FqN0M2 v9abipTHQOq/ojyar3l6AADBZHcT7fRwAX0ddnBrrA1QKgQpdlCFZ1coqPqOYVKGMpmd 06KzreYNLNc3FvK4zBO6leNe1eHenJPbQFy2Q5FYUgRcuwV/zEsSPzJ4/r8PFlIgnh3T D3tg== 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=8ZkuGAUkuNM258A0UbPDEMQetbBUgf1qKcIvWTf80Is=; b=dyA1KBulBHRPja/iv9+PkCCIK87HJG/l3sHVLi70QrBpN6vvm35AuzDtx2IRFJRTHu e+rdE9MESgwGMuitV6t1JGIAdy/OGUa5GWB4Be0MNXaEVueHRSOOCn04sklXOwkAN/WS 7HitdKbJBsS2wQ9PNFnZ1FSf9iG9JHIPTquL3OIfIwQAYyX/GrBx5pwIoz5YzFu+aC8x gEm4uGBLzLriAzEd9KAV33Jrcn8sd4SIeKjVNaYCshO5lDWSclQDov7EY3uCeqiUHTHe l9K92w4yrc8AycE5AVaKhPe+iBwwYb+eP74q1euwwBIOby3L4riehHq3oUbSkWs6okQQ TlPA== 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 a19si4693467edy.189.2021.06.04.06.18.09; Fri, 04 Jun 2021 06:18:33 -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 S230203AbhFDNS2 (ORCPT + 99 others); Fri, 4 Jun 2021 09:18:28 -0400 Received: from srv6.fidu.org ([159.69.62.71]:35350 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhFDNS2 (ORCPT ); Fri, 4 Jun 2021 09:18:28 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id EB4F8C800B8; Fri, 4 Jun 2021 15:16:40 +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 vq1GyM85sFO9; Fri, 4 Jun 2021 15:16:40 +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 96F92C800BC; Fri, 4 Jun 2021 15:16:40 +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, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Werner Sembach Subject: [PATCH 1/1] drm/amd/display: Add missing cases convert_dc_color_depth_into_bpc Date: Fri, 4 Jun 2021 15:16:34 +0200 Message-Id: <20210604131634.6703-2-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210604131634.6703-1-wse@tuxedocomputers.com> References: <20210604131634.6703-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 cases 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