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/976f3fe791b0aa34cc04eaac53147eb60089e0f7 This patch recompiles the shaders with the boolean and integer constant values given by the app, thus the branches controlled by them are simplified.