Updated staging memory barrier to ensure it's always coherent
This commit is contained in:
parent
d7b98f149b
commit
4e86562cff
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue