termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
2k stars 303 forks source link

dri3 extension makes lavapipe driver failure #639

Closed yu-zify closed 4 months ago

yu-zify commented 4 months ago

I found that since Termux-X11 supports the DRI3 extension, the Lavapipe (the Software Vulkan Driver) driver has a problem that show the black window of the lavapipe vulkan program。

such as vkcube: Screenshot_2024-05-21-00-20-34-131_com termux x11

If I use vnc or an older version of termux-x11,lavapipe vkcube works fine. vnc: Screenshot_2024-05-21-15-18-45-693_com gaurav avnc

I tried change the code to turn off the dri3 extension to get lavapipe to run successfully as well. Screenshot_2024-05-21-15-13-17-267_com kiwibrowser browser Screenshot_2024-05-21-15-13-50-722_com kiwibrowser browser

why is that?

twaik commented 4 months ago

Probably lavapipe queries dri3 support but does not check if x server's dri3 implementation supports bitmap types it requires. I can make dri3 support optional if it will help you.

yu-zify commented 4 months ago

Thanks,this is useful for devices that don't support Turnip.

twaik commented 4 months ago

From now you can use -disable-dri3 option to make lavapipe work.