summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-03-31 09:09:48 -0600
committerBrian <brian@yutani.localnet.net>2007-03-31 09:09:48 -0600
commit00831b5b3bb35bbe5ead2399229495b8ef945406 (patch)
treee4a031ac3b2e34ac1e24eeb217fd555400ee0e8d /src/mesa/shader/slang
parentec6c8f86f3fa0fa19d34dfa1ee1f9e4610e6e9d6 (diff)
always emit BGN/ENDSUB, for now anyway
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r--src/mesa/shader/slang/slang_emit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c
index a316c47d7e..088deaa8ee 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);