diff options
| author | 2021-06-07 19:05:11 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:37 -0400 | |
| commit | 970fc39d986c5eefa1c4b61ac89ef7e8c2bf23bf (patch) | |
| tree | 986ac28c1bd02930cf69ea7107c4cbdb705b18de /src | |
| parent | glsl: Conditionally use GL_EXT_shader_image_load_formatted (diff) | |
| download | yuzu-970fc39d986c5eefa1c4b61ac89ef7e8c2bf23bf.tar.gz yuzu-970fc39d986c5eefa1c4b61ac89ef7e8c2bf23bf.tar.xz yuzu-970fc39d986c5eefa1c4b61ac89ef7e8c2bf23bf.zip | |
glsl: Rebase fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.cpp | 1 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_util.cpp | 7 |
2 files changed, 5 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 b4c634d29..3d229a78c 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp | |||
| @@ -225,7 +225,6 @@ ShaderCache::ShaderCache(RasterizerOpenGL& rasterizer_, Core::Frontend::EmuWindo | |||
| 225 | .support_derivative_control = device.HasDerivativeControl(), | 225 | .support_derivative_control = device.HasDerivativeControl(), |
| 226 | .support_gl_nv_gpu_shader_5 = device.HasNvGpuShader5(), | 226 | .support_gl_nv_gpu_shader_5 = device.HasNvGpuShader5(), |
| 227 | .support_gl_amd_gpu_shader_half_float = device.HasAmdShaderHalfFloat(), | 227 | .support_gl_amd_gpu_shader_half_float = device.HasAmdShaderHalfFloat(), |
| 228 | .support_gl_vertex_viewport_layer = device.HasVertexViewportLayer(), | ||
| 229 | .support_gl_texture_shadow_lod = device.HasTextureShadowLod(), | 228 | .support_gl_texture_shadow_lod = device.HasTextureShadowLod(), |
| 230 | 229 | ||
| 231 | .warp_size_potentially_larger_than_guest = device.IsWarpSizePotentiallyLargerThanGuest(), | 230 | .warp_size_potentially_larger_than_guest = device.IsWarpSizePotentiallyLargerThanGuest(), |
diff --git a/src/video_core/renderer_opengl/gl_shader_util.cpp b/src/video_core/renderer_opengl/gl_shader_util.cpp index 99cb81819..ac6f33e34 100644 --- a/src/video_core/renderer_opengl/gl_shader_util.cpp +++ b/src/video_core/renderer_opengl/gl_shader_util.cpp | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | namespace OpenGL { | 14 | namespace OpenGL { |
| 15 | 15 | ||
| 16 | static void LogShader(GLuint shader) { | 16 | static void LogShader(GLuint shader, std::optional<std::string_view> code = {}) { |
| 17 | GLint shader_status{}; | 17 | GLint shader_status{}; |
| 18 | glGetShaderiv(shader, GL_COMPILE_STATUS, &shader_status); | 18 | glGetShaderiv(shader, GL_COMPILE_STATUS, &shader_status); |
| 19 | if (shader_status == GL_FALSE) { | 19 | if (shader_status == GL_FALSE) { |
| @@ -28,6 +28,9 @@ static void LogShader(GLuint shader) { | |||
| 28 | glGetShaderInfoLog(shader, log_length, nullptr, log.data()); | 28 | glGetShaderInfoLog(shader, log_length, nullptr, log.data()); |
| 29 | if (shader_status == GL_FALSE) { | 29 | if (shader_status == GL_FALSE) { |
| 30 | LOG_ERROR(Render_OpenGL, "{}", log); | 30 | LOG_ERROR(Render_OpenGL, "{}", log); |
| 31 | if (code.has_value()) { | ||
| 32 | LOG_INFO(Render_OpenGL, "\n{}", *code); | ||
| 33 | } | ||
| 31 | } else { | 34 | } else { |
| 32 | LOG_WARNING(Render_OpenGL, "{}", log); | 35 | LOG_WARNING(Render_OpenGL, "{}", log); |
| 33 | } | 36 | } |
| @@ -43,7 +46,7 @@ void AttachShader(GLenum stage, GLuint program, std::string_view code) { | |||
| 43 | glCompileShader(shader.handle); | 46 | glCompileShader(shader.handle); |
| 44 | glAttachShader(program, shader.handle); | 47 | glAttachShader(program, shader.handle); |
| 45 | if (Settings::values.renderer_debug) { | 48 | if (Settings::values.renderer_debug) { |
| 46 | LogShader(shader.handle); | 49 | LogShader(shader.handle, code); |
| 47 | } | 50 | } |
| 48 | } | 51 | } |
| 49 | 52 | ||