[SPIR-V] QuadReadLaneAt with a matrix input generates invalid SPIR-V
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 50/100
Hướng nghiên cứu
Start with the HLSL reproducer in the issue and compile it using the provided DXC SPIR-V command to confirm the invalid matrix result. Compare the generated SPIR-V behavior with the successful DXIL output, which uses six scalar quad reads. Done means SPIR-V validation succeeds and each result element reads the corresponding matrix element from the selected lane.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
QuadReadLaneAt accepts a float2x3 input, but DXC generates invalid
SPIR-V. It emits OpGroupNonUniformQuadBroadcast with a matrix result.
That instruction permits only scalar and vector results.
The same source compiles successfully for DXIL. That output contains six
scalar quad reads, one for each matrix element.
Reproducer
Save this as repro.hlsl:
StructuredBuffer<float2x3> In : register(t0);
RWStructuredBuffer<float2x3> Out : register(u1);
[numthreads(4, 1, 1)]
void main(uint3 ID : SV_DispatchThreadID) {
Out[ID.x] = QuadReadLaneAt(In[ID.x], 0);
}
Compile with:
dxc -spirv -T cs_6_5 -E main -fspv-target-env=vulkan1.3 repro.hlsl
Actual result
Compilation fails during SPIR-V validation:
fatal error: generated SPIR-V is invalid: Result must be a scalar or vector of integer, floating-point, or boolean type
%28 = OpGroupNonUniformQuadBroadcast %mat2v3float %uint_3 %27 %uint_0
Expected result
Compilation succeeds. DXC splits the matrix operation into valid scalar
or vector quad reads. Each result element comes from the same matrix
element in the selected source lane.
- Ngôn ngữ chính
- C++
- Star
- 3.7k
- Fork
- 926
- Merge trung bình
- 3 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 45
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/DirectXShaderCompiler
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/DirectXShaderCompiler#9173 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
microsoft/DirectXShaderCompiler#9155 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/DirectXShaderCompiler#9135 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
DXC emits DW_LANG_C_plus_plus instead of DW_LANG_HLSL for HLSLCó thể đã có người làm @rj123-nv đã nhận 18 ngày trước. Đang mởbug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
microsoft/DirectXShaderCompiler#9087 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
microsoft/DirectXShaderCompiler#9086 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của microsoft/DirectXShaderCompiler
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
feature:config kind:docs os:windows toolchain:cmake triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
arch-based bug niri
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
noctalia-dev/noctalia#5552 ·
Maintainer thường phản hồi trong vòng 1 ngày