mesa/src/virtio
Joshua Ashton 3a0ba0f05a venus: Fix zero-initialized fd causing apps to hang/crash
Some apps such as Gamescope crash under the mere presence of the virtio Vulkan driver without using a device.

This is because virtgpu::fd is zero-initialized upon allocation, which causes fd 0 to be closed in virtgpu_destroy.

Cc: mesa-stable
Fixes: 247232d5 ("venus: add experimental renderers")
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10814>
(cherry picked from commit 6fcf3314d0)
2021-05-18 23:02:27 +02:00
..
venus-protocol venus: update venus-protocol headers 2021-04-09 16:58:46 +00:00
virtio-gpu virgl: move new added field to the end. 2021-04-20 19:42:28 +02:00
vtest virgl: update headers from virglrenderer 2021-04-08 17:15:37 +00:00
vulkan venus: Fix zero-initialized fd causing apps to hang/crash 2021-05-18 23:02:27 +02:00
meson.build venus: add driver skeleton 2021-04-08 17:15:37 +00:00