freedreno: Only upload the used part of UBO0 to the constant buffer.

We were pessimistically uploading all of it in case of indirection,
but we can just bump that when we encounter indirection.

total constlen in shared programs: 2529623 -> 2485933 (-1.73%)

Reviewed-by: Kristian H. Kristensen <>
Reviewed-by: Rob Clark <>
10 jobs for !1148 with freedreno-const-fixes in 9 minutes and 59 seconds (queued for 1 second)
merge request