diff options
| author | 2021-05-21 21:14:59 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:33 -0400 | |
| commit | 3a7ca6a7db5d9c895fceef21f9239dfcef2fcc8e (patch) | |
| tree | 963bb3b46ee35ec3e0bc2c8eb27429c9aa2567fa | |
| parent | glasm: Implement gl_Layer stores (diff) | |
| download | yuzu-3a7ca6a7db5d9c895fceef21f9239dfcef2fcc8e.tar.gz yuzu-3a7ca6a7db5d9c895fceef21f9239dfcef2fcc8e.tar.xz yuzu-3a7ca6a7db5d9c895fceef21f9239dfcef2fcc8e.zip | |
glasm: Reorder unreachable image atomic insts
Reorder them to the bottom of the file for readability.
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_image_atomic.cpp | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_image_atomic.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_image_atomic.cpp index a0b9866de..f82cf9ffc 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_image_atomic.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_image_atomic.cpp | |||
| @@ -8,6 +8,72 @@ | |||
| 8 | 8 | ||
| 9 | namespace Shader::Backend::GLASM { | 9 | namespace Shader::Backend::GLASM { |
| 10 | 10 | ||
| 11 | void EmitImageAtomicIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 12 | [[maybe_unused]] const IR::Value& index, | ||
| 13 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarU32 value) { | ||
| 14 | throw NotImplementedException("GLASM instruction"); | ||
| 15 | } | ||
| 16 | |||
| 17 | void EmitImageAtomicSMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 18 | [[maybe_unused]] const IR::Value& index, | ||
| 19 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarS32 value) { | ||
| 20 | throw NotImplementedException("GLASM instruction"); | ||
| 21 | } | ||
| 22 | |||
| 23 | void EmitImageAtomicUMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 24 | [[maybe_unused]] const IR::Value& index, | ||
| 25 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarU32 value) { | ||
| 26 | throw NotImplementedException("GLASM instruction"); | ||
| 27 | } | ||
| 28 | |||
| 29 | void EmitImageAtomicSMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 30 | [[maybe_unused]] const IR::Value& index, | ||
| 31 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarS32 value) { | ||
| 32 | throw NotImplementedException("GLASM instruction"); | ||
| 33 | } | ||
| 34 | |||
| 35 | void EmitImageAtomicUMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 36 | [[maybe_unused]] const IR::Value& index, | ||
| 37 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarU32 value) { | ||
| 38 | throw NotImplementedException("GLASM instruction"); | ||
| 39 | } | ||
| 40 | |||
| 41 | void EmitImageAtomicInc32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 42 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coords, | ||
| 43 | [[maybe_unused]] ScalarU32 value) { | ||
| 44 | throw NotImplementedException("GLASM instruction"); | ||
| 45 | } | ||
| 46 | |||
| 47 | void EmitImageAtomicDec32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 48 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coords, | ||
| 49 | [[maybe_unused]] ScalarU32 value) { | ||
| 50 | throw NotImplementedException("GLASM instruction"); | ||
| 51 | } | ||
| 52 | |||
| 53 | void EmitImageAtomicAnd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 54 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coords, | ||
| 55 | [[maybe_unused]] ScalarU32 value) { | ||
| 56 | throw NotImplementedException("GLASM instruction"); | ||
| 57 | } | ||
| 58 | |||
| 59 | void EmitImageAtomicOr32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 60 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coords, | ||
| 61 | [[maybe_unused]] ScalarU32 value) { | ||
| 62 | throw NotImplementedException("GLASM instruction"); | ||
| 63 | } | ||
| 64 | |||
| 65 | void EmitImageAtomicXor32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 66 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coords, | ||
| 67 | [[maybe_unused]] ScalarU32 value) { | ||
| 68 | throw NotImplementedException("GLASM instruction"); | ||
| 69 | } | ||
| 70 | |||
| 71 | void EmitImageAtomicExchange32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 72 | [[maybe_unused]] const IR::Value& index, | ||
| 73 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarU32 value) { | ||
| 74 | throw NotImplementedException("GLASM instruction"); | ||
| 75 | } | ||
| 76 | |||
| 11 | void EmitBindlessImageAtomicIAdd32(EmitContext&) { | 77 | void EmitBindlessImageAtomicIAdd32(EmitContext&) { |
| 12 | throw LogicError("Unreachable instruction"); | 78 | throw LogicError("Unreachable instruction"); |
| 13 | } | 79 | } |
| @@ -96,70 +162,4 @@ void EmitBoundImageAtomicExchange32(EmitContext&) { | |||
| 96 | throw LogicError("Unreachable instruction"); | 162 | throw LogicError("Unreachable instruction"); |
| 97 | } | 163 | } |
| 98 | 164 | ||
| 99 | void EmitImageAtomicIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 100 | [[maybe_unused]] const IR::Value& index, | ||
| 101 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarU32 value) { | ||
| 102 | throw NotImplementedException("GLASM instruction"); | ||
| 103 | } | ||
| 104 | |||
| 105 | void EmitImageAtomicSMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 106 | [[maybe_unused]] const IR::Value& index, | ||
| 107 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarS32 value) { | ||
| 108 | throw NotImplementedException("GLASM instruction"); | ||
| 109 | } | ||
| 110 | |||
| 111 | void EmitImageAtomicUMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 112 | [[maybe_unused]] const IR::Value& index, | ||
| 113 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarU32 value) { | ||
| 114 | throw NotImplementedException("GLASM instruction"); | ||
| 115 | } | ||
| 116 | |||
| 117 | void EmitImageAtomicSMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 118 | [[maybe_unused]] const IR::Value& index, | ||
| 119 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarS32 value) { | ||
| 120 | throw NotImplementedException("GLASM instruction"); | ||
| 121 | } | ||
| 122 | |||
| 123 | void EmitImageAtomicUMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 124 | [[maybe_unused]] const IR::Value& index, | ||
| 125 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarU32 value) { | ||
| 126 | throw NotImplementedException("GLASM instruction"); | ||
| 127 | } | ||
| 128 | |||
| 129 | void EmitImageAtomicInc32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 130 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coords, | ||
| 131 | [[maybe_unused]] ScalarU32 value) { | ||
| 132 | throw NotImplementedException("GLASM instruction"); | ||
| 133 | } | ||
| 134 | |||
| 135 | void EmitImageAtomicDec32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 136 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coords, | ||
| 137 | [[maybe_unused]] ScalarU32 value) { | ||
| 138 | throw NotImplementedException("GLASM instruction"); | ||
| 139 | } | ||
| 140 | |||
| 141 | void EmitImageAtomicAnd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 142 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coords, | ||
| 143 | [[maybe_unused]] ScalarU32 value) { | ||
| 144 | throw NotImplementedException("GLASM instruction"); | ||
| 145 | } | ||
| 146 | |||
| 147 | void EmitImageAtomicOr32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 148 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coords, | ||
| 149 | [[maybe_unused]] ScalarU32 value) { | ||
| 150 | throw NotImplementedException("GLASM instruction"); | ||
| 151 | } | ||
| 152 | |||
| 153 | void EmitImageAtomicXor32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 154 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coords, | ||
| 155 | [[maybe_unused]] ScalarU32 value) { | ||
| 156 | throw NotImplementedException("GLASM instruction"); | ||
| 157 | } | ||
| 158 | |||
| 159 | void EmitImageAtomicExchange32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 160 | [[maybe_unused]] const IR::Value& index, | ||
| 161 | [[maybe_unused]] Register coords, [[maybe_unused]] ScalarU32 value) { | ||
| 162 | throw NotImplementedException("GLASM instruction"); | ||
| 163 | } | ||
| 164 | |||
| 165 | } // namespace Shader::Backend::GLASM | 165 | } // namespace Shader::Backend::GLASM |