freedreno/a6xx: defer userconst cmdstream size calculation
authorRob Clark <robdclark@chromium.org>
Sun, 14 Jun 2020 19:33:54 +0000 (12:33 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Jun 2020 13:16:57 +0000 (13:16 +0000)
commita8b995c055fb47f820b1615f303a66b0995eb16a
tree4a57a662e244e78a11af60f21c13956046937b31
parentbd55533f5b00cdf76ec474d8c300fe8742ca11b6
freedreno/a6xx: defer userconst cmdstream size calculation

The `ubo_state` will also need to move to `ir3_shader_variant`.  But we
can prepare for that and simplify things a bit if we calculate the
cmdstream on first emit, once we already have the appropriate variant.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5508>
src/gallium/drivers/freedreno/a6xx/fd6_const.c
src/gallium/drivers/freedreno/a6xx/fd6_const.h
src/gallium/drivers/freedreno/a6xx/fd6_program.c