Mesa-3D icon indicating copy to clipboard operation
Mesa-3D copied to clipboard

Nine on Nouveau has blocks for text on latest mesa git on WoW

Open Altosk opened this issue 9 years ago • 23 comments

http://i.imgur.com/7XyJnbR.png

I dont know when it happened but when I try to play WoW 1.12.1 on my wife's pc the text are blocks of color not text. Doesn't happen with my amd r9 290x. This might be a Nouveau bug i'm not sure but it work several weeks ago. This computer doesnt have the latest set of patches from here atm and doesnt have debug enabled. I can get a log later with latest when I switch out my amd for my nvidia gtx760 on my computer if needed. Text on wined3d is fine.

Altosk avatar Oct 27 '15 05:10 Altosk

Yeah I would recommend trying ixit/Mesa-3D and reporting back

sarnex avatar Oct 27 '15 14:10 sarnex

tested with my computer with latest git + latest ixit still there. i tried to get an apitrace but no luck looks like the game unloads it before it does anything. i can post a log later when i get home from work.

Altosk avatar Oct 27 '15 15:10 Altosk

Apitrace should auto-inject to all processes launched from the initial process. See if there's a trace file in the wow folder.

sarnex avatar Oct 27 '15 23:10 sarnex

its injects and i get two lines and it stops the trace for some reason every time no matter what I do.

Altosk avatar Oct 27 '15 23:10 Altosk

@Altosk Can you try the method by iive, but trace with gallium nine https://github.com/iXit/Mesa-3D/issues/114#issuecomment-132085520

sarnex avatar Oct 28 '15 17:10 sarnex

thats the way i am doing my traces(iive way and using nine).

Altosk avatar Oct 28 '15 19:10 Altosk

This looks a lot like https://bugs.freedesktop.org/show_bug.cgi?id=91526 -- confirm that this happened on a build that had the patch in question. Perhaps there are more messed up formats.

imirkin avatar Nov 03 '15 23:11 imirkin

We nuked alot of weird formats and we still got the issue, so it's likely not formats.

sarnex avatar Nov 04 '15 01:11 sarnex

i reverted imirkin's patch and that fixes the text problem, maybe nine uses those formats in the right way?

Altosk avatar Nov 04 '15 16:11 Altosk

Sounds like nine doesn't properly handle missing formats in drivers.

FWIW the problem with BGRA4 was weird -- it did seem to mostly work, but... in some cases, it didn't. I'm sure it's something silly, but I have no idea what.

imirkin avatar Nov 04 '15 16:11 imirkin

What format does the game use when the format is not available ? (compare two traces)

axeldavy avatar Nov 05 '15 08:11 axeldavy

i cant get traces, something weird goes on and the game drops the dll.

Altosk avatar Nov 05 '15 08:11 Altosk

i disable the formats in question but its break both radeon and nvidia cards alike

Altosk avatar Nov 05 '15 08:11 Altosk

Then please report debug logs instead of traces.

NINE_DEBUG=all

needs mesa with --enable-debug

axeldavy avatar Nov 05 '15 08:11 axeldavy

this is the log with imirkin's patch reverted https://www.sendspace.com/file/9a3bk3 without the revert https://www.sendspace.com/file/p29rhf

Altosk avatar Nov 05 '15 08:11 Altosk

Looks like the game really wants that format.

It checks for its support, see it's not there, but still tries to get a texture with it. It will try again twice per frame to create it.

On the other hand when the format is supported, it creates the texture, and lives happy with it.

axeldavy avatar Nov 05 '15 09:11 axeldavy

so basicly nouveau needs to fix the format or is there a way around it with a different format?

Altosk avatar Nov 05 '15 09:11 Altosk

Wine reverts to ARGB8888 when the good match is not available.

We cannot do that, since the data uploaded would be wrong. You need a conversion between the two formats. Wine does some.

axeldavy avatar Nov 05 '15 09:11 axeldavy

I've reintroduced BGRA4 on nvc0 in http://cgit.freedesktop.org/mesa/mesa/commit/?id=d68226087cf5f2f686d6c8f3377c5a1dec3d8bc4 . Figured out how to make the other trace work.

imirkin avatar Nov 06 '15 05:11 imirkin

fixed on mesa-git

Altosk avatar Nov 06 '15 08:11 Altosk

I let the bug open as we should be able to workaround when the driver doesn't support the format.

axeldavy avatar Nov 07 '15 11:11 axeldavy

@axeldavy : Should be fixed in ixit/master ?

siro20 avatar Nov 26 '16 08:11 siro20

the previous comment still holds, but probably we can close

axeldavy avatar Nov 26 '16 14:11 axeldavy