Updated staging memory barrier to ensure it's always coherent

This commit is contained in:
Alejandro Saucedo 2021-03-13 07:40:20 +00:00
parent d7b98f149b
commit 4e86562cff

View file

@ -258,7 +258,8 @@ Tensor::getStagingMemoryPropertyFlags()
{
switch (this->mTensorType) {
case TensorTypes::eDevice:
return vk::MemoryPropertyFlagBits::eHostVisible;
return vk::MemoryPropertyFlagBits::eHostVisible |
vk::MemoryPropertyFlagBits::eHostCoherent;
break;
default:
throw std::runtime_error("Kompute Tensor invalid tensor type");