Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp406567pxv; Wed, 30 Jun 2021 08:14:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSba3yS1lrZFIm22AwZo07vzVTKqzydAyaz2q5x5oG97Evm/HBCLfRBR1LgUd27mpiFLfN X-Received: by 2002:a05:6402:487:: with SMTP id k7mr46698856edv.315.1625066080170; Wed, 30 Jun 2021 08:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625066080; cv=none; d=google.com; s=arc-20160816; b=FMTXvW92JkJFPWrkeEF4aZ+gbZx8ZOsWmRVOTfRVMp6yt9bmbExYBsgpD4WKNQiW9C 6zx7fN4QUu5QL93kv2yqbUjPVDX8hVnPg+mkdfpHbzGReSde0k2KIsAjBrCL+SCcHYkI oaHHINDXKPp9PdbZDLhWeN6qVlOq2pHsWH6IaYD3aSWl3KG7YRABWWdwO94UpdZRaFNX Ds85VsfR06VSy+v22NnjOqxanqIhsKo0XpeOB3iXStl21BSwEnbQOBYT5U7tV4YrxIg3 5iF+mCYYQAX62SFFQMHCLGvCZVxHF+BZ8eg+QyrOAPkOVBELb5YvwSbp+5zq5onQ+hsO lI1Q== 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=vfC3P/HCMqmLHo9swtryKLLFv1exSArNwi3cJQyT7wE=; b=sMGej5q86LpcwCSM1rfO7af1HRwUER+SXHj/U7iDveYDy6YEL3QNZC9znKWWVDZI4j oyivVeYBTXffBTbhZbO0nX5pyNDU5OjoCgLWSyB8Po6l3R8D707U4xngl591aw2Bgpds oBFrGSmbFvRFmNZWPoPIf2lIEYu1zz+J8w8h39qFCuDNmiJdNk3N+y4SqFLoCBEbY0rs K7Yh5ZKaGnXQUCCNQaBXn2ryaMsYJ6WbacqketsWrIoseFkWRMAWoshX9c/f+wzFoAN9 8sK3LtF20bcUUDuzN66Tzqion1BzXiHWULR8w1A7CfKaiLuQ8kokEVJvqg9BPHHMrRXc 5FGg== 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 ig2si20243076ejc.57.2021.06.30.08.14.15; Wed, 30 Jun 2021 08:14:40 -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 S236012AbhF3PNQ (ORCPT + 99 others); Wed, 30 Jun 2021 11:13:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235817AbhF3PNB (ORCPT ); Wed, 30 Jun 2021 11:13:01 -0400 Received: from srv6.fidu.org (srv6.fidu.org [IPv6:2a01:4f8:231:de0::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82ED5C061787 for ; Wed, 30 Jun 2021 08:10:27 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id B24B0C80089; Wed, 30 Jun 2021 17:10:24 +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 1QzYT2rvIurU; Wed, 30 Jun 2021 17:10:24 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (p200300e37F394900095779a208783f8e.dip0.t-ipconnect.de [IPv6:2003:e3:7f39:4900:957:79a2:878:3f8e]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id 53111C80085; Wed, 30 Jun 2021 17:10:24 +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, emil.l.velikov@gmail.com Cc: Werner Sembach Subject: [PATCH v5 02/17] drm/amd/display: Add missing cases convert_dc_color_depth_into_bpc Date: Wed, 30 Jun 2021 17:10:03 +0200 Message-Id: <20210630151018.330354-3-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210630151018.330354-1-wse@tuxedocomputers.com> References: <20210630151018.330354-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 e081dd3ffb5f..f4abb5f215d1 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -6700,6 +6700,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