freedreno: Upload gallium constbufs as needed when referenced as a UBO.
authorEric Anholt <eric@anholt.net>
Mon, 1 Jun 2020 18:53:22 +0000 (11:53 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 5 Jun 2020 20:36:29 +0000 (13:36 -0700)
commit4065861807f1f488f9e9dc0254009982ccbf7784
tree85a3219e00da6fc3317f7fb6e762fee1f66534aa
parentd1f9d1e26a2aab71d6ba6edcf195b972f12cff80
freedreno: Upload gallium constbufs as needed when referenced as a UBO.

For now we never ask to set up UBO 0 as a real UBO, so this doesn't
trigger, but it gets us ready for handling the case where UBO 0 is too big
to be push constants in the HW.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
src/gallium/drivers/freedreno/a6xx/fd6_const.c
src/gallium/drivers/freedreno/ir3/ir3_const.h