shader-compiler-bugs
shader-compiler-bugs copied to clipboard
Unreachable control flow causes shader not to render
[Shaders, screenshots, error log, reproduction steps, platform info, etc.] [ZIP]
Variant correct:

Variant:

Both shaders write red to gl_FragColor, then have some further unreachable code. In the case of variant_incorrect.frag, we observe a green colour as output. The launcher we used initially sets the buffer colour to green. This indicates that the discard statement is actually executed.
We have also obtained the Fiji ISA (corresponding to the R9 Fury GPU) via the Radeon GPU Analyzer tool. We observe that lines 15 in the two files are performing opposite comparisons.
This issue is a further investigation of #7. It has also been reported to AMD via email, which have confirmed an issue exists.
Driver version 17.6.2 on Windows 10 64, bit