freedreno/ir3: add IR3_SHADER_DEBUG flag to disable ubo lowering
authorRob Clark <robdclark@chromium.org>
Thu, 2 May 2019 16:33:40 +0000 (09:33 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 2 May 2019 18:19:22 +0000 (11:19 -0700)
commite941faf3e83fa0d5ce0bd6e67119e8d6bf975502
treec5fbfe64905c2e78ef4cd6e7ece99ed2fca03363
parentf697f61590fcdbba624749ce535f5a8f7b0267a5
freedreno/ir3: add IR3_SHADER_DEBUG flag to disable ubo lowering

It isn't quite as simple as not running the pass, since with packed
varyings we get load_ubo for block==0 (ie. the "real" uniforms).  So
instead run the pass normally but decline to lower anything in
block > 0

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/freedreno/ir3/ir3_compiler.c
src/freedreno/ir3/ir3_compiler.h
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c