mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
added tgsi_exec_machine_free_data()
This commit is contained in:
parent
552907d8a4
commit
eba2e044a0
2 changed files with 21 additions and 0 deletions
|
|
@ -275,6 +275,22 @@ tgsi_exec_machine_init(
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
tgsi_exec_machine_free_data(struct tgsi_exec_machine *mach)
|
||||
{
|
||||
if (mach->Instructions) {
|
||||
FREE(mach->Instructions);
|
||||
mach->Instructions = NULL;
|
||||
mach->NumInstructions = 0;
|
||||
}
|
||||
if (mach->Declarations) {
|
||||
FREE(mach->Declarations);
|
||||
mach->Declarations = NULL;
|
||||
mach->NumDeclarations = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
micro_abs(
|
||||
union tgsi_exec_channel *dst,
|
||||
|
|
|
|||
|
|
@ -227,6 +227,11 @@ uint
|
|||
tgsi_exec_machine_run(
|
||||
struct tgsi_exec_machine *mach );
|
||||
|
||||
|
||||
void
|
||||
tgsi_exec_machine_free_data(struct tgsi_exec_machine *mach);
|
||||
|
||||
|
||||
#if defined __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue