Skip to content
  • Dave Airlie's avatar
    virgl: add driver for virtio-gpu 3D (v2) · a8987b88
    Dave Airlie authored
    
    
    virgl is the 3D acceleration backend for the
    virtio-gpu shipping with qemu.
    
    The 3D acceleration is designed around gallium
    and TGSI as the virtualisation layer. The backend
    renderer translates the virgl interface into
    OpenGL currently.
    
    This is the initial import of the driver to mesa.
    
    The kernel driver portions are lined up for drm-next.
    
    Currently this driver supports up to GL3.3 and some
    misc extensions if the host driver exposes it. It is
    planned to iterate the virgl API to new GL levels
    as mesa host drivers gain features.
    
    v2: fix resource tracking across flushes to avoid
    ->bind hack in mapping.
    consolidate mapping and waiting code for transfers.
    use u_range for dirt tracking.
    handle larger shaders in protocol.
    include virtgpu_drm.h in mesa for now.
    add translation layer for gallium tgsi to virgl tgsi.
    
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    a8987b88