mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-20 10:10:29 +01:00
gallium: memset() tgsi_exec_machine to all zeros in tgsi_exec_machine_create()
This fixes invalid values for CondStackTop, LoopStackTop, etc.
This commit is contained in:
parent
680df529a3
commit
3aafd22f6a
1 changed files with 2 additions and 8 deletions
|
|
@ -375,15 +375,9 @@ tgsi_exec_machine_create( void )
|
|||
if (!mach)
|
||||
goto fail;
|
||||
|
||||
mach->Addrs = &mach->Temps[TGSI_EXEC_TEMP_ADDR];
|
||||
memset(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++ ) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue