Closed oscarbg closed 6 years ago
Hi Oscar,
Thanks for testing the vulkan support. I'm currently reworking some of the surface code and afterwards can easily add this extension. I'm surprised though that the game is complaining about 'vkGetPhysicalDeviceSurfaceSupportKHR'. Unless the game is just printing the wrong message, which is common for games.
Probably around the weekend is when I will push some of my changes. I will let you know when they are ready.
Thanks, Roderick
thanks.. will try early next week then and post results..
It took a bit longer than expected, but I needed to make a lot of massive changes to the code base to clean up many things (memory leaks, moved more calls to winex11, improved 32-bit support..) and went through may rebases.
In any case latest master (download it again as I did a force push) should support 'VK_KHR_get_physical_device_properties2'. However it doesn't seem to be enough for Wolfenstein just yet. I keep getting the same error even though the surface extension is there. It must be complaining about something else, but I'm not sure yet what. Please give it a try as maybe you have more luck.
I have the game starting now. It needs a few more tricky fixes and some hacks. Need to figure out how to add these changes properly.
While the game starts and I see some of the logos, the screen is black with just a mouse cursor afterwards.
The debug output (WINEDEBUG=+vulkan) can't easily get captured due to steam, but basically the game is trying to load "vkGetPhysicalDeviceSurfaceSupportKHR" through vkGetDeviceProcAddr. This is really wrong as physical device is a child of instance and should only load through vkGetInstanceProcAddr. Just allowing it from within vkGetDeviceProcAddr gets it to start.
@roderickc black screen should be solved using patch from: https://bugs.winehq.org/show_bug.cgi?id=43935 download patch from this bug "ntdll: Return STATUS_PENDING from NtReadFileScatter on success or EOF" or also better from Wine 3.0 latest rc's include "commit f87a2f0e4cd4d36f3a218ac499d7a8f1933335a5 Author: Andrew Eikum aeikum@codeweavers.com Date: Wed Dec 6 15:08:00 2017 -0600
ntdll: Don't require full-page reads in NtReadFileScatter"
this patch which fixes it also..
hope you can test if finally all works with either one of these patches..
will test soon.. thanks..
Thanks for letting me know of those patches. I will probably rebase my work on top of 3.0 later today and give it a try. For now I may add the wolfenstein ii hacks as well. I will let you know when the changes are up.
You are right it gets to the menu now. I can start a game. It starts a cut scene when I pick difficulty and a save slot. Though after that the screen is black, but there is audio. I need to try again.
In any cases I pushed the wolfenstein hacks and all the code is now based on wine 3.0. Let me know how things work for you.
After further testing the game seems to work fine. The cut scenes are just sensitive to turning black I guess if you minimize the window by accident. I had issues skipping the cutscenes, probably because I'm on Wayland, but when in game I can play now.
The issue is now resolved in a correct way in master.
Hi, I have Wolfenstein II support running via wine staging OK using 2 patches from: https://bugs.winehq.org/show_bug.cgi?id=43935 one is Vulkan related add support for vkGetPhysicalDeviceProperties2KHR (from the VK_KHR_get_physical_device_properties2 extension) is not implemented.
So I compiled your branch to see if doesn't need any Vulkan patches.. compiled code and installed Vulkan 1.0.65 SDK (also tested with 1.0.51 SDK).. from simple cube.exe vulkaninfo.exe demos seems installation is OK.. so running Wolfenstein II with your branch doesn't work: GUI window log:
console log: