freedreno/ir3: Plumb the ir3_shader_variant into legalize.
authorEric Anholt <eric@anholt.net>
Wed, 22 Jan 2020 18:53:17 +0000 (10:53 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 17:38:29 +0000 (17:38 +0000)
commit876824908db342f83cebb7845d01b713f85b577a
tree299f9460d4a554d90b8832f34f6924e882b413c7
parentf77369086ced2a76dd33358d28b7bb0706b1157f
freedreno/ir3: Plumb the ir3_shader_variant into legalize.

legalize is computing a lot of state that goes in the variant, let's just
store it directly instead of passing pointers around.  This leaves
max_bary in place, which is doing some surprising work (overwriting the
original total_in in some cases).

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3494>
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_legalize.c