summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-06-14 02:27:49 -0300
committerGravatar ameerj2021-07-22 21:51:35 -0400
commit61cd7dd30128633b656ce3264da74bef1ba00bb5 (patch)
tree42d0c4e0e5d3a7f3fc581ebb660cd14cdfcf0300 /src/shader_recompiler/backend/spirv/emit_spirv_special.cpp
parentshader: Add shader loop safety check settings (diff)
downloadyuzu-61cd7dd30128633b656ce3264da74bef1ba00bb5.tar.gz
yuzu-61cd7dd30128633b656ce3264da74bef1ba00bb5.tar.xz
yuzu-61cd7dd30128633b656ce3264da74bef1ba00bb5.zip
shader: Add logging
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_special.cpp')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_special.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp
index 072a3b1bd..9e7eb3cb1 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp
@@ -131,7 +131,7 @@ void EmitEmitVertex(EmitContext& ctx, const IR::Value& stream) {
131 if (stream.IsImmediate()) { 131 if (stream.IsImmediate()) {
132 ctx.OpEmitStreamVertex(ctx.Def(stream)); 132 ctx.OpEmitStreamVertex(ctx.Def(stream));
133 } else { 133 } else {
134 // LOG_WARNING(..., "EmitVertex's stream is not constant"); 134 LOG_WARNING(Shader_SPIRV, "Stream is not immediate");
135 ctx.OpEmitStreamVertex(ctx.u32_zero_value); 135 ctx.OpEmitStreamVertex(ctx.u32_zero_value);
136 } 136 }
137 // Restore fixed pipeline point size after emitting the vertex 137 // Restore fixed pipeline point size after emitting the vertex
@@ -142,7 +142,7 @@ void EmitEndPrimitive(EmitContext& ctx, const IR::Value& stream) {
142 if (stream.IsImmediate()) { 142 if (stream.IsImmediate()) {
143 ctx.OpEndStreamPrimitive(ctx.Def(stream)); 143 ctx.OpEndStreamPrimitive(ctx.Def(stream));
144 } else { 144 } else {
145 // LOG_WARNING(..., "EndPrimitive's stream is not constant"); 145 LOG_WARNING(Shader_SPIRV, "Stream is not immediate");
146 ctx.OpEndStreamPrimitive(ctx.u32_zero_value); 146 ctx.OpEndStreamPrimitive(ctx.u32_zero_value);
147 } 147 }
148} 148}