freedreno/ir3: build binning variant at same time as draw variant
authorRob Clark <robdclark@chromium.org>
Sat, 20 Jun 2020 19:53:36 +0000 (12:53 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 26 Jun 2020 15:53:02 +0000 (08:53 -0700)
commit6aadb00e60fcf37bbef0dfe03e76e72e7c08bf33
tree06283f5da4b1b48eeb1c307a8fc2008cd59577b7
parent83b97bf161f50371a09fdc02b3ca045671469b09
freedreno/ir3: build binning variant at same time as draw variant

For shader-cache, we are going to want to serialize them together.
Which is awkward if the two related variants are not compiled together.

This also decouples allocation and compile, which will simplify adding
shader-cache (which still needs to allocate, but can skip compile).

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5372>
src/freedreno/ir3/ir3_shader.c
src/gallium/drivers/freedreno/ir3/ir3_gallium.c