freedreno/ir3: Stop shifting UBO 1 down to be UBO 0.
authorEric Anholt <eric@anholt.net>
Fri, 29 May 2020 17:21:02 +0000 (10:21 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 5 Jun 2020 20:36:29 +0000 (13:36 -0700)
commita25347ab92bbe66c0f0c8def4d5f413f396b228d
treeecc6a7d0fca88156488aaff46df6e7c73e78a5c0
parent9e58ab09ffbd18355868000b2da90a5cd73b5c09
freedreno/ir3: Stop shifting UBO 1 down to be UBO 0.

It turns out the GL uniforms file is larger than the hardware constant
file, so we need to limit how many UBOs we lower to constbuf loads.  To do
actual UBO loads, we'll need to be able to upload UBO 0's pointer or
descriptor.

No difference on nohw 1 UBO update drawoverhead case (n=35).

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