mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
backend/drm: apply gamma LUT on page-flip
This commit is contained in:
parent
69b2279092
commit
70883fd10b
6 changed files with 87 additions and 70 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue