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

Abierto
#9,107 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp
Área
compilers

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

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.

Lenguaje dominante
C++
Estrellas
3.7k
Forks
926
Merge medio
3 d 22 h
PR fusionados (30 d)
45

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/DirectXShaderCompiler

Todos los issues de microsoft/DirectXShaderCompiler

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.