weston/libweston
Michael Olbrich 6b23ffabcf backend-wayland: immediately unref the renderbuffer for use shm buffers
wayland_output_destroy_shm_buffers() is called immediately before
output_destroy() of the renderer is called. And for the pixman renderer all
renderbuffers must be destroyed before the output can be destroyed.
Also, weston_renderbuffer_unref() is not called when the buffer is released
because buffer->output is now NULL, so the renderbuffer would be leaked.

So just unref the renderbuffer immediately. Set it to NULL to avoid unreffing it
again should wayland_output_destroy_shm_buffers() be called again before the
buffer is released. This can happen during an xdg-shell resize.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
2023-03-22 14:43:20 +00:00
..
backend-drm drm-backend: move aux function up to remove unnecessary declaration 2023-03-22 09:37:37 -03:00
backend-headless gl-renderer: use pixel_format_info instead of drm fourccs 2023-01-29 14:47:03 +01:00
backend-rdp backend: Make input notification functions use weston_coord 2023-02-09 12:12:40 +00:00
backend-vnc backend-vnc: client side cursor support 2023-03-22 11:58:34 +00:00
backend-wayland backend-wayland: immediately unref the renderbuffer for use shm buffers 2023-03-22 14:43:20 +00:00
backend-x11 backend-x11: use weston_coord to store previous pointer position 2023-02-24 18:44:19 +00:00
color-lcms color-lcms: add support for matrices 2022-09-28 10:28:28 +00:00
desktop libweston: Use weston_coord in surface committed handler 2023-02-24 18:44:19 +00:00
renderer-gl clipping: Use struct weston_coord in vertex clipping code 2023-02-09 12:12:40 +00:00
shell-utils libweston: Convert struct weston_subsurface to weston_coord 2023-02-24 18:44:19 +00:00
animation.c
auth.c libweston: Add user authentication support via PAM 2022-11-23 16:58:48 +01:00
backend.h backend: Make input notification functions use weston_coord 2023-02-09 12:12:40 +00:00
bindings.c
clipboard.c
color-noop.c
color.c
color.h gl-renderer: add matrix 2022-09-28 10:28:28 +00:00
compositor.c libweston: mitigate race when destroying outputs 2023-03-14 13:24:32 +02:00
content-protection.c
data-device.c libweston: Use weston_coord in surface committed handler 2023-02-24 18:44:19 +00:00
dbus.c
dbus.h
drm-formats.c
git-version.h.meson
gl-borders.c libweston, backends: move GL renderer interface into weston_renderer 2023-01-16 20:40:34 +01:00
gl-borders.h libweston, backends: move GL renderer interface into weston_renderer 2023-01-16 20:40:34 +01:00
input.c libweston: Add assert for valid confine region in maybe_warp_confined_pointer() 2023-03-13 16:09:33 -05:00
launcher-impl.h
launcher-libseat.c
launcher-logind.c libweston, backends: pass backend parameter to weston_backend functions 2023-01-13 18:55:59 +01:00
launcher-util.c
launcher-util.h
libinput-device.c input: Convert weston_pointer_motion_event to weston_coord 2023-02-09 12:12:40 +00:00
libinput-device.h compositor: Use paced logger for unknown scroll source 2022-11-08 08:32:26 -06:00
libinput-seat.c libweston: Use weston_coord in struct weston_pointer 2023-02-17 13:51:23 +00:00
libinput-seat.h
libweston-internal.h input: Use weston_coord for pointer clamping 2023-02-17 13:51:23 +00:00
linux-dmabuf.c helpers: Add a u64 from 2 u32 helper 2022-10-27 08:13:30 +00:00
linux-dmabuf.h linux-dmabuf: add missing includes and declarations 2022-12-16 15:05:10 +02:00
linux-explicit-synchronization.c
linux-explicit-synchronization.h
linux-sync-file-uapi.h
linux-sync-file.c
linux-sync-file.h
log.c libweston: Add weston_log_paced() 2022-11-08 08:32:26 -06:00
meson.build libweston: Add support for tearing-control 2023-02-01 10:12:55 -06:00
noop-renderer.c pixman-renderer: set renderbuffer via new repaint_output parameter 2023-01-23 20:05:21 +00:00
output-capture.c Revert "libweston: let weston_output_update_capture_info() take drm_format" 2023-01-28 12:59:16 +00:00
output-capture.h Revert "libweston: let weston_output_update_capture_info() take drm_format" 2023-01-28 12:59:16 +00:00
pixel-formats.c pixel-formats: add pixel_format_get_array() 2023-01-29 14:47:03 +01:00
pixel-formats.h pixel-formats: add pixel_format_get_array() 2023-01-29 14:47:03 +01:00
pixman-renderer.c pixman-renderer: hold a reference for renderbuffers on the output state list 2023-03-03 07:36:32 +00:00
pixman-renderer.h pixman-renderer: use pixel_format_info instead of pixman_format_code_t 2023-01-28 12:59:16 +00:00
plugin-registry.c
screenshooter.c screenshooter: Add SHM buffer destroy listener to avoid invalid memcpy 2022-10-03 16:52:16 +02:00
spring-tool.c
timeline.c
timeline.h
touch-calibration.c libweston: Use weston_coord space conversion functions 2023-02-01 07:27:05 -06:00
vertex-clipping.c clipping: Use struct weston_coord in vertex clipping code 2023-02-09 12:12:40 +00:00
vertex-clipping.h clipping: Use struct weston_coord in vertex clipping code 2023-02-09 12:12:40 +00:00
weston-direct-display.c
weston-log-file.c
weston-log-flight-rec.c weston-log-flight-rec: Map ring buffer using memset() 2023-03-10 11:35:04 +01:00
weston-log-internal.h
weston-log-wayland.c
weston-log.c weston-log: Fix documentation for weston_log_subscription_create 2022-07-01 17:20:18 +03:00