diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-04 21:53:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 21:53:44 +0100 |
commit | 92a331af76cba638f01490eeb0045ca4d6d27df7 (patch) | |
tree | 2f66b3dad2ee7c47cb8be910e0cbbaeced97ce6d /src/video_core | |
parent | Merge pull request #12575 from t895/inconsistent-settings-application (diff) | |
parent | Settings: Indicate AMD's compatibility with SPIR-V on OGL (diff) | |
download | yuzu-92a331af76cba638f01490eeb0045ca4d6d27df7.tar yuzu-92a331af76cba638f01490eeb0045ca4d6d27df7.tar.gz yuzu-92a331af76cba638f01490eeb0045ca4d6d27df7.tar.bz2 yuzu-92a331af76cba638f01490eeb0045ca4d6d27df7.tar.lz yuzu-92a331af76cba638f01490eeb0045ca4d6d27df7.tar.xz yuzu-92a331af76cba638f01490eeb0045ca4d6d27df7.tar.zst yuzu-92a331af76cba638f01490eeb0045ca4d6d27df7.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_device.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp index 993438a27..9be1b0805 100644 --- a/src/video_core/renderer_opengl/gl_device.cpp +++ b/src/video_core/renderer_opengl/gl_device.cpp @@ -195,9 +195,9 @@ Device::Device(Core::Frontend::EmuWindow& emu_window) { has_texture_shadow_lod = HasExtension(extensions, "GL_EXT_texture_shadow_lod"); has_astc = !has_slow_software_astc && IsASTCSupported(); has_variable_aoffi = TestVariableAoffi(); - has_component_indexing_bug = is_amd; + has_component_indexing_bug = false; has_precise_bug = TestPreciseBug(); - has_broken_texture_view_formats = is_amd || (!is_linux && is_intel); + has_broken_texture_view_formats = (!is_linux && is_intel); has_nv_viewport_array2 = GLAD_GL_NV_viewport_array2; has_derivative_control = GLAD_GL_ARB_derivative_control; has_vertex_buffer_unified_memory = GLAD_GL_NV_vertex_buffer_unified_memory; @@ -238,10 +238,11 @@ Device::Device(Core::Frontend::EmuWindow& emu_window) { has_lmem_perf_bug = is_nvidia; strict_context_required = emu_window.StrictContextRequired(); - // Blocks AMD and Intel OpenGL drivers on Windows from using asynchronous shader compilation. + // Blocks Intel OpenGL drivers on Windows from using asynchronous shader compilation. // Blocks EGL on Wayland from using asynchronous shader compilation. - use_asynchronous_shaders = Settings::values.use_asynchronous_shaders.GetValue() && - !(is_amd || (is_intel && !is_linux)) && !strict_context_required; + const bool blacklist_async_shaders = (is_intel && !is_linux) || strict_context_required; + use_asynchronous_shaders = + Settings::values.use_asynchronous_shaders.GetValue() && !blacklist_async_shaders; use_driver_cache = is_nvidia; supports_conditional_barriers = !is_intel; |