KosmicKrisp: f32-NaN bit patterns canonicalized to 0x7fc00000 in vk_harness R32G32B32A32_SFLOAT attachment

Aperta
#3,125 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva

Direzione di ricerca

The report names the vk_harness R32G32B32A32_SFLOAT color-attachment readback path, with prior test adjustments in #1393 and #1505 as the places to compare. Start by reproducing with a non-canonical f32 NaN written through that attachment and checking the readback bits against the SSBO path, which the report says preserves them. Done means either the harness preserves the NaN bits on this driver or the test documents and accounts for the canonicalization. Driver-level behavior makes this hard for a newcomer to confirm alone.

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

Descrizione

Summary

On Mesa 26.3.1 KosmicKrisp (Apple M3 Max, macOS 27.3), writing non-canonical f32 NaN bit patterns into vk_harness's VK_FORMAT_R32G32B32A32_SFLOAT color attachment returns canonical 0x7fc00000 on readback instead of preserving the NaN sign/payload bits.

Context
  • Originally noted during SHADER-479 (--f64-soft, PR #2904) testing and posted as a finding: in #2891 (#2891#issuecomment-7083777645).
  • Hardware / Driver: Apple M3 Max, macOS 27.3, Mesa 26.3.1 KosmicKrisp.
  • Related prior test-specific adjustments: #1393, #1505.
  • Compute-shader SSBO readback preserves raw bits as expected; the canonicalization occurs on the R32G32B32A32_SFLOAT color-attachment output path used by vk_harness.
Why it matters

Any pixel-shader test that exports a NaN word (or raw bit patterns that happen to fall in the f32 NaN encoding range) via R32G32B32A32_SFLOAT and compares exact 32-bit hex words will fail on KosmicKrisp unless the test/harness either uses integer attachment / SSBO output or accounts for NaN canonicalization.

No game files were used. AI-assisted report.

Lingua principale
Python
Stelle
14.9k
Fork
1.2k
Merge medio
1h 58m
PR unite (30g)
40

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 ItsNotRexed/Leonida

Tutte le issue di ItsNotRexed/Leonida

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.