aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-11xdg-foreign-v2: return wlr_xdg_toplevel in verify_is_toplevel()Simon Ser
This makes it clearer that the wlr_xdg_toplevel cannot be NULL.
2022-09-11xdg-foreign-v1: return wlr_xdg_toplevel in verify_is_toplevel()Simon Ser
This makes it clearer that the wlr_xdg_toplevel cannot be NULL.
2022-09-08backend/wayland: drop output_set_custom_mode()Simon Ser
It's an unnecessary wrapper.
2022-09-08wlr_virtual_pointer_v1: fix discrete scrollingConsolatis
It seems it was forgotten to adjust when implementing !3461 High-resolution scroll wheel support
2022-09-07render/vulkan: remove unnecessary castsSimon Ser
No need to go back to the generic wlr_renderer/wlr_texture when passing a Vulkan renderer/texture to an internal function.
2022-09-07render/vulkan: fix format features check for shm texturesSimon Ser
We were checking whether any of the features was supported. We need to check if all of them are. This makes the check consistent with query_modifier_support() above.
2022-09-07render/vulkan: drop wlr_vk_device.extensionsSimon Ser
We don't need to store the list of enabled extensions. While at it, rename variables to be less confusing.
2022-09-07render/vulkan: drop ext params from vulkan_device_create()Simon Ser
These are unused.
2022-09-07egl: modify egl_init_display function definitionfakechen
I think the second parameter of the function should be void* instead of void **, because we use it as a right value in the function. Signed-off-by: fakechen <chenzigui@kylinos.cn> Signed-off-by: sunzg <sunzhigang1@kylinos.cn>
2022-09-06pixel_format: RGBA4444 and RGBA5551 have alpha componentsAlexander Orzechowski
2022-09-05compositor: fix wlr_surface_set_role return value docsSimon Ser
It returns a bool, not an int.
2022-09-05wlr_scene: Clarify surface commit frame eventsAlexander Orzechowski
2022-09-03wlr_scene: Consider screen position when culling backgroundAlexander Orzechowski
2022-08-30output: remove unknown adaptive sync stateIsaac Freund
This was previously used by the X11 backend but is no longer required since the previous commit.
2022-08-30backend/x11: report adaptive sync as enabledIsaac Freund
All we can do to influence adaptive sync on the X11 backend is set the _VARIABLE_REFRESH window property like mesa automatically does. We don't have any control beyond that, so we set the state to enabled on creating the output and never allow changing it (just like the Wayland backend).
2022-08-30backend/wayland: report adaptive sync as enabledIsaac Freund
Adaptive sync is effectively always enabled when using the Wayland backend. This is not something we have control over, so we set the state to enabled on creating the output and never allow changing it.
2022-08-30output: fail commits if adaptive sync cannot be enabledSimon Ser
Previously, adaptive sync was just a hint and wouldn't make any atomic commit fail if the backend didn't support it. The main reason is wlr_output_test wasn't supported at the time. Now that we have a way for compositors to test whether a change can work, let's remove the exception for adaptive sync and convert it to a regular output state field.
2022-08-30output-layout: improve wlr_output_layout_output_in_direction()Kirill Primak
Now the function checks if the reference output belongs to the layout, and returns NULL if it doesn't.
2022-08-30output-layout: avoid uninitialized wlr_box fieldsKirill Primak
2022-08-30cursor: avoid uninitialized wlr_box fieldsKirill Primak
2022-08-30wlr_compositor: Don't leak region32 when calculating opaque regionAlexander Orzechowski
2022-08-29wlr_scene: Don't leak a region32 when texture failed to uploadAlexander Orzechowski
2022-08-29wlr_scene: More sanity checkingAlexander Orzechowski
The render list should neither contain scene trees or null buffers.
2022-08-29util/set: overhaulKirill Primak
2022-08-29util/array: unclutterKirill Primak
2022-08-28render/vulkan: fix memory type detectionBernardo Meurer
From a comment by emersion: > There is a logic error here: we pass 0xFFFFFFFF to vulkan_find_mem_type, which > returns an index, and then we logical-and that with mem_reqs.memoryTypeBits. > Instead we should pass mem_reqs.memoryTypeBits to vulkan_find_mem_type and use > the result for the memoryTypeIndex field directly. Ideally checking for errors > (-1 return value) in case no memory type is suitable. Closes: #3470
2022-08-28output: clean up after modifierless test failureIsaac Freund
If the first test in output_ensure_buffer() fails with modifiers we replace the swapchain with a modifierless swapchain and try again. However if that fails as well the output is currently stuck without modifiers until the next modeset. To fix this, destroy the modifierless swapchain if the test using it fails. The next output_attach_back_buffer() call will create a swapchain that allows modifiers when needed.
2022-08-26wlr_scene: Only consider visible parts of the node when culling backgroundAlexander Orzechowski
Originally, I thought that we could safely subtract opaque regions from the background even if the black rect optimization was kicking in. This is wrong because a scene node that isn't fully occluded will still appear in the render list even if its partially under a black rect. We need to make sure that while culling the background, we only consider opaque regions that are also visible. This will fix the black rect optimization with the background.
2022-08-26scene/wlr_scene:fix judgment of invisible nodeyiqiang
2022-08-25wlr_compositor: Use wlr_fbox_equalAlexander Orzechowski
2022-08-25wlr-output-management: fix broken assertsIsaac Freund
These asserts were broken in 4c1afb12 as new implementations were added without updating the wl_resource_instance_of() calls.
2022-08-24wlr-output-management: Implement version 3 release requestsIsaac Freund
Head/mode resources older than version 3 and lacking a release request are intentionally leaked as this is the only way to fix the race. Implements: https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/merge_requests/114
2022-08-22wlr_scene: Initialize region32 before trying to use itAlexander Orzechowski
2022-08-22Use env helpersAlexander Orzechowski
2022-08-22util: Introduce env helpersAlexander Orzechowski
2022-08-22wlr_scene: Improve awkward code styleAlexander Orzechowski
2022-08-22wlr_scene: Cull backgroundAlexander Orzechowski
We don't need to worry about the black rect optimization here (that always assumes that there will be a black background) because the background is culled based on the render list. That means if a black rect is removed, the visibility will reach all the way to the bottom forcing the renderer to clear the area not breaking the assumption.
2022-08-19wlr_scene: Only enable black rect optimization if culling is enabledAlexander Orzechowski
If culling is not enabled, there is no longer any guarantee that the elements behind the rect won't be rendered. We must render the black rect in all circumstances to cover up anything rendered. This fixes the WLR_SCENE_DISABLE_VISIBILTY option.
2022-08-19wlr_scene: Simplify calculate_visibilty optionAlexander Orzechowski
2022-08-19wlr_scene: Convert render_list to wl_arrayKenny Levinsen
This simplifies some of the growth logic, but uses array_realloc to shrink the array if needed.
2022-08-19util/array: Add array_realloc for wl_arrayKenny Levinsen
array_realloc will grow the array for the target size like wl_insert_add, but will also shrink the array if the target size is sufficiently smaller than the current allocation.
2022-08-19types/wlr_xdg_output_v1: Fix wl_output.done bug.Mark Bolhuis
If the client binds to version 3 of zxdg_output_v1 and version 1 of wl_output no wl_output.done or zxdg_output_v1.done event is emitted [1]. Also no wl_output.done event is emitted when version 2 or lower of zxdg_output_v1 is bound to. Add a version check to output_manager_handle_get_xdg_output so that no wl_output.done event is emitted when using version 1 of wl_output and version 2 or lower of zxdg_output_v1. [1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/81
2022-08-18Remove wlr_signal_emit_safeAlexander Orzechowski
2022-08-18Use wl_signal_emit_mutableAlexander Orzechowski
2022-08-18build: remove libkms option and disable tests for libdrm fallbackSimon Zeni
2022-08-16wlr_scene: fix color value when filtering black boxesyiqiang
Signed-off-by: yiqiang <yiqiang@kylinos.cn>
2022-08-15wlr_scene: Use wlr_box_equalAlexander Orzechowski
2022-08-15wlr_scene: Use wlr_fbox_equalsAlexander Orzechowski
2022-08-15util/box: Introduce wlr_fbox_equalAlexander Orzechowski
2022-08-15util/box: Introduce wlr_box_equalAlexander Orzechowski