freedreno/a3xx: parameterize ubo optimization
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 May 2020 22:08:11 +0000 (18:08 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 May 2020 23:51:40 +0000 (19:51 -0400)
commitb5accb3ff997c073f9a9418c97ddd2365f81504f
tree9acf712ec7e97f5cdb0245ea8c0e3f142b913d58
parent475fb28377fa4f5293c1a0853f2c4260418aea7f
freedreno/a3xx: parameterize ubo optimization

A3xx apparently has higher alignment requirements than later gens for
indirect const uploads. It also has fewer of them. Add compiler
parameters for both settings, and set accordingly for a3xx and a4xx+.
This fixes all the ubo test failures caused by this optimization.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5077>
.gitlab-ci/deqp-freedreno-a307-fails.txt
src/freedreno/ir3/ir3_compiler.c
src/freedreno/ir3/ir3_compiler.h
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c