Implement virtio-gpu 3D

Aperta
#147 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

Start with the existing 2D implementation in virtio-gpu-sw.c and the backing memory and reset entry points in virtio-gpu-sw.c and virtio-gpu.c cited in the issue. Then trace how the VirtIO GPU backend, renderer, and display handle resources and completion. Done means guest Linux applications such as glxgears and glmark2 use VirGL successfully, with resource lifetimes and shutdown covered by smoke tests and usage instructions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Implement virtio-gpu 3D

We previously implemented vgpu 2d. To make better use of virtio-gpu, the next step should be to implement vgpu 3d.

With VirGL and virglrenderer, we want OpenGL applications in guest Linux to submit 3D commands to the host GPU for execution, then display the resulting images in semu's window. This requires connecting the guest's 3D acceleration and image presentation paths so that applications such as glxgears and glmark2 can actually use VirGL.

The main work includes:

  • Integrate the VirGL backend and support 3D commands, including capability negotiation, creation and destruction of context and resource objects, command submission, and data transfer between the guest and the renderer. The capabilities exposed to the guest also need to match what the backend actually supports.
  • Handle asynchronous completion, including fence, renderer polling, query results, and guest completion notifications, so that commands that must wait are answered only after the corresponding work is complete.
  • Manage the lifetimes of backing memory and resources, covering attachment, detachment, unreferencing, reset, and shutdown. When the guest requests that a resource be released, check whether the renderer and display are still using the associated memory before completing the handoff.
  • Integrate GPU image presentation so that completed frames can be passed to the display, avoiding CPU readback and re-uploading during normal presentation. This also requires synchronization between rendering and display, as well as retaining resources while frames are in use.
  • Prepare rebuildable graphics guest images and usage instructions. Start with smoke tests using applications such as glxgears and glmark2 to confirm that they actually use the VirGL path, and check behavior during continuous rendering, application exit, and guest shutdown.
Lingua principale
C
Stelle
316
Fork
76
Merge medio
7h 1m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sysprog21/semu

Tutte le issue di sysprog21/semu

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.