Sniper ghost warrior contracts white textures

Questions about Wine on Linux
Locked
devnull
Newbie
Newbie
Posts: 3
Joined: Sun May 10, 2020 3:14 pm

Sniper ghost warrior contracts white textures

Post by devnull »

Hello,

I'm an old time debian user but I'm rather new to wine. I'm trying to play Sniper ghost warrior contracts with wine but surprisingly nobody seems to have tried it before.
The game starts fine but when I begin the tutorial mission I have white/missing textures. Here are 2 screenshots:
Image

Image

This is the output:
https://pastebin.com/D1qDVptm

I'm using:
Debian Sid
wine-5.0 (Debian 5.0-4)
Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT / Grenada XT [Radeon R9 290X/390X]
devnull
Newbie
Newbie
Posts: 3
Joined: Sun May 10, 2020 3:14 pm

Re: Sniper ghost warrior contracts white textures

Post by devnull »

So I tried the latest wine version in Debian with dxvk. In this case I get a black screen. Here the command used:

Code: Select all

export WINE='/usr/bin/wine64-development' WINESERVER='/usr/bin/wineserver-development' WINEPREFIX='/media/data/Games/SGWC_GOG/Wine-dxvk'
export WINE_LARGE_ADDRESS_AWARE=1 __GL_AllowPTEFallbackToSysmem=1
wine64-development /media/data/Games/SGWC_GOG/win_x64/SGWContracts.exe 2>&1 |tee /media/data/Games/SGWC_GOG/Wine64-dxvk-sgwc.log
I get this error:

Code: Select all

err:   DxvkMemoryAllocator: Memory allocation failed
err:     Size:      67108864
err:     Alignment: 4096
err:     Mem flags: 0x1
err:     Mem types: 0x1
err:   Heap 0: 1519 MB allocated, 1119 MB used, 1534 MB allocated (driver), 1536 MB budget (driver), 1536 MB total
Here the complete log:
https://pastebin.com/ps70aVdM

Code: Select all

$ wine64-development --version
wine-5.5 (Debian 5.5-3)
This guy made it work (he had an nvidia graphic card):
https://www.youtube.com/watch?v=znrKUQw4i2E

Thanks for any help
devnull
Newbie
Newbie
Posts: 3
Joined: Sun May 10, 2020 3:14 pm

Re: [SOLVED] Sniper ghost warrior contracts white textures

Post by devnull »

After better reading the output, I noticed that dxvk was using the wrong card. Since I ignore how to tell him which one to use, I disabled the integrated Intel GPU in my BIOS.
In /etc/default/grub I hadded GRUB_CMDLINE_LINUX_DEFAULT="radeon.cik_support=0 amdgpu.cik_support=1" and ran update-grub.
Then I ran winetricks dxvk in my wine prefix et voilà, the game is running fine now!!

Here a couple of screenshot:
Image

Image


The log of a successful run:
https://pastebin.com/Hpqwpmym

Performance are near perfect.

To all newbies like me, if you want to know if vulkan is working run vulkaninfo and/or vkcube found in package vulkan-tools. See:
https://bugs.debian.org/cgi-bin/bugrepo ... =847570#31
Locked