Commit e201189
committed
tu/wsi: unconditionally allow presentation on KGSL devices
KGSL exposes the GPU through /dev/kgsl-3d0, which is not a DRM device.
As a result, drmGetDevice2() always fails when called on the KGSL fd,
causing wsi_common_drm_devices_equal() to return false and making
can_present_on_device() deny all WSI presentation, which breaks
vkCreateSwapchainKHR on Adreno devices using the KGSL kernel driver.
Since this build exclusively targets KGSL, there is no need to match
display fds against the GPU device via the DRM subsystem. Simplify
tu_wsi_can_present_on_device() to unconditionally return true.1 parent 9113a0b commit e201189
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
0 commit comments