-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
My findings trying to run simple triangle homebrew app on MacOS using MoltenVK.. #4293
Comments
Yes, issues are known. You can update SPIRV-Cross in moltenVK by running I'll be monitoring MoltenVK, and if changes are implemented that fix rpcs3, I will restest and if it makes RPCS3 work on MacOS, I will make a PR. Please close this issue. |
There only exists 2 real problems right now that stop even basics from working (Vulkan)
@hcorion Has access to a mac device and I dont, so he'll be able to tell us more as moltenvk development continues. Opengl also does not work because apple only supports openGL 4.1 core with no extensions for whatever reason. |
Thanks @hcorion and @kd-11 for comments.. |
Hi @kd-11,
I see you opened two bug reports for current Vulkan MacOS limitations.. i.e. to SPIRV-Cross and MoltenVK GitHub sites and seems at least SPIRV-Cross issue has been resolved (KhronosGroup/SPIRV-Cross@4979d10) have you tested updated MoltenVK with the submodule to be up to this commit already? seems MoltenVK updated SPIRV-Cross a day ago upto KhronosGroup/SPIRV-Cross@0f9cb0d which is not enough..
Anyway I want to report my findings..
I build on my own from master (5f04703) and with LLVM disabled to start with simple build..
I use QT 5.10.x from official Qt installer and point it similar to:
export Qt5_DIR=/Volumes/s/Qt/5.10.1/clang_64
which seems OK..
my flags are:
cmake ../rpcs3/ -DUSE_VULKAN=ON -DUSE_NATIVE_INSTRUCTIONS=ON -DWITHOUT_LLVM=ON -DCMAKE_BUILD_TYPE=Release
strangely to build OK from latest master needed:
1)comment:
//LOG_UNIMPLEMENTED(RSX, "Swap control not implemented for this platform. Vsync options not available.");
in OpenGL.cpp if not get it complained about missing..
had to add also "/opt/X11/lib/libX11.dylib" to rpcs3/Cmakelists.txt to finally have:
if not I get:
I had already vulkan on /Library/Frameworks/vulkan.framework/ so seems build worked ok:
otool -L rpcs3 shows correctly:
@rpath/vulkan.framework/Versions/A/vulkan (compatibility version 1.0.0, current version 1.0.69)
then program launches OK I can see Vulkan option and selects Vega 56 so seems using MoltenVK correctly..
Also installing firmware is OK..
anyway even using simple test elf like from TEST12345/gs_gcm_tetris.elf or gs_gcm_basic_triangle.elf crashes with:
this error is not Vulkan related and LLVM should not be needed for running it and asmjit should be enough for that sample, right?
seeing this are you using MoltenVK Vulkan Qt integration correctly on MacOS X? I mean please see this thread:
"Metal backend layer for Qt Window"
KhronosGroup/MoltenVK#78
you need something like:
finally also are the swizzling MoltenVK limitation and pack2half SPIRV-Cross limitation needed for running such simple homebrew demos?
finally assuming someone does this swizzling work on MoltenVK do you need some more Vulkan things not supported by MoltenVK, I mean extensions or optional caps?
thanks..
The text was updated successfully, but these errors were encountered: