diff options
| author | 2021-03-27 04:59:58 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:24 -0400 | |
| commit | dbd882ddeb1a1a9233c0085d0b8ccb022db385b2 (patch) | |
| tree | 5a8456364cc41a0a53acf93e22e3f9ce855bd413 /src/shader_recompiler/frontend/maxwell/translate | |
| parent | spirv: Remove dependencies on Environment when generating SPIR-V (diff) | |
| download | yuzu-dbd882ddeb1a1a9233c0085d0b8ccb022db385b2.tar.gz yuzu-dbd882ddeb1a1a9233c0085d0b8ccb022db385b2.tar.xz yuzu-dbd882ddeb1a1a9233c0085d0b8ccb022db385b2.zip | |
shader: Better interpolation and disabled attributes support
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/load_store_attribute.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/load_store_attribute.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/load_store_attribute.cpp index 516ffec2d..54bc1e34c 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/load_store_attribute.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/load_store_attribute.cpp | |||
| @@ -151,16 +151,8 @@ void TranslatorVisitor::IPA(u64 insn) { | |||
| 151 | value = ir.FPMul(value, position_w); | 151 | value = ir.FPMul(value, position_w); |
| 152 | } | 152 | } |
| 153 | } | 153 | } |
| 154 | switch (ipa.interpolation_mode) { | 154 | if (ipa.interpolation_mode == InterpolationMode::Multiply) { |
| 155 | case InterpolationMode::Pass: | ||
| 156 | break; | ||
| 157 | case InterpolationMode::Multiply: | ||
| 158 | value = ir.FPMul(value, F(ipa.multiplier)); | 155 | value = ir.FPMul(value, F(ipa.multiplier)); |
| 159 | break; | ||
| 160 | case InterpolationMode::Constant: | ||
| 161 | throw NotImplementedException("IPA.CONSTANT"); | ||
| 162 | case InterpolationMode::Sc: | ||
| 163 | throw NotImplementedException("IPA.SC"); | ||
| 164 | } | 156 | } |
| 165 | 157 | ||
| 166 | // Saturated IPAs are generally generated out of clamped varyings. | 158 | // Saturated IPAs are generally generated out of clamped varyings. |