Frames not captured correctly in vm's running with Native Context gpu passthrough on amd hardware.

Aperta
#5,635 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, linux

Direzione di ricerca

Inizia dal percorso di cattura Linux KMS di Sunshine e riproduci il problema usando Native Context con AMD GPU passthrough su Linux 6.14 o versioni successive. Confronta il comportamento della cattura con e senza AMD_DEBUG=nodcc,notiling; il lavoro è completato quando la cattura non va più in crash e non produce più frame corrotti senza questo workaround.

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

Descrizione

Is there an existing issue for this?
  • I have searched the existing issues
Is your issue described in the documentation?
  • I have read the documentation
Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

Native Context has a few issues in sunshine, the first is that everything other then KMS capture crashes outright (or shows a solid color screen). The second is that KMS capture does not handle DCC or tiling properly, this results in garbled frame data. To fix the latter issue you can add AMD_DEBUG=nodcc,notiling but this heavily kneecaps performance.

For a guest os I recommend cachyos because it's guest mesa is natively compiled with the required options. I have tested on ubuntu and debian though it's a lot jankier to set up.

Expected Behavior

No crashing, and no garbled frame data.

Additional Context

Native Context is a (relatively) new feature added to the virtio suite. It's definitely still maturing but having proper support in sunshine would be a godsend since it's the best app for interacting with these virtual VM's.

This may be best fixed outside the project if it's an issue of DCC and tiling not being presented correctly within the os. I've been meaning to look more into it for the better part of a year and haven't had enough time :/ . I figure I should make an issue and hopefully someone else can pick it up sooner then I'll be able to lol. (thanks to whoever does)

Host Operating System

Linux

Operating System Version

=6.14

Architecture

amd64/x86_64

Package

other (self built)

GPU Type

AMD

GPU Model

8060s

GPU Driver/Mesa Version

13.2 (everything since native context existed)

Capture Method

KMS (Linux)

Apps

Log output

Online logs

No response

Lingua principale
C++
Stelle
43k
Fork
2.4k
Merge medio
1g 15h
PR unite (30g)
105

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 LizardByte/Sunshine

Tutte le issue di LizardByte/Sunshine

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.