search for: lut_size

Displaying 1 result from an estimated 1 matches for "lut_size".

Did you mean: out_size
2019 Jun 20
0
[PATCH] drm/nouveau/kms/gf119-: allow both 256- and 1024-sized LUTs to be used
...193,7 +193,23 @@ nv50_head_atomic_check_lut(struct nv50_head *head, struct nv50_head_atom *asyh) { struct nv50_disp *disp = nv50_disp(head->base.base.dev); + struct drm_property_blob *ilut = asyh->state.degamma_lut; struct drm_property_blob *olut = asyh->state.gamma_lut; + int ilut_size = ilut ? drm_color_lut_size(ilut) : 0; + int olut_size = olut ? drm_color_lut_size(olut) : 0; + + if (!head->func->lut_chk(ilut_size)) { + DRM_DEBUG_KMS("Invalid DEGAMMA_LUT size: %d\n", ilut_size); + return -EINVAL; + } + if (!head->func->lut_chk(olut_size)) { + DRM_DEBUG_...