vk_graphics_pipeline: Fix unnecessary invalidate
This commit is contained in:
parent
3d41c13552
commit
9a38e6ccd8
|
@ -94,7 +94,9 @@ bool ComputePipeline::BindResources(Core::MemoryManager* memory, StreamBuffer& s
|
||||||
const auto vsharp = buffer.GetVsharp(info);
|
const auto vsharp = buffer.GetVsharp(info);
|
||||||
const u32 size = vsharp.GetSize();
|
const u32 size = vsharp.GetSize();
|
||||||
const VAddr address = vsharp.base_address;
|
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,
|
const u32 offset = staging.Copy(address, size,
|
||||||
buffer.is_storage ? instance.StorageMinAlignment()
|
buffer.is_storage ? instance.StorageMinAlignment()
|
||||||
: instance.UniformMinAlignment());
|
: instance.UniformMinAlignment());
|
||||||
|
|
Loading…
Reference in New Issue