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: dri-devel@lists.freedesktop.org Reporter: acelists@atlas.sk QA Contact: dri-devel@lists.freedesktop.org
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.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #1 from aceman acelists@atlas.sk --- 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.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #2 from aceman acelists@atlas.sk --- I can test patches if you have any ideas. Thanks.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #3 from russianneuromancer@ya.ru --- 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)
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #4 from Hi-Angel Hi-Angel@yandex.ru ---
From a quick debugging session the error is coming from here
https://github.com/mesa3d/mesa/blob/a5e1c9f1d5b6063f0a92634967475a05362c0d31...
Don't have time ATM to look closer, but commenting here in case anybody have ideas, including what to look at.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #5 from Hi-Angel Hi-Angel@yandex.ru --- 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%20...
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #6 from aceman acelists@atlas.sk --- Are those problems solved in radeonsi?
https://bugs.freedesktop.org/show_bug.cgi?id=100387
Peter tuharsky@misbb.sk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tuharsky@misbb.sk
--- Comment #7 from Peter tuharsky@misbb.sk --- I see very similar problem with Radeon HD 6850.
OTOH, I must say that with AMD A8-7600 onchip Radeon R7 everything seems OK.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #8 from Peter tuharsky@misbb.sk --- Created attachment 134034 --> https://bugs.freedesktop.org/attachment.cgi?id=134034&action=edit screenshot - War Thunder, Radeon HD 6850
MESA 17.1.5
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #9 from Peter tuharsky@misbb.sk --- (In reply to Hi-Angel from comment #5)
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...
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #10 from aceman acelists@atlas.sk --- 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.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #11 from Peter tuharsky@misbb.sk --- Well, no problem, just please give me a reliable way to get this info. Listing the X.org.log, I'm a bit confused.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #12 from aceman acelists@atlas.sk --- Try looking for DRI driver name or VDPAU driver name in Xorg.log.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #13 from Peter tuharsky@misbb.sk --- Created attachment 134095 --> https://bugs.freedesktop.org/attachment.cgi?id=134095&action=edit X.org log file
please, see attachment...
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #14 from aceman acelists@atlas.sk --- 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?
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #15 from Peter tuharsky@misbb.sk --- No, the log is from LTSP thin/fat client. Terefore CPU is of LTSP server. GPU is correct though.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
Maksim Bobylev uni.brain.fckr@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|git |17.1
--- Comment #16 from Maksim Bobylev uni.brain.fckr@gmail.com --- 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
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #17 from Maksim uni.brain.fckr@gmail.com --- (In reply to aceman from comment #6)
Are those problems solved in radeonsi?
(In reply to aceman from comment #10)
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.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #18 from russianneuromancer@ya.ru --- Issue is still reproducible in Mesa 17.2. With Mesa 17.3 I get GPU lockup at War Thunder launch: bug 103900
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #19 from Agatha_Luni a_r_t_e_m_t_s_e_v_a@mail.ru --- 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
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #20 from russianneuromancer@ya.ru --- Possibly this bug is duplicate of bug 99349
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #21 from aceman acelists@atlas.sk --- Yes, with amdgpu+radeonsi (on RX560) there are no issues. It runs at 40-60fps on Medium details.
https://bugs.freedesktop.org/show_bug.cgi?id=100387
--- Comment #22 from russianneuromancer@ya.ru --- Looks similar: bug 105213
https://bugs.freedesktop.org/show_bug.cgi?id=100387
GitLab Migration User gitlab-migration@fdo.invalid changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |MOVED Status|NEW |RESOLVED
--- Comment #23 from GitLab Migration User gitlab-migration@fdo.invalid --- -- 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.
dri-devel@lists.freedesktop.org