• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 16 17 18 19 20 ... 115 Next »

MoltenVK Support for macOS is now open source
View New Posts | View Today's Posts

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
MoltenVK Support for macOS is now open source
02-27-2018, 01:43 AM (This post was last modified: 02-27-2018, 02:05 AM by SirRandall.)
#1
SirRandall Offline
Junior Member
**
Posts: 7
Threads: 2
Joined: Sep 2016
I know it was pushed around that you guys should use MoltenVK but since it was closed source you didn't want to use it. I so understand that. But now it seems MoltenVK is now opensource
https://arstechnica.com/gadgets/2018/02/vulkan-is-coming-to-macos-ios-but-no-thanks-to-apple/

I know you guys are working on a metal version but this would solve your issues without having to really make too many modifications. I thought you guys would like to know. You guys are always trying to support Mac when its really hard to and I understand. I hope this helps you out and thanks again for making one of the best damn emulators on the planet.
Find
Reply
03-23-2018, 08:17 AM
#2
VinDuv
Unregistered
 
I’m not a core Dolphin developper, but I’ve decided to take a look at this.
At expected, there isn’t too much to change in Dolphin to get MoltenVK running. I’ve pushed my changes here: https://github.com/VinDuv/dolphin/tree/moltenvk
For now, the MoltenVK lib (libMoltenVK.dylib — can be built from https://github.com/KhronosGroup/MoltenVK) needs to be copied in the Dolphin app bundle, in the same directory as the executable (in Dolphin.app/Contents/MacOS)
For the moment, basically nothing works Tongue A Metal assertion error is hit during initialization, which looks like this MoltenVK bug.
I’ve applied the workaround indicated in the bug report, and the emulation starts… except that some shaders fail to compile Undecided It seems like it’s caused by other MoltenVK issues; I’ve opened a bug report about it.
So basically, MoltenVK looks promising, but for now using Dolphin with it won’t display much more than a black screen (the rendering statistics do show up though!)
Reply
03-23-2018, 01:51 PM
#3
AnyOldName3 Offline
First Random post over 9000
*******
Posts: 3,507
Threads: 1
Joined: Feb 2012
In the other threads that were made about this, it was mentioned that a native Metal backend was already being worked on. It might be a worthwhile effort to keep on trying MoltenVK, even if it only serves to provide the MoltenVK people with test cases, but it's not strictly necessary to do anything as a Metal backend will end up in master-branch Dolphin at some point.
OS: Windows 10 64 bit Professional
CPU: AMD Ryzen 5900X
RAM: 16GB
GPU: Radeon Vega 56
Find
Reply
04-18-2018, 05:46 PM (This post was last modified: 04-18-2018, 05:47 PM by Isaboll1.)
#4
Isaboll1 Offline
Junior Member
**
Posts: 9
Threads: 1
Joined: Jan 2016
(03-23-2018, 08:17 AM)VinDuv Wrote: I’m not a core Dolphin developper, but I’ve decided to take a look at this.
At expected, there isn’t too much to change in Dolphin to get MoltenVK running. I’ve pushed my changes here: https://github.com/VinDuv/dolphin/tree/moltenvk
For now, the MoltenVK lib (libMoltenVK.dylib — can be built from https://github.com/KhronosGroup/MoltenVK) needs to be copied in the Dolphin app bundle, in the same directory as the executable (in Dolphin.app/Contents/MacOS)
For the moment, basically nothing works Tongue A Metal assertion error is hit during initialization, which looks like this MoltenVK bug.
I’ve applied the workaround indicated in the bug report, and the emulation starts… except that some shaders fail to compile Undecided It seems like it’s caused by other MoltenVK issues; I’ve opened a bug report about it.
So basically, MoltenVK looks promising, but for now using Dolphin with it won’t display much more than a black screen (the rendering statistics do show up though!)

Using your MoltenVK version, with the latest changes to the github repository for Spir-V Cross which addressed dual-source blending (and the depth clear patch applied to MVK), i was actually able to get a game (Smash Bros Brawl) running and displaying video! although it seemed to have had a small error which caused it to crash (i'm unsure the cause though). It seems that if MVK was supported, it would be fairly quick merging the changes between the Vulkan codebase and it to support Mac, given how much works with little changes to the VK codebase.
Find
Reply
04-19-2018, 05:48 AM
#5
MayImilae Offline
Ambassador of Niche Platform Support
**********
Administrators
Posts: 4,466
Threads: 117
Joined: Mar 2011
Well, moltenvk is a translation layer, so it's going to have a performance hit compared to making a proper Metal backend - which is what Stenzek has been doing. Big Grin So there isn't really much reason for us to support MoltenVK when we'll have a direct Metal backend.
[Image: RPvlSEt.png]
Windows 10 x64 | Core i9-9900k | NVIDIA GeForce RTX 3090 EVGA FTW3 Ultra| 32GB DDR4-3000 | Asus Xonar Essence STX on Logitech Z-2300 | Logitech G903 Hero
MacBook Pro 14in | M1 Max (32 GPU Cores) | macOS 12 | 64GB LPDDR5 6400
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode