diff options
author | Rob Clark <robdclark@chromium.org> | 2019-05-02 09:33:40 -0700 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2019-05-02 11:19:22 -0700 |
commit | e941faf3e83fa0d5ce0bd6e67119e8d6bf975502 (patch) | |
tree | c5fbfe64905c2e78ef4cd6e7ece99ed2fca03363 /src/freedreno/ir3/ir3_compiler.c | |
parent | f697f61590fcdbba624749ce535f5a8f7b0267a5 (diff) | |
download | mesa-e941faf3e83fa0d5ce0bd6e67119e8d6bf975502.tar.gz |
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>
Diffstat (limited to 'src/freedreno/ir3/ir3_compiler.c')
-rw-r--r-- | src/freedreno/ir3/ir3_compiler.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_compiler.c b/src/freedreno/ir3/ir3_compiler.c index b0f2b139d5e..be9ae83b278 100644 --- a/src/freedreno/ir3/ir3_compiler.c +++ b/src/freedreno/ir3/ir3_compiler.c @@ -35,6 +35,7 @@ static const struct debug_named_value shader_debug_options[] = { {"disasm", IR3_DBG_DISASM, "Dump NIR and adreno shader disassembly"}, {"optmsgs", IR3_DBG_OPTMSGS, "Enable optimizer debug messages"}, {"forces2en", IR3_DBG_FORCES2EN, "Force s2en mode for tex sampler instructions"}, + {"nouboopt", IR3_DBG_NOUBOOPT, "Disable lowering UBO to uniform"}, DEBUG_NAMED_VALUE_END }; |