On Mon Oct 13 16:37:10 2025 +0000, Jacek Caban wrote:
I'm not sure what importing from memory and fd at the same time would mean. Also, `allocate_external_host_memory` may change the memory type to something that doesn't support importing/exporting the same way the original one does. Note that when `VK_EXT_map_memory_placed` is available (which is the case for all recent drivers), this code path is not used and I'd expect your approach to be fine.
I see, if it's only an issue for some older driver versions then it's probably fine.
(Fwiw I was starting to consider whether D3DKMT resources could manage CPU memory too, through wineserver allocated shared mappings that would be imported as host pointers and mmapped to the 32bit address space)