Re: [PATCH v3 11/13] drm/i915/dsi: use compressed pixel format with DSC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Jani Nikula <jani.nikula@xxxxxxxxx>
> Sent: Tuesday, November 26, 2019 7:13 PM
> To: intel-gfx@xxxxxxxxxxxxxxxxxxxxx
> Cc: Nikula, Jani <jani.nikula@xxxxxxxxx>; Kulkarni, Vandita
> <vandita.kulkarni@xxxxxxxxx>; Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
> Subject: [PATCH v3 11/13] drm/i915/dsi: use compressed pixel format with
> DSC
> 
> When compression is enabled, configure the DSI transcoder to use
> compressed format.
> 
> Suggested-by: Vandita Kulkarni <vandita.kulkarni@xxxxxxxxx>
> Cc: Vandita Kulkarni <vandita.kulkarni@xxxxxxxxx>
> Cc: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
> Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>

Looks good to me.
Reviewed-by: Vandita Kulkarni <vandita.kulkarni@xxxxxxxxx>

Regards,
Vandita
> ---
>  drivers/gpu/drm/i915/display/icl_dsi.c | 36 ++++++++++++++------------
>  1 file changed, 20 insertions(+), 16 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/icl_dsi.c
> b/drivers/gpu/drm/i915/display/icl_dsi.c
> index 5149a28a874b..460759913708 100644
> --- a/drivers/gpu/drm/i915/display/icl_dsi.c
> +++ b/drivers/gpu/drm/i915/display/icl_dsi.c
> @@ -682,22 +682,26 @@ gen11_dsi_configure_transcoder(struct
> intel_encoder *encoder,
> 
>  		/* select pixel format */
>  		tmp &= ~PIX_FMT_MASK;
> -		switch (intel_dsi->pixel_format) {
> -		default:
> -			MISSING_CASE(intel_dsi->pixel_format);
> -			/* fallthrough */
> -		case MIPI_DSI_FMT_RGB565:
> -			tmp |= PIX_FMT_RGB565;
> -			break;
> -		case MIPI_DSI_FMT_RGB666_PACKED:
> -			tmp |= PIX_FMT_RGB666_PACKED;
> -			break;
> -		case MIPI_DSI_FMT_RGB666:
> -			tmp |= PIX_FMT_RGB666_LOOSE;
> -			break;
> -		case MIPI_DSI_FMT_RGB888:
> -			tmp |= PIX_FMT_RGB888;
> -			break;
> +		if (pipe_config->dsc.compression_enable) {
> +			tmp |= PIX_FMT_COMPRESSED;
> +		} else {
> +			switch (intel_dsi->pixel_format) {
> +			default:
> +				MISSING_CASE(intel_dsi->pixel_format);
> +				/* fallthrough */
> +			case MIPI_DSI_FMT_RGB565:
> +				tmp |= PIX_FMT_RGB565;
> +				break;
> +			case MIPI_DSI_FMT_RGB666_PACKED:
> +				tmp |= PIX_FMT_RGB666_PACKED;
> +				break;
> +			case MIPI_DSI_FMT_RGB666:
> +				tmp |= PIX_FMT_RGB666_LOOSE;
> +				break;
> +			case MIPI_DSI_FMT_RGB888:
> +				tmp |= PIX_FMT_RGB888;
> +				break;
> +			}
>  		}
> 
>  		if (INTEL_GEN(dev_priv) >= 12) {
> --
> 2.20.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux