Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VK_EXT_host_image_copy incompatible with VK_KHR_external_memory_win32 #2431

Open
Agrael1 opened this issue Sep 4, 2024 · 1 comment
Open
Assignees

Comments

@Agrael1
Copy link

Agrael1 commented Sep 4, 2024

Is VK_EXT_host_image_copy incompatible with VK_KHR_external_memory_win32?
When I create VkImage with VkImageCreateInfo::usage = VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT it succeeds, however if I call vkGetImageMemoryRequirements2KHR on such image it says memoryTypeBits is equal to 0. Any other type is allocated successfully, but if I have external memory as pNext to the VkImageCreateInfo

    constexpr static VkExternalMemoryImageCreateInfoKHR external_info{
        .sType = VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_KHR,
        .pNext = nullptr,
        .handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT
    };

it fails to find memory bits.

If I was to remove the usage VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT the memory is found. If I remove external_info from pNext, the memory allocation succeeds, although with validation error.

Is this a driver bug, or VK_KHR_external_memory_win32 has limits on what memory it can export?

I'm using NVidia A4000 with 560. driver on Windows 11

@pdaniell-nv
Copy link

Right, we don't currently support this, but I think we could. I'll investigate internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants