Ivan Molodetskikh
202406aadf
Fix presentation feedback panic with zero presentation time
2024-03-01 07:55:09 +04:00
Ivan Molodetskikh
92d9c7ff4f
Add emulate-zero-presentation-time debug flag
2024-03-01 07:54:58 +04:00
Ivan Molodetskikh
48f0f6fb3c
Implement gradient borders
2024-02-21 22:15:21 +04:00
Ivan Molodetskikh
7d41f113cb
Change non-bug error! to warn!
...
Be consistent with our usage.
2024-02-21 09:20:34 +04:00
Ivan Molodetskikh
b8aa0a86e7
Fix debug tint desync for new outputs
2024-02-21 07:58:23 +04:00
Ivan Molodetskikh
d8fb8d5ef0
Update for Smithay MultiGpu shadow copies
2024-02-18 21:12:07 +04:00
Ivan Molodetskikh
8e1d4de0dc
tty: Filter out interlaced modes
...
They don't seem to work. wlroots also filters them:
https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/feb54979c0940655e36119c63e18a9ee72cc03b0/backend/drm/drm.c#L1461
2024-02-14 21:14:01 +04:00
Ivan Molodetskikh
78cda2e67f
tty: Truncate Edid strings to nul
...
Otherwise they crash in wayland-rs when converting to CString.
2024-02-14 19:49:34 +04:00
Shawn Wallace
385454378b
Implement DRM leasing
...
Closes #178
2024-02-12 09:48:54 +04:00
Ivan Molodetskikh
a99f34cba8
tty: Activate monitors on session resume
2024-02-12 08:45:45 +04:00
Ivan Molodetskikh
bd2277fa25
tty: Notify idle activity on session resume
2024-02-12 08:42:34 +04:00
Ivan Molodetskikh
5c4d9824a4
Remove logind-zbus dependency
...
It isn't updated and we don't really need it anyway.
2024-02-10 14:58:22 +04:00
Ivan Molodetskikh
b2298db5c5
Split render_helpers.rs
2024-02-06 11:25:25 +04:00
Ivan Molodetskikh
3dc4a5fdac
Fix Clippy warnings
2024-02-05 17:40:16 +04:00
Ivan Molodetskikh
3789d85588
Add lib.rs, become a mixed lib-bin crate
...
Will be used for visual tests.
2024-02-05 17:40:16 +04:00
Ivan Molodetskikh
9afd728ae9
Add error messages to backend initialization
2024-02-01 16:55:46 +04:00
Christian Meissl
b813f99abd
tty: reset surface state after changing monitor state
...
changing the "ACTIVE" property of a surface requires
to re-evaluate the surface state.
2024-01-30 08:03:21 +04:00
Christian Meissl
5f99eb13ab
Remove hack for fixed EGLDisplay issue
2024-01-25 07:49:51 +04:00
Christian Meissl
20326b093c
Update smithay
2024-01-25 07:49:51 +04:00
Ivan Molodetskikh
ab9706cb30
screencast: Emit MonitorsChanged
2024-01-23 12:02:52 +04:00
Ivan Molodetskikh
cbbb7a26fc
Update Smithay, use device changed session resume code
...
Should fix most cases of monitors failing to light up after a TTY
switch.
2024-01-22 16:13:39 +04:00
Ivan Molodetskikh
df48337d83
tty: Delay output config update until resume
...
We can't do anything while paused.
2024-01-21 10:25:39 +04:00
Ivan Molodetskikh
f5e9b40140
tty: Check changes against pending connectors and mode
...
If we queued some DRM changes, they will be in pending. Also be more
resilient by removing unwrap.
2024-01-21 10:24:42 +04:00
Ivan Molodetskikh
40c85da102
Add an IPC socket and a niri msg outputs subcommand
2024-01-17 10:45:18 +04:00
Ivan Molodetskikh
768b326028
Rename connectors to enabled_outputs
2024-01-17 10:25:23 +04:00
Ivan Molodetskikh
6703d5ce72
tty: Add Tracy span to on_output_config_changed()
2024-01-17 10:21:40 +04:00
Ivan Molodetskikh
1f9abaaa58
Add live-reload for output mode
2024-01-16 18:02:30 +04:00
Ivan Molodetskikh
eb4946c3d8
tty: Extract pick_mode()
2024-01-16 18:01:25 +04:00
Ivan Molodetskikh
5f440f7be3
Add live-reload for output on/off
2024-01-16 15:34:00 +04:00
Ivan Molodetskikh
6644cc16ff
tty: Remove connector arg from connector_disconnected()
2024-01-16 15:33:37 +04:00
Ivan Molodetskikh
6ca3b6ddb5
Move output scale setting into niri
2024-01-16 09:46:02 +04:00
Ivan Molodetskikh
64c41fa2c8
Move config into a separate crate
...
Get miette and knuffel deps contained within.
2024-01-07 09:28:14 +04:00
Ivan Molodetskikh
3d5de921cd
Add render-drm-device debug config option
2024-01-06 09:14:48 +04:00
Ivan Molodetskikh
8703feedee
tty: Print full path to render node
2024-01-06 08:46:30 +04:00
Ivan Molodetskikh
1c7c5b3f28
tty: Avoid non-linear cross-device formats
2024-01-05 23:23:32 +04:00
Ivan Molodetskikh
5cd31e5730
Implement multi-GPU support
...
Rendering always happens on the primary GPU.
2024-01-03 18:16:20 +04:00
Ivan Molodetskikh
de3fc2def0
Make rendering generic over renderer
2024-01-03 18:05:15 +04:00
Ivan Molodetskikh
fd1d4b07fd
Replace renderer() with with_primary_renderer()
2024-01-03 11:38:09 +04:00
Ivan Molodetskikh
8b5acd5e6e
Rename RenderResult::Error to Skipped
2024-01-03 11:38:07 +04:00
Ivan Molodetskikh
31bb9096e2
Move Niri::render() invocation to backends
2024-01-03 11:38:02 +04:00
Ivan Molodetskikh
57a7347620
Move import_dmabuf to backends
2024-01-03 11:37:04 +04:00
Ivan Molodetskikh
628891db2c
Add disable-cursor-plane debug flag
2024-01-03 08:42:49 +04:00
Ivan Molodetskikh
be6e25f5fb
tty: Extract config variable
2024-01-03 08:42:49 +04:00
Ivan Molodetskikh
655fe413fb
tty: Don't store render formats
...
Actually, how did it even fork before? Pretty sure it was storing render
formats, not texture formats, but with render formats
weston-simple-dmabuf-feedback doesn't work?
2024-01-01 17:31:58 +04:00
Ivan Molodetskikh
ac6ff7ff41
tty: Disable dmabuf global before destroying
2024-01-01 17:31:58 +04:00
Ivan Molodetskikh
84befb4e91
tty: Move dmabuf_global up into Tty
2024-01-01 09:54:45 +04:00
Ivan Molodetskikh
d39f7bebf3
tty: Fix import sorting
...
One of the imports was too long so rustfmt bailed.
2024-01-01 09:40:41 +04:00
Ivan Molodetskikh
0dd9a42087
Move DmabufState to Niri
2023-12-31 12:02:39 +04:00
Ivan Molodetskikh
d155f5cd6c
Add a config flag to disable an output
2023-12-18 10:27:41 +04:00
Ivan Molodetskikh
0d2ed2e14a
tty: Fix clippy warning
2023-11-24 09:50:30 +04:00