cheadrian / termux-chroot-proot-wine-box86_64

Repo with instruction about how you can setup Proot / Chroot using Termux and GPU acceleration for Box86, Wine, etc.
252 stars 22 forks source link

Glxgears or any app won't run under virgl. #17

Open PaimonAndTails opened 11 months ago

PaimonAndTails commented 11 months ago

I installed mesa-link and VirGL through the add-ons menu, then i launched the XFCE session with zink, and attempted to run the glxgears app with GALLIUM_DRIVER=virpipe glxgears and it gave me this: Screenshot_20230926_161218_TermuxX11 I tried searching on Google for this error but got no results. How can I solve this problem?

cheadrian commented 10 months ago

Can you provide more details? On what device you are running the proot? Try to alternate the _--no-sysvipc_ inside _LaunchXFCEproot.

NepbluNoGaGeX commented 2 weeks ago

Me same problem, I've been suffering for several days. I searched Google, nothing.

there is only https://github.com/ptitseb/box64/issues/1195

but the issue author closed it himself with the words "never mind, client does not send data"

it is not clear what he meant.

gpu mali g52 mc2 i use lhroot chroot (ubuntu 22:04 with kisak-mesa ppa)

glxgears startup without artifacts, but errors in termux session virgl_test_server_android appear as 1-2s with 'GALLIUM_DRIVERS=virpipe'

'failed to export fence sync object virgl_fence_set_fd: failed err=-1'

also at startup game crashing (used latest OpenGL 4.6 with glsl 4.50 with variables MESA GL/GLSL VERSION OVERRIDE)

`vtest_client_dispatch_commands: client context created. vrend_check_no_error: context error reported 1 "FarmingSimulator2019Game.exe" Unknown 1281 context 1 failed to dispatch TRANSFER3D: 22 vrend_decode_ctx_submit_cmd: context error reported 1 "FarmingSimulator2019Game.exe" Illegal command buffer 852011 client: VTEST_CLIENT_ERROR_COMMAND_DISPATCH'

at the same time, the LLVM-pipe (CPU-GL as we know) everything works, but it is clear that for such a heavy game we still need to use the GPU.

PS:

If I open terminal output startup box64 wine64, I see errors related to the same virgl server:

'No headers available failed to get fd Unable to get a valid fd No headers available failed to get fd Unable to get a valid fd lost connection to rendering server on 8 read 0 32'

I tried proot-distro with --shared-tmp and --no-sysvipc

is the same there

inside log.txt does not give any errors at all, this log breaks off immediately, after initialize gpu and sound....

if I try to search in google for people who tried to run fs19 on Mali, I will not find absolutely anything. Because this was only run on Adreno via Turnip

I'll also add that I tried the same game on winlator and miraculously everything works there and doesn't crash immediately upon launch.

But, winlator crashes when loading the map "probably due to lack of RAM".

And on my chroot, even with LLVM it loaded and played (albeit with 1 fps), which is strange.

So can I take something config/variables/drivers,etc from winlator?