Re: [Mesa-dev] [PATCH 2/2] glsl: Reject shaders that contain static recursion

2011-07-20 Thread Kenneth Graunke
On 07/17/2011 01:03 PM, Ian Romanick wrote: > From: Ian Romanick > > The GLSL 1.20 and later specs say: > > "Recursion is not allowed, not even statically. Static recursion is > present if the static function call graph of the program contains > cycles." > > Recursion is detected an

[Mesa-dev] [PATCH 2/2] glsl: Reject shaders that contain static recursion

2011-07-17 Thread Ian Romanick
From: Ian Romanick The GLSL 1.20 and later specs say: "Recursion is not allowed, not even statically. Static recursion is present if the static function call graph of the program contains cycles." Recursion is detected and rejected both a compile-time and at link-time. The complie-