[PATCH 8/8] FOR_TESTING_ONLY: Print coeffs of hw and sw CTM
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Sat Mar 20 13:32:27 UTC 2021
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
drivers/gpu/drm/i915/display/intel_color.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm/i915/display/intel_color.c
index d13436956328..8b38255761e6 100644
--- a/drivers/gpu/drm/i915/display/intel_color.c
+++ b/drivers/gpu/drm/i915/display/intel_color.c
@@ -1914,6 +1914,8 @@ bool intel_csc_equal(const struct intel_crtc_state *current_config,
u16 coeffs[9];
int i;
+ DRM_DEBUG_KMS("Bhanu debug--> sw_ctm[%s] hw_ctm[%s]", yesno(!!blob1), yesno(!!blob2));
+
if (!blob1 != !blob2)
return false;
@@ -1928,6 +1930,9 @@ bool intel_csc_equal(const struct intel_crtc_state *current_config,
else
ilk_csc_convert_ctm(current_config, coeffs);
+ for (i = 0; i < 9; i++)
+ DRM_DEBUG_KMS("Bhanu debug--> sw_ctm[%d]=0x%x hw_ctm[%d]=0x%llx", i, coeffs[i], i, ctm2->matrix[i]);
+
for (i = 0; i < 9; i++) {
if (abs(coeffs[i] - ctm2->matrix[i]))
return false;
--
2.20.1
More information about the Intel-gfx-trybot
mailing list