intel/compiler: Allocate pull_param in assign_constant_locations
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 29 Sep 2017 18:30:25 +0000 (11:30 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 13 Oct 2017 05:39:31 +0000 (22:39 -0700)
commit8d90e2883954eb7022cf8fc98be3773cc5513e7b
tree0dd35f769a6cd39c9f44e48768df13182090b48b
parent29737eac985cf028b19d977cb8fa0d7320cf91cf
intel/compiler: Allocate pull_param in assign_constant_locations

Now that everything is nicely ralloc'd, we can allocate the pull_param
array in assign_constant_locations instead of higher up.  We can also
re-allocate the param array so that it's exactly the needed size.  This
should save us some memory because we're not allocating the total needed
param space for both push and pull.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp