In the game The Surge (378540) - textures disappear then appear again when I change the camera angle view
RenderDoc capture: https://mega.nz/#F!8sxRAAwB!grDWL3_PJdsU5bxSd9uhCg
Tested on Mesa 19.2 and mesa git.
I can reproduce this, is this something recent for you? I think that game used to work in the past.
Works perfectly fine with Mesa 19.1.5.
5544b2cbbd23df82192aea09d909b5cc2c1f1af9 is the first bad commit
Author: Ian Romanick <email@example.com>
Date: Tue Jan 23 17:35:51 2018 +0800
nir/algebraic: Use value range analysis to eliminate useless unary ops
Sandy Bridge is the big winner because it lies at something of a
crossroads. It supports a fairly high OpenGL version, and it still has
the old style math box. The high OpenGL version means a lot more
shaders can run on it. The old style math box means extra moves are
necessary to resolve source modifiers on operands to complex math
instructions like COS, SQRT, and RCP.
This is almost certainly a dup of https://bugs.freedesktop.org/show_bug.cgi?id=111490, but I'm going to wait a bit to close it as such.
Can you try the second patch (the one with is_used_once in the description) from bug #111490?
I built mesa 09705747d727d2ec48a6c4af8206ec3411dec127 with and without the patch and in both cases the bug appears fixed.
Fixed by https://gitlab.freedesktop.org/mesa/mesa/commit/966a455bb912cc9fd22580c6cf9b74e27faa4491
(In reply to Ian Romanick from comment #4)
> This is almost certainly a dup of
> https://bugs.freedesktop.org/show_bug.cgi?id=111490, but I'm going to wait a
> bit to close it as such.
Yes... Samuel was on top of this, and I think I was confusing this with a different bug. Oops.