Open Mon-Ouie opened 10 months ago
You might need to look into vulkano
's code.
Add some logging statement here might be helpful.
Okay, the part I was missing is that vkGetImageMemoryRequirements
indicates the image must be allocated on either memory type 1 (propertyFlags = 0x0000
) or memory type 7 (propertyFlags = 0x0001: MEMORY_PROPERTY_DEVICE_LOCAL_BIT
).
hmm, so maybe we need to allocate buffer on host and device, and do buffer to buffer copy?
I am getting the same error as @Mon-Ouie on Ubuntu 22.04. I tried to make the changes to the code that he suggested, ran cargo clean, cargo build --release but I still receive the error :/ Any ideas how to make it work?
hmm, so maybe we need to allocate buffer on host and device, and do buffer to buffer copy?
Probably, or if you want to be fancy and avoid the copy when appropriate memory types are available you can see how AMD recommends people to handle these cases in their VulkanMemoryAllocator library: https://gpuopen-librariesandsdks.github.io/VulkanMemoryAllocator/html/usage_patterns.html (see "Advanced data uploading") — presumably vulkano allows similar flags to be used
For some reason the allocation of
yuv_texture
inpipeline.rs
fails:The Vulkan wrapper isn't finding the right memory type to create the image. I might be overlooking a flag but it seems like a suitable memory type is present though:
The overlay does work if I just change the memory type filter for this one allocation to force the allocation to run:
System information for reference: