From: "Christian König" <christian.koenig@amd.com>
To: Bhavin Sharma <bhavin.sharma@siliconsignals.io>,
alexander.deucher@amd.com, alex.hung@amd.com
Cc: Harry Wentland <harry.wentland@amd.com>,
Leo Li <sunpeng.li@amd.com>,
Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>,
Xinhui Pan <Xinhui.Pan@amd.com>, David Airlie <airlied@gmail.com>,
Simona Vetter <simona@ffwll.ch>,
Kenneth Feng <kenneth.feng@amd.com>,
Wenjing Liu <wenjing.liu@amd.com>,
Chris Park <chris.park@amd.com>, Roman Li <roman.li@amd.com>,
Leo Ma <hanghong.ma@amd.com>, Ryan Seto <ryanseto@amd.com>,
Jose Fernandez <josef@netflix.com>,
Ilya Bakoulin <ilya.bakoulin@amd.com>,
Aurabindo Pillai <aurabindo.pillai@amd.com>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] drm/amd/display: remove redundant is_dsc_possible check
Date: Thu, 14 Nov 2024 16:21:14 +0100 [thread overview]
Message-ID: <511539bb-bc1d-459e-bfd1-10ad8e9d1435@amd.com> (raw)
In-Reply-To: <20241114151150.19576-2-bhavin.sharma@siliconsignals.io>
Am 14.11.24 um 16:11 schrieb Bhavin Sharma:
> Since is_dsc_possible is already checked just above, there's no need to
> check it again before filling out the DSC settings.
>
> Signed-off-by: Bhavin Sharma <bhavin.sharma@siliconsignals.io>
> ---
> drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 13 +++++--------
> 1 file changed, 5 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c b/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c
> index ebd5df1a36e8..85f6f8e43947 100644
> --- a/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c
> +++ b/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c
> @@ -1093,14 +1093,11 @@ static bool setup_dsc_config(
> if (!is_dsc_possible)
> goto done;
>
> - // Final decission: can we do DSC or not?
> - if (is_dsc_possible) {
> - // Fill out the rest of DSC settings
> - dsc_cfg->block_pred_enable = dsc_common_caps.is_block_pred_supported;
> - dsc_cfg->linebuf_depth = dsc_common_caps.lb_bit_depth;
> - dsc_cfg->version_minor = (dsc_common_caps.dsc_version & 0xf0) >> 4;
> - dsc_cfg->is_dp = dsc_sink_caps->is_dp;
> - }
> + // Fill out the rest of DSC settings
While at it you should probably replace the // style comment with /* */.
Apart from that looks good to me.
Christian.
> + dsc_cfg->block_pred_enable = dsc_common_caps.is_block_pred_supported;
> + dsc_cfg->linebuf_depth = dsc_common_caps.lb_bit_depth;
> + dsc_cfg->version_minor = (dsc_common_caps.dsc_version & 0xf0) >> 4;
> + dsc_cfg->is_dp = dsc_sink_caps->is_dp;
>
> done:
> if (!is_dsc_possible)
next prev parent reply other threads:[~2024-11-14 15:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 15:11 [PATCH v2 0/2] Remove redundant check Bhavin Sharma
2024-11-14 15:11 ` [PATCH v2 1/2] drm/amd/display: remove redundant is_dsc_possible check Bhavin Sharma
2024-11-14 15:21 ` Christian König [this message]
2024-11-14 21:20 ` Alex Deucher
2024-11-14 15:11 ` [PATCH v2 2/2] drm/amd/pm: remove redundant tools_size check Bhavin Sharma
2024-11-14 21:18 ` Alex Deucher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=511539bb-bc1d-459e-bfd1-10ad8e9d1435@amd.com \
--to=christian.koenig@amd.com \
--cc=Rodrigo.Siqueira@amd.com \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@gmail.com \
--cc=alex.hung@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=aurabindo.pillai@amd.com \
--cc=bhavin.sharma@siliconsignals.io \
--cc=chris.park@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=hanghong.ma@amd.com \
--cc=harry.wentland@amd.com \
--cc=ilya.bakoulin@amd.com \
--cc=josef@netflix.com \
--cc=kenneth.feng@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=roman.li@amd.com \
--cc=ryanseto@amd.com \
--cc=simona@ffwll.ch \
--cc=sunpeng.li@amd.com \
--cc=wenjing.liu@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®