Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1232912pxj; Fri, 18 Jun 2021 02:34:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUya7TMs0fBw/brq+PhGwOqSmV3oWGDZPsZe8B/EMX7ryiMhv1dBXIIDxb2qt8UmimttCN X-Received: by 2002:a17:907:270c:: with SMTP id w12mr10202356ejk.175.1624008871421; Fri, 18 Jun 2021 02:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624008871; cv=none; d=google.com; s=arc-20160816; b=hMTgMyW4JOCss5TiB1rsrtTs4PQhqb0QGpV1gy1VpZF3Y1WA/GR61a5+ByDP8YS4vT aQNSOJmNQFCeLeF++B5Q6Zxm8EHobFlF4ZmtH+4lwnEL9Xux6Xcdquc3h1JHtBaOCDWA KzEm6vEMGFKNc+7Urismn7S86UPwrpVvxPAABR8pdLoWaPt81FMbaLhJlBfR+VwuF0Da 5l06FUwvBjwbEPJ3E1fJu7I0u35UB1HA+rLjWsTqN/w0A4FHNcB2hAeE0LpNiROTz0ZH /g/AD9zBsgB1DKGe16Ys3bmFqaj6347zF8yK4fIT27wZpdh/OvCn2t8J5pUiEoK6+cks 07GQ== 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=mUHhl1aGVMEbOVq4jcHDG7ANsOf5hE02y8j81LD0kAw=; b=JqSC+iN4pA63mr1auAXgclLFL4WJ4I84ey7jXvWNNLZ0321yd49QRUII6KpuXKxole g0D1BPvF2D2o3VQERQcKrVqc7JqglCRCZrzCPLlSG/CfgXD8mJb5KzcGrQtWK2Hoeb3F 9+u345qVC/ISfvwwtzZWc00L6oYAK+IDnzlT7Yx3QwnAE1i4qjIRousjFglOCC3nbZ1q XM7A8aD+3kbNWfNx0vbaCgISMPI/a6VRQsTkiEqepEZ+w9rkD0wvnOesMHt/v8TKkg8/ tJxZPJngcUeG4pyfL8UNuPf/bxO9D1QMqzXahyWVDfwUSASY9mGOVliC5xmmAUvRKuZX MEwg== 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 r17si8077057edd.574.2021.06.18.02.34.09; Fri, 18 Jun 2021 02:34:31 -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 S233903AbhFRJNy (ORCPT + 99 others); Fri, 18 Jun 2021 05:13:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233146AbhFRJNp (ORCPT ); Fri, 18 Jun 2021 05:13:45 -0400 Received: from srv6.fidu.org (srv6.fidu.org [IPv6:2a01:4f8:231:de0::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD3F5C061574 for ; Fri, 18 Jun 2021 02:11:36 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 480A0C800BC; Fri, 18 Jun 2021 11:11:33 +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 zECRVlP9FH1x; Fri, 18 Jun 2021 11:11:33 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (p200300e37f3949001760E5710682cA7E.dip0.t-ipconnect.de [IPv6:2003:e3:7f39:4900:1760:e571:682:ca7e]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id E17E4C800BA; Fri, 18 Jun 2021 11:11:32 +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 v4 02/17] drm/amd/display: Add missing cases convert_dc_color_depth_into_bpc Date: Fri, 18 Jun 2021 11:11:01 +0200 Message-Id: <20210618091116.14428-3-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210618091116.14428-1-wse@tuxedocomputers.com> References: <20210618091116.14428-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 44757720b15f..cd1df5cf4815 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -6705,6 +6705,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