Maybe this is a Navi OpenGL precision glitch on Mesa 20.0.0 devel?
Using the same framework on Vega and Polaris works fine.