Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1101487pxj; Fri, 4 Jun 2021 06:11:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6rY2N6V2Sa4g+ivGe6Pfzo/voWQvMcy0FOOV2jPhcG4ThzX3am/C8BFJy0UuMpourosUK X-Received: by 2002:aa7:c9cf:: with SMTP id i15mr4486116edt.118.1622812268806; Fri, 04 Jun 2021 06:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622812268; cv=none; d=google.com; s=arc-20160816; b=fno8iMgQnv2WMudADxf3k9bac9GQIzZ9Ap7Y6DalAgtWfGTcAPsNBGStYfIXCtOifF cxCrDebCoiiA48smD6T87kCduqyxs/GPnZ9ju/PrjtrDTJAM+nt+kMUoDtC+8L5vlUyb WLR/HjgTrXYrR3yGgg/nUV+8l8QP7qvep6h/Mc8ZdbOuMnDkZ/cOCzwR14mSkMdI8jcj zfl8LBKBigLZux7WMHkQa6NoAYjmL0QblhJPrWIpSC87A3mBz4J1Yh2XAnilgedVr2Cg rHdGLmMXKe412ilvcIgIi2X/kSRO/t9Lk7s4a4DrinZRb0pZvWujbSAnqBDNPIe0l4cm ZdOA== 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 :message-id:date:subject:cc:to:from; bh=oRjpY8l2QyPgbHeauWxzKCAliz7KWPwsLyXlFhASDwc=; b=sZvZXIZ1tTqZxdnNg/woYahisNYInZs0mwpkud2PWv7YdkoQUZkre51T15U2FnXvAj 96agmo/M96TvdbDldfamrkGLfaCYGwApZhUuXnExcPLjPqVmQvn6A/ZDOpuHKM3WbbgL KLDReDQhmguAii5T22xkrYNbdTxkoEEWuhLesR6vAm1CImztKSRWxf7ypr//PBMHN6Zv H86G3J7eRg/QkD7ecDjxX5CNy8QGwQ6uLOCN4i+fP3IlbjrJbRLFkQ2ZEdXrrtgb5VG4 cAT7JkJq9JVbWVzKKXjlhFa6cf4TvqHnWjbLCWsun5872L/SJU6g4NOiLpGhkScCuiod IG6A== 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 o8si5383387ejj.94.2021.06.04.06.10.45; Fri, 04 Jun 2021 06:11:08 -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 S230424AbhFDNJC (ORCPT + 99 others); Fri, 4 Jun 2021 09:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230451AbhFDNJB (ORCPT ); Fri, 4 Jun 2021 09:09:01 -0400 Received: from srv6.fidu.org (srv6.fidu.org [IPv6:2a01:4f8:231:de0::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA50BC06174A for ; Fri, 4 Jun 2021 06:07:14 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id D2A76C800BC; Fri, 4 Jun 2021 15:07:11 +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 dK08VcQFqjkX; Fri, 4 Jun 2021 15:07:11 +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 73352C800B8; Fri, 4 Jun 2021 15:07:11 +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] drm/amd/display: Add missing cases convert_dc_color_depth_into_bpc Date: Fri, 4 Jun 2021 15:07:03 +0200 Message-Id: <20210604130703.6305-1-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 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