freedreno/ir3: Handle cases where we decide not to lower UBO 0 loads.
authorEric Anholt <eric@anholt.net>
Fri, 29 May 2020 23:49:43 +0000 (16:49 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 5 Jun 2020 20:43:30 +0000 (13:43 -0700)
commit0bacb280a886905310c9b30c5af234c32ff582dc
treee6a22d4394c7fbee3a3ed4841dbc0d27fb367747
parente349f502792e927a1acdeaf00e591878bd18c837
freedreno/ir3: Handle cases where we decide not to lower UBO 0 loads.

We advertize 4096 vec4s of GL uniform storage, but the HW can only store
512 vec4s in the const buffer.

Closes: #3049
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c