aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-05-07 17:50:40 +0200
committerSimon Ser <contact@emersion.fr>2020-05-09 16:42:25 +0200
commit70883fd10beba4f78e3325eb6e38750360502f58 (patch)
tree03b41327d9e610af0c21ac11d5c622ab5d024e0f /include/backend/drm
parent69b22790923186bea48ab23e413927334eff828b (diff)
backend/drm: apply gamma LUT on page-flip
Diffstat (limited to 'include/backend/drm')
-rw-r--r--include/backend/drm/drm.h1
-rw-r--r--include/backend/drm/iface.h7
2 files changed, 4 insertions, 4 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index e8fc452a..9efa3eaa 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -44,6 +44,7 @@ struct wlr_drm_plane {
enum wlr_drm_crtc_field {
WLR_DRM_CRTC_MODE = 1 << 0,
+ WLR_DRM_CRTC_GAMMA_LUT = 1 << 1,
};
struct wlr_drm_crtc {
diff --git a/include/backend/drm/iface.h b/include/backend/drm/iface.h
index 6e074249..b99262b8 100644
--- a/include/backend/drm/iface.h
+++ b/include/backend/drm/iface.h
@@ -22,10 +22,6 @@ struct wlr_drm_interface {
// Enable the cursor buffer on crtc. Set bo to NULL to disable
bool (*crtc_set_cursor)(struct wlr_drm_backend *drm,
struct wlr_drm_crtc *crtc, struct gbm_bo *bo);
- // Set the gamma lut on crtc
- bool (*crtc_set_gamma)(struct wlr_drm_backend *drm,
- struct wlr_drm_crtc *crtc, size_t size,
- uint16_t *r, uint16_t *g, uint16_t *b);
// Get the gamma lut size of a crtc
size_t (*crtc_get_gamma_size)(struct wlr_drm_backend *drm,
struct wlr_drm_crtc *crtc);
@@ -34,4 +30,7 @@ struct wlr_drm_interface {
extern const struct wlr_drm_interface atomic_iface;
extern const struct wlr_drm_interface legacy_iface;
+bool drm_legacy_crtc_set_gamma(struct wlr_drm_backend *drm,
+ struct wlr_drm_crtc *crtc);
+
#endif