Re: [PATCH 02/12] drm/i915: Introduce intel_csc_matrix struct

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

 




On 4/11/2023 10:37 AM, Ville Syrjälä wrote:
@@ -294,13 +293,20 @@ static bool ilk_csc_limited_range(const struct intel_crtc_state *crtc_state)
   }
static void ilk_csc_convert_ctm(const struct intel_crtc_state *crtc_state,
-				u16 coeffs[9], bool limited_color_range)
+				struct intel_csc_matrix *csc,
+				bool limited_color_range)
   {
   	const struct drm_color_ctm *ctm = crtc_state->hw.ctm->data;
   	const u64 *input;
   	u64 temp[9];
   	int i;
+ /* for preoff/postoff */
+	if (limited_color_range)
+		*csc = ilk_csc_matrix_limited_range;
+	else
+		*csc = ilk_csc_matrix_identity;

Lets merge this if block with the below if block, as we are again
checking limited_color_range.
I considered that, but didn't really like it. Seemed clearner to
first setup the pre/post offsets, and only then deal with the
input matrix.

Hmm yeah clubbing the limited range stuff, does jumble up the steps. So this seem to be good as is.

Regards,

Ankit





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

  Powered by Linux