mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 01:05:46 +00:00
ThreadManager: Sync async reads on accurate gpu.
This commit is contained in:
parent
10dcdb2ed9
commit
e7195b5f87
9 changed files with 48 additions and 8 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue