KosmicKrisp: OpImageQueryLod ignores sampler mipLodBias (ps_ssharp_lod fails natively on Mesa 26.3.1)

Aperta
#3,124 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
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
macos, python
Ambito
cloud

Direzione di ricerca

The failure is in the synthetic ps_ssharp_lod test, which exercises image_get_lod with a biased sampler; the report says the bias is dropped from lambda' on KosmicKrisp, and the --lod-bias-fallback flag is the workaround to compare against. Start from the test and the sampler setup that sets mipLodBias in the repository, then decide between driver detection and a narrower fix. Done means a clear design choice and a native pass on the affected driver, or a documented decision not to fix natively.

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), OpImageQueryLod omits the sampler's mipLodBias from lambda'. As a result, the synthetic ps_ssharp_lod test introduced in PR #1845 fails natively on KosmicKrisp even though KosmicKrisp reports samplerMipLodBias = VK_TRUE and passes ps_ssharp and ps_ssharp_ops natively.

Measured behaviour
  • Hardware / Driver: Apple M3 Max, macOS 27.3, Mesa 26.3.1 KosmicKrisp (Homebrew mesa).
  • Native path (--lod-bias-fallback off):
    • ps_ssharp (11 S#/T# cases): PASS
    • ps_ssharp_ops (_l, _b, _d, _d_cl): PASS
    • ps_ssharp_lod (image_get_lod): FAIL (returned lambda' omits sampler mipLodBias)
  • With --lod-bias-fallback forced on (LEONIDA_LOD_BIAS_FALLBACK=1, sampler mipLodBias = 0):
    • ps_ssharp, ps_ssharp_ops, ps_ssharp_lod: ALL PASS (both plain and with LEONIDA_W64_EMULATE=1 LEONIDA_MESH_COMPUTE=1).
  • Control drivers: Native ps_ssharp_lod passes on llvmpipe (Mesa 26.3.1), NVIDIA RTX 4060 Ti, and AMD RX 7600 (see reports on #1845).
Impact & Open design question

Real shaders using image_get_lod with a biased S# will compute the wrong LOD on KosmicKrisp unless either:

  1. KosmicKrisp auto-selects --lod-bias-fallback (and zeros sampler mipLodBias) by driver ID/version until Mesa fixes OpImageQueryLod, or
  2. A narrower workaround is used.

No game files were used. Synthetic test shaders only. 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.