diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-05-04 14:44:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-04 14:44:02 -0400 |
| commit | 60d54d911efaec19745e0666c550b77ace8f82ca (patch) | |
| tree | 420e4538b3ceae940d079b1c758354725ea11d51 /src/video_core/shader_cache.cpp | |
| parent | e2b81ae5fe92b0cfd8adb9b4ebc5b4fbe2e9807c (diff) | |
| parent | f902cc2a2b5875eb20a403390ed849af68e094f0 (diff) | |
Merge pull request #10145 from Kelebek1/code_size
Fix shader code resize to use word size rather than byte size
Diffstat (limited to 'src/video_core/shader_cache.cpp')
| -rw-r--r-- | src/video_core/shader_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader_cache.cpp b/src/video_core/shader_cache.cpp index d9482371b..c5213875b 100644 --- a/src/video_core/shader_cache.cpp +++ b/src/video_core/shader_cache.cpp @@ -228,14 +228,14 @@ const ShaderInfo* ShaderCache::MakeShaderInfo(GenericEnvironment& env, VAddr cpu auto info = std::make_unique<ShaderInfo>(); if (const std::optional<u64> cached_hash{env.Analyze()}) { info->unique_hash = *cached_hash; - info->size_bytes = env.CachedSize(); + info->size_bytes = env.CachedSizeBytes(); } else { // Slow path, not really hit on commercial games // Build a control flow graph to get the real shader size Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block; Shader::Maxwell::Flow::CFG cfg{env, flow_block, env.StartAddress()}; info->unique_hash = env.CalculateHash(); - info->size_bytes = env.ReadSize(); + info->size_bytes = env.ReadSizeBytes(); } const size_t size_bytes{info->size_bytes}; const ShaderInfo* const result{info.get()}; |
