struct dc_gamma *gamma;
struct drm_crtc_state *state = crtc->state;
struct drm_color_lut *lut = (struct drm_color_lut *) state->gamma_lut->data;
- struct dc_transfer_func *input_tf;
gamma = dc_create_gamma();
}
dc_surface->gamma_correction = gamma;
-
- input_tf = dc_create_transfer_func();
-
- if (input_tf == NULL)
- return;
-
- input_tf->type = TF_TYPE_PREDEFINED;
- input_tf->tf = TRANSFER_FUNCTION_SRGB;
-
- dc_surface->in_transfer_func = input_tf;
}
static void fill_plane_attributes(
const struct amdgpu_framebuffer *amdgpu_fb =
to_amdgpu_framebuffer(state->fb);
const struct drm_crtc *crtc = state->crtc;
+ struct dc_transfer_func *input_tf;
fill_rects_from_plane_state(state, surface);
fill_plane_attributes_from_fb(
amdgpu_fb,
addrReq);
+ input_tf = dc_create_transfer_func();
+
+ if (input_tf == NULL)
+ return;
+
+ input_tf->type = TF_TYPE_PREDEFINED;
+ input_tf->tf = TRANSFER_FUNCTION_SRGB;
+
+ surface->in_transfer_func = input_tf;
+
/* In case of gamma set, update gamma value */
if (state->crtc->state->gamma_lut) {
fill_gamma_from_crtc(crtc, surface);