protonscr

LA Noire incorrect colors

dxvkclosed game bug
doitsujin/dxvk#744 · opened 2018-10-30 by Macribit · updated 2018-11-11 · 33 comments · github
MMacribit 2018-10-30 github

some stuff has incorrect colors like this one, this is supposed to be blood but it is purple.

Software information

opensuse 15.1
linux 4.16.16
purple blood la noire

System information

  • GPU: rx460
  • Driver: mesa 18.2.3
  • Wine version: 3.17
  • DXVK version: master git
Ddoitsujin maintainer 2018-10-30 github

Please record and upload an apitrace and don't just ignore that section of the issue template. I can't debug your issue without it.

MMacribit 2018-10-30 github

I don't know how to debug it's a 32 bit installation, the apitrace binary from jrfonseca doesn't work. I tried compiling apitrace but it doesn't generate a exe file. I need to look this more carefully.

MMacribit 2018-10-30 github

ok I see now there are some files to download from dropbox.

MMacribit 2018-10-30 github

with apitrace it crashes it that suppose to happen? can't get past the loading screen.
LANoire_d3d11.log
LANoire_dxgi.log

Apitrace
LANoire.1.zip

MMacribit 2018-10-30 github

new trace it crashes
LANoire.2.zip

Ddoitsujin maintainer 2018-10-31 github

Well, that's completely useless then.

MMacribit 2018-10-31 github

this is fixed with llvm 8 latest svn.

MMacribit 2018-10-31 github

I'm using llvm 8 svn revision 345xxx. I think the fix hasn't been backported to other versions ¿maybe this is the patch https://reviews.llvm.org/D53160? not sure just guessing here.

MMacribit 2018-10-31 github

yaay another game that runs flawless goes to the list. I love free software.

Ddoitsujin maintainer 2018-10-31 github

Thanks for reporting back. LLVM bugs are particularly annoying because of the release cycle, I have my doubt that it'll get fixed in a point release.

MMacribit 2018-10-31 github

I'm using svn revision 345610 to be precise (llvm 8.0.0)

MMacribit 2018-10-31 github

Thanks for reporting back. LLVM bugs are particularly annoying because of the release cycle, I have my doubt that it'll get fixed in a point release.

thanks for the tip . Maybe I should build the full stack with a reverse patch, but for now I'll just keep and eye on this, let's hope it will get fixed in a point release
(building the full stack mesa/clang/llvm is really time consuming)

Llibcg 2018-10-31 github

@doitsujin some of these bugs can have a workaround in mesa. it would be nice to raise the issue to mesa devs.

MMacribit 2018-10-31 github

the bug is also affected by lighting and perspective, in the night stuff will look purple but on daylight it will look pink. And looking closer or distant can trigger the bug on/off.

Aah- 2018-10-31 github

Sorry for hijacking this issue, but how did you get it to run in wine?

MMacribit 2018-10-31 github

Sorry for hijacking this issue, but how did you get it to run in wine?

You need to set a 32 bit prefix install dotnet35sp1 with winetricks. Then install DirectX 9 but without winetricks because the game requires directx query driver executable, but you don't want it to override the wine system libraries in wine config, then install d3dx9_43 and d3dx9_42 dll with winetricks. Download the game with steam but remove or rename all the 3rd components (executables) that install when you first start the game except the Rockstart social club.(in the game folder 3rd components folder something similar it's called)

https://www.gamingonlinux.com/forum/topic/537/page=1

MMacribit 2018-10-31 github

if you are not using steam then u need to install rockstar social club, download it from the rockstar site, just make sure that when u launch the game for the first time it doesn't install dotnet again because if it does you will have to start all over again an install dot net 3.5 sp1 through winetricks again.

MMacribit 2018-10-31 github

maybe on the weekend I can check if the bug is present on bionic beaver with padoka repo.
This is opensuse 15.1 with this repo https://build.opensuse.org/package/show/home:khnazile:video
on the repo the llvm svn revision before this was 344705, and the bug was still present. So I'm not sure if it is the patch I say because it was introduced in revision 344698.

MMacribit 2018-11-01 github

hmm no this is not solved it improved a lot but still looking funky.
here's a similiar picture now blood looks a brown greenish
la noire blood1

but now if I look from a different angle it looks ok
la noire blood2

