mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 04:48:04 +02:00
drm: Fix pageflip counter crash when using multiple backends
We need to skip non-drm backends in the output list to avoid a NULL pointer dereference. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
3dce9e8c24
commit
37bf61c68c
1 changed files with 4 additions and 0 deletions
|
|
@ -201,6 +201,10 @@ pageflip_timer_counter_handler(void *data)
|
|||
struct drm_output *output = to_drm_output(output_base);
|
||||
char desc[1024];
|
||||
|
||||
/* Skip outputs on other backends */
|
||||
if (!output)
|
||||
continue;
|
||||
|
||||
output->page_flips_per_timer_interval =
|
||||
(float) (output->page_flips_counted /
|
||||
b->perf_page_flips_stats.frame_counter_interval);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue