diff options
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp index 9759591bd..a98e08392 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp | |||
| @@ -463,7 +463,6 @@ EmitContext::EmitContext(const Profile& profile_, IR::Program& program, Bindings | |||
| 463 | DefineImages(program.info, image_binding); | 463 | DefineImages(program.info, image_binding); |
| 464 | DefineAttributeMemAccess(program.info); | 464 | DefineAttributeMemAccess(program.info); |
| 465 | DefineGlobalMemoryFunctions(program.info); | 465 | DefineGlobalMemoryFunctions(program.info); |
| 466 | DefineLabels(program); | ||
| 467 | } | 466 | } |
| 468 | 467 | ||
| 469 | EmitContext::~EmitContext() = default; | 468 | EmitContext::~EmitContext() = default; |
| @@ -487,8 +486,6 @@ Id EmitContext::Def(const IR::Value& value) { | |||
| 487 | return Const(value.F32()); | 486 | return Const(value.F32()); |
| 488 | case IR::Type::F64: | 487 | case IR::Type::F64: |
| 489 | return Constant(F64[1], value.F64()); | 488 | return Constant(F64[1], value.F64()); |
| 490 | case IR::Type::Label: | ||
| 491 | return value.Label()->Definition<Id>(); | ||
| 492 | default: | 489 | default: |
| 493 | throw NotImplementedException("Immediate type {}", value.Type()); | 490 | throw NotImplementedException("Immediate type {}", value.Type()); |
| 494 | } | 491 | } |
| @@ -1139,12 +1136,6 @@ void EmitContext::DefineImages(const Info& info, u32& binding) { | |||
| 1139 | } | 1136 | } |
| 1140 | } | 1137 | } |
| 1141 | 1138 | ||
| 1142 | void EmitContext::DefineLabels(IR::Program& program) { | ||
| 1143 | for (IR::Block* const block : program.blocks) { | ||
| 1144 | block->SetDefinition(OpLabel()); | ||
| 1145 | } | ||
| 1146 | } | ||
| 1147 | |||
| 1148 | void EmitContext::DefineInputs(const Info& info) { | 1139 | void EmitContext::DefineInputs(const Info& info) { |
| 1149 | if (info.uses_workgroup_id) { | 1140 | if (info.uses_workgroup_id) { |
| 1150 | workgroup_id = DefineInput(*this, U32[3], false, spv::BuiltIn::WorkgroupId); | 1141 | workgroup_id = DefineInput(*this, U32[3], false, spv::BuiltIn::WorkgroupId); |