-
Roland Scheidegger authored
Similar to glsl-fs-main-return (and glsl-vs-main-return), this is testing using return in main. Contrary to the these other tests, this hits both the cases where the return path is and is NOT taken (the gallivm code got it wrong and always did an early exit which got unnoticed by the existing tests, see https://bugs.freedesktop.org/show_bug.cgi?id=62357 ). v2: use mod() instead of integer arithmetic suggested by Ian Romanick. This gets rid of the glsl 1.30 requirement. And do minor simplifications. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
3e442a30