glsl: add several EmitNo* options, and MaxUnrollIterations

This increases the chance that GLSL programs will actually work.

Note that continues and returns are not yet lowered, so linking
will just fail if not supported.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Luca Barbieri
2010-09-05 22:29:58 +02:00
committed by Ian Romanick
parent 6d3a2c97f4
commit e591c4625c
11 changed files with 27 additions and 19 deletions
+1 -1
View File
@@ -1471,7 +1471,7 @@ link_shaders(GLcontext *ctx, struct gl_shader_program *prog)
* some of that unused.
*/
for (unsigned i = 0; i < prog->_NumLinkedShaders; i++) {
while (do_common_optimization(prog->_LinkedShaders[i]->ir, true))
while (do_common_optimization(prog->_LinkedShaders[i]->ir, true, 32))
;
}