https://bugs.freedesktop.org/show_bug.cgi?id=104362
--- Comment #20 from Axel Davy davyaxel0@gmail.com --- It looks like from the previous comments the problem is in radeonsi.
As a 'temporary fix', you could try this patch: https://github.com/iXit/Mesa-3D/commit/976f3fe791b0aa34cc04eaac53147eb60089e...
This patch recompiles the shaders with the boolean and integer constant values given by the app, thus the branches controlled by them are simplified.