Skip to content

Commit 1eec657

Browse files
committed
Add bug comments. Add i2x3 const swizzle test
1 parent d9e1ce9 commit 1eec657

File tree

4 files changed

+107
-1
lines changed

4 files changed

+107
-1
lines changed
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#--- source.hlsl
2+
RWBuffer<int> In : register(u0);
3+
RWBuffer<int> Index : register(u1);
4+
RWBuffer<int> Out : register(u2);
5+
RWBuffer<int> Out2 : register(u3);
6+
7+
[numthreads(1,1,1)]
8+
void main() {
9+
int3 A = int3(In[0], In[1], In[2]);
10+
int3 B = int3(In[3], In[4], In[5]);
11+
12+
int2x3 Mat;
13+
Mat[1].xzy = A;
14+
Mat[0] = B.zyx;
15+
16+
int2x3 Mat2;
17+
Mat2[Index[1]] = Mat[1].yzx;
18+
Mat2[1].zxy = Mat[Index[1]];
19+
20+
const uint COLS = 3;
21+
for(uint i = 0; i < 6; i++) {
22+
uint row = i / COLS;
23+
uint col = i % COLS;
24+
Out[i] = Mat[row][col];
25+
Out2[i] = Mat2[row][col];
26+
}
27+
}
28+
//--- pipeline.yaml
29+
30+
---
31+
Shaders:
32+
- Stage: Compute
33+
Entry: main
34+
DispatchSize: [1, 1, 1]
35+
Buffers:
36+
- Name: In
37+
Format: Int32
38+
Data: [ 1, 2, 3, 4, 5, 6]
39+
- Name: Index
40+
Format: Int32
41+
Data: [ 1, 0]
42+
- Name: Out
43+
Format: Int32
44+
FillSize: 24
45+
- Name: ExpectedOut
46+
Format: Int32
47+
Data: [ 6, 5, 4, 1, 3, 2 ]
48+
- Name: Out2
49+
Format: Int32
50+
FillSize: 24
51+
- Name: ExpectedOut2
52+
Format: Int32
53+
Data: [ 3, 2, 1, 5, 4, 6 ]
54+
Results:
55+
- Result: Out
56+
Rule: BufferExact
57+
Actual: Out
58+
Expected: ExpectedOut
59+
- Result: Out2
60+
Rule: BufferExact
61+
Actual: Out2
62+
Expected: ExpectedOut2
63+
DescriptorSets:
64+
- Resources:
65+
- Name: In
66+
Kind: RWBuffer
67+
DirectXBinding:
68+
Register: 0
69+
Space: 0
70+
VulkanBinding:
71+
Binding: 0
72+
- Name: Index
73+
Kind: RWBuffer
74+
DirectXBinding:
75+
Register: 1
76+
Space: 0
77+
VulkanBinding:
78+
Binding: 1
79+
- Name: Out
80+
Kind: RWBuffer
81+
DirectXBinding:
82+
Register: 2
83+
Space: 0
84+
VulkanBinding:
85+
Binding: 2
86+
- Name: Out2
87+
Kind: RWBuffer
88+
DirectXBinding:
89+
Register: 3
90+
Space: 0
91+
VulkanBinding:
92+
Binding: 3
93+
...
94+
#--- end
95+
96+
# Unimplemented: https://github.com/llvm/llvm-project/issues/170534
97+
# XFAIL: Vulkan && Clang
98+
99+
# RUN: split-file %s %t
100+
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/source.hlsl
101+
# RUN: %offloader %t/pipeline.yaml %t.o

test/Basic/Matrix/matrix_const_single_subscript.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@ DescriptorSets:
6363
...
6464
#--- end
6565

66+
# Unimplemented: https://github.com/llvm/llvm-project/issues/170534
67+
# XFAIL: Vulkan && Clang
68+
6669
# Bug: https://github.com/llvm/llvm-project/issues/172805
6770
# XFAIL: Clang
71+
6872
# RUN: split-file %s %t
6973
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/source.hlsl
7074
# RUN: %offloader %t/pipeline.yaml %t.o

test/Basic/Matrix/matrix_single_subscript_load.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ DescriptorSets:
6464
...
6565
#--- end
6666

67+
# Unimplemented https://github.com/llvm/llvm-project/issues/170777
6768
# XFAIL: Clang
6869
# RUN: split-file %s %t
6970
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/source.hlsl

test/Basic/Matrix/matrix_single_subscript_store.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ DescriptorSets:
6464
Binding: 1
6565
...
6666
#--- end
67-
67+
# Unimplemented https://github.com/llvm/llvm-project/issues/170777
6868
# XFAIL: Clang
6969
# RUN: split-file %s %t
7070
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/source.hlsl

0 commit comments

Comments
 (0)