diff options
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_image.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_image.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp index 81d5fe72c..09e3a9b82 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp | |||
| @@ -139,12 +139,12 @@ void SwizzleOffsets(EmitContext& ctx, Register off_x, Register off_y, const IR:: | |||
| 139 | 139 | ||
| 140 | std::string GradOffset(const IR::Value& offset) { | 140 | std::string GradOffset(const IR::Value& offset) { |
| 141 | if (offset.IsImmediate()) { | 141 | if (offset.IsImmediate()) { |
| 142 | // LOG_WARNING immediate | 142 | LOG_WARNING(Shader_GLASM, "Gradient offset is a scalar immediate"); |
| 143 | return ""; | 143 | return ""; |
| 144 | } | 144 | } |
| 145 | IR::Inst* const vector{offset.InstRecursive()}; | 145 | IR::Inst* const vector{offset.InstRecursive()}; |
| 146 | if (!vector->AreAllArgsImmediates()) { | 146 | if (!vector->AreAllArgsImmediates()) { |
| 147 | // LOG_WARNING elements not immediate | 147 | LOG_WARNING(Shader_GLASM, "Gradient offset vector is not immediate"); |
| 148 | return ""; | 148 | return ""; |
| 149 | } | 149 | } |
| 150 | switch (vector->NumArgs()) { | 150 | switch (vector->NumArgs()) { |