summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-16 18:01:09 -0300
committerGravatar ameerj2021-07-22 21:51:31 -0400
commitbee9fb0563f2bffd08df6f78091233fb3fc8d4ed (patch)
tree79e51bfb7fe9348082b7e57de7440ab57c196bc8 /src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
parentglasm: Add support for texture offsets (diff)
downloadyuzu-bee9fb0563f2bffd08df6f78091233fb3fc8d4ed.tar.gz
yuzu-bee9fb0563f2bffd08df6f78091233fb3fc8d4ed.tar.xz
yuzu-bee9fb0563f2bffd08df6f78091233fb3fc8d4ed.zip
glasm: Reorder unreachable image instructions to the bottom
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_image.cpp')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_image.cpp194
1 files changed, 97 insertions, 97 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
index c395248ed..247118dff 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 @@
9 9
10namespace Shader::Backend::GLASM { 10namespace Shader::Backend::GLASM {
11 11
12void EmitBindlessImageSampleImplicitLod(EmitContext&) { 12std::string Texture([[maybe_unused]] EmitContext& ctx, IR::TextureInstInfo info,
13 throw LogicError("Unreachable instruction");
14}
15
16void EmitBindlessImageSampleExplicitLod(EmitContext&) {
17 throw LogicError("Unreachable instruction");
18}
19
20void EmitBindlessImageSampleDrefImplicitLod(EmitContext&) {
21 throw LogicError("Unreachable instruction");
22}
23
24void EmitBindlessImageSampleDrefExplicitLod(EmitContext&) {
25 throw LogicError("Unreachable instruction");
26}
27
28void EmitBindlessImageGather(EmitContext&) {
29 throw LogicError("Unreachable instruction");
30}
31
32void EmitBindlessImageGatherDref(EmitContext&) {
33 throw LogicError("Unreachable instruction");
34}
35
36void EmitBindlessImageFetch(EmitContext&) {
37 throw LogicError("Unreachable instruction");
38}
39
40void EmitBindlessImageQueryDimensions(EmitContext&) {
41 throw LogicError("Unreachable instruction");
42}
43
44void EmitBindlessImageQueryLod(EmitContext&) {
45 throw LogicError("Unreachable instruction");
46}
47
48void EmitBindlessImageGradient(EmitContext&) {
49 throw LogicError("Unreachable instruction");
50}
51
52void EmitBindlessImageRead(EmitContext&) {
53 throw LogicError("Unreachable instruction");
54}
55
56void EmitBindlessImageWrite(EmitContext&) {
57 throw LogicError("Unreachable instruction");
58}
59
60void EmitBoundImageSampleImplicitLod(EmitContext&) {
61 throw LogicError("Unreachable instruction");
62}
63
64void EmitBoundImageSampleExplicitLod(EmitContext&) {
65 throw LogicError("Unreachable instruction");
66}
67
68void EmitBoundImageSampleDrefImplicitLod(EmitContext&) {
69 throw LogicError("Unreachable instruction");
70}
71
72void EmitBoundImageSampleDrefExplicitLod(EmitContext&) {
73 throw LogicError("Unreachable instruction");
74}
75
76void EmitBoundImageGather(EmitContext&) {
77 throw LogicError("Unreachable instruction");
78}
79
80void EmitBoundImageGatherDref(EmitContext&) {
81 throw LogicError("Unreachable instruction");
82}
83
84void EmitBoundImageFetch(EmitContext&) {
85 throw LogicError("Unreachable instruction");
86}
87
88void EmitBoundImageQueryDimensions(EmitContext&) {
89 throw LogicError("Unreachable instruction");
90}
91
92void EmitBoundImageQueryLod(EmitContext&) {
93 throw LogicError("Unreachable instruction");
94}
95
96void EmitBoundImageGradient(EmitContext&) {
97 throw LogicError("Unreachable instruction");
98}
99
100void EmitBoundImageRead(EmitContext&) {
101 throw LogicError("Unreachable instruction");
102}
103
104void EmitBoundImageWrite(EmitContext&) {
105 throw LogicError("Unreachable instruction");
106}
107
108static std::string Texture([[maybe_unused]] EmitContext& ctx, IR::TextureInstInfo info,
109 [[maybe_unused]] const IR::Value& index) { 13 [[maybe_unused]] const IR::Value& index) {
110 // FIXME 14 // FIXME
111 return fmt::format("texture[{}]", info.descriptor_index); 15 return fmt::format("texture[{}]", info.descriptor_index);
@@ -242,4 +146,100 @@ void EmitImageWrite([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst
242 throw NotImplementedException("GLASM instruction"); 146 throw NotImplementedException("GLASM instruction");
243} 147}
244 148
149void EmitBindlessImageSampleImplicitLod(EmitContext&) {
150 throw LogicError("Unreachable instruction");
151}
152
153void EmitBindlessImageSampleExplicitLod(EmitContext&) {
154 throw LogicError("Unreachable instruction");
155}
156
157void EmitBindlessImageSampleDrefImplicitLod(EmitContext&) {
158 throw LogicError("Unreachable instruction");
159}
160
161void EmitBindlessImageSampleDrefExplicitLod(EmitContext&) {
162 throw LogicError("Unreachable instruction");
163}
164
165void EmitBindlessImageGather(EmitContext&) {
166 throw LogicError("Unreachable instruction");
167}
168
169void EmitBindlessImageGatherDref(EmitContext&) {
170 throw LogicError("Unreachable instruction");
171}
172
173void EmitBindlessImageFetch(EmitContext&) {
174 throw LogicError("Unreachable instruction");
175}
176
177void EmitBindlessImageQueryDimensions(EmitContext&) {
178 throw LogicError("Unreachable instruction");
179}
180
181void EmitBindlessImageQueryLod(EmitContext&) {
182 throw LogicError("Unreachable instruction");
183}
184
185void EmitBindlessImageGradient(EmitContext&) {
186 throw LogicError("Unreachable instruction");
187}
188
189void EmitBindlessImageRead(EmitContext&) {
190 throw LogicError("Unreachable instruction");
191}
192
193void EmitBindlessImageWrite(EmitContext&) {
194 throw LogicError("Unreachable instruction");
195}
196
197void EmitBoundImageSampleImplicitLod(EmitContext&) {
198 throw LogicError("Unreachable instruction");
199}
200
201void EmitBoundImageSampleExplicitLod(EmitContext&) {
202 throw LogicError("Unreachable instruction");
203}
204
205void EmitBoundImageSampleDrefImplicitLod(EmitContext&) {
206 throw LogicError("Unreachable instruction");
207}
208
209void EmitBoundImageSampleDrefExplicitLod(EmitContext&) {
210 throw LogicError("Unreachable instruction");
211}
212
213void EmitBoundImageGather(EmitContext&) {
214 throw LogicError("Unreachable instruction");
215}
216
217void EmitBoundImageGatherDref(EmitContext&) {
218 throw LogicError("Unreachable instruction");
219}
220
221void EmitBoundImageFetch(EmitContext&) {
222 throw LogicError("Unreachable instruction");
223}
224
225void EmitBoundImageQueryDimensions(EmitContext&) {
226 throw LogicError("Unreachable instruction");
227}
228
229void EmitBoundImageQueryLod(EmitContext&) {
230 throw LogicError("Unreachable instruction");
231}
232
233void EmitBoundImageGradient(EmitContext&) {
234 throw LogicError("Unreachable instruction");
235}
236
237void EmitBoundImageRead(EmitContext&) {
238 throw LogicError("Unreachable instruction");
239}
240
241void EmitBoundImageWrite(EmitContext&) {
242 throw LogicError("Unreachable instruction");
243}
244
245} // namespace Shader::Backend::GLASM 245} // namespace Shader::Backend::GLASM