• Philipp Zabel's avatar
    compositor-drm: clear gbm_surface pointer after destroying the GBM surface · 5c8eef14
    Philipp Zabel authored
    Since commit ee1d968e ("compositor-drm: Fall back if GBM surface fails with
    modifiers"), drm_output_init_egl requires output->gbm_surface to be NULL, or
    gbm_surface_create will not be called if HAVE_GBM_MODIFIERS is enabled but no
    modifiers are supported by the plane. This could happen if _init_egl is called
    after drm_ouptut_fini_egl drom drm_output_switch_mode.
    
    Add an assert to guarantee the requirement and clears the gbm_surface pointer
    after the surface is destroyed.
    Signed-off-by: 's avatarPhilipp Zabel <p.pzabel@pengutronix.de>
    5c8eef14
Name
Last commit
Last update
..
animation.c Loading commit data...
bindings.c Loading commit data...
clipboard.c Loading commit data...
compositor-drm.c Loading commit data...
compositor-drm.h Loading commit data...
compositor-fbdev.c Loading commit data...
compositor-fbdev.h Loading commit data...
compositor-headless.c Loading commit data...
compositor-headless.h Loading commit data...
compositor-rdp.c Loading commit data...
compositor-rdp.h Loading commit data...
compositor-wayland.c Loading commit data...
compositor-wayland.h Loading commit data...
compositor-x11.c Loading commit data...
compositor-x11.h Loading commit data...
compositor.c Loading commit data...
compositor.h Loading commit data...
data-device.c Loading commit data...
dbus.c Loading commit data...
dbus.h Loading commit data...
git-version.h.meson Loading commit data...
gl-renderer.c Loading commit data...
gl-renderer.h Loading commit data...
input.c Loading commit data...
launcher-direct.c Loading commit data...
launcher-impl.h Loading commit data...
launcher-logind.c Loading commit data...
launcher-util.c Loading commit data...
launcher-util.h Loading commit data...
launcher-weston-launch.c Loading commit data...
libbacklight.c Loading commit data...
libbacklight.h Loading commit data...
libinput-device.c Loading commit data...
libinput-device.h Loading commit data...
libinput-seat.c Loading commit data...
libinput-seat.h Loading commit data...
libweston-protocols.pc.in Loading commit data...
libweston-uninstalled.pc.in Loading commit data...
libweston.pc.in Loading commit data...
linux-dmabuf.c Loading commit data...
linux-dmabuf.h Loading commit data...
linux-explicit-synchronization.c Loading commit data...
linux-explicit-synchronization.h Loading commit data...
linux-sync-file-uapi.h Loading commit data...
linux-sync-file.c Loading commit data...
linux-sync-file.h Loading commit data...
log.c Loading commit data...
meson.build Loading commit data...
noop-renderer.c Loading commit data...
pixel-formats.c Loading commit data...
pixel-formats.h Loading commit data...
pixman-renderer.c Loading commit data...
pixman-renderer.h Loading commit data...
plugin-registry.c Loading commit data...
plugin-registry.h Loading commit data...
screenshooter.c Loading commit data...
spring-tool.c Loading commit data...
timeline-object.h Loading commit data...
timeline.c Loading commit data...
timeline.h Loading commit data...
touch-calibration.c Loading commit data...
vaapi-recorder.c Loading commit data...
vaapi-recorder.h Loading commit data...
version.h.in Loading commit data...
vertex-clipping.c Loading commit data...
vertex-clipping.h Loading commit data...
weston-debug.c Loading commit data...
weston-debug.h Loading commit data...
weston-launch.c Loading commit data...
weston-launch.h Loading commit data...
windowed-output-api.h Loading commit data...
zoom.c Loading commit data...