Mesh shader ViewID-dependent groupshared byte counts in PSV0 are not populated
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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:
- MSInfo declares both fields.
- [The PSV producer calculates total TGSM usage](https://github.com/microsoft/DirectXShaderCompiler/blob/74df1e093c4282282890f5ff2e4886d5f8dca13a/lib/DxilContainer/DxilPipelineStateValidation.cpp#L254-L270), but does not populate
GroupSharedBytesDependentOnViewID. - [The experimental RDAT writer explicitly notes this PSV omission](https://github.com/microsoft/DirectXShaderCompiler/blob/74df1e093c4282282890f5ff2e4886d5f8dca13a/lib/DxilContainer/DxilContainerAssembler.cpp#L1953-L1962).
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.
- Lenguaje dominante
- C++
- Estrellas
- 3.7k
- Forks
- 926
- Merge medio
- 3 d 22 h
- PR fusionados (30 d)
- 45
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/DirectXShaderCompiler
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/DirectXShaderCompiler#9173 ·
Los mantenedores suelen responder en 2 días
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
microsoft/DirectXShaderCompiler#9155 · 4 comentarios ·
Los mantenedores suelen responder en 2 días
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/DirectXShaderCompiler#9135 ·
Los mantenedores suelen responder en 2 días
-
DXC emits DW_LANG_C_plus_plus instead of DW_LANG_HLSL for HLSLPosiblemente ocupada @rj123-nv la tomó hace 18 días. Abiertobug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
microsoft/DirectXShaderCompiler#9087 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
microsoft/DirectXShaderCompiler#9086 ·
Los mantenedores suelen responder en 2 días
Todos los issues de microsoft/DirectXShaderCompiler
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
feature:config kind:docs os:windows toolchain:cmake triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
arch-based bug niri
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
noctalia-dev/noctalia#5552 ·
Los mantenedores suelen responder en 1 día