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
Ivan Molodetskikh
42bb79d7c3
tty: Rename vblank offset plot to time since presentation
...
Makes it clearer what this is.
2023-11-24 09:19:49 +04:00
Ivan Molodetskikh
588e6d7cdd
tty: Rename presentation target offset plot to misprediction
...
Makes it clearer what this is.
2023-11-24 09:15:25 +04:00
Kirill Chibisov
0a2052945e
Add support for wl_compositor@v6
2023-10-29 13:58:48 +04:00
Ivan Molodetskikh
e73f33d6a3
Draw background with a solid color buffer
2023-10-29 10:45:24 +04:00
Kirill Chibisov
345428bce7
Drop GbmDevice in the end
...
The `GbmDevice` must be destroyed after destroying all the objects
associated with it.
2023-10-27 16:48:49 +04:00
Ivan Molodetskikh
3fd421f13f
Update Smithay
2023-10-24 15:05:14 +04:00
Ivan Molodetskikh
d59fe34243
Make clear color a const
...
The damage tracker doesn't understand clear color changes.
2023-10-13 13:30:36 +04:00
Ivan Molodetskikh
29053a807b
Return RenderResult from render()
2023-10-13 13:30:36 +04:00
Ivan Molodetskikh
0a32747495
Send dmabuf feedbacks from the backend
2023-10-13 13:30:36 +04:00
Ivan Molodetskikh
f625dede1a
Extract niri.clear_color()
2023-10-13 13:30:36 +04:00