This is the start of a glsl-continue-return feature branch to support a GLSL code generator option for 'continue' and 'return' statements. Some targets don't support CONT or RET statements so we'll need to try to generate code that does not use them...tags/mesa_7_5_rc4
| @@ -2032,6 +2032,7 @@ struct gl_shader_state | |||
| struct gl_shader_program *CurrentProgram; /**< The user-bound program */ | |||
| /** Driver-selectable options: */ | |||
| GLboolean EmitHighLevelInstructions; /**< IF/ELSE/ENDIF vs. BRA, etc. */ | |||
| GLboolean EmitContReturn; /**< Emit CONT/RET opcodes? */ | |||
| GLboolean EmitCondCodes; /**< Use condition codes? */ | |||
| GLboolean EmitComments; /**< Annotated instructions */ | |||
| void *MemPool; | |||
| @@ -402,6 +402,7 @@ _mesa_init_shader_state(GLcontext * ctx) | |||
| * are generated by the GLSL compiler. | |||
| */ | |||
| ctx->Shader.EmitHighLevelInstructions = GL_TRUE; | |||
| ctx->Shader.EmitContReturn = GL_TRUE; | |||
| ctx->Shader.EmitCondCodes = GL_FALSE; | |||
| ctx->Shader.EmitComments = GL_FALSE; | |||
| ctx->Shader.Flags = get_shader_flags(); | |||