test/tint: Update SKIP "expectations"

Change-Id: I131522625051426e93624fbe4f4763071f26ad72
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122202
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton
2023-03-02 09:25:40 +00:00
committed by Dawn LUCI CQ
parent f0e578f8bd
commit b990d393f5
958 changed files with 12120 additions and 5591 deletions

View File

@@ -17,45 +17,45 @@ int i() {
return counter;
}
matrix<float16_t, 4, 2> tint_symbol_8(uint4 buffer[64], uint offset) {
matrix<float16_t, 4, 2> a_load_4(uint offset) {
const uint scalar_offset = ((offset + 0u)) / 4;
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
uint ubo_load = a[scalar_offset / 4][scalar_offset % 4];
const uint scalar_offset_1 = ((offset + 4u)) / 4;
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
uint ubo_load_1 = a[scalar_offset_1 / 4][scalar_offset_1 % 4];
const uint scalar_offset_2 = ((offset + 8u)) / 4;
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
uint ubo_load_2 = a[scalar_offset_2 / 4][scalar_offset_2 % 4];
const uint scalar_offset_3 = ((offset + 12u)) / 4;
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
uint ubo_load_3 = a[scalar_offset_3 / 4][scalar_offset_3 % 4];
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
}
Inner tint_symbol_7(uint4 buffer[64], uint offset) {
const Inner tint_symbol_11 = {tint_symbol_8(buffer, (offset + 0u))};
return tint_symbol_11;
Inner a_load_3(uint offset) {
const Inner tint_symbol_4 = {a_load_4((offset + 0u))};
return tint_symbol_4;
}
typedef Inner tint_symbol_6_ret[4];
tint_symbol_6_ret tint_symbol_6(uint4 buffer[64], uint offset) {
typedef Inner a_load_2_ret[4];
a_load_2_ret a_load_2(uint offset) {
Inner arr[4] = (Inner[4])0;
{
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
arr[i_1] = tint_symbol_7(buffer, (offset + (i_1 * 64u)));
arr[i_1] = a_load_3((offset + (i_1 * 64u)));
}
}
return arr;
}
Outer tint_symbol_5(uint4 buffer[64], uint offset) {
const Outer tint_symbol_12 = {tint_symbol_6(buffer, (offset + 0u))};
return tint_symbol_12;
Outer a_load_1(uint offset) {
const Outer tint_symbol_5 = {a_load_2((offset + 0u))};
return tint_symbol_5;
}
typedef Outer tint_symbol_4_ret[4];
tint_symbol_4_ret tint_symbol_4(uint4 buffer[64], uint offset) {
typedef Outer a_load_ret[4];
a_load_ret a_load(uint offset) {
Outer arr_1[4] = (Outer[4])0;
{
for(uint i_2 = 0u; (i_2 < 4u); i_2 = (i_2 + 1u)) {
arr_1[i_2] = tint_symbol_5(buffer, (offset + (i_2 * 256u)));
arr_1[i_2] = a_load_1((offset + (i_2 * 256u)));
}
}
return arr_1;
@@ -66,11 +66,11 @@ void f() {
const int p_a_i_save = i();
const int p_a_i_a_i_save = i();
const int p_a_i_a_i_m_i_save = i();
const Outer l_a[4] = tint_symbol_4(a, 0u);
const Outer l_a_i = tint_symbol_5(a, (256u * uint(p_a_i_save)));
const Inner l_a_i_a[4] = tint_symbol_6(a, (256u * uint(p_a_i_save)));
const Inner l_a_i_a_i = tint_symbol_7(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
const matrix<float16_t, 4, 2> l_a_i_a_i_m = tint_symbol_8(a, ((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
const Outer l_a[4] = a_load(0u);
const Outer l_a_i = a_load_1((256u * uint(p_a_i_save)));
const Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save)));
const Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
const matrix<float16_t, 4, 2> l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))));
const uint scalar_offset_4 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (4u * uint(p_a_i_a_i_m_i_save)))) / 4;
uint ubo_load_4 = a[scalar_offset_4 / 4][scalar_offset_4 % 4];
const vector<float16_t, 2> l_a_i_a_i_m_i = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16)));
@@ -83,6 +83,3 @@ void f() {
const float16_t l_a_i_a_i_m_i_i = float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)));
return;
}
FXC validation failure:
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000216C74B2530(2,10-18): error X3000: syntax error: unexpected token 'float16_t'

