Home
last modified time | relevance | path

Searched refs:ctm (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v6.6/drivers/gpu/drm/ci/xfails/
Dmsm-sdm845-fails.txt1 kms_color@ctm-0-25,Fail
2 kms_color@ctm-0-50,Fail
3 kms_color@ctm-0-75,Fail
4 kms_color@ctm-blue-to-red,Fail
5 kms_color@ctm-green-to-red,Fail
6 kms_color@ctm-negative,Fail
7 kms_color@ctm-red-to-blue,Fail
8 kms_color@ctm-signed,Fail
9 kms_color@pipe-A-ctm-0-25,Fail
10 kms_color@pipe-A-ctm-0-5,Fail
[all …]
Di915-apl-fails.txt11 kms_color@ctm-0-25,Fail
12 kms_color@ctm-0-50,Fail
13 kms_color@ctm-0-75,Fail
14 kms_color@ctm-max,Fail
15 kms_color@ctm-negative,Fail
16 kms_color@ctm-red-to-blue,Fail
17 kms_color@ctm-signed,Fail
Di915-cml-fails.txt1 kms_color@ctm-0-25,Fail
Di915-kbl-flakes.txt9 kms_color@ctm-0-25
Di915-tgl-fails.txt11 kms_color@ctm-0-25,Fail
/Linux-v6.6/drivers/gpu/drm/vc4/
Dvc4_kms.c30 struct drm_color_ctm *ctm; member
139 struct drm_color_ctm *ctm = ctm_state->ctm; in vc4_ctm_commit() local
143 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[0]), in vc4_ctm_commit()
145 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[3]), in vc4_ctm_commit()
147 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[6]), in vc4_ctm_commit()
150 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[1]), in vc4_ctm_commit()
152 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[4]), in vc4_ctm_commit()
154 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[7]), in vc4_ctm_commit()
157 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[2]), in vc4_ctm_commit()
159 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[5]), in vc4_ctm_commit()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c182 static void __drm_ctm_to_dc_matrix(const struct drm_color_ctm *ctm, in __drm_ctm_to_dc_matrix() argument
204 val = ctm->matrix[i - (i / 4)]; in __drm_ctm_to_dc_matrix()
400 struct drm_color_ctm *ctm = NULL; in amdgpu_dm_update_crtc_color_mgmt() local
473 if (crtc->base.ctm) { in amdgpu_dm_update_crtc_color_mgmt()
474 ctm = (struct drm_color_ctm *)crtc->base.ctm->data; in amdgpu_dm_update_crtc_color_mgmt()
485 __drm_ctm_to_dc_matrix(ctm, stream->gamut_remap_matrix.matrix); in amdgpu_dm_update_crtc_color_mgmt()
/Linux-v6.6/drivers/gpu/drm/omapdrm/
Domap_crtc.c381 static void omap_crtc_cpr_coefs_from_ctm(const struct drm_color_ctm *ctm, in omap_crtc_cpr_coefs_from_ctm() argument
384 cpr->rr = omap_crtc_s31_32_to_s2_8(ctm->matrix[0]); in omap_crtc_cpr_coefs_from_ctm()
385 cpr->rg = omap_crtc_s31_32_to_s2_8(ctm->matrix[1]); in omap_crtc_cpr_coefs_from_ctm()
386 cpr->rb = omap_crtc_s31_32_to_s2_8(ctm->matrix[2]); in omap_crtc_cpr_coefs_from_ctm()
387 cpr->gr = omap_crtc_s31_32_to_s2_8(ctm->matrix[3]); in omap_crtc_cpr_coefs_from_ctm()
388 cpr->gg = omap_crtc_s31_32_to_s2_8(ctm->matrix[4]); in omap_crtc_cpr_coefs_from_ctm()
389 cpr->gb = omap_crtc_s31_32_to_s2_8(ctm->matrix[5]); in omap_crtc_cpr_coefs_from_ctm()
390 cpr->br = omap_crtc_s31_32_to_s2_8(ctm->matrix[6]); in omap_crtc_cpr_coefs_from_ctm()
391 cpr->bg = omap_crtc_s31_32_to_s2_8(ctm->matrix[7]); in omap_crtc_cpr_coefs_from_ctm()
392 cpr->bb = omap_crtc_s31_32_to_s2_8(ctm->matrix[8]); in omap_crtc_cpr_coefs_from_ctm()
[all …]
/Linux-v6.6/drivers/gpu/drm/arm/
Dmalidp_crtc.c209 struct drm_color_ctm *ctm; in malidp_crtc_atomic_check_ctm() local
215 if (!state->ctm) in malidp_crtc_atomic_check_ctm()
218 if (crtc->state->ctm && (crtc->state->ctm->base.id == in malidp_crtc_atomic_check_ctm()
219 state->ctm->base.id)) in malidp_crtc_atomic_check_ctm()
226 ctm = (struct drm_color_ctm *)state->ctm->data; in malidp_crtc_atomic_check_ctm()
227 for (i = 0; i < ARRAY_SIZE(ctm->matrix); ++i) { in malidp_crtc_atomic_check_ctm()
229 s64 val = ctm->matrix[i]; in malidp_crtc_atomic_check_ctm()
Dmalidp_drv.c99 if (!crtc->state->ctm) { in malidp_atomic_commit_update_coloradj()
106 if (!old_state->ctm || (crtc->state->ctm->base.id != in malidp_atomic_commit_update_coloradj()
107 old_state->ctm->base.id)) in malidp_atomic_commit_update_coloradj()
/Linux-v6.6/drivers/gpu/drm/arm/display/komeda/
Dkomeda_color_mgmt.c123 struct drm_color_ctm *ctm; in drm_ctm_to_coeffs() local
129 ctm = ctm_blob->data; in drm_ctm_to_coeffs()
132 coeffs[i] = drm_color_ctm_s31_32_to_qm_n(ctm->matrix[i], 3, 12); in drm_ctm_to_coeffs()
/Linux-v6.6/drivers/gpu/drm/mediatek/
Dmtk_disp_ccorr.c107 struct drm_property_blob *blob = state->ctm; in mtk_ccorr_ctm_set()
108 struct drm_color_ctm *ctm; in mtk_ccorr_ctm_set() local
118 ctm = (struct drm_color_ctm *)blob->data; in mtk_ccorr_ctm_set()
119 input = ctm->matrix; in mtk_ccorr_ctm_set()
/Linux-v6.6/drivers/gpu/drm/tidss/
Dtidss_dispc.c2441 static void dispc_k2g_cpr_from_ctm(const struct drm_color_ctm *ctm, in dispc_k2g_cpr_from_ctm() argument
2447 cpr->m[CSC_RR] = dispc_S31_32_to_s2_8(ctm->matrix[0]); in dispc_k2g_cpr_from_ctm()
2448 cpr->m[CSC_RG] = dispc_S31_32_to_s2_8(ctm->matrix[1]); in dispc_k2g_cpr_from_ctm()
2449 cpr->m[CSC_RB] = dispc_S31_32_to_s2_8(ctm->matrix[2]); in dispc_k2g_cpr_from_ctm()
2450 cpr->m[CSC_GR] = dispc_S31_32_to_s2_8(ctm->matrix[3]); in dispc_k2g_cpr_from_ctm()
2451 cpr->m[CSC_GG] = dispc_S31_32_to_s2_8(ctm->matrix[4]); in dispc_k2g_cpr_from_ctm()
2452 cpr->m[CSC_GB] = dispc_S31_32_to_s2_8(ctm->matrix[5]); in dispc_k2g_cpr_from_ctm()
2453 cpr->m[CSC_BR] = dispc_S31_32_to_s2_8(ctm->matrix[6]); in dispc_k2g_cpr_from_ctm()
2454 cpr->m[CSC_BG] = dispc_S31_32_to_s2_8(ctm->matrix[7]); in dispc_k2g_cpr_from_ctm()
2455 cpr->m[CSC_BB] = dispc_S31_32_to_s2_8(ctm->matrix[8]); in dispc_k2g_cpr_from_ctm()
[all …]
/Linux-v6.6/drivers/gpu/drm/msm/
Dmsm_atomic.c192 if ((old_crtc_state->ctm && !new_crtc_state->ctm) || in msm_atomic_check()
193 (!old_crtc_state->ctm && new_crtc_state->ctm)) { in msm_atomic_check()
/Linux-v6.6/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_crtc.c747 struct drm_color_ctm *ctm; in _dpu_crtc_get_pcc_coeff() local
751 ctm = (struct drm_color_ctm *)state->ctm->data; in _dpu_crtc_get_pcc_coeff()
753 if (!ctm) in _dpu_crtc_get_pcc_coeff()
756 cfg->r.r = CONVERT_S3_15(ctm->matrix[0]); in _dpu_crtc_get_pcc_coeff()
757 cfg->g.r = CONVERT_S3_15(ctm->matrix[1]); in _dpu_crtc_get_pcc_coeff()
758 cfg->b.r = CONVERT_S3_15(ctm->matrix[2]); in _dpu_crtc_get_pcc_coeff()
760 cfg->r.g = CONVERT_S3_15(ctm->matrix[3]); in _dpu_crtc_get_pcc_coeff()
761 cfg->g.g = CONVERT_S3_15(ctm->matrix[4]); in _dpu_crtc_get_pcc_coeff()
762 cfg->b.g = CONVERT_S3_15(ctm->matrix[5]); in _dpu_crtc_get_pcc_coeff()
764 cfg->r.b = CONVERT_S3_15(ctm->matrix[6]); in _dpu_crtc_get_pcc_coeff()
[all …]
/Linux-v6.6/drivers/gpu/drm/i915/display/
Dintel_atomic.c251 if (crtc_state->hw.ctm) in intel_crtc_duplicate_state()
252 drm_property_blob_get(crtc_state->hw.ctm); in intel_crtc_duplicate_state()
281 drm_property_blob_put(crtc_state->hw.ctm); in intel_crtc_put_color_blobs()
Dintel_color.c410 (crtc_state->hw.degamma_lut || crtc_state->hw.ctm); in ilk_lut_limited_range()
436 const struct drm_color_ctm *ctm = crtc_state->hw.ctm->data; in ilk_csc_convert_ctm() local
448 input = ctm_mult_by_limited(temp, ctm->matrix); in ilk_csc_convert_ctm()
450 input = ctm->matrix; in ilk_csc_convert_ctm()
496 if (crtc_state->hw.ctm) { in ilk_assign_csc()
535 if (crtc_state->hw.ctm) { in icl_assign_csc()
601 const struct drm_color_ctm *ctm = crtc_state->hw.ctm->data; in vlv_wgc_csc_convert_ctm() local
605 csc->coeff[i] = ctm_to_twos_complement(ctm->matrix[i], 2, 10); in vlv_wgc_csc_convert_ctm()
671 if (crtc_state->hw.ctm) { in vlv_assign_csc()
693 const struct drm_color_ctm *ctm = crtc_state->hw.ctm->data; in chv_cgm_csc_convert_ctm() local
[all …]
Dintel_modeset_setup.c350 drm_property_replace_blob(&crtc_state->uapi.ctm, in intel_crtc_copy_hw_to_uapi_state()
351 crtc_state->hw.ctm); in intel_crtc_copy_hw_to_uapi_state()
/Linux-v6.6/drivers/gpu/drm/nouveau/dispnv50/
Dbase907c.c138 const struct drm_color_ctm *ctm) in base907c_csc() argument
150 *val = csc_drm_to_base(ctm->matrix[j * 3 + i]); in base907c_csc()
Dwndw.c421 if (wndw->func->csc && asyh->state.ctm) { in nv50_wndw_atomic_check_lut()
422 const struct drm_color_ctm *ctm = asyh->state.ctm->data; in nv50_wndw_atomic_check_lut() local
423 wndw->func->csc(wndw, asyw, ctm); in nv50_wndw_atomic_check_lut()
/Linux-v6.6/drivers/gpu/drm/
Ddrm_atomic_state_helper.c142 if (state->ctm) in __drm_atomic_helper_crtc_duplicate_state()
143 drm_property_blob_get(state->ctm); in __drm_atomic_helper_crtc_duplicate_state()
216 drm_property_blob_put(state->ctm); in __drm_atomic_helper_crtc_destroy_state()
Ddrm_atomic_uapi.c436 &state->ctm, in drm_atomic_crtc_set_property()
492 *val = (state->ctm) ? state->ctm->base.id : 0; in drm_atomic_crtc_get_property()
Ddrm_color_mgmt.c332 replaced |= drm_property_replace_blob(&crtc_state->ctm, NULL); in drm_crtc_legacy_gamma_set()
/Linux-v6.6/include/drm/
Ddrm_crtc.h262 struct drm_property_blob *ctm; member
/Linux-v6.6/drivers/gpu/drm/ci/
Dtestlist.txt1051 kms_color@ctm-red-to-blue
1052 kms_color@ctm-green-to-red
1053 kms_color@ctm-blue-to-red
1054 kms_color@ctm-max
1055 kms_color@ctm-negative
1056 kms_color@ctm-0-25
1057 kms_color@ctm-0-50
1058 kms_color@ctm-0-75
1059 kms_color@ctm-signed
1063 kms_color@invalid-ctm-matrix-sizes

12