Skip to content
Snippets Groups Projects
  1. Feb 16, 2022
  2. Feb 15, 2022
  3. Feb 14, 2022
  4. Feb 12, 2022
  5. Feb 11, 2022
  6. Feb 08, 2022
    • Andrii Pauk's avatar
      vkr: Add support of GUEST_VRAM type of mem blob · 488c8256
      Andrii Pauk authored
      
      This is dedicated heap memory allocations approach.
      
      This type of blob should be used in the following way:
      1) Guest virtio-gpu driver on start checks for dedicated memory region.
      2) On create_blob drm ioctl guest driver reserves chunk of required memory and
      send it to host using sg list. Heap is managed on guest.
      3) Device creates dmabuf fd from this sg entry and sends it to virglrenderer on
      create_blob virtio-gpu command. Blob is created using
      virgl_renderer_resource_import_blob call.
      4) On next vkAllocateMemory call from mesa, virglrenderer will allocate vk memory
      handle from this dmabuf fd. It will receive resource id in
      VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA vkAllocateMemory structure.
      
      The flow is opposite to the way it's done for HOST_3D types of blob, where
      vkAllocateMemory is called first, vk memory is allocated from random host place.
      Then create_blob is called, where dmabuf fd is exported from VkDeviceMemory.
      
      Signed-off-by: default avatarAndrii Pauk <Andrii.Pauk@opensynergy.com>
      Reviewed-by: default avatarChia-I Wu <olvaffe@gmail.com>
      488c8256
  7. Feb 05, 2022
  8. Feb 04, 2022
  9. Feb 02, 2022
  10. Jan 28, 2022
  11. Jan 21, 2022
  12. Jan 19, 2022
Loading