freedreno/ir3: fix lowered ubo region alignment
authorRob Clark <robdclark@chromium.org>
Thu, 2 May 2019 16:25:36 +0000 (09:25 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 2 May 2019 18:19:22 +0000 (11:19 -0700)
commitf697f61590fcdbba624749ce535f5a8f7b0267a5
tree073c6b679e9d7de1be1a7e3c0181a370b9130058
parent32925f407248dfdd6994523d7a895112da8a82ae
freedreno/ir3: fix lowered ubo region alignment

Since we emit UBO regions INDIRECTly (ie. not copied into cmdstream but
emit by EXT_SRC_ADDR) we need to keep them 4*vec4 aligned.  Which the
code already mostly did, except for aligning the first UBO region itself
(ie. the one after block==0 which is the "real" uniforms).

Fixes: 893425a607a freedreno/ir3: Push UBOs to constant file
Fixes: 3c8779af325 freedreno/ir3: Enable PIPE_CAP_PACKED_UNIFORMS
Signed-off-by: Rob Clark <robdclark@chromium.org>
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c