William McKinnon
c0063a29d6
Merge branch 'master' into 'master'
...
render: add gles3 renderer
See merge request wlroots/wlroots!5183
2025-12-29 07:16:21 +00:00
Félix Poisot
32d5fc1d11
render/color: introduce color_transform_compose
...
It flattens color transform pipelines, and facilitates building
pipelines of variable content
2025-12-18 14:58:28 +00:00
Simon Ser
9b4d9eabb1
color_management_v1: add helpers to get supported TFs/primaries
...
This avoids hardcoding lists of TFs/primaries in compositors.
I've considered adding wlr_color_manager_v1_create_with_renderer()
instead, but I'm worried that some aspects of the options struct
don't really depend on the renderer, but on the compositor. Such
things are features and render intents.
I've considered returning a const array, but this would tie our
hands if we want to make the renderer advertise the set of
TFs/primaries it supports, instead of having a single flag gating
all of them.
2025-12-15 11:07:26 -05:00
tokyo4j
ba931024a5
Add wlr_version_get_{major,minor,micro}()
...
Can be used to detect wlroots version at runtime rather than
compile-time.
2025-12-13 11:06:28 +00:00
Ilia Bozhinov
0e9c6ddefa
seat: add wlr_seat_touch_notify_clear_focus
...
This is needed for cases where the touch operation goes over a region
where no surfaces are present. In this case, we'd want to notify the
touch grabs (for example DnD grabs) that no focus is currently focused.
2025-12-11 21:10:59 +00:00
Félix Poisot
a962d58727
render/color: make wlr_color_primaries_from_named public
2025-12-05 19:14:49 +00:00
Félix Poisot
811765ffa0
output: don't rebuild cursor color transform for each update
2025-11-24 23:26:14 +00:00
Félix Poisot
7101a69804
scene: don't rebuild color transforms each frame
2025-11-24 23:26:14 +00:00
Félix Poisot
3d3d5fb1b7
render: remove buffer primaries from pass options
...
colorspace conversion is now carried explicitely by setting a
wlr_color_transform_matrix in the color transform
2025-11-24 23:26:14 +00:00
Félix Poisot
2cac711e55
render/vulkan: apply "matrix" color transforms in shader
2025-11-24 23:26:14 +00:00
Simon Ser
2995f31102
render/color: introduce wlr_color_transform_matrix
...
This is useful to perform color space conversions.
2025-11-24 23:26:14 +00:00
Félix Poisot
17f3f28865
render/color: add wlr_color_primaries_transform_absolute_colorimetric
2025-11-24 23:26:14 +00:00
Félix Poisot
b98904705d
render/vulkan: fix single-pass linear path
...
Fixes d1c88e9 "render/vulkan: add linear single-subpass"
`find_or_create_render_setup` still assumed a single-buffer setup
always implied use of an srgb format
2025-11-23 10:30:51 +00:00
Simon Ser
fa7b66bcf4
color_representation_v1: add helper to create global from renderer
2025-11-13 10:35:56 -05:00
Simon Ser
2fbc0b5ac1
scene: add support for color encoding and range
2025-11-13 10:35:56 -05:00
Simon Ser
e8f9e9eea6
color_representation_v1: make supported_alpha_modes const
2025-11-13 10:35:56 -05:00
Simon Ser
fecaf6d1e8
render/vulkan: add suport for color encoding and range
2025-11-13 10:35:56 -05:00
Simon Ser
2a87ec8a35
render: add color encoding and range to wlr_render_texture_options
2025-11-13 10:35:56 -05:00
Simon Ser
378a491823
render/color: turn enum wlr_color_encoding into a bitfield
...
This will allow us to describe the set of supported encodings as
a bitfield.
2025-11-13 10:35:56 -05:00
Félix Poisot
8f7d763ad1
drm: save edid color characteristics in wlr_output
2025-11-06 10:29:12 +00:00
William McKinnon
78bffc2df5
added gles3 impl
2025-10-27 01:14:02 -04:00
William McKinnon
00c96e3ac0
renamed gles2 components to gles
2025-10-27 01:13:14 -04:00
David Turner
879243e370
xwm: Fix double-close
...
When an FD is passed to xcb_connect_to_fd(), xcb takes ownership of that
FD and is responsible for closing it, which it does when
xcb_disconnect() is called. But the xwayland handler code also keeps a
copy of the FD and closes it via safe_close() in
server_finish_process().
This double-close can cause all sorts of problems if another part of
wlroots allocates another FD between the two closes - the latter close
will close the wrong FD and things go horribly wrong (in my case leading
to use-after-free and segfaults).
Fix this by setting wm_fd[0]=-1 after calling xwm_create(), and ensuring
that xwm_create() closes the FD if startup errors occur.
2025-10-20 14:02:29 +01:00
Simon Ser
989cffe70d
scene: add software fallback for gamma LUT
2025-10-18 20:36:01 +02:00
Simon Ser
3e08e3be4a
gamma_control_v1: introduce fallback_gamma_size
2025-10-18 20:36:01 +02:00
Simon Ser
91f4890ec2
gamma_control_v1: add wlr_gamma_control_v1_get_color_transform()
2025-10-18 20:36:01 +02:00
Simon Ser
74ce6c22a5
output: check for color transform no-op changes
...
This allows callers to always set this state and not care whether
the output currently has the same color transform applied.
2025-10-18 20:36:01 +02:00
Simon Ser
0b58bddf13
render/color: add wlr_color_transform_pipeline
...
Useful to apply multiple transforms in sequence, e.g. sRGB inverse
EOTF followed by gamma LUTs.
2025-10-18 20:36:01 +02:00
Simon Ser
3d36ab9211
render/color: add wlr_color_transform_eval()
...
Makes it so the Vulkan renderer can handle arbitrary color
transforms, and doesn't need to be updated each time a new one is
added.
2025-10-18 20:35:02 +02:00
llyyr
6e1c8748ff
render: introduce bt.1886 transfer function
2025-10-04 18:13:37 +05:30
Félix Poisot
d8fb7adcf0
scene, render: use Gamma 2.2 TF as default
2025-10-03 19:48:12 +00:00
Félix Poisot
c2d9ae2142
render: introduce Gamma 2.2 color transform
2025-10-03 19:39:17 +00:00
Simon Ser
7cb3393e75
scene: send color_management_v1 surface feedback
...
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3999
2025-09-23 09:22:00 -04:00
Simon Ser
26c1476827
color_management_v1: add destroy event to manager
2025-09-23 09:22:00 -04:00
Simon Ser
138210f01c
color_management_v1: make from_wlr enum converters public
...
This can be useful for compositors to set surface feedback.
2025-09-23 09:22:00 -04:00
Simon Ser
d1c88e9497
render/vulkan: add linear single-subpass
...
When the TF is set to EXT_LINEAR, we can write out color values
straight up to a non-SRGB image view.
2025-09-20 10:50:22 +00:00
Simon Ser
3e88a79e6f
render/vulkan: replace wlr_vk_render_pass.srgb_pathway with two_pass
...
The important bit here is whether this is using a single or two
sub-passes. The flag isn't used for anything else.
Preparation for an upcoming one-subpass codepath.
2025-09-20 10:50:22 +00:00
Simon Ser
b2d09cdee9
render/vulkan: add wlr_vk_render_pass.render_buffer_out
...
Simplifies the logic and prepares for a new render setup.
2025-09-20 10:50:22 +00:00
Simon Ser
35eba5f2fe
render/vulkan: add wlr_vk_render_pass.render_setup
...
Simplifies the logic and prepares for a new render setup.
2025-09-20 10:50:22 +00:00
Simon Ser
a91f96b391
render/vulkan: introduce wlr_vk_render_buffer_out
...
Holds common state for final output buffer targets.
2025-09-20 10:50:22 +00:00
Simon Ser
54374b6fe6
render/vulkan: rename plain to two_pass
...
We will introduce a new subpass without any post-processing step.
Rename "plain" so that there's no confusion.
2025-09-20 10:50:22 +00:00
tokyo4j
102a6bd415
input-method: use NULL when emitting signals
2025-09-08 10:56:57 -04:00
tokyo4j
06aacb2a6f
input-method: rename input_method event to new_input_method
2025-09-08 10:56:57 -04:00
Simon Zeni
0166fd9eb7
drm-lease-v1: remove connector active_lease & lease connectors
...
Upon leasing, the wlr_drm_lease_connector_v1 will be automatically clean up by the wlr_output
destroy handler. There is no need for the wlr_drm_lease_manager to keep track of leased connectors.
2025-08-28 16:33:35 +00:00
Simon Zeni
423afc3fc9
types: deprecate wlr-screencopy-unstable-v1
2025-08-28 16:23:56 +00:00
rewine
b799ffc6ae
docs: deprecate legacy wlr_data_control_v1 interface
...
Add deprecation notice for wlr_data_control_v1, indicating that
it's superseded by ext-data-control-v1.
Related: https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/merge_requests/136
2025-08-27 14:53:28 -04:00
Kirill Primak
ad1b2f2819
Avoid including generated headers publicly where possible
...
This is possible now that w-p ships enum headers. The remaining includes
are from wlr-protocols.
2025-08-13 22:46:37 +02:00
Kirill Primak
812675ba34
fixes: add implementation
2025-08-13 20:41:21 +00:00
Simon Ser
7392b3313a
backend, output: send commit events after applying all in wlr_backend_commit()
...
We were iterating over involved outputs, applying the new state and
sending the commit event for each one. This resulted in commit
events being fired while we weren't done applying the new state for
all outputs.
Fix this by first applying all of the states, then firing all of
the events.
Closes: https://github.com/swaywm/sway/issues/8829
2025-08-12 19:04:05 +02:00
rewine
c8b7600adc
wlr_ext_data_control_v1: Make all listeners private
...
For more context, see: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4873
2025-07-30 12:37:19 +00:00