the roof looks greenish also
lanoire roof

but now if I look from a different angle it looks ok also
la noire roof2

so it improved before it was a lot more funkier, it's not fixed, but something changed surely.

MMacribit 2018-11-01 github

I swear I didn't see that problems before and I played a whole chapter to be sure. Just updated my system maybe it's something else that's triggering this?? not sure.

MMacribit 2018-11-01 github

now if I crank textures, lighting and LOD to maximum this is what happens
roof looks the same from different perspectives (I think it still looks funky, not sure though)
la noire roof 3
la noire roof 4

and blood looks different than before, and it looks the same when changing perspective, but again I'm not sure this is the correct color, but still imho is an improvement . At least is not some weird florescent color.
la noire blood 3

so maybe @libcg is right and this can be avoided by some mesa setting/override.

MMacribit 2018-11-03 github

ok I think I've nailed it. I want to document this not only because someone else will find it useful but also because I was beggining to think I'm crazy,LOL (I swear at one point it was fixed)

this are the screenshots with
winetricks glsl=disabled

the roof looks ok from different perspectives
la noire correct1

la noire correct2

blood looks ok also
la noire correct 3

la noire correct 4

liquors shelf usually is really badly rendered also, now it' s ok

la noire correct 5

MMacribit 2018-11-03 github

so I spend the whole day trying to reproduce the bug on ubuntu bionic beaver, but I can´t get steam to connect to the network I give up on ubuntu, for now.
Now I fired the game again on opensuse without touching anything and again it's bugged. So it seems that some software (maybe radv?) is producing sometimes good rendering and sometimes bad rendering, it doesn't matter what you do. So I was not crazy lol. Once in a while it produces correct rendering.

MMacribit 2018-11-04 github

tried with amdvlk open driver and the bug is there. Not a radv issue. Reopening this.

Ddoitsujin maintainer 2018-11-04 github

I won't be able to debug this.

MMacribit 2018-11-04 github

ok no problem, maybe it's get fixed accidentally someday, or maybe apitrace stops crashing.

here's a screenshot with DirectX 9 for reference, this how the liquor shelf it supposed to look
w/DX11 it never look 100% correct it seems

lanoire dx9

KK0bin maintainer 2018-11-04 github

I would like to reproduce the issue but can't get the game to run on Wine.
Did you do anything special (winetricks, 32bit or 64bit prefix, staging?) to make it work?

MMacribit 2018-11-04 github

in a clean 32 bit prefix .
1- install dotnet35sp1 w/winetricks.
2- install directx 9 with the executable not with winetricks.
3- Install d3d9_43 and 42 dll with winetricks
4- install rockstar social club
5- remove everything from the 3rd components folder and launch.

also you probably need Mesa 18.2 or higher.
You need to install dotnet35sp1 in a clean prefix if you install it on top of another dotnet it won't work.

I tested with several wine version 3.15,3.17,3.18. I think that with 3.19 it doesn't work.

AAccountOneOff 2018-11-06 github

No luck getting a trace for this.

Callstack Information:
 0x4D430003 Cant get line (dxgitrace)
 0x4D430003 Cant get line (dxgitrace)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (kernel32)
 0x4D430003 Cant get line (kernel32)
 0x4D430003 Cant get line (kernel32)

Also tried my other method but renaming apitrace.exe to LANoire.exe causes the launcher to stop opening.

MMacribit 2018-11-06 github

No luck getting a trace for this.

Callstack Information:
 0x4D430003 Cant get line (dxgitrace)
 0x4D430003 Cant get line (dxgitrace)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (lanoire)
 0x4D430003 Cant get line (kernel32)
 0x4D430003 Cant get line (kernel32)
 0x4D430003 Cant get line (kernel32)

Also tried my other method but renaming apitrace.exe to LANoire.exe causes the launcher to stop opening.

same happens to me. Does a windows os apitrace helps??

Ddoitsujin maintainer 2018-11-07 github

Got an apitrace from someone else, looking at this right now.

Ddoitsujin maintainer 2018-11-07 github

Should be fixed with latest master. The issue was that the game does not initialize all its textures correctly and some contained undefined data as a result.

MMacribit 2018-11-07 github

can confirm fixed in master. Thank you very much!

Nothing extracted yet.