From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 2/3] drm/i915: Simplify intel_dsc_source_support()
Date: Fri, 21 Jan 2022 16:05:25 +0200 [thread overview]
Message-ID: <87v8yd2nh6.fsf@intel.com> (raw)
In-Reply-To: <20220121130710.10382-2-ville.syrjala@linux.intel.com>
On Fri, 21 Jan 2022, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> We can simplify the icl check in intel_dsc_source_support()
> by noting that the only case when DSC is not supported is when
> using transcoder A.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_vdsc.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_vdsc.c b/drivers/gpu/drm/i915/display/intel_vdsc.c
> index 9b05f93ed8bc..3faea903b9ae 100644
> --- a/drivers/gpu/drm/i915/display/intel_vdsc.c
> +++ b/drivers/gpu/drm/i915/display/intel_vdsc.c
> @@ -341,19 +341,14 @@ bool intel_dsc_source_support(const struct intel_crtc_state *crtc_state)
> const struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
> struct drm_i915_private *i915 = to_i915(crtc->base.dev);
> enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
> - enum pipe pipe = crtc->pipe;
>
> if (!INTEL_INFO(i915)->display.has_dsc)
> return false;
>
> - /* On TGL, DSC is supported on all Pipes */
> if (DISPLAY_VER(i915) >= 12)
> return true;
>
> - if (DISPLAY_VER(i915) >= 11 &&
> - (pipe != PIPE_A || cpu_transcoder == TRANSCODER_EDP ||
> - cpu_transcoder == TRANSCODER_DSI_0 ||
> - cpu_transcoder == TRANSCODER_DSI_1))
> + if (DISPLAY_VER(i915) >= 11 && cpu_transcoder != TRANSCODER_A)
> return true;
>
> return false;
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2022-01-21 14:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-21 13:07 [Intel-gfx] [PATCH 1/3] drm/i915: Reject bigjoiner if the pipe doesn't support it Ville Syrjala
2022-01-21 13:07 ` [Intel-gfx] [PATCH 2/3] drm/i915: Simplify intel_dsc_source_support() Ville Syrjala
2022-01-21 14:05 ` Jani Nikula [this message]
2022-01-21 13:07 ` [Intel-gfx] [PATCH 3/3] drm/i915: Use per-device debugs for bigjoiner stuff Ville Syrjala
2022-01-21 14:06 ` Jani Nikula
2022-01-21 14:03 ` [Intel-gfx] [PATCH 1/3] drm/i915: Reject bigjoiner if the pipe doesn't support it Jani Nikula
2022-01-21 15:55 ` Ville Syrjälä
2022-01-21 16:33 ` Ville Syrjälä
2022-01-21 14:54 ` [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/3] " Patchwork
2022-01-21 18:34 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
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=87v8yd2nh6.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=ville.syrjala@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.