Summary: | No 3D in "Vampire: The Masquerade - Bloodlines" when d3d-nine enabled | ||
---|---|---|---|
Product: | Mesa | Reporter: | ilia <inferrna> |
Component: | Gallium/StateTracker/galliumnine | Assignee: | mesa-dev |
Status: | RESOLVED MOVED | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | CC: | siro |
Version: | 18.2 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Resolution issue. Also no HUD displayed.
NINE OFF log NINE ON log Windowed Fullscreen HUD misaligned Game menu at start Game menu after pressed ESC in game - can't interact with |
Description
ilia
2018-08-31 19:50:04 UTC
Thank you for this bug report, A similar issue for this game was reported long ago here: https://github.com/iXit/Mesa-3D/issues/101 I had hoped it had been fixed since, but apparently not. If you click something of the invisible menu, do you have this error shown in the console: err:d3dadapter:PRESENTPixmap FATAL ERROR: Trying to Present a pixmap not released If you parameter the game to launch windowed, do you have the same issues ? Created attachment 141401 [details]
NINE OFF log
Output of
env NINE_DEBUG=all GALLIUM_HUD="fps,requested-VRAM" LIBGL_DEBUG=verbose GALLIUM_PRINT_OPTIONS=1 ST_DEBUG=constants EGL_LOG_LEVEL=debug MESA_DEBUG=1 WINEDEBUG="d3d,d3dadapter,d3d9nine" WINEPREFIX="/tmp/empty" WINE=/opt/wine-d3d9-staging/bin/wine /opt/wine-d3d9-staging/bin/wine vampire.exe -window > /tmp/vampnine_off.log 2>&1
Created attachment 141402 [details]
NINE ON log
env NINE_DEBUG=all GALLIUM_HUD="fps,requested-VRAM" LIBGL_DEBUG=verbose GALLIUM_PRINT_OPTIONS=1 ST_DEBUG=constants EGL_LOG_LEVEL=debug MESA_DEBUG=1 WINEDEBUG="d3d,d3dadapter,d3d9nine" WINEPREFIX="/tmp/empty" WINE=/opt/wine-d3d9-staging/bin/wine /opt/wine-d3d9-staging/bin/wine vampire.exe -window > /tmp/vampnine_off.log 2>&1
Nine enabled
Created attachment 141403 [details] Windowed Tried to click on menu items - I even heard it, but no > err:d3dadapter:PRESENTPixmap FATAL ERROR: Trying to Present a pixmap not released or any similar in console. Attached 2 logs above: with nine enabled and disabled, hope you will see some difference in it. Could you try to launch the game in a wine virtual desktop (see winecfg) see if the issue is unaffected ? Yes, results are the same. Moreover, I attached screenshots specifically for this case: 1. wine in desktop mode + fullscreen game https://bugs.freedesktop.org/attachment.cgi?id=141398 2. wine in desktop mode + windowed game https://bugs.freedesktop.org/attachment.cgi?id=141403 so, same when wine not in desktop mode. Created attachment 141506 [details]
Fullscreen
Pressing alt+tab I eventually got able to see game menu. But it was not interactable - even mouse hover. Screenshot seems to be broken, really it must be 1680x1050. I have no idea why it cropped.
I have implemented a missing feature to resize when rendering area and window size are of different size, which may fix your 'crop' behaviour. The patch is currently on our current work-in-progress git: https://github.com/iXit/Mesa-3D Related to the misrendering menu, could you make a trace under nine ? On the other bug report I mentionned, the user had made a trace under wine, and it replays well on both wine and nine. To compare, it may help to have a trace made under nine. For that, download apitrace latest binaries: https://people.freedesktop.org/~jrfonseca/apitrace/ and under the apitrace/x86/lib/ dir copy d3d9.dll and d3d9.pdb to your game exe directory. Finally in winecfg, add a redirection for d3d9.dll: native then integrated. This will automatically create a trace file in the exe directory. To uninstall, remove the files and the redirection. Done, here is is https://drive.google.com/open?id=1tgPtchr2MNm1JG2vm-UoGmtkmmxCVyDT Thanks. The trace doesn't seem to have any particular issues. I guess the issue cannot be captured with a trace. I notice wine used to have similar issues (people recommended to switch to gdi in the wine registry if the menu is black). Created attachment 141636 [details]
HUD misaligned
Created attachment 141637 [details]
Game menu at start
Created attachment 141638 [details]
Game menu after pressed ESC in game - can't interact with
HKEY_CURRENT_USER/Software/Wine/DirectDrawRenderer="gdi" solved the menu issue, but problem with resolution and alignment still exists (see attachments). Hope you patch will fix it. "HKEY_CURRENT_USER/Software/Wine/DirectDrawRenderer="gdi"" did actually change something to the behaviour with nine ? It looks bad, because it only affects wined3d, and it could indicate that both are used, maybe because directdraw is used or something, and nine doesn't support mixing these. Could you produce a trace that pictures the "HUD misaligned" and "Game menu after pressed ESC in game" ? Hopefully some of the issues with these can be caught in a trace. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/124. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.