nir: When nir_lower_vars_to_explicit_types is run on temps, update scratch_size
authorJesse Natalie <jenatali@microsoft.com>
Tue, 26 May 2020 19:20:20 +0000 (12:20 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 18:15:40 +0000 (18:15 +0000)
commit99aaf0ec181efc5830deaeb7ec3331642125bc38
treef6e21aeb13e0a7a4daec83743c58ed9a956f4331
parentbf138c1fd43966ba5f5933fba6cd87217100dd88
nir: When nir_lower_vars_to_explicit_types is run on temps, update scratch_size

To allow interop with other scratch ops, append any remaining temp vars
to the end of any already-allocated scratch space.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5889>
src/compiler/nir/nir_lower_io.c