From bbecd13697f81e0ca21051098ac2d7fb6fdb9788 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Mon, 15 Jul 2019 02:27:18 -0300 Subject: gl_shader_cache: Address CI issues --- src/video_core/renderer_opengl/gl_shader_cache.cpp | 3 ++- src/video_core/renderer_opengl/gl_shader_gen.cpp | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp index 7e95c2daa..2b30fb522 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp @@ -102,7 +102,7 @@ constexpr std::tuple GetPrimitiveDescription(GLen } } -constexpr ProgramType GetProgramType(Maxwell::ShaderProgram program) { +ProgramType GetProgramType(Maxwell::ShaderProgram program) { switch (program) { case Maxwell::ShaderProgram::VertexA: return ProgramType::VertexA; @@ -118,6 +118,7 @@ constexpr ProgramType GetProgramType(Maxwell::ShaderProgram program) { return ProgramType::Fragment; } UNREACHABLE(); + return {}; } /// Calculates the size of a program stream diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index de72570d6..3a8d9e1da 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -81,8 +81,7 @@ layout (std140, binding = EMULATION_UBO_BINDING) uniform gs_config { )"; const ShaderIR program_ir(setup.program.code, PROGRAM_OFFSET, setup.program.size_a); - ProgramResult program = - Decompile(device, program_ir, ProgramType::Geometry, "geometry"); + ProgramResult program = Decompile(device, program_ir, ProgramType::Geometry, "geometry"); out += program.first; out += R"( -- cgit v1.2.3