projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
680df52
)
gallium: memset() tgsi_exec_machine to all zeros in tgsi_exec_machine_create()
author
Brian Paul
<brianp@vmware.com>
Mon, 17 Aug 2009 23:11:54 +0000
(17:11 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 17 Aug 2009 23:13:17 +0000
(17:13 -0600)
This fixes invalid values for CondStackTop, LoopStackTop, etc.
src/gallium/auxiliary/tgsi/tgsi_exec.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_exec.c
b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 5af0a947947fed528ed5553bd76c2230c22c7ade..951ecfd5528307713f0e4a8dbc19258356ae8373 100644
(file)
--- a/
src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/
src/gallium/auxiliary/tgsi/tgsi_exec.c
@@
-375,15
+375,9
@@
tgsi_exec_machine_create( void )
if (!mach)
goto fail;
- m
ach->Addrs = &mach->Temps[TGSI_EXEC_TEMP_ADDR]
;
+ m
emset(mach, 0, sizeof(*mach))
;
- mach->Samplers = NULL;
- mach->Consts = NULL;
- mach->Tokens = NULL;
- mach->Primitives = NULL;
- mach->InterpCoefs = NULL;
- mach->Instructions = NULL;
- mach->Declarations = NULL;
+ mach->Addrs = &mach->Temps[TGSI_EXEC_TEMP_ADDR];
/* Setup constants. */
for( i = 0; i < 4; i++ ) {