[SPIR-V] SPIR-V not valid when ROV is used with branch if.
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the linked Godbolt reproducer and inspect the generated SPIR-V around the reported dominance validation error. Compare compilation with the branch layouts and resource types described in the issue; done means the ROV read case produces valid SPIR-V without regressing the working DXIL, RWTexture2D, or else-branch cases.
索引モデルが issue の本文から書いたものです。
説明
Hi everyone!
Description
DXC generates invalid SPIR-V with error generated SPIR-V is invalid: ID '47[%47]' defined in block '39[%39]' does not dominate its use in block '38[%38]' if a read of a ROV is attempted inside a if branch.
Steps to Reproduce
https://godbolt.org/z/MGME6Wc97
Actual Behavior
DXC returns generated SPIR-V is invalid: ID '47[%47]' defined in block '39[%39]'. It compiles with DXIL. It compiles with RWTexture2D instead of ROVTexture2D. It compiles if the ROV is read in the else branch of the doSSR.
Environment
DXC trunk on godbolt.
Reproduce also on windows 11 and custom fork of 1.10.2605.24.
If this shader is invalid and I misunderstood something, I'm sorry but I will be eager for the explanation :D
Have a nice day,
Robin.
- 主要言語
- C++
- スター
- 3.7k
- フォーク
- 926
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 45
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/DirectXShaderCompiler のほかの issue
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/DirectXShaderCompiler#9173 ·
メンテナーはふだん 2 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/DirectXShaderCompiler#9155 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/DirectXShaderCompiler#9135 ·
メンテナーはふだん 2 日以内に返信
-
DXC emits DW_LANG_C_plus_plus instead of DW_LANG_HLSL for HLSL対応中かも @rj123-nv が 18 日前に担当しました。 オープンbug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/DirectXShaderCompiler#9087 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/DirectXShaderCompiler#9086 ·
メンテナーはふだん 2 日以内に返信
microsoft/DirectXShaderCompiler の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
feature:config kind:docs os:windows toolchain:cmake triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
arch-based bug niri
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
noctalia-dev/noctalia#5552 ·
メンテナーはふだん 1 日以内に返信