Closed spookysniper closed 2 years ago
this issue was also present on the previous lr-flycast...
The development branch now has DirectX 11 support for the core. It won't fix the Open GL or Vulkan issues but I'd be interested in feedback about if and how it runs on these platforms.
https://github.com/flyinghead/flycast/actions/runs/1574668951
Download the flycast-libretro-x86_64-w64-mingw32
artifact
yea it works again with with the sega dreamcast bios, and with built in HLE bios, thanks, so far with this game im not noticing too much difference to how it runs on vulkan in the x86 standalone build
@flyinghead the D3D11 libretro core works!
Thank you for testing.
I just pushed a fix for a crash that was happening with DX11 in single-threaded mode. Also VMUs and lightgun crosshairs are missing and will be added soon.
@flyinghead any idea what is happening with the OGL and VK cores? It only seems to be a Windows issue, on Linux they work without any issue but on Windows the driver times out according to the Radeon Software msgs...
if the device is being lost it could be an issue with retroarch itself maybe the open gl and vulkan backends they for use windows haven't been updated properly to work with rdna2, the fact that the standalone build works without issue on nvidia and amd kind of points at this
The device being lost is the issue. It shouldn't happen to begin with. Unfortunately I don't have access to this hardware so I can't reproduce it, and Vulkan debugging & validation layers don't report anything suspicious.
ok something strange has happened vulkan works again but im not sure why... i went looking for a fresh retroach install hoping that a debugging .exe would be included to try get you more detail , i installed the nightly from this https://www.retroarch.com/index.php?page=platforms normally i would go to github and get the zipped version, but as i was installing the version above it asked me to install dx9c runtimes, normally i wouldn't do this as i dont really see the point as dx9 on reroarch has issues in fullscreen, i went through most of the api's and all seem to work gl works, gl1 works, vulkan works, dx9 works, glcore kind of works the fvms and some menus on the game just show black screens but once you get in game it runs fine, and when i went back to my original 1.9.13 zipped install it was the same story, im not trying to say a dx9c runtime fixed it but maybe the changes with the dx11 you included helped
If the crash is due to uninitialized memory or a dangling pointer, any small change to the code (RA, core or dependent dlls) can trigger the crash... or not. But it doesn't mean it's fixed: a future change may make it happen again.
I investigated this as I have 2 AMD 6800 cards. This freaking issue that was plaguing RDNA2 cards seems to be fixed with RA in the net-rollback branch. I attached the last failing build and the first working one.
Thes 4 commits between these builds could have fixed it :
https://github.com/flyinghead/flycast/commit/42f92b8dc1e8c4c28b5e388f4ed098fbd2a414f2 https://github.com/flyinghead/flycast/commit/7c53413bc5b153a272eb7f03237f90e9b159e85b https://github.com/flyinghead/flycast/commit/5209623064f38c86c327d70cde9d4b090e7c3c1d https://github.com/flyinghead/flycast/commit/06ef0e5fdc118928c9f17765977f055aa47e832d
last failing build 986bacc .zip first working build 06ef0e5.zip
I would love to know what fixed it as Parallel RDP in RetroArch is also suffering from this. I suppose you could also backport it to the master branch :)
Thanks a lot for this Flyinghead !
Nice. Thank you!
Did you test vulkan, open gl or both? Also are you using per-pixel or not (if it makes any difference)?
Nice. Thank you!
Did you test vulkan, open gl or both? Also are you using per-pixel or not (if it makes any difference)?
Everything works perfectly, GL/Vulkan/DX11/Per pixel/normal/etc...
Only bug is KOF2000/2001/2002 which hang at the splash screen in Vulkan (it works with GL/DX11 though). Those game use a sort of emulation I think.
Looking at the commits, the only change that affects the Open GL and Vulkan renderers (non per-pixel) is https://github.com/flyinghead/flycast/commit/06ef0e5fdc118928c9f17765977f055aa47e832d.
It changes the way color, texture coordinates and depth interpolation is done by using linear interpolation and doing the perspective-correct interpolation "manually". It only affects the shaders and I don't see why the previous method would crash and not this one. Also the non per-pixel shaders really don't do anything special.
I only ot a crash when using Vulkan on standalone don't know about libretro.
Looking at the commits, the only change that affects the Open GL and Vulkan renderers (non per-pixel) is 06ef0e5.
It changes the way color, texture coordinates and depth interpolation is done by using linear interpolation and doing the perspective-correct interpolation "manually". It only affects the shaders and I don't see why the previous method would crash and not this one. Also the non per-pixel shaders really don't do anything special.
Do you think it's feasible to backport it to the master branch ?
The net-rollback
branch will be merged into master
soon.
Please Note: This form is the minimum required information for submitting bugs.
Removing this form may lead to your issue being closed until it is completed.
Platform / OS / Hardware: Windows Retroarch
Github hash: 02898a4
Hardware: AMD 5950x, AMD6900xt
Description of the Issue
Flycast core will not boot up on retroarch under open GL , will crash when 3d elements need to be rendered under Vulkan
Debugging Steps Tested
Logs Gathered
Screenshots
(Replace this line with any issue screenshots)