mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
ir_dead_functions: Actually free dead functions and signatures.
This makes linked shaders use around 36k less memory since the built-in prototypes are now freed.
This commit is contained in:
parent
ef6967ddc2
commit
a457ca7844
1 changed files with 2 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ do_dead_functions(exec_list *instructions)
|
|||
|
||||
if (!entry->used) {
|
||||
entry->signature->remove();
|
||||
delete entry->signature;
|
||||
progress = true;
|
||||
}
|
||||
delete(entry);
|
||||
|
|
@ -143,6 +144,7 @@ do_dead_functions(exec_list *instructions)
|
|||
* symbol table should be OK.
|
||||
*/
|
||||
func->remove();
|
||||
delete func;
|
||||
progress = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue