I could reproduce the issue on a Raven Ridge and a Navi10. But when using NIR (radeonsi_enable_nir=true env variable) the shader is perfectly usable.