freedreno: Fix up end range of unaligned UBO loads.
authorEric Anholt <eric@anholt.net>
Thu, 6 Jun 2019 21:27:13 +0000 (14:27 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 22 Jun 2019 00:14:43 +0000 (17:14 -0700)
commit56842d33d53f3ea76b9359e8ead2ea4487e62dc1
tree0d1a7f1cef82c1a321b2d3b9869b18b685b1f94d
parent5e7c96b95df0f2d792820a27b278a95a90893e4a
freedreno: Fix up end range of unaligned UBO loads.

We need the constants uploaded to cover the NIR offset plus the size,
not the aligned-down start of our upload range plus the size.  Fixes
mistaken UBO analysis with mat3 loads.

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