summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
index a94e9cb2d..c7cba6279 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
@@ -124,6 +124,12 @@ void SetupDenormControl(const Profile& profile, const IR::Program& program, Emit
124 } 124 }
125 ctx.AddExtension("SPV_KHR_float_controls"); 125 ctx.AddExtension("SPV_KHR_float_controls");
126 126
127 if (info.uses_fp16 && profile.support_fp16_signed_zero_nan_preserve) {
128 ctx.AddExecutionMode(main_func, spv::ExecutionMode::SignedZeroInfNanPreserve);
129 }
130 if (profile.support_fp32_signed_zero_nan_preserve) {
131 ctx.AddExecutionMode(main_func, spv::ExecutionMode::SignedZeroInfNanPreserve);
132 }
127 if (info.uses_fp32_denorms_flush && info.uses_fp32_denorms_preserve) { 133 if (info.uses_fp32_denorms_flush && info.uses_fp32_denorms_preserve) {
128 // LOG_ERROR(HW_GPU, "Fp32 denorm flush and preserve on the same shader"); 134 // LOG_ERROR(HW_GPU, "Fp32 denorm flush and preserve on the same shader");
129 } else if (info.uses_fp32_denorms_flush) { 135 } else if (info.uses_fp32_denorms_flush) {