Lines Matching refs:gamma_lut
1155 struct drm_color_lut gamma_lut[256];
1160 memset(gamma_lut, 0, sizeof(gamma_lut));
1162 util_smpte_fill_lut(info->ncolors, gamma_lut);
1163 drmModeCreatePropertyBlob(dev->fd, gamma_lut, sizeof(gamma_lut), &blob_id);
1166 * Initialize gamma_lut to a linear table for the legacy API below.
1171 gamma_lut[i].red =
1172 gamma_lut[i].green =
1173 gamma_lut[i].blue = i << 8;
1179 if (!add_property_optional(dev, crtc_id, "GAMMA_LUT", blob_id)) {
1180 /* If we can't add the GAMMA_LUT property, try the legacy API. */
1184 r[i] = gamma_lut[i].red;
1185 g[i] = gamma_lut[i].green;
1186 b[i] = gamma_lut[i].blue;