diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-30 04:23:09 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-07 05:52:18 +0100 |
commit | f019817f8f6452dec784d8217ef102231319d26c (patch) | |
tree | d49542f0b9b4c26c651d1a3263b3a165c6a8b24b /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #3078 from bunnei/azure-rename-partial (diff) | |
download | yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar.gz yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar.bz2 yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar.lz yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar.xz yuzu-f019817f8f6452dec784d8217ef102231319d26c.tar.zst yuzu-f019817f8f6452dec784d8217ef102231319d26c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 92ee8459e..8dcbeefc0 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1872,10 +1872,6 @@ private: Expression EmitVertex(Operation operation) { ASSERT_MSG(stage == ProgramType::Geometry, "EmitVertex is expected to be used in a geometry shader."); - - // If a geometry shader is attached, it will always flip (it's the last stage before - // fragment). For more info about flipping, refer to gl_shader_gen.cpp. - code.AddLine("gl_Position.xy *= viewport_flip.xy;"); code.AddLine("EmitVertex();"); return {}; } @@ -1883,14 +1879,12 @@ private: Expression EndPrimitive(Operation operation) { ASSERT_MSG(stage == ProgramType::Geometry, "EndPrimitive is expected to be used in a geometry shader."); - code.AddLine("EndPrimitive();"); return {}; } Expression YNegate(Operation operation) { - // Config pack's third value is Y_NEGATE's state. - return {"config_pack[2]", Type::Uint}; + return {"y_negate", Type::Float}; } template <u32 element> |