You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (uint32_t row = 0; row < deviceNumRows; row++)
{
memcpy(mappedPtr, sourcePtr, minRowPitch);
mappedPtr += deviceRowPitch;
sourcePtr += rowPitch;
}
}
auto imageCopy = vk::BufferImageCopy()
the code snippnet is trying to first transfer data to upload heap and then using vkCopyBufferToImage to transfer data into device-local memory.
However, the staging buffer is created with eHostVisible instead of eHostCoherent.
Taking Vulkan-Docs:Transfer-dependencies as reference, it seems there should be a vkFlushMappedMemoryRanges between the memcpy and the vkCopyBufferToImage, to ensure the host write is visible.
The text was updated successfully, but these errors were encountered:
nvrhi/src/vulkan/vulkan-texture.cpp
Lines 469 to 489 in 8942401
the code snippnet is trying to first transfer data to
upload heap
and then usingvkCopyBufferToImage
to transfer data into device-local memory.However, the
staging buffer
is created witheHostVisible
instead ofeHostCoherent
.nvrhi/src/vulkan/vulkan-allocator.cpp
Lines 40 to 42 in 8942401
Taking Vulkan-Docs:Transfer-dependencies as reference, it seems there should be a
vkFlushMappedMemoryRanges
between thememcpy
and thevkCopyBufferToImage
, to ensure the host write is visible.The text was updated successfully, but these errors were encountered: