projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
868193d
)
init tmpNode to zeros
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 14 Mar 2008 20:15:55 +0000
(14:15 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 14 Mar 2008 20:15:55 +0000
(14:15 -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 84c370dc0b9868c5a1a40cbd54b589d7983af4e7..9c307c6275ba137e1600020e727940e6246a8fa0 100644
(file)
--- a/
src/mesa/shader/slang/slang_emit.c
+++ b/
src/mesa/shader/slang/slang_emit.c
@@
-727,6
+727,7
@@
emit_clamp(slang_emit_info *emitInfo, slang_ir_node *n)
* dest for this clamp() is an output reg, we can't use that reg for
* the intermediate result. Use a temp register instead.
*/
+ _mesa_bzero(&tmpNode, sizeof(tmpNode));
alloc_temp_storage(emitInfo, &tmpNode, n->Store->Size);
/* tmp = max(ch[0], ch[1]) */