intel/nir: Pass the nir_builder by reference in lower_alpha_to_coverage
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 7 Aug 2020 16:19:45 +0000 (11:19 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sat, 29 Aug 2020 16:41:05 +0000 (16:41 +0000)
commit72dc06e07e3f8b9ed5bb46e3927b8f87dd24e42b
treee4a46098fbb48f31b126a98c8fad413692425afa
parent373e25e6b53338c6fa6c5757a878e10398241c47
intel/nir: Pass the nir_builder by reference in lower_alpha_to_coverage

I'm honestly not sure how passing a builder by-value ever worked.  I
guess the struct is mostly copyable.  In any case, that's the wrong way
to use it and it's causing issues.

Fixes: 7ecfbd4f6d4 "nir: Add alpha_to_coverage lowering pass"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6233>
src/intel/compiler/brw_nir_lower_alpha_to_coverage.c