From dbd882ddeb1a1a9233c0085d0b8ccb022db385b2 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Sat, 27 Mar 2021 04:59:58 -0300 Subject: shader: Better interpolation and disabled attributes support --- .../frontend/maxwell/translate/impl/load_store_attribute.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/shader_recompiler/frontend/maxwell/translate/impl') 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) { value = ir.FPMul(value, position_w); } } - switch (ipa.interpolation_mode) { - case InterpolationMode::Pass: - break; - case InterpolationMode::Multiply: + if (ipa.interpolation_mode == InterpolationMode::Multiply) { value = ir.FPMul(value, F(ipa.multiplier)); - break; - case InterpolationMode::Constant: - throw NotImplementedException("IPA.CONSTANT"); - case InterpolationMode::Sc: - throw NotImplementedException("IPA.SC"); } // Saturated IPAs are generally generated out of clamped varyings. -- cgit v1.2.3