search for: vkallocatememory

Displaying 3 results from an estimated 3 matches for "vkallocatememory".

2019 Apr 12
2
[PATCH 3/3] virtio-gpu api: VIRTIO_GPU_F_RESSOURCE_V2
...an). [Assuming memory_id is like resource_id] For the host-allocated buffers we surely want that, yes. For guest-allocated memory regions it isn't useful I think ... > 1) Vulkan seems the most straightforward > > virtio_gpu_cmd_memory_create --> create kernel data structure, > vkAllocateMemory on the host or import guest memory into Vulkan, > depending on the memory type > virtio_gpu_cmd_resource_create_v2 --> vkCreateImage + > vkGetImageMemoryRequirements on host > virtio_gpu_cmd_resource_attach_memory --> vkBindImageMemory on host Yes. Note 1: virtio_gpu_cmd_memor...
2019 Apr 12
2
[PATCH 3/3] virtio-gpu api: VIRTIO_GPU_F_RESSOURCE_V2
...an). [Assuming memory_id is like resource_id] For the host-allocated buffers we surely want that, yes. For guest-allocated memory regions it isn't useful I think ... > 1) Vulkan seems the most straightforward > > virtio_gpu_cmd_memory_create --> create kernel data structure, > vkAllocateMemory on the host or import guest memory into Vulkan, > depending on the memory type > virtio_gpu_cmd_resource_create_v2 --> vkCreateImage + > vkGetImageMemoryRequirements on host > virtio_gpu_cmd_resource_attach_memory --> vkBindImageMemory on host Yes. Note 1: virtio_gpu_cmd_memor...
2019 Apr 12
2
[PATCH 3/3] virtio-gpu api: VIRTIO_GPU_F_RESSOURCE_V2
...to create the resource first to know which memory types can be attached to it. I think the metadata needs to be returned with resource_create_v2. > > > 1) Vulkan seems the most straightforward > > > > virtio_gpu_cmd_memory_create --> create kernel data structure, > > vkAllocateMemory on the host or import guest memory into Vulkan, > > depending on the memory type > > virtio_gpu_cmd_resource_create_v2 --> vkCreateImage + > > vkGetImageMemoryRequirements on host > > virtio_gpu_cmd_resource_attach_memory --> vkBindImageMemory on host > > Yes....