refactor(shader): reduce dispatcher state overhead

This commit is contained in:
nmzik committed 2026-08-21 03:32:47 +02:00
1 parent 6e9f162bd4
commit 87166eed94
9 files changed
+557 -124

No files matched your search

@@ -1181,12 +1181,11 @@ bool LowerProgram(const Decoder::Program& decoded, const CFG::Graph& cfg, Shader
EXIT("invalid shader wave size: %u\n", wave_size);
}
program = {};
program.stage = stage;
program.wave_size = wave_size;
program.dispatcher_fallback = cfg.irreducible;
program.cfg_failure_kind = cfg.failure_kind;
program.fallback_reason = cfg.unsupported_reason;
program = {};
program.stage = stage;
program.wave_size = wave_size;
program.cfg_failure_kind = cfg.failure_kind;
program.fallback_reason = cfg.unsupported_reason;
program.blocks.clear();
if (cfg.blocks.empty()) {