diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-06-10 05:33:48 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:35 +0200 |
commit | 15bdd27cac4a0b1e6cd168272dc337cd685ef144 (patch) | |
tree | ae1d5c1a93bfc500e3603cb4fad8318676a13f1d /src/shader_recompiler | |
parent | gl_texture_cache: Create image storage views (diff) | |
download | yuzu-15bdd27cac4a0b1e6cd168272dc337cd685ef144.tar yuzu-15bdd27cac4a0b1e6cd168272dc337cd685ef144.tar.gz yuzu-15bdd27cac4a0b1e6cd168272dc337cd685ef144.tar.bz2 yuzu-15bdd27cac4a0b1e6cd168272dc337cd685ef144.tar.lz yuzu-15bdd27cac4a0b1e6cd168272dc337cd685ef144.tar.xz yuzu-15bdd27cac4a0b1e6cd168272dc337cd685ef144.tar.zst yuzu-15bdd27cac4a0b1e6cd168272dc337cd685ef144.zip |
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r-- | src/shader_recompiler/program_header.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/program_header.h b/src/shader_recompiler/program_header.h index 15f43f2d8..6933750aa 100644 --- a/src/shader_recompiler/program_header.h +++ b/src/shader_recompiler/program_header.h @@ -230,8 +230,8 @@ struct ProgramHeader { }; [[nodiscard]] u64 LocalMemorySize() const noexcept { - return (common1.shader_local_memory_low_size | - (common2.shader_local_memory_high_size << 24)); + return static_cast<u64>(common1.shader_local_memory_low_size) | + (static_cast<u64>(common2.shader_local_memory_high_size) << 24); } }; static_assert(sizeof(ProgramHeader) == 0x50, "Incorrect structure size"); |