View File

@@ -11,45 +11,45 @@ cbuffer cbuffer_a : register(b0, space0) {
uint4 a[64];
};
matrix<float16_t, 4, 2> tint_symbol_4(uint4 buffer[64], uint offset) {
matrix<float16_t, 4, 2> a_load_4(uint offset) {
const uint scalar_offset = ((offset + 0u)) / 4;
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
uint ubo_load = a[scalar_offset / 4][scalar_offset % 4];
const uint scalar_offset_1 = ((offset + 4u)) / 4;
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
uint ubo_load_1 = a[scalar_offset_1 / 4][scalar_offset_1 % 4];
const uint scalar_offset_2 = ((offset + 8u)) / 4;
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
uint ubo_load_2 = a[scalar_offset_2 / 4][scalar_offset_2 % 4];
const uint scalar_offset_3 = ((offset + 12u)) / 4;
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
uint ubo_load_3 = a[scalar_offset_3 / 4][scalar_offset_3 % 4];
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
}
Inner tint_symbol_3(uint4 buffer[64], uint offset) {
const Inner tint_symbol_7 = {tint_symbol_4(buffer, (offset + 0u))};
return tint_symbol_7;
Inner a_load_3(uint offset) {
const Inner tint_symbol = {a_load_4((offset + 0u))};
return tint_symbol;
}
typedef Inner tint_symbol_2_ret[4];
tint_symbol_2_ret tint_symbol_2(uint4 buffer[64], uint offset) {
typedef Inner a_load_2_ret[4];
a_load_2_ret a_load_2(uint offset) {
Inner arr[4] = (Inner[4])0;
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
arr[i] = tint_symbol_3(buffer, (offset + (i * 64u)));
arr[i] = a_load_3((offset + (i * 64u)));
}
}
return arr;
}
Outer tint_symbol_1(uint4 buffer[64], uint offset) {
const Outer tint_symbol_8 = {tint_symbol_2(buffer, (offset + 0u))};
return tint_symbol_8;
Outer a_load_1(uint offset) {
const Outer tint_symbol_1 = {a_load_2((offset + 0u))};
return tint_symbol_1;
}
typedef Outer tint_symbol_ret[4];
tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
typedef Outer a_load_ret[4];
a_load_ret a_load(uint offset) {
Outer arr_1[4] = (Outer[4])0;
{
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
arr_1[i_1] = tint_symbol_1(buffer, (offset + (i_1 * 256u)));
arr_1[i_1] = a_load_1((offset + (i_1 * 256u)));
}
}
return arr_1;
@@ -57,16 +57,13 @@ tint_symbol_ret tint_symbol(uint4 buffer[64], uint offset) {
[numthreads(1, 1, 1)]
void f() {
const Outer l_a[4] = tint_symbol(a, 0u);
const Outer l_a_3 = tint_symbol_1(a, 768u);
const Inner l_a_3_a[4] = tint_symbol_2(a, 768u);
const Inner l_a_3_a_2 = tint_symbol_3(a, 896u);
const matrix<float16_t, 4, 2> l_a_3_a_2_m = tint_symbol_4(a, 896u);
const Outer l_a[4] = a_load(0u);
const Outer l_a_3 = a_load_1(768u);
const Inner l_a_3_a[4] = a_load_2(768u);
const Inner l_a_3_a_2 = a_load_3(896u);
const matrix<float16_t, 4, 2> l_a_3_a_2_m = a_load_4(896u);
uint ubo_load_4 = a[56].y;
const vector<float16_t, 2> l_a_3_a_2_m_1 = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16)));
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].y) & 0xFFFF)));
return;
}
FXC validation failure:
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000026E60B9E9C0(2,10-18): error X3000: syntax error: unexpected token 'float16_t'

View File

@@ -4,27 +4,24 @@ cbuffer cbuffer_u : register(b0, space0) {
uint4 u[32];
};
matrix<float16_t, 4, 2> tint_symbol(uint4 buffer[32], uint offset) {
matrix<float16_t, 4, 2> u_load(uint offset) {
const uint scalar_offset = ((offset + 0u)) / 4;
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
const uint scalar_offset_1 = ((offset + 4u)) / 4;
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
const uint scalar_offset_2 = ((offset + 8u)) / 4;
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
const uint scalar_offset_3 = ((offset + 12u)) / 4;
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
}
[numthreads(1, 1, 1)]
void f() {
const matrix<float16_t, 2, 4> t = transpose(tint_symbol(u, 260u));
const matrix<float16_t, 2, 4> t = transpose(u_load(260u));
uint ubo_load_4 = u[0].z;
const float16_t l = length(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx);
uint ubo_load_5 = u[0].z;
const float16_t a = abs(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x);
return;
}
FXC validation failure:
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CC7C77CFC0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'

View File

@@ -25,31 +25,31 @@ void d(vector<float16_t, 2> v) {
void e(float16_t f_1) {
}
matrix<float16_t, 4, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
matrix<float16_t, 4, 2> u_load_3(uint offset) {
const uint scalar_offset = ((offset + 0u)) / 4;
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
const uint scalar_offset_1 = ((offset + 4u)) / 4;
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
const uint scalar_offset_2 = ((offset + 8u)) / 4;
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
const uint scalar_offset_3 = ((offset + 12u)) / 4;
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
}
S tint_symbol_1(uint4 buffer[32], uint offset) {
S u_load_1(uint offset) {
const uint scalar_offset_4 = ((offset + 0u)) / 4;
const uint scalar_offset_5 = ((offset + 64u)) / 4;
const S tint_symbol_5 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
return tint_symbol_5;
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
return tint_symbol;
}
typedef S tint_symbol_ret[4];
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
typedef S u_load_ret[4];
u_load_ret u_load(uint offset) {
S arr[4] = (S[4])0;
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
arr[i] = u_load_1((offset + (i * 128u)));
}
}
return arr;
@@ -57,15 +57,12 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
[numthreads(1, 1, 1)]
void f() {
a(tint_symbol(u, 0u));
b(tint_symbol_1(u, 256u));
c(tint_symbol_3(u, 260u));
a(u_load(0u));
b(u_load_1(256u));
c(u_load_3(260u));
uint ubo_load_4 = u[0].z;
d(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx);
uint ubo_load_5 = u[0].z;
e(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x);
return;
}
FXC validation failure:
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CA88A4FDA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'

View File

@@ -11,31 +11,31 @@ cbuffer cbuffer_u : register(b0, space0) {
};
static S p[4] = (S[4])0;
matrix<float16_t, 4, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
matrix<float16_t, 4, 2> u_load_3(uint offset) {
const uint scalar_offset = ((offset + 0u)) / 4;
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
const uint scalar_offset_1 = ((offset + 4u)) / 4;
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
const uint scalar_offset_2 = ((offset + 8u)) / 4;
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
const uint scalar_offset_3 = ((offset + 12u)) / 4;
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
}
S tint_symbol_1(uint4 buffer[32], uint offset) {
S u_load_1(uint offset) {
const uint scalar_offset_4 = ((offset + 0u)) / 4;
const uint scalar_offset_5 = ((offset + 64u)) / 4;
const S tint_symbol_5 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
return tint_symbol_5;
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
return tint_symbol;
}
typedef S tint_symbol_ret[4];
tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
typedef S u_load_ret[4];
u_load_ret u_load(uint offset) {
S arr[4] = (S[4])0;
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
arr[i] = tint_symbol_1(buffer, (offset + (i * 128u)));
arr[i] = u_load_1((offset + (i * 128u)));
}
}
return arr;
@@ -43,13 +43,10 @@ tint_symbol_ret tint_symbol(uint4 buffer[32], uint offset) {
[numthreads(1, 1, 1)]
void f() {
p = tint_symbol(u, 0u);
p[1] = tint_symbol_1(u, 256u);
p[3].m = tint_symbol_3(u, 260u);
p = u_load(0u);
p[1] = u_load_1(256u);
p[3].m = u_load_3(260u);
uint ubo_load_4 = u[0].z;
p[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx;
return;
}
FXC validation failure:
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002074AC3FD30(3,10-18): error X3000: syntax error: unexpected token 'float16_t'

View File

@@ -11,53 +11,53 @@ cbuffer cbuffer_u : register(b0, space0) {
};
RWByteAddressBuffer s : register(u1, space0);
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 2> value) {
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
buffer.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
buffer.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
void s_store_3(uint offset, matrix<float16_t, 4, 2> value) {
s.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
s.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
s.Store<vector<float16_t, 2> >((offset + 8u), value[2u]);
s.Store<vector<float16_t, 2> >((offset + 12u), value[3u]);
}
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
buffer.Store((offset + 0u), asuint(value.before));
tint_symbol_3(buffer, (offset + 4u), value.m);
buffer.Store((offset + 64u), asuint(value.after));
void s_store_1(uint offset, S value) {
s.Store((offset + 0u), asuint(value.before));
s_store_3((offset + 4u), value.m);
s.Store((offset + 64u), asuint(value.after));
}
void tint_symbol(RWByteAddressBuffer buffer, uint offset, S value[4]) {
S array[4] = value;
void s_store(uint offset, S value[4]) {
S array_1[4] = value;
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
tint_symbol_1(buffer, (offset + (i * 128u)), array[i]);
s_store_1((offset + (i * 128u)), array_1[i]);
}
}
}
matrix<float16_t, 4, 2> tint_symbol_8(uint4 buffer[32], uint offset) {
matrix<float16_t, 4, 2> u_load_3(uint offset) {
const uint scalar_offset = ((offset + 0u)) / 4;
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
const uint scalar_offset_1 = ((offset + 4u)) / 4;
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
const uint scalar_offset_2 = ((offset + 8u)) / 4;
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
const uint scalar_offset_3 = ((offset + 12u)) / 4;
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
}
S tint_symbol_6(uint4 buffer[32], uint offset) {
S u_load_1(uint offset) {
const uint scalar_offset_4 = ((offset + 0u)) / 4;
const uint scalar_offset_5 = ((offset + 64u)) / 4;
const S tint_symbol_10 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_8(buffer, (offset + 4u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
return tint_symbol_10;
const S tint_symbol = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
return tint_symbol;
}
typedef S tint_symbol_5_ret[4];
tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
typedef S u_load_ret[4];
u_load_ret u_load(uint offset) {
S arr[4] = (S[4])0;
{
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
arr[i_1] = tint_symbol_6(buffer, (offset + (i_1 * 128u)));
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
}
}
return arr;
@@ -65,13 +65,10 @@ tint_symbol_5_ret tint_symbol_5(uint4 buffer[32], uint offset) {
[numthreads(1, 1, 1)]
void f() {
tint_symbol(s, 0u, tint_symbol_5(u, 0u));
tint_symbol_1(s, 128u, tint_symbol_6(u, 256u));
tint_symbol_3(s, 388u, tint_symbol_8(u, 260u));
s_store(0u, u_load(0u));
s_store_1(128u, u_load_1(256u));
s_store_3(388u, u_load_3(260u));
uint ubo_load_4 = u[0].z;
s.Store<vector<float16_t, 2> >(132u, vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx);
return;
}
FXC validation failure:
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000185CE589540(3,10-18): error X3000: syntax error: unexpected token 'float16_t'

View File

@@ -15,31 +15,31 @@ struct tint_symbol_1 {
uint local_invocation_index : SV_GroupIndex;
};
matrix<float16_t, 4, 2> tint_symbol_5(uint4 buffer[32], uint offset) {
matrix<float16_t, 4, 2> u_load_3(uint offset) {
const uint scalar_offset = ((offset + 0u)) / 4;
uint ubo_load = buffer[scalar_offset / 4][scalar_offset % 4];
uint ubo_load = u[scalar_offset / 4][scalar_offset % 4];
const uint scalar_offset_1 = ((offset + 4u)) / 4;
uint ubo_load_1 = buffer[scalar_offset_1 / 4][scalar_offset_1 % 4];
uint ubo_load_1 = u[scalar_offset_1 / 4][scalar_offset_1 % 4];
const uint scalar_offset_2 = ((offset + 8u)) / 4;
uint ubo_load_2 = buffer[scalar_offset_2 / 4][scalar_offset_2 % 4];
uint ubo_load_2 = u[scalar_offset_2 / 4][scalar_offset_2 % 4];
const uint scalar_offset_3 = ((offset + 12u)) / 4;
uint ubo_load_3 = buffer[scalar_offset_3 / 4][scalar_offset_3 % 4];
uint ubo_load_3 = u[scalar_offset_3 / 4][scalar_offset_3 % 4];
return matrix<float16_t, 4, 2>(vector<float16_t, 2>(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))));
}
S tint_symbol_3(uint4 buffer[32], uint offset) {
S u_load_1(uint offset) {
const uint scalar_offset_4 = ((offset + 0u)) / 4;
const uint scalar_offset_5 = ((offset + 64u)) / 4;
const S tint_symbol_8 = {asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4]), tint_symbol_5(buffer, (offset + 4u)), asint(buffer[scalar_offset_5 / 4][scalar_offset_5 % 4])};
return tint_symbol_8;
const S tint_symbol_3 = {asint(u[scalar_offset_4 / 4][scalar_offset_4 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_5 / 4][scalar_offset_5 % 4])};
return tint_symbol_3;
}
typedef S tint_symbol_2_ret[4];
tint_symbol_2_ret tint_symbol_2(uint4 buffer[32], uint offset) {
typedef S u_load_ret[4];
u_load_ret u_load(uint offset) {
S arr[4] = (S[4])0;
{
for(uint i_1 = 0u; (i_1 < 4u); i_1 = (i_1 + 1u)) {
arr[i_1] = tint_symbol_3(buffer, (offset + (i_1 * 128u)));
arr[i_1] = u_load_1((offset + (i_1 * 128u)));
}
}
return arr;
@@ -49,14 +49,14 @@ void f_inner(uint local_invocation_index) {
{
for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) {
const uint i = idx;
const S tint_symbol_7 = (S)0;
w[i] = tint_symbol_7;
const S tint_symbol_2 = (S)0;
w[i] = tint_symbol_2;
}
}
GroupMemoryBarrierWithGroupSync();
w = tint_symbol_2(u, 0u);
w[1] = tint_symbol_3(u, 256u);
w[3].m = tint_symbol_5(u, 260u);
w = u_load(0u);
w[1] = u_load_1(256u);
w[3].m = u_load_3(260u);
uint ubo_load_4 = u[0].z;
w[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx;
}
@@ -66,6 +66,3 @@ void f(tint_symbol_1 tint_symbol) {
f_inner(tint_symbol.local_invocation_index);
return;
}
FXC validation failure:
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001B8BDB52100(3,10-18): error X3000: syntax error: unexpected token 'float16_t'