freedreno: Fix UBO load range detection on booleans.
authorEric Anholt <eric@anholt.net>
Thu, 6 Jun 2019 19:19:06 +0000 (12:19 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 22 Jun 2019 00:14:43 +0000 (17:14 -0700)
commit5e7c96b95df0f2d792820a27b278a95a90893e4a
tree96f7e680f8617e9b7d06e55ca250d603d91d7b13
parent23a7feda6310fa2d87ec94939c743f1aa133048b
freedreno: Fix UBO load range detection on booleans.

NIR 1-bit bool dests will have a bit size of 1, and thus a calculated
"bytes" of 0.  load_ubo is always loading from dwords in the source.

Fixes: 893425a607a6 ("freedreno/ir3: Push UBOs to constant file")
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c