pal1000 / mesa-dist-win

Pre-built Mesa3D drivers for Windows
MIT License
916 stars 80 forks source link

Mesa 21.0.1 (MinGW) DLL files don't appear to hook or work at all with OpenGL applications #56

Closed BlohoJo closed 3 years ago

BlohoJo commented 3 years ago

I'm on Windows 10 Pro x64 2004. GPU-less VPS.

All Mesa versions work fine for me up to version 20.3.4. I use the MinGW versions.

I usually only need to copy opengl32.dll and libglapi.dll into the directory of the application that I want to run and it works fine. (Older Mesa versions usually only need opengl32.dll and that's it.)

Every version after 20.3.4 of course returns the missing vulkan-1.dll error.

I tried the latest version 21.0.1 which doesn't say anything about the Vulkan issue (mesa3d-21.0.1-release-mingw.7z), but it doesn't appear to work at all. Applications that require OpenGL behave exactly as if the Mesa DLL files are NOT present, even though they are. In other words, if I just try to run an application that requires OpenGL without copying the Mesa files in, it will give the exact same errors that it does when the Mesa files for version 21.0.1 are copied in.

Again, everything works fine with Mesa versions 20.3.4 and earlier.

Not sure if it's just me or not, also not sure what additional info I should be posting. :face_with_head_bandage:

donizettilorenzo commented 3 years ago

Read the guide, Vulkan RT is always needed. And enable the Gallium HUD, so you can see if Mesa is loaded.

Environment variable "GALLIUM_HUD" (my value-> .w640.h360fps,.w640.h360.c50frametime - yes with the ".")

BlohoJo commented 3 years ago

But there is no Vulkan device installed on the system. It's a GPU-less VPS.

Very confused if I need the runtime, or SwiftShader, or both.

Sounds like for now I should just stick to 20.3.4 and lower to avoid headaches, until I need to try to run something that uses Vulkan I guess. :confused:

pal1000 commented 3 years ago

Every version after 20.3.4 of course returns the missing vulkan-1.dll error.

Yes, you need Vulkan runtime, fortunately no Vulkan device is needed, see https://gitlab.freedesktop.org/mesa/mesa/-/issues/3855

BlohoJo commented 3 years ago

Solution: Starting from Mesa versions after 20.3.4, vulkan-1.dll is now also required. Copy the file into the application directory along with the Mesa files, or copy somewhere into a system path (i.e., C:\Windows\System32).