diff options
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/shader/decode/memory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/memory.cpp b/src/video_core/shader/decode/memory.cpp index 8112ead3e..9392f065b 100644 --- a/src/video_core/shader/decode/memory.cpp +++ b/src/video_core/shader/decode/memory.cpp | |||
| @@ -479,7 +479,7 @@ std::tuple<Node, Node, GlobalMemoryBase> ShaderIR::TrackGlobalMemory(NodeBlock& | |||
| 479 | bb.push_back(Comment(fmt::format("Base address is c[0x{:x}][0x{:x}]", index, offset))); | 479 | bb.push_back(Comment(fmt::format("Base address is c[0x{:x}][0x{:x}]", index, offset))); |
| 480 | 480 | ||
| 481 | const GlobalMemoryBase descriptor{index, offset}; | 481 | const GlobalMemoryBase descriptor{index, offset}; |
| 482 | const auto& [entry, is_new] = used_global_memory.try_emplace(descriptor); | 482 | const auto& entry = used_global_memory.try_emplace(descriptor).first; |
| 483 | auto& usage = entry->second; | 483 | auto& usage = entry->second; |
| 484 | usage.is_written |= is_write; | 484 | usage.is_written |= is_write; |
| 485 | usage.is_read |= is_read; | 485 | usage.is_read |= is_read; |