Skip to content

Commit

Permalink
Fix double vkUnmap calls
Browse files Browse the repository at this point in the history
Appears to be missed in f289815. The memory should be mapped and
unmapped by VulkanDeviceMemoryImpl.

Related to nvpro-samples#41.

Signed-off-by: Benjamin Cheng <[email protected]>
  • Loading branch information
lolzballs committed Apr 1, 2024
1 parent 2b35d6c commit 85bc2e6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions common/libs/VkCodecUtils/pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,6 @@ void VkFillYuv::fillVkImage(const VulkanDeviceContext* vkDevCtx,

result = vkDevCtx->FlushMappedMemoryRanges(*vkDevCtx, 1u, &range);
ABORT_IF_TRUE(result != VK_SUCCESS);

vkDevCtx->UnmapMemory(*vkDevCtx, mem);
}

} // namespace Pattern

0 comments on commit 85bc2e6

Please sign in to comment.