projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1be4c61
)
nir/sweep: Sweep function parameters
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 25 Mar 2016 18:10:30 +0000
(11:10 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 29 Mar 2016 01:32:48 +0000
(18:32 -0700)
They are no longer in the list of local variables so we need to explicitly
sweep them.
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir_sweep.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_sweep.c
b/src/compiler/nir/nir_sweep.c
index 5c62154ec7f69a30e869a7f7786a752941982977..b22f0f5656937fec6bd057776fd1c5e347f70608 100644
(file)
--- a/
src/compiler/nir/nir_sweep.c
+++ b/
src/compiler/nir/nir_sweep.c
@@
-119,6
+119,8
@@
sweep_impl(nir_shader *nir, nir_function_impl *impl)
ralloc_steal(nir, impl);
ralloc_steal(nir, impl->params);
+ for (unsigned i = 0; i < impl->num_params; i++)
+ ralloc_steal(nir, impl->params[i]);
ralloc_steal(nir, impl->return_var);
steal_list(nir, nir_variable, &impl->locals);
steal_list(nir, nir_register, &impl->registers);