vk_graphics_pipeline: Fix unnecessary invalidate

This commit is contained in:
IndecisiveTurtle 2024-08-02 23:23:14 +03:00
parent 3d41c13552
commit 9a38e6ccd8
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ bool ComputePipeline::BindResources(Core::MemoryManager* memory, StreamBuffer& s
const auto vsharp = buffer.GetVsharp(info);
const u32 size = vsharp.GetSize();
const VAddr address = vsharp.base_address;
texture_cache.OnCpuWrite(address);
if (buffer.is_storage) {
texture_cache.OnCpuWrite(address);
}
const u32 offset = staging.Copy(address, size,
buffer.is_storage ? instance.StorageMinAlignment()
: instance.UniformMinAlignment());