Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mesa, glmark2, vkmark, alsa-lib #164

Merged
merged 1 commit into from
Feb 5, 2024
Merged

mesa, glmark2, vkmark, alsa-lib #164

merged 1 commit into from
Feb 5, 2024

Conversation

askorbinovaya-kislota
Copy link
Contributor

turnip works with the termux-wsi patch, but shutters a lot (same with zink on turnip), MESA_VK_WSI_DEBUG=sw "fixes" all shutters

i also tried building the new 23.3.0-rc5 mesa, it needs an updated no-hardlinks patch and disabling the lua subproject (or packaging lua to gpkg), ping me when 23.3.0 is released

created the opengl metapackage like in bionic termux, but i think it would be better to just depend on libglvnd...

alsa-lib is packaged because some packages and programs (in box64) hard-depend on it, even if it is not usable on android

this PR closes #137 and #141

@Maxython Maxython linked an issue Nov 27, 2023 that may be closed by this pull request
1 task
@Maxython
Copy link
Member

At the moment I can’t correct errors in your pr because I’m busy, and I also have another pr (#161). Therefore, I ask you to correct your mistakes yourself.

@askorbinovaya-kislota
Copy link
Contributor Author

all errors are fixed now:rocket:

@Maxython
Copy link
Member

Maxython commented Dec 4, 2023

It was in vain that patches were added that correct compilation on arm due to wayland-scanner, since this is a global error.
Screenshot_20231204_093340_Termux

@askorbinovaya-kislota
Copy link
Contributor Author

i thought that it was qemu-arm issue... any ideas how to fix it?

@Maxython
Copy link
Member

Maxython commented Dec 4, 2023

most likely just need to recompile libicu

@Maxython Maxython mentioned this pull request Dec 4, 2023
@Maxython
Copy link
Member

@askorbinovaya-kislota, I managed to run zink:
Screenshot_20240112-111235_Termux

I'll merge your PR soon, but before that I want to update libllvm-glibc.

@askorbinovaya-kislota
Copy link
Contributor Author

i found that osmesa-glibc package is empty and not every libOSMesa.so file/symlink was included, libOSMesa.so.8.0.0 is a part of mesa-glibc while it should be in osmesa-glibc

to avoid merge conflicts, i'm sending this small patch here:

the patch
diff --git a/gpkg/mesa/osmesa.subpackage.sh b/gpkg/mesa/osmesa.subpackage.sh
index 80b18fb..f70b7fa 100644
--- a/gpkg/mesa/osmesa.subpackage.sh
+++ b/gpkg/mesa/osmesa.subpackage.sh
@@ -1,6 +1,6 @@
 TERMUX_SUBPKG_INCLUDE="
 glibc/include/GL/osmesa.h
-glibc/lib/libOSMesa.so
+glibc/lib/libOSMesa.so*
 glibc/lib/pkgconfig/osmesa.pc
 "
 TERMUX_SUBPKG_DESCRIPTION="Mesa Off-screen Rendering Library"

i did not check if osmesa-glibc package is correct with the latest changes and didn't try building with this patch applied because i have troubles accessing my main PC, but this should be fixed before merge

This was linked to issues Jan 30, 2024
gpkg/libwayland
gpkg/libwayland-protocols
gpkg/vulkan-tools
gpkg/mesa-demos
gpkg/opengl
gpkg/freeglut
gpkg/glu
gpkg/glslang
gpkg/spirv-tools
gpkg/spirv-headers
gpkg/glmark2
gpkg/vkmark
gpkg/glm
gpkg/xcb-util-wm
gpkg/assimp
gpkg/alsa-lib
gpkg/libomxil-bellagio
gpkg/libva
gpkg/libvdpau
gpkg/vulkan-volk
gpkg/libepoxy
gpkg/libclc
gpkg/spirv-llvm-translator

Co-authored-by: Maxython <[email protected]>
@Maxython
Copy link
Member

Maxython commented Feb 5, 2024

How to force mesa-glibc to use gpu:

  • Use zink driver
    To enable the zink driver you must simply enter the following value before running a program: MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink. Please note that not all gpus support the zink driver (for example: if you have a Qualcomm gpu, then it supports zink; if you have a mali gpu, then it does not support zink). To make sure your gpu supports zink, check for the existence of /dev/kgsl-3d0. Tip: if you have a Samsung device, then you can enable "GPUWatch" from "Developer options" to speed up the gpu, but then the cpu will be slower.
  • Use virgl driver (recommended for mali gpu)
    To enable the virgl driver you must install the virglrenderer-android package, run the virgl_test_server_android command in a separate termux session, then you must add the value GALLIUM_DRIVER=virpipe before running a program. Note: on mali gpu, vulkan with termux-x11 will not render images for some unknown reason (if you use vncserver, it will work but much slower).

The note: In theory, mesa should use the panfrost or lima driver to directly access the gpu mali, but for some unknown reason this does not happen. It is also possible that due to the fact that mesa does not use these drivers, vulkan does not work correctly in termux-x11. I need to look into this issue more.

@Maxython Maxython merged commit 1669112 into termux-pacman:main Feb 5, 2024
5 checks passed
ohanar pushed a commit to ohanar/glibc-packages that referenced this pull request Jul 27, 2024
gpkg/libwayland
gpkg/libwayland-protocols
gpkg/vulkan-tools
gpkg/mesa-demos
gpkg/opengl
gpkg/freeglut
gpkg/glu
gpkg/glslang
gpkg/spirv-tools
gpkg/spirv-headers
gpkg/glmark2
gpkg/vkmark
gpkg/glm
gpkg/xcb-util-wm
gpkg/assimp
gpkg/alsa-lib
gpkg/libomxil-bellagio
gpkg/libva
gpkg/libvdpau
gpkg/vulkan-volk
gpkg/libepoxy
gpkg/libclc
gpkg/spirv-llvm-translator

Co-authored-by: Maxython <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Package]: libwayland-protocols [Package]: alsa-lib [Package]: mesa [Package]: dependencies of wine
2 participants