From: Jani Nikula <jani.nikula@intel.com>
To: Manasi Navare <manasi.d.navare@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/i915/dsc: move crtc state dp_dsc_cfg member under dsc as config
Date: Wed, 23 Oct 2019 16:33:00 +0300 [thread overview]
Message-ID: <87eez3egdv.fsf@intel.com> (raw)
In-Reply-To: <20191022172456.GB2533@intel.com>
On Tue, 22 Oct 2019, Manasi Navare <manasi.d.navare@intel.com> wrote:
> On Tue, Oct 22, 2019 at 04:34:14PM +0300, Jani Nikula wrote:
>> DSC isn't DP specific, so remove the dp_ prefix from the crtc state
>> member name. Also moving the member under the dsc sub-struct gives us
>> enough context to allow shortening the name to just config. No
>> functional changes.
>>
>> Cc: Manasi Navare <manasi.d.navare@intel.com>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Sounds good to me and I guess works better with expanding this code
> to other connectors
>
> Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Thanks for the review, pushed both.
BR,
Jani.
>
> Manasi
>
>> ---
>> drivers/gpu/drm/i915/display/intel_display_types.h | 2 +-
>> drivers/gpu/drm/i915/display/intel_vdsc.c | 6 +++---
>> 2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
>> index db66f9d623f8..bac40482a2aa 100644
>> --- a/drivers/gpu/drm/i915/display/intel_display_types.h
>> +++ b/drivers/gpu/drm/i915/display/intel_display_types.h
>> @@ -986,8 +986,8 @@ struct intel_crtc_state {
>> bool dsc_split;
>> u16 compressed_bpp;
>> u8 slice_count;
>> + struct drm_dsc_config config;
>> } dsc;
>> - struct drm_dsc_config dp_dsc_cfg;
>>
>> /* Forward Error correction State */
>> bool fec_enable;
>> diff --git a/drivers/gpu/drm/i915/display/intel_vdsc.c b/drivers/gpu/drm/i915/display/intel_vdsc.c
>> index f41a9336476b..896b0c334f5e 100644
>> --- a/drivers/gpu/drm/i915/display/intel_vdsc.c
>> +++ b/drivers/gpu/drm/i915/display/intel_vdsc.c
>> @@ -322,7 +322,7 @@ static int get_column_index_for_rc_params(u8 bits_per_component)
>> int intel_dp_compute_dsc_params(struct intel_dp *intel_dp,
>> struct intel_crtc_state *pipe_config)
>> {
>> - struct drm_dsc_config *vdsc_cfg = &pipe_config->dp_dsc_cfg;
>> + struct drm_dsc_config *vdsc_cfg = &pipe_config->dsc.config;
>> u16 compressed_bpp = pipe_config->dsc.compressed_bpp;
>> u8 i = 0;
>> int row_index = 0;
>> @@ -485,7 +485,7 @@ static void intel_configure_pps_for_dsc_encoder(struct intel_encoder *encoder,
>> {
>> struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc);
>> struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
>> - const struct drm_dsc_config *vdsc_cfg = &crtc_state->dp_dsc_cfg;
>> + const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config;
>> enum pipe pipe = crtc->pipe;
>> enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
>> u32 pps_val = 0;
>> @@ -885,7 +885,7 @@ static void intel_dp_write_dsc_pps_sdp(struct intel_encoder *encoder,
>> {
>> struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base);
>> struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp);
>> - const struct drm_dsc_config *vdsc_cfg = &crtc_state->dp_dsc_cfg;
>> + const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config;
>> struct drm_dsc_pps_infoframe dp_dsc_pps_sdp;
>>
>> /* Prepare DP SDP PPS header as per DP 1.4 spec, Table 2-123 */
>> --
>> 2.20.1
>>
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@intel.com>
To: Manasi Navare <manasi.d.navare@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915/dsc: move crtc state dp_dsc_cfg member under dsc as config
Date: Wed, 23 Oct 2019 16:33:00 +0300 [thread overview]
Message-ID: <87eez3egdv.fsf@intel.com> (raw)
Message-ID: <20191023133300.QdmWnXp0f4E3IcForJTGyrs6I6h5kdfZcjGvgVC6j10@z> (raw)
In-Reply-To: <20191022172456.GB2533@intel.com>
On Tue, 22 Oct 2019, Manasi Navare <manasi.d.navare@intel.com> wrote:
> On Tue, Oct 22, 2019 at 04:34:14PM +0300, Jani Nikula wrote:
>> DSC isn't DP specific, so remove the dp_ prefix from the crtc state
>> member name. Also moving the member under the dsc sub-struct gives us
>> enough context to allow shortening the name to just config. No
>> functional changes.
>>
>> Cc: Manasi Navare <manasi.d.navare@intel.com>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Sounds good to me and I guess works better with expanding this code
> to other connectors
>
> Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Thanks for the review, pushed both.
BR,
Jani.
>
> Manasi
>
>> ---
>> drivers/gpu/drm/i915/display/intel_display_types.h | 2 +-
>> drivers/gpu/drm/i915/display/intel_vdsc.c | 6 +++---
>> 2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
>> index db66f9d623f8..bac40482a2aa 100644
>> --- a/drivers/gpu/drm/i915/display/intel_display_types.h
>> +++ b/drivers/gpu/drm/i915/display/intel_display_types.h
>> @@ -986,8 +986,8 @@ struct intel_crtc_state {
>> bool dsc_split;
>> u16 compressed_bpp;
>> u8 slice_count;
>> + struct drm_dsc_config config;
>> } dsc;
>> - struct drm_dsc_config dp_dsc_cfg;
>>
>> /* Forward Error correction State */
>> bool fec_enable;
>> diff --git a/drivers/gpu/drm/i915/display/intel_vdsc.c b/drivers/gpu/drm/i915/display/intel_vdsc.c
>> index f41a9336476b..896b0c334f5e 100644
>> --- a/drivers/gpu/drm/i915/display/intel_vdsc.c
>> +++ b/drivers/gpu/drm/i915/display/intel_vdsc.c
>> @@ -322,7 +322,7 @@ static int get_column_index_for_rc_params(u8 bits_per_component)
>> int intel_dp_compute_dsc_params(struct intel_dp *intel_dp,
>> struct intel_crtc_state *pipe_config)
>> {
>> - struct drm_dsc_config *vdsc_cfg = &pipe_config->dp_dsc_cfg;
>> + struct drm_dsc_config *vdsc_cfg = &pipe_config->dsc.config;
>> u16 compressed_bpp = pipe_config->dsc.compressed_bpp;
>> u8 i = 0;
>> int row_index = 0;
>> @@ -485,7 +485,7 @@ static void intel_configure_pps_for_dsc_encoder(struct intel_encoder *encoder,
>> {
>> struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc);
>> struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
>> - const struct drm_dsc_config *vdsc_cfg = &crtc_state->dp_dsc_cfg;
>> + const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config;
>> enum pipe pipe = crtc->pipe;
>> enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
>> u32 pps_val = 0;
>> @@ -885,7 +885,7 @@ static void intel_dp_write_dsc_pps_sdp(struct intel_encoder *encoder,
>> {
>> struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base);
>> struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp);
>> - const struct drm_dsc_config *vdsc_cfg = &crtc_state->dp_dsc_cfg;
>> + const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config;
>> struct drm_dsc_pps_infoframe dp_dsc_pps_sdp;
>>
>> /* Prepare DP SDP PPS header as per DP 1.4 spec, Table 2-123 */
>> --
>> 2.20.1
>>
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-10-23 13:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-22 13:34 [PATCH 1/2] drm/i915/dsc: rename crtc state dsc_params member to dsc Jani Nikula
2019-10-22 13:34 ` [PATCH 2/2] drm/i915/dsc: move crtc state dp_dsc_cfg member under dsc as config Jani Nikula
2019-10-22 17:24 ` Manasi Navare
2019-10-23 13:33 ` Jani Nikula [this message]
2019-10-23 13:33 ` [Intel-gfx] " Jani Nikula
2019-10-22 17:23 ` [PATCH 1/2] drm/i915/dsc: rename crtc state dsc_params member to dsc Manasi Navare
2019-10-22 21:04 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] " Patchwork
2019-10-22 21:45 ` ✓ Fi.CI.BAT: success " Patchwork
2019-10-23 13:16 ` ✓ Fi.CI.IGT: " Patchwork
2019-10-23 13:16 ` [Intel-gfx] " 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=87eez3egdv.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=manasi.d.navare@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).