War Thunder game has visual errors, missing textures
https://bugs.freedesktop.org/show_bug.cgi?id=100387
Bug ID: 100387
Summary: War Thunder game has visual errors, missing textures
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Using the War Thunder game on Slackware, Mesa git custom compiled, LLVM 4.0 and on a RV710 card (512MB video RAM) always produces visual errors. The errors are not the same at all runs but vary between these problems, e.g. sky being black, clouds being any color, water is some color without reflections, trees being blue.
Plane/ground target models are mostly correct, but sometimes they are also white.
The errors can be seen right in the hangar, but also when playing the game (in a mission).
I have set the "Old videocard support" in the graphics options in the game. This has improved things to the state I describe. The game client shows "ultra low quality" in the right hand corner. I am using the low-res client (HD textures not downloaded) and the client often prompts to download hi-res textures which I decline.
Other than this, the game runs correctly, albeit slow on this GPU (5-15FPS).
In the console where I start the game (updater binary) there is a ton of output like:
EE r600_shader.c:183 r600_pipe_shader_create - translation from TGSI failed ! EE r600_state_common.c:803 r600_shader_select - Failed to build shader variant (type=1) -1
The line numbers 183 and 803 are always the same.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #1 from aceman <[email protected]> ---
I now noticed the same console errors are output when running the latest Firefox nightly with "webrender" force-enabled (in about:config). Maybe that helps and is easier to debug than a big game.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #2 from aceman <[email protected]> --- I can test patches if you have any ideas. Thanks.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #3 from [email protected] ---
Created attachment 131233
--> https://bugs.freedesktop.org/attachment.cgi?id=131233&action=edit
War Thunder on Radeon HD 8470D with Mesa 17.1.0rc2
Same issue on Radeon 8470D.
Software:
Kubuntu 17.0 x86_64
Linux 4.10
Mesa: 17.1.0rc2
libdrm: 2.4.80
xserver-xorg-video-radeon: 7.9.0
xserver-xorg-core: 1.19.3
Hardware:
AMD A6-6400K with Radeon HD 8470D (ARUBA)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #4 from Hi-Angel <[email protected]> ---
Quoted 1 line
From a quick debugging session the error is coming from here
Don't have time ATM to look closer, but commenting here in case anybody have ideas, including what to look at.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #5 from Hi-Angel <[email protected]> ---
Sorry for long time not answering. The error is because one instruction is using more than 2 cfiles which check_and_set_bank_swizzle() doesn't allow, though acc. to docs it can handle up to 4 distinct cfiles in a group.
I was trying to fix it be rewriting the bank_swizzle scheduler into smarter version, but had to abandon it because it turned out to be pointless (the effeciency is about the same, but more importantly, for some reason r600g have 2 schedulers, and this one simply does validation). FTR, unfinished code is here https://github.com/Hi-Angel/mesa/tree/wip-bank_swizzle-scheduler
I am not sure if I'll have a motivation to look into modifying the current scheduler, the more that there's some oddness in documentation (you can say "pun intended" because it is that docs don't allow odd number of distinct cfiles in a group, however a group with 1 cfile works just fine).
But fixing this bug won't help to the game anyway, because the next problem it runs into is a very old one of requiring too many GPRs
https://bugs.freedesktop.org/buglist.cgi?quicksearch=Shader%20GPR%20limit%20exceeded&list_id=619399
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #6 from aceman <[email protected]> --- Are those problems solved in radeonsi?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
Peter <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #7 from Peter <[email protected]> ---
I see very similar problem with Radeon HD 6850.
OTOH, I must say that with AMD A8-7600 onchip Radeon R7 everything seems OK.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #8 from Peter <[email protected]> ---
Created attachment 134034
--> https://bugs.freedesktop.org/attachment.cgi?id=134034&action=edit
screenshot - War Thunder, Radeon HD 6850
MESA 17.1.5
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #9 from Peter <[email protected]> ---
(In reply to Hi-Angel from comment #5)
Quoted 2 lines
But fixing this bug won't help to the game anyway, because the next problem it runs into is a very old one of requiring too many GPRs
Are You sure? I don't know the exact background here, but on Radeon R7 it runs seamlessly...
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #10 from aceman <[email protected]> ---
I'd assume "AMD A8-7600 with onchip Radeon R7" uses the separate radeonSI mesa driver and may not have this problem reported in this bug. Notice the bug is against R600 driver.
I asked about the radeonSI drive in comment 6 but didn't get a reply. If you could find out if you are running with it and rendering is fine, I would like to know.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #11 from Peter <[email protected]> ---
Well, no problem, just please give me a reliable way to get this info. Listing the X.org.log, I'm a bit confused.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #12 from aceman <[email protected]> ---
Try looking for DRI driver name or VDPAU driver name in Xorg.log.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #13 from Peter <[email protected]> ---
Created attachment 134095
--> https://bugs.freedesktop.org/attachment.cgi?id=134095&action=edit
X.org log file
please, see attachment...
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #14 from aceman <[email protected]> --- The attached log seems to imply R600 driver is used. It also lists the GPU as:
Chipset: "AMD Radeon HD 6800 Series" (ChipID = 0x6739)
Is this really from the A8-7600 machine?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #15 from Peter <[email protected]> ---
No, the log is from LTSP thin/fat client. Terefore CPU is of LTSP server. GPU is correct though.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
Maksim Bobylev <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|git |17.1
--- Comment #16 from Maksim Bobylev <[email protected]> --- Same problem on Radeon HD 6470M
mesa-17.0.6/17.1.9
llvm-3.9.1-r1/4.0.1
xf86-video-ati-7.9.0
xorg-server-1.19.3
kernel-4.12.12-gentoo
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #17 from Maksim <[email protected]> --- (In reply to aceman from comment #6)
Quoted 1 line
Are those problems solved in radeonsi?
(In reply to aceman from comment #10)
Quoted 3 lines
I asked about the radeonSI drive in comment 6 but didn't get a reply. If you could find out if you are running with it and rendering is fine, I would like to know.
On my other machine amdgpu+radeonsi it is working OK.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #18 from [email protected] ---
Issue is still reproducible in Mesa 17.2. With Mesa 17.3 I get GPU lockup at War Thunder launch: bug 103900
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #19 from Agatha_Luni <[email protected]> --- I have same issue on my AMD A6-6400K with Radeon HD 8470D (ARUBA) Kubuntu 17.10 x86_64 with Linux 4.13.0 and Mesa 17.2.2
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #20 from [email protected] ---
Possibly this bug is duplicate of bug 99349
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #21 from aceman <[email protected]> ---
Yes, with amdgpu+radeonsi (on RX560) there are no issues. It runs at 40-60fps on Medium details.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #22 from [email protected] ---
Looks similar: bug 105213
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=100387
GitLab Migration User <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |MOVED
Status|NEW |RESOLVED--- Comment #23 from GitLab Migration User <[email protected]> --- -- 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/599.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel