shader: share control flow labels

This commit is contained in:
nmzik committed 2026-09-08 21:26:59 +04:00
1 parent cb4c8f3878
commit cd62693792
6 files changed
+7 -50

No files matched your search

@@ -319,8 +319,7 @@ std::vector<uint32_t> EmitProgram(const IR::Program& program,
ValidateNativeProgram(program);
IR::ValidateProgram(program, true);
EmitterState state(program, input_info);
state.stage = program.stage;
state.wave_size = program.wave_size;
state.stage = program.stage;
const auto* workgroup = ShaderWorkgroupInput(program.stage, input_info);
state.lane_count =
workgroup != nullptr && program.wave_size == 64u && workgroup->host_subgroup_size == 32u