freedreno: Stop treating UBO 0 specially in UBO uploading.
authorEric Anholt <eric@anholt.net>
Wed, 5 Jun 2019 17:34:52 +0000 (10:34 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 24 Jun 2019 21:23:07 +0000 (14:23 -0700)
commit852704976aa9b8ddbdc4fee83b95612f88189668
tree7fe099375ca4ddc38596a8941adaea86be1a338b
parent572c76fd882601a189496a1f8bd3a09db1621337
freedreno: Stop treating UBO 0 specially in UBO uploading.

ir3_nir_analyze_ubo_ranges() has already told us how much of cb0 we
need to upload (all of it, since it will lower indirect UBO 0 accesses
from load_ubo back to indirection on the constant buffer).

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_nir.c
src/freedreno/ir3/ir3_shader.h
src/gallium/drivers/freedreno/ir3/ir3_gallium.c