summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_instructions.h2
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp8
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp24
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_instructions.h2
4 files changed, 28 insertions, 8 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
index c9f4826ce..fef9ff9be 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
@@ -42,6 +42,8 @@ void EmitSetGotoVariable(EmitContext& ctx);
42void EmitGetGotoVariable(EmitContext& ctx); 42void EmitGetGotoVariable(EmitContext& ctx);
43void EmitSetIndirectBranchVariable(EmitContext& ctx); 43void EmitSetIndirectBranchVariable(EmitContext& ctx);
44void EmitGetIndirectBranchVariable(EmitContext& ctx); 44void EmitGetIndirectBranchVariable(EmitContext& ctx);
45void EmitSetLoopSafetyVariable(EmitContext& ctx);
46void EmitGetLoopSafetyVariable(EmitContext& ctx);
45void EmitGetCbufU8(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, ScalarU32 offset); 47void EmitGetCbufU8(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, ScalarU32 offset);
46void EmitGetCbufS8(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, ScalarU32 offset); 48void EmitGetCbufS8(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, ScalarU32 offset);
47void EmitGetCbufU16(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, ScalarU32 offset); 49void EmitGetCbufU16(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, ScalarU32 offset);
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
index 95bcbd750..60735fe31 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
@@ -153,6 +153,14 @@ void EmitGetIndirectBranchVariable(EmitContext& ctx) {
153 NotImplemented(); 153 NotImplemented();
154} 154}
155 155
156void EmitSetLoopSafetyVariable(EmitContext& ctx) {
157 NotImplemented();
158}
159
160void EmitGetLoopSafetyVariable(EmitContext& ctx) {
161 NotImplemented();
162}
163
156void EmitGetZFlag(EmitContext& ctx) { 164void EmitGetZFlag(EmitContext& ctx) {
157 NotImplemented(); 165 NotImplemented();
158} 166}
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
index 442a958a5..42fff74e3 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
@@ -163,35 +163,43 @@ Id GetCbufElement(EmitContext& ctx, Id vector, const IR::Value& offset, u32 inde
163} // Anonymous namespace 163} // Anonymous namespace
164 164
165void EmitGetRegister(EmitContext&) { 165void EmitGetRegister(EmitContext&) {
166 throw NotImplementedException("SPIR-V Instruction"); 166 throw LogicError("Unreachable instruction");
167} 167}
168 168
169void EmitSetRegister(EmitContext&) { 169void EmitSetRegister(EmitContext&) {
170 throw NotImplementedException("SPIR-V Instruction"); 170 throw LogicError("Unreachable instruction");
171} 171}
172 172
173void EmitGetPred(EmitContext&) { 173void EmitGetPred(EmitContext&) {
174 throw NotImplementedException("SPIR-V Instruction"); 174 throw LogicError("Unreachable instruction");
175} 175}
176 176
177void EmitSetPred(EmitContext&) { 177void EmitSetPred(EmitContext&) {
178 throw NotImplementedException("SPIR-V Instruction"); 178 throw LogicError("Unreachable instruction");
179} 179}
180 180
181void EmitSetGotoVariable(EmitContext&) { 181void EmitSetGotoVariable(EmitContext&) {
182 throw NotImplementedException("SPIR-V Instruction"); 182 throw LogicError("Unreachable instruction");
183} 183}
184 184
185void EmitGetGotoVariable(EmitContext&) { 185void EmitGetGotoVariable(EmitContext&) {
186 throw NotImplementedException("SPIR-V Instruction"); 186 throw LogicError("Unreachable instruction");
187} 187}
188 188
189void EmitSetIndirectBranchVariable(EmitContext&) { 189void EmitSetIndirectBranchVariable(EmitContext&) {
190 throw NotImplementedException("SPIR-V Instruction"); 190 throw LogicError("Unreachable instruction");
191} 191}
192 192
193void EmitGetIndirectBranchVariable(EmitContext&) { 193void EmitGetIndirectBranchVariable(EmitContext&) {
194 throw NotImplementedException("SPIR-V Instruction"); 194 throw LogicError("Unreachable instruction");
195}
196
197void EmitSetLoopSafetyVariable(EmitContext&) {
198 throw LogicError("Unreachable instruction");
199}
200
201void EmitGetLoopSafetyVariable(EmitContext&) {
202 throw LogicError("Unreachable instruction");
195} 203}
196 204
197Id EmitGetCbufU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset) { 205Id EmitGetCbufU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset) {
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h b/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h
index 1181e7b4f..e3e5b03fe 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h
@@ -43,6 +43,8 @@ void EmitSetGotoVariable(EmitContext& ctx);
43void EmitGetGotoVariable(EmitContext& ctx); 43void EmitGetGotoVariable(EmitContext& ctx);
44void EmitSetIndirectBranchVariable(EmitContext& ctx); 44void EmitSetIndirectBranchVariable(EmitContext& ctx);
45void EmitGetIndirectBranchVariable(EmitContext& ctx); 45void EmitGetIndirectBranchVariable(EmitContext& ctx);
46void EmitSetLoopSafetyVariable(EmitContext& ctx);
47void EmitGetLoopSafetyVariable(EmitContext& ctx);
46Id EmitGetCbufU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); 48Id EmitGetCbufU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset);
47Id EmitGetCbufS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); 49Id EmitGetCbufS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset);
48Id EmitGetCbufU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); 50Id EmitGetCbufU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset);