summaryrefslogtreecommitdiff
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-06-15 17:49:33 -0300
committerGravatar ameerj2021-07-22 21:51:35 -0400
commit3d822faea1af9cab2e58fcd9edcec09940e290a4 (patch)
treeabf54c525222d8a47e8d382ffff0e49604b2cec1 /src/shader_recompiler
parentshader: Fix loop safety to SSA pass (diff)
downloadyuzu-3d822faea1af9cab2e58fcd9edcec09940e290a4.tar.gz
yuzu-3d822faea1af9cab2e58fcd9edcec09940e290a4.tar.xz
yuzu-3d822faea1af9cab2e58fcd9edcec09940e290a4.zip
spirv: Reduce log severity of mismatching denorm rules
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
index 14a99750d..fd59b4d0a 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
@@ -294,7 +294,7 @@ void SetupDenormControl(const Profile& profile, const IR::Program& program, Emit
294 Id main_func) { 294 Id main_func) {
295 const Info& info{program.info}; 295 const Info& info{program.info};
296 if (info.uses_fp32_denorms_flush && info.uses_fp32_denorms_preserve) { 296 if (info.uses_fp32_denorms_flush && info.uses_fp32_denorms_preserve) {
297 LOG_ERROR(Shader_SPIRV, "Fp32 denorm flush and preserve on the same shader"); 297 LOG_WARNING(Shader_SPIRV, "Fp32 denorm flush and preserve on the same shader");
298 } else if (info.uses_fp32_denorms_flush) { 298 } else if (info.uses_fp32_denorms_flush) {
299 if (profile.support_fp32_denorm_flush) { 299 if (profile.support_fp32_denorm_flush) {
300 ctx.AddCapability(spv::Capability::DenormFlushToZero); 300 ctx.AddCapability(spv::Capability::DenormFlushToZero);
@@ -315,7 +315,7 @@ void SetupDenormControl(const Profile& profile, const IR::Program& program, Emit
315 return; 315 return;
316 } 316 }
317 if (info.uses_fp16_denorms_flush && info.uses_fp16_denorms_preserve) { 317 if (info.uses_fp16_denorms_flush && info.uses_fp16_denorms_preserve) {
318 LOG_ERROR(Shader_SPIRV, "Fp16 denorm flush and preserve on the same shader"); 318 LOG_WARNING(Shader_SPIRV, "Fp16 denorm flush and preserve on the same shader");
319 } else if (info.uses_fp16_denorms_flush) { 319 } else if (info.uses_fp16_denorms_flush) {
320 if (profile.support_fp16_denorm_flush) { 320 if (profile.support_fp16_denorm_flush) {
321 ctx.AddCapability(spv::Capability::DenormFlushToZero); 321 ctx.AddCapability(spv::Capability::DenormFlushToZero);