mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-28 03:37:53 +08:00
one codepath for unified and discrete device
This commit is contained in:
@@ -183,6 +183,9 @@ VkCompute::~VkCompute()
|
||||
|
||||
void VkCompute::record_upload(const VkMat& m)
|
||||
{
|
||||
if (m.allocator->mappable)
|
||||
return;
|
||||
|
||||
record_prepare_transfer_barrier(m);
|
||||
|
||||
if (vkdev->info.support_VK_KHR_push_descriptor)
|
||||
@@ -200,6 +203,9 @@ void VkCompute::record_upload(const VkMat& m)
|
||||
|
||||
void VkCompute::record_download(const VkMat& m)
|
||||
{
|
||||
if (m.allocator->mappable)
|
||||
return;
|
||||
|
||||
record_prepare_transfer_barrier(m);
|
||||
|
||||
if (vkdev->info.support_VK_KHR_push_descriptor)
|
||||
|
||||
Reference in New Issue
Block a user