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

オープン
#9,107 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
compilers

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
3.7k
フォーク
926
平均マージ
3日 22時間
マージ済み PR(30日)
45

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/DirectXShaderCompiler のほかの issue

microsoft/DirectXShaderCompiler の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。