Mesh shader ViewID-dependent groupshared byte counts in PSV0 are not populated

Aperta
#9,107 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
compilers

Direzione di ricerca

Read include/dxc/DxilContainer/DxilPipelineStateValidation.h for the PSV0 fields, then trace how mesh-shader groupshared usage is calculated in lib/DxilContainer/DxilPipelineStateValidation.cpp and the omission noted in lib/DxilContainer/DxilContainerAssembler.cpp. Add regression coverage for independent, dependent, and mixed storage, including memory accesses and dynamic indexing; done means PSV0 reports the dependent byte count correctly.

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

Descrizione

bug needs-triage

Description
The PSV0 mesh-shader runtime information defines both GroupSharedBytesUsed and GroupSharedBytesDependentOnViewID, but DXC does not populate the dependent-byte count.

AI-assisted bug report:

At commit 74df1e093c4282282890f5ff2e4886d5f8dca13a:

The [mesh-shader ViewID rules](https://microsoft.github.io/DirectX-Specs/d3d/MeshShader.html#sv_viewid) require ViewID-dependent groupshared storage to be expanded while remaining within the storage limit. The missing byte count leaves a gap in the compiler metadata available for that validation.

Expected behavior: Track groupshared storage requiring per-view expansion and emit its byte count in PSV0. Regression coverage should include view-independent storage, ViewID-dependent storage, mixed storage, and dependencies involving memory accesses and dynamic indexing.

Discovered during authoring of https://github.com/microsoft/DirectX-Specs/pull/272, diffing mesh shader proposal language which says the compiler "will" do this, against what was actually implemented.

Lingua principale
C++
Stelle
3.7k
Fork
926
Merge medio
3g 22h
PR unite (30g)
45

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 microsoft/DirectXShaderCompiler

Tutte le issue di microsoft/DirectXShaderCompiler

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.