Simon Ser
06d5aa5780
backend/drm: GAMMA_LUT_SIZE isn't atomic
...
GAMMA_LUT_SIZE isn't an atomic property. It can be used with the legacy
interface too. So we can unify both codepaths and remove
wlr_drm_interface.crtc_get_gamma_size.
It's no guaranteed to exist though, so we still need to keep the
fallback.
5 years ago
Simon Ser
da63d11d34
backend/drm: remove crtc_set_cursor from interface
5 years ago
Simon Ser
f8e02db4bc
backend/drm: remove conn_enable from interface
...
Use crtc_commit instead.
5 years ago
Simon Ser
c608fc89d8
backend/drm: rename crtc_pageflip to crtc_commit
...
Also add a flags argument.
The commit function will also be used for disabling the CRTC.
5 years ago
Simon Ser
70883fd10b
backend/drm: apply gamma LUT on page-flip
5 years ago
Simon Ser
69b2279092
backend/drm: remove mode argument to crtc_pageflip
...
Add a new wlr_drm_crtc.pending bitfield which keeps track of pending
output changes. More fields will be added in the future (e.g. active,
gamma).
5 years ago
Simon Ser
c9d6b18eef
backend/drm: remove wlr_drm_interface.crtc_move_cursor
...
Instead, make the legacy backend call drmModeMoveCursor on page-flip.
5 years ago
Scott Anderson
52281cb8ba
backend/drm: move atomic cursor code into pageflip code
...
It makes sense to construct as much atomic state as possible in the same
place, so it doesn't get lost if we "reset" it.
5 years ago
emersion
2beb68007e
output: make gamma size a size_t and gamma table const
6 years ago
emersion
c2e1474010
Reformat all #include directives
7 years ago
Vincent Vanlaer
ab011406ad
Add atomic gamma lut size fetching
...
Legacy gamma lut size now uses the new legacy_crtc member of
wlr_drm_crtc. This was Previously doen using old_crtc in
wlr_drm_connector, but since this refers to the crtc that was connected to
the ouput, this could give the wrong result.
7 years ago
Vincent Vanlaer
cc1229e75e
Add atomic gamma setting
7 years ago
emersion
53ba9b4eec
Fix output enable in DRM backend
7 years ago
Scott Anderson
f193623ca1
Change iface prefix to suffix
7 years ago
Scott Anderson
4101b89700
Rename wlr_drm_output to wlr_drm_connector
7 years ago
Scott Anderson
22e77d9195
Rename backend to drm
7 years ago
Scott Anderson
d0708b1a3a
Split DRM internal interface to its own header
7 years ago