diff options
| -rw-r--r-- | CMakeModules/GenerateSCMRev.cmake | 4 | ||||
| -rw-r--r-- | src/common/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.cpp | 11 | ||||
| -rw-r--r-- | src/video_core/shader/control_flow.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_hotkeys.cpp | 1 |
5 files changed, 15 insertions, 8 deletions
diff --git a/CMakeModules/GenerateSCMRev.cmake b/CMakeModules/GenerateSCMRev.cmake index 21e03ae98..fa7ae835f 100644 --- a/CMakeModules/GenerateSCMRev.cmake +++ b/CMakeModules/GenerateSCMRev.cmake | |||
| @@ -5,6 +5,10 @@ function(get_timestamp _var) | |||
| 5 | endfunction() | 5 | endfunction() |
| 6 | 6 | ||
| 7 | list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/externals/cmake-modules") | 7 | list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/externals/cmake-modules") |
| 8 | |||
| 9 | # Find the package here with the known path so that the GetGit commands can find it as well | ||
| 10 | find_package(Git QUIET PATHS "${GIT_EXECUTABLE}") | ||
| 11 | |||
| 8 | # generate git/build information | 12 | # generate git/build information |
| 9 | include(GetGitRevisionDescription) | 13 | include(GetGitRevisionDescription) |
| 10 | get_git_head_revision(GIT_REF_SPEC GIT_REV) | 14 | get_git_head_revision(GIT_REF_SPEC GIT_REV) |
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 9b0c3db68..9afc6105d 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -15,6 +15,10 @@ endif () | |||
| 15 | if (DEFINED ENV{DISPLAYVERSION}) | 15 | if (DEFINED ENV{DISPLAYVERSION}) |
| 16 | set(DISPLAY_VERSION $ENV{DISPLAYVERSION}) | 16 | set(DISPLAY_VERSION $ENV{DISPLAYVERSION}) |
| 17 | endif () | 17 | endif () |
| 18 | |||
| 19 | # Pass the path to git to the GenerateSCMRev.cmake as well | ||
| 20 | find_package(Git QUIET) | ||
| 21 | |||
| 18 | add_custom_command(OUTPUT scm_rev.cpp | 22 | add_custom_command(OUTPUT scm_rev.cpp |
| 19 | COMMAND ${CMAKE_COMMAND} | 23 | COMMAND ${CMAKE_COMMAND} |
| 20 | -DSRC_DIR="${CMAKE_SOURCE_DIR}" | 24 | -DSRC_DIR="${CMAKE_SOURCE_DIR}" |
| @@ -23,6 +27,7 @@ add_custom_command(OUTPUT scm_rev.cpp | |||
| 23 | -DTITLE_BAR_FORMAT_RUNNING="${TITLE_BAR_FORMAT_RUNNING}" | 27 | -DTITLE_BAR_FORMAT_RUNNING="${TITLE_BAR_FORMAT_RUNNING}" |
| 24 | -DBUILD_TAG="${BUILD_TAG}" | 28 | -DBUILD_TAG="${BUILD_TAG}" |
| 25 | -DBUILD_ID="${DISPLAY_VERSION}" | 29 | -DBUILD_ID="${DISPLAY_VERSION}" |
| 30 | -DGIT_EXECUTABLE="${GIT_EXECUTABLE}" | ||
| 26 | -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" | 31 | -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" |
| 27 | DEPENDS | 32 | DEPENDS |
| 28 | # WARNING! It was too much work to try and make a common location for this list, | 33 | # WARNING! It was too much work to try and make a common location for this list, |
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp index de742d11c..a4acb3796 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp | |||
| @@ -34,9 +34,6 @@ using VideoCommon::Shader::ShaderIR; | |||
| 34 | 34 | ||
| 35 | namespace { | 35 | namespace { |
| 36 | 36 | ||
| 37 | // One UBO is always reserved for emulation values on staged shaders | ||
| 38 | constexpr u32 STAGE_RESERVED_UBOS = 1; | ||
| 39 | |||
| 40 | constexpr u32 STAGE_MAIN_OFFSET = 10; | 37 | constexpr u32 STAGE_MAIN_OFFSET = 10; |
| 41 | constexpr u32 KERNEL_MAIN_OFFSET = 0; | 38 | constexpr u32 KERNEL_MAIN_OFFSET = 0; |
| 42 | 39 | ||
| @@ -243,7 +240,6 @@ CachedProgram BuildShader(const Device& device, u64 unique_identifier, ShaderTyp | |||
| 243 | if (!code_b.empty()) { | 240 | if (!code_b.empty()) { |
| 244 | ir_b.emplace(code_b, main_offset, COMPILER_SETTINGS, locker); | 241 | ir_b.emplace(code_b, main_offset, COMPILER_SETTINGS, locker); |
| 245 | } | 242 | } |
| 246 | const auto entries = GLShader::GetEntries(ir); | ||
| 247 | 243 | ||
| 248 | std::string source = fmt::format(R"(// {} | 244 | std::string source = fmt::format(R"(// {} |
| 249 | #version 430 core | 245 | #version 430 core |
| @@ -314,9 +310,10 @@ std::unordered_set<GLenum> GetSupportedFormats() { | |||
| 314 | 310 | ||
| 315 | CachedShader::CachedShader(const ShaderParameters& params, ShaderType shader_type, | 311 | CachedShader::CachedShader(const ShaderParameters& params, ShaderType shader_type, |
| 316 | GLShader::ShaderEntries entries, ProgramCode code, ProgramCode code_b) | 312 | GLShader::ShaderEntries entries, ProgramCode code, ProgramCode code_b) |
| 317 | : RasterizerCacheObject{params.host_ptr}, system{params.system}, disk_cache{params.disk_cache}, | 313 | : RasterizerCacheObject{params.host_ptr}, system{params.system}, |
| 318 | device{params.device}, cpu_addr{params.cpu_addr}, unique_identifier{params.unique_identifier}, | 314 | disk_cache{params.disk_cache}, device{params.device}, cpu_addr{params.cpu_addr}, |
| 319 | shader_type{shader_type}, entries{entries}, code{std::move(code)}, code_b{std::move(code_b)} { | 315 | unique_identifier{params.unique_identifier}, shader_type{shader_type}, |
| 316 | entries{std::move(entries)}, code{std::move(code)}, code_b{std::move(code_b)} { | ||
| 320 | if (!params.precompiled_variants) { | 317 | if (!params.precompiled_variants) { |
| 321 | return; | 318 | return; |
| 322 | } | 319 | } |
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp index b427ac873..0229733b6 100644 --- a/src/video_core/shader/control_flow.cpp +++ b/src/video_core/shader/control_flow.cpp | |||
| @@ -65,7 +65,7 @@ struct BlockInfo { | |||
| 65 | 65 | ||
| 66 | struct CFGRebuildState { | 66 | struct CFGRebuildState { |
| 67 | explicit CFGRebuildState(const ProgramCode& program_code, u32 start, ConstBufferLocker& locker) | 67 | explicit CFGRebuildState(const ProgramCode& program_code, u32 start, ConstBufferLocker& locker) |
| 68 | : program_code{program_code}, start{start}, locker{locker} {} | 68 | : program_code{program_code}, locker{locker}, start{start} {} |
| 69 | 69 | ||
| 70 | const ProgramCode& program_code; | 70 | const ProgramCode& program_code; |
| 71 | ConstBufferLocker& locker; | 71 | ConstBufferLocker& locker; |
diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp index 3ea0b8d67..fa9052136 100644 --- a/src/yuzu/configuration/configure_hotkeys.cpp +++ b/src/yuzu/configuration/configure_hotkeys.cpp | |||
| @@ -48,6 +48,7 @@ void ConfigureHotkeys::Populate(const HotkeyRegistry& registry) { | |||
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | ui->hotkey_list->expandAll(); | 50 | ui->hotkey_list->expandAll(); |
| 51 | ui->hotkey_list->resizeColumnToContents(0); | ||
| 51 | } | 52 | } |
| 52 | 53 | ||
| 53 | void ConfigureHotkeys::changeEvent(QEvent* event) { | 54 | void ConfigureHotkeys::changeEvent(QEvent* event) { |