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:
committed by
Ian Romanick
parent
6d3a2c97f4
commit
e591c4625c
+1
-1
@@ -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))
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user