From: Brian Date: Sat, 31 Mar 2007 15:09:48 +0000 (-0600) Subject: always emit BGN/ENDSUB, for now anyway X-Git-Tag: 062012170305~19671 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00831b5b3bb35bbe5ead2399229495b8ef945406;p=profile%2Fivi%2Fmesa.git always emit BGN/ENDSUB, for now anyway --- diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index a316c47..088deaa 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -1796,14 +1796,11 @@ _slang_emit_code(slang_ir_node *n, slang_var_table *vt, emitInfo.EmitHighLevelInstructions = 0*ctx->Shader.EmitHighLevelInstructions; emitInfo.EmitCondCodes = ctx->Shader.EmitCondCodes; emitInfo.EmitComments = ctx->Shader.EmitComments; - emitInfo.EmitBeginEndSub = 0; /* XXX for compiler debug only */ + emitInfo.EmitBeginEndSub = GL_TRUE; if (!emitInfo.EmitCondCodes) { emitInfo.EmitHighLevelInstructions = GL_TRUE; } - if (emitInfo.EmitComments) { - emitInfo.EmitBeginEndSub = GL_TRUE; - } (void) emit(&emitInfo, n);