summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-08-28 14:36:14 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2015-08-28 14:36:14 -0500
commit2c3fa8da288878f0664499997cd503de06b71e80 (patch)
tree246dc9719ff97661f563b9cc367d29d4a76194e8 /Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp
parenta6bd2fea28a82ed156c53b6da6f8db5ca3dce857 (diff)
[AArch64] Fix a bug in the register caches.
This is a bug that crops if BindToRegister() is called multiple times in a row without a R() function call between them. How to reproduce the bug: 1) Have a completely filled cache with no host register remaining 2) Call BindToRegister() with different guest registers 3) Don't call R() between the BindToRegister() calls. This issue typically wouldn't be seen for a couple of reasons. Typically we have /plenty/ of registers in the cache, and in most cases we only call BindToRegister() once per instruction. In the off chance that it is called multiple times, it wouldn't update the last used counts and would flush the same register as the previous call to it.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp')
0 files changed, 0 insertions, 0 deletions