[SPIR-V] Implement WaveMultiPrefixCountBits code generation

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

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

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

評価

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

調査の方向性

Start by reading PR #6608 and the SPIR-V code generation for the other WaveMultiPrefix* operations; the issue does not name source files or tests. Reproduce with the provided HLSL shader and DXC command, then compare the generated output for the implemented operations. Done means this shader compiles with -spirv and produces valid SPIR-V for WaveMultiPrefixCountBits.

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

説明

bug needs-triage spirv

DXC reports WaveMultiPrefixCountBits as unimplemented when compiling to
SPIR-V. The same shader compiles to DXIL.

PR #6608 adds the other WaveMultiPrefix* operations but explicitly leaves
WaveMultiPrefixCountBits unimplemented.

Reproduction

Save this shader as repro.hlsl:

RWStructuredBuffer<uint> Output : register(u0);

[numthreads(1, 1, 1)]
void main() {
  Output[0] = WaveMultiPrefixCountBits(true, uint4(1, 0, 0, 0));
}

Compile with:

dxc -spirv "-fspv-target-env=vulkan1.3" -T cs_6_5 -E main repro.hlsl
Actual result
error: WaveMultiPrefixCountBits intrinsic function unimplemented
Expected result

DXC generates valid SPIR-V for WaveMultiPrefixCountBits.

The shader compiles successfully without -spirv and -fspv-target-env.

主要言語
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 を短くまとめたダイジェスト。