diff options
| author | JosJuice <josjuice@gmail.com> | 2025-12-05 19:27:06 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2025-12-07 23:09:07 +0100 |
| commit | 48009fd898c2732652480bdf2c086ab6f77b2a7d (patch) | |
| tree | c36e17d0b1e368e99c62d230d2c132bb0f3b3252 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 213dc1c9afb4979dab357327387ab49ce17f174a (diff) | |
Jit64: Return current value from RCOpArg::IsImm
The constant propagation PR made it so that a guest register can be
present in the register cache as both a host register and an immediate
at the same time. If such a guest register is requested from the
register cache, the register cache prefers returning it as a host
register. However, RCOpArg::IsImm still returns true in this case. This
is confusing, especially since OpArg::IsImm does not return true if the
RCOpArg is converted into an OpArg.
This commit makes RCOpArg::IsImm check whether RCOpArg::Location returns
an immediate, so that RCOpArg::IsImm returns false when a host register
is being used. Code that wants to know whether an immediate exists in
the register cache rather than whether an immediate is currently being
used should call RegCache::IsImm instead.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
0 files changed, 0 insertions, 0 deletions
