projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec6c8f8
)
always emit BGN/ENDSUB, for now anyway
author
Brian
<brian@yutani.localnet.net>
Sat, 31 Mar 2007 15:09:48 +0000
(09:09 -0600)
committer
Brian
<brian@yutani.localnet.net>
Sat, 31 Mar 2007 15:09:48 +0000
(09:09 -0600)
src/mesa/shader/slang/slang_emit.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_emit.c
b/src/mesa/shader/slang/slang_emit.c
index a316c47d7e9c85451d2966df07f82cfe51bcf97b..088deaa8ee1724381ecd10c4a22547b2242b1309 100644
(file)
--- 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);