Bug 107777 - No 3D in "Vampire: The Masquerade - Bloodlines" when d3d-nine enabled
Summary: No 3D in "Vampire: The Masquerade - Bloodlines" when d3d-nine enabled
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Gallium/StateTracker/galliumnine (show other bugs)
Version: 18.2
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-31 19:50 UTC by ilia
Modified: 2019-09-18 17:53 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Resolution issue. Also no HUD displayed. (34.22 KB, image/png)
2018-08-31 19:50 UTC, ilia
Details
NINE OFF log (321.98 KB, application/xz)
2018-09-01 05:26 UTC, ilia
Details
NINE ON log (41.49 KB, application/xz)
2018-09-01 05:27 UTC, ilia
Details
Windowed (39.12 KB, image/png)
2018-09-01 05:30 UTC, ilia
Details
Fullscreen (119.89 KB, image/png)
2018-09-10 13:24 UTC, ilia
Details
HUD misaligned (1.38 MB, image/png)
2018-09-18 11:25 UTC, ilia
Details
Game menu at start (98.01 KB, image/jpeg)
2018-09-18 11:26 UTC, ilia
Details
Game menu after pressed ESC in game - can't interact with (249.75 KB, image/jpeg)
2018-09-18 11:28 UTC, ilia
Details

Description ilia 2018-08-31 19:50:04 UTC
Created attachment 141398 [details]
Resolution issue. Also no HUD displayed.

Using wine from https://launchpad.net/~commendsarnex/+archive/ubuntu/winedri3
on empty profile. With gallium nine off game (GOG version) runs just fine. But there is at least 2 faults when nine enabled:
1. After opening videos shown there it no any menus - just black screen keeping last frame of the last video.
2. Running in fullscreen mode, but resolution don't changed - all videos showed in top-left corner of main screen (see attachment).

no any special errors in wine output.
Tried with mesa 18.05 and 18.2-rc5

Tried some debug:
env GALLIUM_HUD="fps,requested-VRAM"  LIBGL_DEBUG=verbose GALLIUM_PRINT_OPTIONS=1 ST_DEBUG=constants EGL_LOG_LEVEL=debug MESA_DEBUG=1 WINEDEBUG="-all" WINEPREFIX="/tmp/empty" WINE=/opt/wine-d3d9-staging/bin/wine /opt/wine-d3d9-staging/bin/wine vampire.exe

Got:

/usr/share/libdrm/amdgpu.ids version: 1.0.0
libGL: pci id for fd 78: 1002:67ff, driver radeonsi
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/radeonsi_dri.so
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/radeonsi_dri.so
mesa: for the -simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the -global-isel-abort option: may only occur zero or one times!
libGL: Using DRI3 for screen 0

and screenshot in attachment.
Also filed bug here https://bugs.winehq.org/show_bug.cgi?id=45745
Comment 1 Axel Davy 2018-08-31 20:56:41 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 ?
Comment 2 ilia 2018-09-01 05:26:09 UTC
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
Comment 3 ilia 2018-09-01 05:27:00 UTC
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
Comment 4 ilia 2018-09-01 05:30:16 UTC
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.
Comment 5 Axel Davy 2018-09-09 11:29:12 UTC
Could you try to launch the game in a wine virtual desktop (see winecfg) see if the issue is unaffected ?
Comment 6 ilia 2018-09-10 12:57:18 UTC
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.
Comment 7 ilia 2018-09-10 13:24:15 UTC
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.
Comment 8 Axel Davy 2018-09-16 21:26:48 UTC
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.
Comment 10 Axel Davy 2018-09-17 21:06:51 UTC
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).
Comment 11 ilia 2018-09-18 11:25:03 UTC
Created attachment 141636 [details]
HUD misaligned
Comment 12 ilia 2018-09-18 11:26:59 UTC
Created attachment 141637 [details]
Game menu at start
Comment 13 ilia 2018-09-18 11:28:06 UTC
Created attachment 141638 [details]
Game menu after pressed ESC in game - can't interact with
Comment 14 ilia 2018-09-18 11:33:11 UTC
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.
Comment 15 Axel Davy 2018-09-18 20:08:28 UTC
"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.
Comment 16 GitLab Migration User 2019-09-18 17:53:10 UTC
-- 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.