mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 12:50:10 +01:00
gallium: fix some "instruction"/"declaration" mix-ups in tgsi_exec_prepare().
This commit is contained in:
parent
59cc1f4e62
commit
7a3e59d236
1 changed files with 3 additions and 3 deletions
|
|
@ -158,13 +158,13 @@ tgsi_exec_prepare( struct tgsi_exec_machine *mach )
|
|||
if (numDeclarations == maxDeclarations) {
|
||||
declarations = REALLOC(declarations,
|
||||
maxDeclarations
|
||||
* sizeof(struct tgsi_full_instruction),
|
||||
* sizeof(struct tgsi_full_declaration),
|
||||
(maxDeclarations + 10)
|
||||
* sizeof(struct tgsi_full_instruction));
|
||||
* sizeof(struct tgsi_full_declaration));
|
||||
maxDeclarations += 10;
|
||||
}
|
||||
memcpy(declarations + numDeclarations,
|
||||
&parse.FullToken.FullInstruction,
|
||||
&parse.FullToken.FullDeclaration,
|
||||
sizeof(declarations[0]));
|
||||
numDeclarations++;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue