tint/transform/std140: Correctly handle nested / bare matrices

Fixed tint:1673
Fixed tint:1674

Change-Id: Ifa5d2a69131cc1e4679d4d43143f857c7ba46dbd
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/102640
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton
2022-09-17 01:47:59 +00:00
committed by Dawn LUCI CQ
parent 84b43d61fa
commit 90b29e500a
67 changed files with 3714 additions and 919 deletions

View File

@@ -31,7 +31,7 @@ Inner conv_Inner(Inner_std140 val) {
return Inner(mat2(val.m_0, val.m_1));
}
Inner[4] conv_arr_4_Inner(Inner_std140 val[4]) {
Inner[4] conv_arr4_Inner(Inner_std140 val[4]) {
Inner arr[4] = Inner[4](Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)));
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
@@ -42,10 +42,10 @@ Inner[4] conv_arr_4_Inner(Inner_std140 val[4]) {
}
Outer conv_Outer(Outer_std140 val) {
return Outer(conv_arr_4_Inner(val.a));
return Outer(conv_arr4_Inner(val.a));
}
Outer[4] conv_arr_4_Outer(Outer_std140 val[4]) {
Outer[4] conv_arr4_Outer(Outer_std140 val[4]) {
Outer arr[4] = Outer[4](Outer(Inner[4](Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)))), Outer(Inner[4](Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)))), Outer(Inner[4](Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)))), Outer(Inner[4](Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)))));
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
@@ -96,18 +96,18 @@ float load_a_inner_p0_a_p1_m_p2_p3(uint p0, uint p1, uint p2, uint p3) {
}
void f() {
Outer p_a[4] = conv_arr_4_Outer(a.inner);
Outer p_a[4] = conv_arr4_Outer(a.inner);
int tint_symbol = i();
Outer p_a_i = conv_Outer(a.inner[tint_symbol]);
Inner p_a_i_a[4] = conv_arr_4_Inner(a.inner[tint_symbol].a);
Inner p_a_i_a[4] = conv_arr4_Inner(a.inner[tint_symbol].a);
int tint_symbol_1 = i();
Inner p_a_i_a_i = conv_Inner(a.inner[tint_symbol].a[tint_symbol_1]);
mat2 p_a_i_a_i_m = load_a_inner_p0_a_p1_m(uint(tint_symbol), uint(tint_symbol_1));
int tint_symbol_2 = i();
vec2 p_a_i_a_i_m_i = load_a_inner_p0_a_p1_m_p2(uint(tint_symbol), uint(tint_symbol_1), uint(tint_symbol_2));
Outer l_a[4] = conv_arr_4_Outer(a.inner);
Outer l_a[4] = conv_arr4_Outer(a.inner);
Outer l_a_i = conv_Outer(a.inner[tint_symbol]);
Inner l_a_i_a[4] = conv_arr_4_Inner(a.inner[tint_symbol].a);
Inner l_a_i_a[4] = conv_arr4_Inner(a.inner[tint_symbol].a);
Inner l_a_i_a_i = conv_Inner(a.inner[tint_symbol].a[tint_symbol_1]);
mat2 l_a_i_a_i_m = load_a_inner_p0_a_p1_m(uint(tint_symbol), uint(tint_symbol_1));
vec2 l_a_i_a_i_m_i = load_a_inner_p0_a_p1_m_p2(uint(tint_symbol), uint(tint_symbol_1), uint(tint_symbol_2));

View File

@@ -21,7 +21,7 @@
OpMemberName %Inner 0 "m"
OpName %conv_Inner "conv_Inner"
OpName %val "val"
OpName %conv_arr_4_Inner "conv_arr_4_Inner"
OpName %conv_arr4_Inner "conv_arr4_Inner"
OpName %val_0 "val"
OpName %arr "arr"
OpName %i_0 "i"
@@ -30,7 +30,7 @@
OpMemberName %Outer 0 "a"
OpName %conv_Outer "conv_Outer"
OpName %val_1 "val"
OpName %conv_arr_4_Outer "conv_arr_4_Outer"
OpName %conv_arr4_Outer "conv_arr4_Outer"
OpName %val_2 "val"
OpName %arr_0 "arr"
OpName %i_1 "i"
@@ -137,7 +137,7 @@
%32 = OpCompositeConstruct %Inner %31
OpReturnValue %32
OpFunctionEnd
%conv_arr_4_Inner = OpFunction %_arr_Inner_uint_4 None %33
%conv_arr4_Inner = OpFunction %_arr_Inner_uint_4 None %33
%val_0 = OpFunctionParameter %_arr_Inner_std140_uint_4
%37 = OpLabel
%arr = OpVariable %_ptr_Function__arr_Inner_uint_4 Function %40
@@ -178,11 +178,11 @@
%val_1 = OpFunctionParameter %Outer_std140
%73 = OpLabel
%75 = OpCompositeExtract %_arr_Inner_std140_uint_4 %val_1 0
%74 = OpFunctionCall %_arr_Inner_uint_4 %conv_arr_4_Inner %75
%74 = OpFunctionCall %_arr_Inner_uint_4 %conv_arr4_Inner %75
%76 = OpCompositeConstruct %Outer %74
OpReturnValue %76
OpFunctionEnd
%conv_arr_4_Outer = OpFunction %_arr_Outer_uint_4 None %77
%conv_arr4_Outer = OpFunction %_arr_Outer_uint_4 None %77
%val_2 = OpFunctionParameter %_arr_Outer_std140_uint_4
%81 = OpLabel
%arr_0 = OpVariable %_ptr_Function__arr_Outer_uint_4 Function %84
@@ -279,13 +279,13 @@
%164 = OpFunctionCall %int %i
%167 = OpAccessChain %_ptr_Uniform__arr_Outer_std140_uint_4 %a %uint_0
%168 = OpLoad %_arr_Outer_std140_uint_4 %167
%165 = OpFunctionCall %_arr_Outer_uint_4 %conv_arr_4_Outer %168
%165 = OpFunctionCall %_arr_Outer_uint_4 %conv_arr4_Outer %168
%171 = OpAccessChain %_ptr_Uniform_Outer_std140 %a %uint_0 %162
%172 = OpLoad %Outer_std140 %171
%169 = OpFunctionCall %Outer %conv_Outer %172
%175 = OpAccessChain %_ptr_Uniform__arr_Inner_std140_uint_4 %a %uint_0 %162 %uint_0
%176 = OpLoad %_arr_Inner_std140_uint_4 %175
%173 = OpFunctionCall %_arr_Inner_uint_4 %conv_arr_4_Inner %176
%173 = OpFunctionCall %_arr_Inner_uint_4 %conv_arr4_Inner %176
%178 = OpAccessChain %_ptr_Uniform_Inner_std140 %a %uint_0 %162 %uint_0 %163
%179 = OpLoad %Inner_std140 %178
%177 = OpFunctionCall %Inner %conv_Inner %179

View File

@@ -25,7 +25,7 @@ Inner conv_Inner(Inner_std140 val) {
return Inner(mat2(val.m_0, val.m_1));
}
Inner[4] conv_arr_4_Inner(Inner_std140 val[4]) {
Inner[4] conv_arr4_Inner(Inner_std140 val[4]) {
Inner arr[4] = Inner[4](Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)));
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
@@ -36,10 +36,10 @@ Inner[4] conv_arr_4_Inner(Inner_std140 val[4]) {
}
Outer conv_Outer(Outer_std140 val) {
return Outer(conv_arr_4_Inner(val.a));
return Outer(conv_arr4_Inner(val.a));
}
Outer[4] conv_arr_4_Outer(Outer_std140 val[4]) {
Outer[4] conv_arr4_Outer(Outer_std140 val[4]) {
Outer arr[4] = Outer[4](Outer(Inner[4](Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)))), Outer(Inner[4](Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)))), Outer(Inner[4](Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)))), Outer(Inner[4](Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)), Inner(mat2(0.0f, 0.0f, 0.0f, 0.0f)))));
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
@@ -54,15 +54,15 @@ mat2 load_a_inner_3_a_2_m() {
}
void f() {
Outer p_a[4] = conv_arr_4_Outer(a.inner);
Outer p_a[4] = conv_arr4_Outer(a.inner);
Outer p_a_3 = conv_Outer(a.inner[3u]);
Inner p_a_3_a[4] = conv_arr_4_Inner(a.inner[3u].a);
Inner p_a_3_a[4] = conv_arr4_Inner(a.inner[3u].a);
Inner p_a_3_a_2 = conv_Inner(a.inner[3u].a[2u]);
mat2 p_a_3_a_2_m = load_a_inner_3_a_2_m();
vec2 p_a_3_a_2_m_1 = a.inner[3u].a[2u].m_1;
Outer l_a[4] = conv_arr_4_Outer(a.inner);
Outer l_a[4] = conv_arr4_Outer(a.inner);
Outer l_a_3 = conv_Outer(a.inner[3u]);
Inner l_a_3_a[4] = conv_arr_4_Inner(a.inner[3u].a);
Inner l_a_3_a[4] = conv_arr4_Inner(a.inner[3u].a);
Inner l_a_3_a_2 = conv_Inner(a.inner[3u].a[2u]);
mat2 l_a_3_a_2_m = load_a_inner_3_a_2_m();
vec2 l_a_3_a_2_m_1 = a.inner[3u].a[2u].m_1;

View File

@@ -19,7 +19,7 @@
OpMemberName %Inner 0 "m"
OpName %conv_Inner "conv_Inner"
OpName %val "val"
OpName %conv_arr_4_Inner "conv_arr_4_Inner"
OpName %conv_arr4_Inner "conv_arr4_Inner"
OpName %val_0 "val"
OpName %arr "arr"
OpName %i "i"
@@ -28,7 +28,7 @@
OpMemberName %Outer 0 "a"
OpName %conv_Outer "conv_Outer"
OpName %val_1 "val"
OpName %conv_arr_4_Outer "conv_arr_4_Outer"
OpName %conv_arr4_Outer "conv_arr4_Outer"
OpName %val_2 "val"
OpName %arr_0 "arr"
OpName %i_0 "i"
@@ -108,7 +108,7 @@
%21 = OpCompositeConstruct %Inner %20
OpReturnValue %21
OpFunctionEnd
%conv_arr_4_Inner = OpFunction %_arr_Inner_uint_4 None %22
%conv_arr4_Inner = OpFunction %_arr_Inner_uint_4 None %22
%val_0 = OpFunctionParameter %_arr_Inner_std140_uint_4
%26 = OpLabel
%arr = OpVariable %_ptr_Function__arr_Inner_uint_4 Function %29
@@ -149,11 +149,11 @@
%val_1 = OpFunctionParameter %Outer_std140
%62 = OpLabel
%64 = OpCompositeExtract %_arr_Inner_std140_uint_4 %val_1 0
%63 = OpFunctionCall %_arr_Inner_uint_4 %conv_arr_4_Inner %64
%63 = OpFunctionCall %_arr_Inner_uint_4 %conv_arr4_Inner %64
%65 = OpCompositeConstruct %Outer %63
OpReturnValue %65
OpFunctionEnd
%conv_arr_4_Outer = OpFunction %_arr_Outer_uint_4 None %66
%conv_arr4_Outer = OpFunction %_arr_Outer_uint_4 None %66
%val_2 = OpFunctionParameter %_arr_Outer_std140_uint_4
%70 = OpLabel
%arr_0 = OpVariable %_ptr_Function__arr_Outer_uint_4 Function %73
@@ -204,13 +204,13 @@
%118 = OpLabel
%121 = OpAccessChain %_ptr_Uniform__arr_Outer_std140_uint_4 %a %uint_0
%122 = OpLoad %_arr_Outer_std140_uint_4 %121
%119 = OpFunctionCall %_arr_Outer_uint_4 %conv_arr_4_Outer %122
%119 = OpFunctionCall %_arr_Outer_uint_4 %conv_arr4_Outer %122
%125 = OpAccessChain %_ptr_Uniform_Outer_std140 %a %uint_0 %uint_3
%126 = OpLoad %Outer_std140 %125
%123 = OpFunctionCall %Outer %conv_Outer %126
%129 = OpAccessChain %_ptr_Uniform__arr_Inner_std140_uint_4 %a %uint_0 %uint_3 %uint_0
%130 = OpLoad %_arr_Inner_std140_uint_4 %129
%127 = OpFunctionCall %_arr_Inner_uint_4 %conv_arr_4_Inner %130
%127 = OpFunctionCall %_arr_Inner_uint_4 %conv_arr4_Inner %130
%132 = OpAccessChain %_ptr_Uniform_Inner_std140 %a %uint_0 %uint_3 %uint_0 %uint_2
%133 = OpLoad %Inner_std140 %132
%131 = OpFunctionCall %Inner %conv_Inner %133

View File

@@ -40,7 +40,7 @@ S conv_S(S_std140 val) {
return S(val.before, val.pad, mat2(val.m_0, val.m_1), val.after, val.pad_1);
}
S[4] conv_arr_4_S(S_std140 val[4]) {
S[4] conv_arr4_S(S_std140 val[4]) {
S arr[4] = S[4](S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u));
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
@@ -55,7 +55,7 @@ mat2 load_u_inner_2_m() {
}
void f() {
a(conv_arr_4_S(u.inner));
a(conv_arr4_S(u.inner));
b(conv_S(u.inner[2u]));
c(load_u_inner_2_m());
d(u.inner[0u].m_1.yx);

View File

@@ -31,7 +31,7 @@
OpName %f_1 "f_1"
OpName %conv_S "conv_S"
OpName %val "val"
OpName %conv_arr_4_S "conv_arr_4_S"
OpName %conv_arr4_S "conv_arr4_S"
OpName %val_0 "val"
OpName %arr "arr"
OpName %i "i"
@@ -128,7 +128,7 @@
%44 = OpCompositeConstruct %S %39 %42 %43
OpReturnValue %44
OpFunctionEnd
%conv_arr_4_S = OpFunction %_arr_S_uint_4 None %45
%conv_arr4_S = OpFunction %_arr_S_uint_4 None %45
%val_0 = OpFunctionParameter %_arr_S_std140_uint_4
%48 = OpLabel
%arr = OpVariable %_ptr_Function__arr_S_uint_4 Function %51
@@ -179,7 +179,7 @@
%98 = OpLabel
%102 = OpAccessChain %_ptr_Uniform__arr_S_std140_uint_4 %u %uint_0
%103 = OpLoad %_arr_S_std140_uint_4 %102
%100 = OpFunctionCall %_arr_S_uint_4 %conv_arr_4_S %103
%100 = OpFunctionCall %_arr_S_uint_4 %conv_arr4_S %103
%99 = OpFunctionCall %void %a %100
%106 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2
%107 = OpLoad %S_std140 %106

View File

@@ -26,7 +26,7 @@ S conv_S(S_std140 val) {
return S(val.before, val.pad, mat2(val.m_0, val.m_1), val.after, val.pad_1);
}
S[4] conv_arr_4_S(S_std140 val[4]) {
S[4] conv_arr4_S(S_std140 val[4]) {
S arr[4] = S[4](S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u));
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
@@ -41,7 +41,7 @@ mat2 load_u_inner_2_m() {
}
void f() {
p = conv_arr_4_S(u.inner);
p = conv_arr4_S(u.inner);
p[1] = conv_S(u.inner[2u]);
p[3].m = load_u_inner_2_m();
p[1].m[0] = u.inner[0u].m_1.yx;

View File

@@ -22,7 +22,7 @@
OpName %p "p"
OpName %conv_S "conv_S"
OpName %val "val"
OpName %conv_arr_4_S "conv_arr_4_S"
OpName %conv_arr4_S "conv_arr4_S"
OpName %val_0 "val"
OpName %arr "arr"
OpName %i "i"
@@ -97,7 +97,7 @@
%26 = OpCompositeConstruct %S %21 %24 %25
OpReturnValue %26
OpFunctionEnd
%conv_arr_4_S = OpFunction %_arr_S_uint_4 None %27
%conv_arr4_S = OpFunction %_arr_S_uint_4 None %27
%val_0 = OpFunctionParameter %_arr_S_std140_uint_4
%30 = OpLabel
%arr = OpVariable %_ptr_Function__arr_S_uint_4 Function %16
@@ -148,7 +148,7 @@
%80 = OpLabel
%83 = OpAccessChain %_ptr_Uniform__arr_S_std140_uint_4 %u %uint_0
%84 = OpLoad %_arr_S_std140_uint_4 %83
%81 = OpFunctionCall %_arr_S_uint_4 %conv_arr_4_S %84
%81 = OpFunctionCall %_arr_S_uint_4 %conv_arr4_S %84
OpStore %p %81
%87 = OpAccessChain %_ptr_Private_S %p %int_1
%89 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2

View File

@@ -29,7 +29,7 @@ S conv_S(S_std140 val) {
return S(val.before, val.pad, mat2(val.m_0, val.m_1), val.after, val.pad_1);
}
S[4] conv_arr_4_S(S_std140 val[4]) {
S[4] conv_arr4_S(S_std140 val[4]) {
S arr[4] = S[4](S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u));
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
@@ -44,7 +44,7 @@ mat2 load_u_inner_2_m() {
}
void f() {
s.inner = conv_arr_4_S(u.inner);
s.inner = conv_arr4_S(u.inner);
s.inner[1] = conv_S(u.inner[2u]);
s.inner[3].m = load_u_inner_2_m();
s.inner[1].m[0] = u.inner[0u].m_1.yx;

View File

@@ -24,7 +24,7 @@
OpName %s "s"
OpName %conv_S "conv_S"
OpName %val "val"
OpName %conv_arr_4_S "conv_arr_4_S"
OpName %conv_arr4_S "conv_arr4_S"
OpName %val_0 "val"
OpName %arr "arr"
OpName %i "i"
@@ -105,7 +105,7 @@
%26 = OpCompositeConstruct %S %21 %24 %25
OpReturnValue %26
OpFunctionEnd
%conv_arr_4_S = OpFunction %_arr_S_uint_4 None %27
%conv_arr4_S = OpFunction %_arr_S_uint_4 None %27
%val_0 = OpFunctionParameter %_arr_S_std140_uint_4
%30 = OpLabel
%arr = OpVariable %_ptr_Function__arr_S_uint_4 Function %33
@@ -157,7 +157,7 @@
%83 = OpAccessChain %_ptr_StorageBuffer__arr_S_uint_4 %s %uint_0
%86 = OpAccessChain %_ptr_Uniform__arr_S_std140_uint_4 %u %uint_0
%87 = OpLoad %_arr_S_std140_uint_4 %86
%84 = OpFunctionCall %_arr_S_uint_4 %conv_arr_4_S %87
%84 = OpFunctionCall %_arr_S_uint_4 %conv_arr4_S %87
OpStore %83 %84
%90 = OpAccessChain %_ptr_StorageBuffer_S %s %uint_0 %int_1
%92 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2

View File

@@ -26,7 +26,7 @@ S conv_S(S_std140 val) {
return S(val.before, val.pad, mat2(val.m_0, val.m_1), val.after, val.pad_1);
}
S[4] conv_arr_4_S(S_std140 val[4]) {
S[4] conv_arr4_S(S_std140 val[4]) {
S arr[4] = S[4](S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u), S(0, 0u, mat2(0.0f, 0.0f, 0.0f, 0.0f), 0, 0u));
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
@@ -49,7 +49,7 @@ void f(uint local_invocation_index) {
}
}
barrier();
w = conv_arr_4_S(u.inner);
w = conv_arr4_S(u.inner);
w[1] = conv_S(u.inner[2u]);
w[3].m = load_u_inner_2_m();
w[1].m[0] = u.inner[0u].m_1.yx;

View File

@@ -23,7 +23,7 @@
OpName %w "w"
OpName %conv_S "conv_S"
OpName %val "val"
OpName %conv_arr_4_S "conv_arr_4_S"
OpName %conv_arr4_S "conv_arr4_S"
OpName %val_0 "val"
OpName %arr "arr"
OpName %i "i"
@@ -107,7 +107,7 @@
%27 = OpCompositeConstruct %S %22 %25 %26
OpReturnValue %27
OpFunctionEnd
%conv_arr_4_S = OpFunction %_arr_S_uint_4 None %28
%conv_arr4_S = OpFunction %_arr_S_uint_4 None %28
%val_0 = OpFunctionParameter %_arr_S_std140_uint_4
%31 = OpLabel
%arr = OpVariable %_ptr_Function__arr_S_uint_4 Function %34
@@ -185,7 +185,7 @@
OpControlBarrier %uint_2 %uint_2 %uint_264
%104 = OpAccessChain %_ptr_Uniform__arr_S_std140_uint_4 %u %uint_0
%105 = OpLoad %_arr_S_std140_uint_4 %104
%102 = OpFunctionCall %_arr_S_uint_4 %conv_arr_4_S %105
%102 = OpFunctionCall %_arr_S_uint_4 %conv_arr4_S %105
OpStore %w %102
%107 = OpAccessChain %_ptr_Workgroup_S %w %int_1
%109 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2