From patchwork Mon Jan 11 19:19:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360558 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3139698jai; Mon, 11 Jan 2021 11:20:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwL0TZU8lcaQb6dSWVy0QHn2SzlFep5H2BKv0LcpqUnDQ8PelMrUuIpmmn8esuSte4hfDEE X-Received: by 2002:a17:902:c155:b029:da:9460:99a0 with SMTP id 21-20020a170902c155b02900da946099a0mr1257094plj.20.1610392821363; Mon, 11 Jan 2021 11:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392821; cv=none; d=google.com; s=arc-20160816; b=oMVJHnpOgwPOQkYHvTm1p7ciPnJ5HS10tyeVuyeP1EL/xNp4by6kWfumcZ+kM/bk/U LiERbJ6GMG8Xm4iJnnobsWHI9j/lS87tX4owyVcwqSMJaQ7Rh2n15zYGnGbnO1HTEDqI rXPKKSFn8k3Aan2dMghyNhgJtEZxgaIhnTsM9KG5ksjbQqs8fBpx4Q74zmdD2mWpe4ta yZjj1eD4oPp2Vau7dDyorQDUXGJZS3VS8h1qxY+4I1/s0w9eUFnRv0XGgBzHKvAnlnSp S3kOktrI4swZlYFTXcwS6DP/cnVH2zGQZC7wxSQY8pKhehuMTDmIS5d9LiuY5Z2HHSOz Mh4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=CI2GFSfeyNvPTW29jxZEsedL2mzXcZC/sh5lryqbx24=; b=PrvFWuiPixqnEKpzGGHnKbSgCgRMrL0BNXBR8PC/Vmr7yleqSZxN1bPF6BaJywJh+d ywr6GxQIBO6t9auZmCRNhFpPrCO4uhgvHT254NRpGdmw3DUuTYit6V3FD7QYg1zCr9oZ zUNC6nfkeEGYL85H5Ip3NWuEXzH+SWoFwcCgydUqQEr5cmcXDfOR7ns4Go5PamL35FsS Z87I4vsPkNcymR0rBas51dD7DN6Xi1DcoBxR5EIaivZIQ3yg5Y1mUB0EVN6tal3zKB5v I8980LM4f/cBHgHLwdyydtcvrOUTNFlM2LuMozXfCbyHOXIsRveeGxY/eSKnQS+CWjP/ cq/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SY9uAV9V; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id l4si553639pld.186.2021.01.11.11.20.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SY9uAV9V; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D07689F2D; Mon, 11 Jan 2021 19:20:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3B8BE89E65 for ; Mon, 11 Jan 2021 19:19:59 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id q18so966715wrn.1 for ; Mon, 11 Jan 2021 11:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qbOdfw74w6tzF/CbpPUTEI04qCMhfubS6U9e1XZIp68=; b=SY9uAV9V59fYWcmoaIsdXl0k7TXOs4fLfBDFwyidnaBs3Z6B+orrrsAEx5TJwydBzJ K8nX3NxXBy5TrL6hieK2vO+NXgHYwhgnT+23Y0dN7lnBpdRCqhPOoRySIRjAXZ+rIblf Ih2hh/pbvvd8bVpxE+ZPG57im+0H1wWIzoXVmp0cf7XbY4i6DXuotgud1SXh0lVA2wjc 8evdy55Ymtzme9Ud/0rATBl2ennpYYn6FzdMnZMcZpSqs7qXa1FcDXhidzIO33tvGmW4 kOvFJ5cYIEZbrVt0CAMRlPatHx1if33AoandcvoJk5eWivKdkS+aswgmoTX0U9jYD+kL 7XyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qbOdfw74w6tzF/CbpPUTEI04qCMhfubS6U9e1XZIp68=; b=KZWgkuyaLS3VCzpPwHG0sCPylKQqCL28Cog9mkYgRg1KEhPLWM7TJMwDoi9BFyE0+f wNPnEO3XXRXWsfi1baEAsE2b0/BRDOvG0jXUY1TSxHn3jn76qIq3QpLuwAxGeZohTRja M2ho/ftY8xNH8zakkuF4niFU3XLK3WtHZrUDlkQ5nYX/SpWeRUTVwpV7dyJb7x2afi4t x9akC7e+j0jUfZN19C/KjwSLLig1oHdW6RuHtOmsK4EKiS7lrkrr/wQsV4CXWRemQTz8 fQzEKa7us6LiPojTUSXB+UhZ/Hei3a0tdHQbpZI+yiiWD7vCAfA8q9W6ZOmwWd0SdBJe onDQ== X-Gm-Message-State: AOAM532+kw2xAwCkHGvSha2p4gUZYi2oKY3qzTGzQVYFm39nowX3UwOs yj/U3x5Fic+TIJzDhcIyvh3klw== X-Received: by 2002:adf:c454:: with SMTP id a20mr595775wrg.314.1610392797924; Mon, 11 Jan 2021 11:19:57 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:57 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 21/40] drm/amd/display/dc/dce110/dce110_compressor: Remove unused function 'dce110_get_required_compressed_surfacesize Date: Mon, 11 Jan 2021 19:19:07 +0000 Message-Id: <20210111191926.3688443-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111191926.3688443-1-lee.jones@linaro.org> References: <20210111191926.3688443-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_compressor.c:415:6: warning: no previous prototype for ‘dce110_get_required_compressed_surfacesize’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../amd/display/dc/dce110/dce110_compressor.c | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c index 72b580a4eb856..18b0a69b0b1e8 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c @@ -412,36 +412,6 @@ void dce110_compressor_destroy(struct compressor **compressor) *compressor = NULL; } -bool dce110_get_required_compressed_surfacesize(struct fbc_input_info fbc_input_info, - struct fbc_requested_compressed_size size) -{ - bool result = false; - - unsigned int max_x = FBC_MAX_X, max_y = FBC_MAX_Y; - - get_max_support_fbc_buffersize(&max_x, &max_y); - - if (fbc_input_info.dynamic_fbc_buffer_alloc == 0) { - /* - * For DCE11 here use Max HW supported size: HW Support up to 3840x2400 resolution - * or 18000 chunks. - */ - size.preferred_size = size.min_size = align_to_chunks_number_per_line(max_x) * max_y * 4; /* (For FBC when LPT not supported). */ - size.preferred_size_alignment = size.min_size_alignment = 0x100; /* For FBC when LPT not supported */ - size.bits.preferred_must_be_framebuffer_pool = 1; - size.bits.min_must_be_framebuffer_pool = 1; - - result = true; - } - /* - * Maybe to add registry key support with optional size here to override above - * for debugging purposes - */ - - return result; -} - - void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y) { *max_x = FBC_MAX_X;