intel: Drop the last uses of a mem_ctx in nir_builder_init_simple_shader().
authorEric Anholt <eric@anholt.net>
Mon, 26 Oct 2020 18:25:08 +0000 (11:25 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 11 Nov 2020 16:50:27 +0000 (08:50 -0800)
commitef5bce9253e2221ef8df0764447cb02c02fa2a16
tree4530cd2b768194bfe214e529477f5491534e3675
parent2f372572a198d5e5762c74d06ebd29666da3206b
intel: Drop the last uses of a mem_ctx in nir_builder_init_simple_shader().

These two consumers were the only ones out of the ~65 calls to
init_simple_shader, so there's a pretty clear consensus on how to allocate
simple shaders.  I suspect that actually these would be just fine with
b.shader being the mem_ctx, but that would take a bit more rework.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7323>
src/intel/blorp/blorp_nir_builder.h
src/intel/compiler/brw_nir.c