mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-16 16:48:57 +00:00
video_core: Separate dirty flags and better gpu invalidation (#1034)
This commit is contained in:
@@ -199,7 +199,7 @@ bool ComputePipeline::BindResources(VideoCore::BufferCache& buffer_cache,
|
||||
buffer_barriers.emplace_back(*barrier);
|
||||
}
|
||||
if (desc.is_written) {
|
||||
texture_cache.MarkWritten(address, size);
|
||||
texture_cache.InvalidateMemoryFromGPU(address, size);
|
||||
}
|
||||
}
|
||||
set_writes.push_back({
|
||||
|
||||
@@ -431,7 +431,7 @@ void GraphicsPipeline::BindResources(const Liverpool::Regs& regs,
|
||||
buffer_barriers.emplace_back(*barrier);
|
||||
}
|
||||
if (desc.is_written) {
|
||||
texture_cache.MarkWritten(address, size);
|
||||
texture_cache.InvalidateMemoryFromGPU(address, size);
|
||||
}
|
||||
}
|
||||
set_writes.push_back({
|
||||
|
||||
Reference in New Issue
Block a user