-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Van Helsing: Title Screen Assertion (Regression) #405
Comments
It was playable back in march https://www.youtube.com/watch?v=HzyUA5sKUwc |
Would you happen to know which builds of Xemu came out in March then? I wouldn't mind testing to find out exactly when playability broke if I had a start point to go off of. |
After some testing, it seems that this build of Xemu... https://github.com/mborgerson/xemu/actions/runs/975192291 And this build... https://github.com/mborgerson/xemu/actions/runs/994891094 |
@Kohryujin Add the word (Regression) to the title of the issue. Also retest it might work now |
Also affect Phantom crash |
In this particular case, the game uses a surface at The clip offset triggers https://github.com/mborgerson/xemu/blob/38a0e46f8c59c6da50029c1b53712070f211ac74/hw/xbox/nv2a/pgraph.c#L5761 which erroneously causes the surface to be treated as 129x129, causing it to overlap with the zeta surface at 0x102C000. Based on what I've seen from HW in the surface clip tests, specifying a clip region that goes beyond the end of the surface results in the nv2a raising an exception, so it's unclear to me why xemu is growing the required size based on the clip offset. |
@mborgerson 's https://github.com/mborgerson/xemu/blob/0adb1c1b07684174b358340374018a4023b9961d/hw/xbox/nv2a/pgraph.c#L5580 fixes this problem. The underlying issue is that surface clipping should never affect swizzled surfaces, so the offset is being incorrectly applied in this case, triggering the erroneous overlap. In a swizzle case, the clip size is used as the surface size, so it's guaranteed to never be larger than the actual surface allocation. |
Title Information
Bug Description
The game asserts when trying to load in the title screen.
Steps to reproduce this issue:
Expected Behavior
Normally the title screen would load in allowing you to start or load a game, etc..
Version
System Information
Additional Context
The text was updated successfully, but these errors were encountered: