weston/libweston/backend-drm
Pekka Paalanen debfeb3049 backend-drm: reset CRTC_GAMMA_LUT
We are assuming that CRTC_GAMMA_LUT is pass-through, so better ensure it
really is pass-through rather than whatever the previous KMS client left
there.

Unfortunately, we have old drm_output_set_gamma() API that cms-static
and cms-colord plugins are using. To avoid trampling over them, do not
touch gamma after they did. Those plugins are deprecated, so there is no
reason to make set_gamma work through atomic.

drm_output_set_gamma() is called from weston_compositor_add_output()
through the output_created_signal. This is after drm_output_enable() and
before any KMS modeset or atomic commit on the CRTC. Therefore it is not
possible that there would be any KMS action in flight when
drm_output_set_gamma() is called, and so setting deprecated_gamma_is_set
should be non-racy - like setting CRTC_GAMMA_LUT itself.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2023-01-10 11:28:27 +00:00
..
drm-gbm.c gl-renderer: pass initial output area explicitly 2022-09-23 12:42:05 +00:00
drm-internal.h backend-drm: reset CRTC_GAMMA_LUT 2023-01-10 11:28:27 +00:00
drm-virtual.c backend-drm: drop use_pixman from drm_backend 2022-12-08 09:44:20 +00:00
drm.c backend-drm: Use renderer enum type for config selection 2023-01-10 10:59:04 +02:00
fb.c drm: Pass paint node to drm_view_transform_supported 2023-01-09 21:58:19 +00:00
kms-color.c Revert "backend-drm: add HDR_OUTPUT_METADATA definitions" 2022-06-07 09:35:14 +01:00
kms.c backend-drm: reset CRTC_GAMMA_LUT 2023-01-10 11:28:27 +00:00
libbacklight.c libbacklight: Fix backlight never gets initialized 2022-04-11 08:38:00 +03:00
libbacklight.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
meson.build build: simplify dep_egl a bit 2022-12-14 11:57:24 +00:00
modes.c backend-drm: get the drm device from the output 2022-06-03 09:17:49 +02:00
state-helpers.c drm: Pass paint node to drm_view_transform_supported 2023-01-09 21:58:19 +00:00
state-propose.c drm: Pass paint node to drm_plane_state_coords_for_view 2023-01-09 21:58:19 +00:00
vaapi-recorder.c drm/vaapi: Fix pointer-size confusion 2021-08-03 11:13:23 +00:00
vaapi-recorder.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00