mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-16 15:57:58 -05:00
ThreadManager: Sync async reads on accurate gpu.
This commit is contained in:
@ -116,6 +116,21 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
bool MustFlushRegion(VAddr addr, std::size_t size) {
|
||||
std::lock_guard lock{mutex};
|
||||
|
||||
auto surfaces = GetSurfacesInRegion(addr, size);
|
||||
if (surfaces.empty()) {
|
||||
return false;
|
||||
}
|
||||
for (const auto& surface : surfaces) {
|
||||
if (surface->IsModified()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
TView GetTextureSurface(const Tegra::Texture::TICEntry& tic,
|
||||
const VideoCommon::Shader::Sampler& entry) {
|
||||
std::lock_guard lock{mutex};
|
||||
|
Reference in New Issue
Block a user