Bug 96425

Summary: [bisected] occasional dark render in The Talos Principle
Product: Mesa Reporter: Grazvydas Ignotas <notasas>
Component: Drivers/DRI/i965Assignee: Ian Romanick <idr>
Status: VERIFIED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: normal    
Priority: medium CC: jason, kenneth, mattst88
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: screenshot

Description Grazvydas Ignotas 2016-06-07 13:41:26 UTC
Created attachment 124387 [details]
screenshot

After some recent game's update the game renders way too dark when viewing certain objects. The problem goes away or reappears depending on camera position. Reproduces on both Haswell and Skylake, works fine on r600g and llvmpipe. Mesa 10.1.3 does not have such problems so I've ran a bisect:

commit d47405eb707b9921f70454049677a9d504ee3fa6
Author: Jason Ekstrand <jason.ekstrand@intel.com>
Date:   Fri Apr 10 16:24:11 2015 -0700

    i965: Use NIR by default for fragment shaders

Unfortunately the trace is rather large because the problem usually shows up further from save points. It shows up in the last frame of this trace:
https://drive.google.com/file/d/0Bz8fw_SGGDzsejZiR1Y1anN3aHM/view?usp=sharing
Comment 1 Jason Ekstrand 2016-06-19 01:25:09 UTC
There's now a patch on the mailing list that should fix this:

https://lists.freedesktop.org/archives/mesa-dev/2016-June/120874.html
Comment 2 Jason Ekstrand 2016-06-20 18:57:48 UTC
This should be fixed by the following commit:

commit 68e308d85355079ad93bd4e16cba164784740fdf
Author: Jason Ekstrand <jason.ekstrand@intel.com>
Date:   Sat Jun 18 12:30:36 2016 -0700

    nir/algebraic: Remove imprecise flog2 optimizations
Comment 3 Grazvydas Ignotas 2016-06-20 22:58:00 UTC
Confirmed, thanks, but the game still shows similar symptoms, bug 96607 filled.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.