Created attachment 131026 [details]
The Civilization VI start screen (unfortunately, so far I haven't found a way to reproduce this using only open code) is displayed incorrectly (see attached screenshot) with Mesa 17.1-rc2.
Mesa 17.0.4 works well.
Graphics card is:
00:02.0 0300: 8086:191b (rev 06) (prog-if 00 [VGA controller])
Flags: bus master, fast devsel, latency 0, IRQ 126
Memory at 82000000 (64-bit, non-prefetchable) [size=16M]
Memory at 90000000 (64-bit, prefetchable) [size=256M]
I/O ports at b000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
Linux kernel 4.11-rc5, libdrm 2.4.80, latest released Xorg bits.
Can you provide an apitrace that reproduces the problem?
Created attachment 131409 [details]
I recorded a trace of this (I see the same behaviour as the original reporter).
While playing the game the blue colours are also present at a multiple of places. The trace is heavily trimmed because it would have been too big otherwise, but the last frame still contains the observed behaviour.
I'm using Mesa 17.1.0 from https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/pkppa/ and a Intel Kaby Lake integrated graphics. The problem occurred after the game itself was updated. Funny enough Mac OSX users are seeing this, too (http://steamcommunity.com/app/289070/discussions/0/340412628172881722/?ctp=53#c1319961618830923344)
With this trace, I see blue when using mesa 17.0.6.
Also, MacOS uses a completely different OpenGL driver (closed source, based on LLVM). It seems likely to me that an application bug was introduced into Civilization.
Created attachment 131412 [details]
Batch for misrendered draw call
I've attached the batch submitted to the GPU that results in the blue text. Perhaps Ken or Jason can figure out if there is anything in the texture state that is suspicious.
This appears to be fixed in the 17.3.0-rc1 release (I used the Padoka Stable PPA https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/pkppa/ to install this version). Tested under Ubuntu 17.10 and an Intel HD Graphics 620.
Still experiencing the exactly same rendering issues with mesa 17.3.1 on Arch Linux.
Looks like I have the same hardware:
- Intel(R) HD Graphics 530 (Skylake GT2) (0x191b)
- Ubuntu 16.04 LTS (Kernel 4.13.0-32-generic)
Tested the apitrace with the noted mesa versions and got contradictory results:
mesa-17.0.4 (git 367bafc7c153) - distorted (the same as attached picture).
mesa-17.0.6 (git 08abf3a2a2ca) - distorted.
mesa-17.3.1 (git 4f5e85e9e97d) - correct.
mesa master (git d0343bef6680) - correct.
Older versions (17.0.0 and 13.0.6) also shows distorted colors. So I'm not seeing regression. Anyway, this issue is fixed on my system.
Hi. Had a chance to check 2 build version and looks like found commit where this bug was fixed. All information below:
Dual core Intel Core i7-7500U
Intel® HD Graphics 620
Kernel: 4.13.0-37-generic x86_64 (64 bit)
Distro: Ubuntu 16.04 xenial
17.0.0 - reproduced
17.1.0-rc2 - reproduced
17.2.8 - reproduced
17.3.0-rc1 - not reproduced
17.3.0-rc4 - not reproduced
17.3.0 - not reproduced
18.1.0 - not reproduced
Bisected between mesa-17.2.8 and mesa-17.3.0-rc1
This issue was fixed with commit:
Author: Jason Ekstrand <email@example.com>
Date: Tue Jun 6 09:58:07 2017 -0700
i965: Use blorp instead of meta for PBO texture uploads
Reviewed-by: Topi Pohjolainen <firstname.lastname@example.org>
Reviewed-by: Kenneth Graunke <email@example.com>
(In reply to phw from comment #7)
> Still experiencing the exactly same rendering issues with mesa 17.3.1 on
> Arch Linux.
kernel 4.14.30-1-MANJARO x86_64
Distro: Manjaro Linux 17.1.7 Hakoila
Intel Core i5-3470 MCP
Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller driver: i915 v: kernel
This should have been closed when the fix was bisected.