VERY experimental Nintendo Switch 2 emulator
C++
glasm: Reorder unreachable image instructions to the bottom
ReinUsesLisp9ddbdd90e11f
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_image.cppindex c395248ede..247118dffd 100644--- a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp+++ b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp@@ -9,103 +9,7 @@namespace Shader::Backend::GLASM {-void EmitBindlessImageSampleImplicitLod(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageSampleExplicitLod(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageSampleDrefImplicitLod(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageSampleDrefExplicitLod(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageGather(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageGatherDref(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageFetch(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageQueryDimensions(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageQueryLod(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageGradient(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageRead(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBindlessImageWrite(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageSampleImplicitLod(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageSampleExplicitLod(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageSampleDrefImplicitLod(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageSampleDrefExplicitLod(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageGather(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageGatherDref(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageFetch(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageQueryDimensions(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageQueryLod(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageGradient(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageRead(EmitContext&) {- throw LogicError("Unreachable instruction");-}--void EmitBoundImageWrite(EmitContext&) {- throw LogicError("Unreachable instruction");-}--static std::string Texture([[maybe_unused]] EmitContext& ctx, IR::TextureInstInfo info,+std::string Texture([[maybe_unused]] EmitContext& ctx, IR::TextureInstInfo info,[[maybe_unused]] const IR::Value& index) {// FIXMEreturn fmt::format("texture[{}]", info.descriptor_index);@@ -242,4 +146,100 @@ void EmitImageWrite([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Instthrow NotImplementedException("GLASM instruction");}+void EmitBindlessImageSampleImplicitLod(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageSampleExplicitLod(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageSampleDrefImplicitLod(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageSampleDrefExplicitLod(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageGather(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageGatherDref(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageFetch(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageQueryDimensions(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageQueryLod(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageGradient(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageRead(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBindlessImageWrite(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageSampleImplicitLod(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageSampleExplicitLod(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageSampleDrefImplicitLod(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageSampleDrefExplicitLod(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageGather(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageGatherDref(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageFetch(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageQueryDimensions(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageQueryLod(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageGradient(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageRead(EmitContext&) {+ throw LogicError("Unreachable instruction");+}++void EmitBoundImageWrite(EmitContext&) {+ throw LogicError("Unreachable instruction");+}+} // namespace Shader::Backend::GLASM