mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 14:08:04 +00:00
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:
committed by
Dawn LUCI CQ
parent
f0e578f8bd
commit
b990d393f5
@@ -17,41 +17,41 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 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];
|
||||
return matrix<float16_t, 2, 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))));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -62,11 +62,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, 2, 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, 2, 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_2 = ((((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_2 = a[scalar_offset_2 / 4][scalar_offset_2 % 4];
|
||||
const vector<float16_t, 2> l_a_i_a_i_m_i = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16)));
|
||||
@@ -79,6 +79,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@0x00000270DFBEAD70(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,41 +11,41 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 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];
|
||||
return matrix<float16_t, 2, 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))));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -53,16 +53,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, 2, 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, 2, 2> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint ubo_load_2 = a[56].y;
|
||||
const vector<float16_t, 2> l_a_3_a_2_m_1 = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 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@0x0000025C8106DF60(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,23 +4,20 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 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];
|
||||
return matrix<float16_t, 2, 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))));
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 2, 2> t = transpose(tint_symbol(u, 260u));
|
||||
const matrix<float16_t, 2, 2> t = transpose(u_load(260u));
|
||||
uint ubo_load_2 = u[0].z;
|
||||
const float16_t l = length(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx);
|
||||
uint ubo_load_3 = u[0].z;
|
||||
const float16_t a = abs(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002973821CED0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,27 +25,27 @@ void d(vector<float16_t, 2> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 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];
|
||||
return matrix<float16_t, 2, 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))));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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;
|
||||
@@ -53,15 +53,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_2 = u[0].z;
|
||||
d(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx);
|
||||
uint ubo_load_3 = u[0].z;
|
||||
e(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000029EA87296E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,27 +11,27 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 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];
|
||||
return matrix<float16_t, 2, 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))));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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;
|
||||
@@ -39,13 +39,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_2 = u[0].z;
|
||||
p[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000172713CA4A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,47 +11,47 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 2, 2> value) {
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 2, 2> value) {
|
||||
s.Store<vector<float16_t, 2> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 2> >((offset + 4u), value[1u]);
|
||||
}
|
||||
|
||||
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, 2, 2> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 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];
|
||||
return matrix<float16_t, 2, 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))));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_8(buffer, (offset + 4u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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;
|
||||
@@ -59,13 +59,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_2 = u[0].z;
|
||||
s.Store<vector<float16_t, 2> >(132u, vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A0472DA2E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,27 +15,27 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 2> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 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];
|
||||
return matrix<float16_t, 2, 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))));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_5(buffer, (offset + 4u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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;
|
||||
@@ -45,14 +45,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_2 = u[0].z;
|
||||
w[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx;
|
||||
}
|
||||
@@ -62,6 +62,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@0x000001CABCCF0160(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,47 +17,47 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -68,11 +68,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, 2, 3> 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, 2, 3> 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_2 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
@@ -88,6 +88,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@0x0000021B8B701620(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,47 +11,47 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -59,11 +59,11 @@ 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, 2, 3> 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, 2, 3> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_4 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -71,6 +71,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000016A3B044D10(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
@@ -20,7 +20,7 @@ matrix<float16_t, 2, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 3, 2> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 3, 2> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -31,6 +31,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 3>(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002BEEDB9DED0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,33 +25,33 @@ void d(vector<float16_t, 3> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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;
|
||||
@@ -59,9 +59,9 @@ 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, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -72,6 +72,3 @@ void f() {
|
||||
e(vector<float16_t, 3>(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002273DEDC980(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,33 +11,33 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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;
|
||||
@@ -45,15 +45,12 @@ 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, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
p[1].m[0] = vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000296576AF9E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -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, 2, 3> value) {
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 2, 3> value) {
|
||||
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), 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 + 8u), 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, 2, 3> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_8(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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,15 +65,12 @@ 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, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
s.Store<vector<float16_t, 3> >(136u, vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001EAD8916A10(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,33 +15,33 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 3> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
return matrix<float16_t, 2, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_5(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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;
|
||||
@@ -51,14 +51,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, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -70,6 +70,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@0x000001CE6EDD85C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,47 +17,47 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -68,11 +68,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, 2, 4> 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, 2, 4> 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_2 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
@@ -88,6 +88,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@0x000001DE39EE1520(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,47 +11,47 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 2, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -59,11 +59,11 @@ 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, 2, 4> 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, 2, 4> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_4 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -71,6 +71,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CF0BABD660(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
@@ -20,7 +20,7 @@ matrix<float16_t, 2, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 2> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 4, 2> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -31,6 +31,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 4>(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002535B2A2420(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,33 +25,33 @@ void d(vector<float16_t, 4> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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;
|
||||
@@ -59,9 +59,9 @@ 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, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -72,6 +72,3 @@ void f() {
|
||||
e(vector<float16_t, 4>(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001B118E73590(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,33 +11,33 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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;
|
||||
@@ -45,15 +45,12 @@ 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, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
p[1].m[0] = vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000012E5540B3A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -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, 2, 4> value) {
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 2, 4> value) {
|
||||
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), 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 + 8u), 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, 2, 4> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_8(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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,15 +65,12 @@ 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, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
s.Store<vector<float16_t, 4> >(136u, vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000270F5E70100(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,33 +15,33 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 2, 4> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 2, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
return matrix<float16_t, 2, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_2 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_3 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_2 / 4][scalar_offset_2 % 4]), tint_symbol_5(buffer, (offset + 8u)), asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_2 / 4][scalar_offset_2 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_3 / 4][scalar_offset_3 % 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;
|
||||
@@ -51,14 +51,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, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_4 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -70,6 +70,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@0x000001B747E825C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,43 +17,43 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 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];
|
||||
return matrix<float16_t, 3, 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))));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -64,11 +64,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, 3, 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, 3, 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_3 = ((((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_3 = a[scalar_offset_3 / 4][scalar_offset_3 % 4];
|
||||
const vector<float16_t, 2> l_a_i_a_i_m_i = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16)));
|
||||
@@ -81,6 +81,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@0x000002078397D2F0(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,43 +11,43 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 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];
|
||||
return matrix<float16_t, 3, 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))));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -55,16 +55,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, 3, 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, 3, 2> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint ubo_load_3 = a[56].y;
|
||||
const vector<float16_t, 2> l_a_3_a_2_m_1 = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 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@0x00000229471C1EC0(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,25 +4,22 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 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];
|
||||
return matrix<float16_t, 3, 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))));
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 2, 3> t = transpose(tint_symbol(u, 260u));
|
||||
const matrix<float16_t, 2, 3> t = transpose(u_load(260u));
|
||||
uint ubo_load_3 = u[0].z;
|
||||
const float16_t l = length(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx);
|
||||
uint ubo_load_4 = u[0].z;
|
||||
const float16_t a = abs(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CB6BBFDD80(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,29 +25,29 @@ void d(vector<float16_t, 2> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 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];
|
||||
return matrix<float16_t, 3, 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))));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -55,15 +55,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_3 = u[0].z;
|
||||
d(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx);
|
||||
uint ubo_load_4 = u[0].z;
|
||||
e(vector<float16_t, 2>(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000017A6DD8FA30(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,29 +11,29 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 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];
|
||||
return matrix<float16_t, 3, 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))));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 4u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -41,13 +41,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_3 = u[0].z;
|
||||
p[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000022E1691F8F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,50 +11,50 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 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]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 3, 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]);
|
||||
}
|
||||
|
||||
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, 3, 2> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 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];
|
||||
return matrix<float16_t, 3, 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))));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_8(buffer, (offset + 4u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -62,13 +62,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_3 = u[0].z;
|
||||
s.Store<vector<float16_t, 2> >(132u, vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001BBE330BB00(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,29 +15,29 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 2> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 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];
|
||||
return matrix<float16_t, 3, 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))));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_5(buffer, (offset + 4u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 4u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -47,14 +47,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_3 = u[0].z;
|
||||
w[1].m[0] = vector<float16_t, 2>(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx;
|
||||
}
|
||||
@@ -64,6 +64,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@0x00000194753403B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,52 +17,52 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -73,11 +73,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, 3, 3> 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, 3, 3> 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_3 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
@@ -93,6 +93,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@0x000001CC9AE84850(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,52 +11,52 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -64,11 +64,11 @@ 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, 3, 3> 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, 3, 3> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_6 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -76,6 +76,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000021CC01A0970(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,19 +4,19 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 3> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
@@ -25,7 +25,7 @@ matrix<float16_t, 3, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 3, 3> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 3, 3> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -36,6 +36,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 3>(ubo_load_7_xz[0], ubo_load_7_y, ubo_load_7_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001BFA9E0F690(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,38 +25,38 @@ void d(vector<float16_t, 3> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -64,9 +64,9 @@ 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, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -77,6 +77,3 @@ void f() {
|
||||
e(vector<float16_t, 3>(ubo_load_7_xz[0], ubo_load_7_y, ubo_load_7_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001A1CC720100(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,38 +11,38 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -50,15 +50,12 @@ 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, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
p[1].m[0] = vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]).zxy;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000025A3E276990(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,59 +11,59 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 3> value) {
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 3, 3> value) {
|
||||
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), 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 + 8u), 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, 3, 3> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_8(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -71,15 +71,12 @@ 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, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
s.Store<vector<float16_t, 3> >(136u, vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]).zxy);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001D5F9C4A510(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,38 +15,38 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 3> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
return matrix<float16_t, 3, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_5(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -56,14 +56,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, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -75,6 +75,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@0x0000021282D17B60(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,52 +17,52 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -73,11 +73,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, 3, 4> 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, 3, 4> 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_3 = ((((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
@@ -93,6 +93,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@0x000001C15A92C5C0(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,52 +11,52 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 3, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -64,11 +64,11 @@ 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, 3, 4> 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, 3, 4> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_6 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -76,6 +76,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002CC6184FF70(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,19 +4,19 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 4> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
@@ -25,7 +25,7 @@ matrix<float16_t, 3, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 3> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 4, 3> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -36,6 +36,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 4>(ubo_load_7_xz[0], ubo_load_7_yw[0], ubo_load_7_xz[1], ubo_load_7_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002683960F9A0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,38 +25,38 @@ void d(vector<float16_t, 4> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -64,9 +64,9 @@ 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, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -77,6 +77,3 @@ void f() {
|
||||
e(vector<float16_t, 4>(ubo_load_7_xz[0], ubo_load_7_yw[0], ubo_load_7_xz[1], ubo_load_7_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000278FC792580(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,38 +11,38 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_1(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_5 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_3(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_5;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -50,15 +50,12 @@ 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, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
p[1].m[0] = vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]).ywxz;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000002605021E560(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,59 +11,59 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 3, 4> value) {
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 3, 4> value) {
|
||||
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), 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 + 8u), 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, 3, 4> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_6(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_10 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_8(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_10;
|
||||
const S tint_symbol = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -71,15 +71,12 @@ 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, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
s.Store<vector<float16_t, 4> >(136u, vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]).ywxz);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001FE54B10170(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,38 +15,38 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 3, 4> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 3, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
return matrix<float16_t, 3, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]));
|
||||
}
|
||||
|
||||
S tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
S u_load_1(uint offset) {
|
||||
const uint scalar_offset_3 = ((offset + 0u)) / 4;
|
||||
const uint scalar_offset_4 = ((offset + 64u)) / 4;
|
||||
const S tint_symbol_8 = {asint(buffer[scalar_offset_3 / 4][scalar_offset_3 % 4]), tint_symbol_5(buffer, (offset + 8u)), asint(buffer[scalar_offset_4 / 4][scalar_offset_4 % 4])};
|
||||
return tint_symbol_8;
|
||||
const S tint_symbol_3 = {asint(u[scalar_offset_3 / 4][scalar_offset_3 % 4]), u_load_3((offset + 8u)), asint(u[scalar_offset_4 / 4][scalar_offset_4 % 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;
|
||||
@@ -56,14 +56,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, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_6 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -75,6 +75,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@0x000001FEBFD6AE90(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -17,57 +17,57 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 4, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -78,11 +78,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, 3> 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, 3> 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))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_9 = a[scalar_offset_4 / 4];
|
||||
uint2 ubo_load_8 = ((scalar_offset_4 & 2) ? ubo_load_9.zw : ubo_load_9.xy);
|
||||
@@ -98,6 +98,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@0x00000236CB5C19B0(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,57 +11,57 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 4, 3> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -69,11 +69,11 @@ 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, 3> 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, 3> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_8 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -81,6 +81,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001CF48DE1160(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,24 +4,24 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
@@ -30,7 +30,7 @@ matrix<float16_t, 4, 3> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 3, 4> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 3, 4> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -41,6 +41,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 3>(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000023590C3D7E0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,43 +25,43 @@ void d(vector<float16_t, 3> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
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 + 8u)), 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 + 8u)), 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;
|
||||
@@ -69,9 +69,9 @@ 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, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -82,6 +82,3 @@ void f() {
|
||||
e(vector<float16_t, 3>(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001FF77F70B40(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,43 +11,43 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
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 + 8u)), 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 + 8u)), 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;
|
||||
@@ -55,15 +55,12 @@ 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, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
p[1].m[0] = vector<float16_t, 3>(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000019CC8F77C00(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,65 +11,65 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 3> value) {
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||
buffer.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 4, 3> value) {
|
||||
s.Store<vector<float16_t, 3> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 8u), value[1u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 16u), value[2u]);
|
||||
s.Store<vector<float16_t, 3> >((offset + 24u), value[3u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), 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 + 8u), 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, 3> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
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 + 8u)), 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 + 8u)), 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;
|
||||
@@ -77,15 +77,12 @@ 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, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
s.Store<vector<float16_t, 3> >(136u, vector<float16_t, 3>(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000168827ABEC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,43 +15,43 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 3> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 3> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
float16_t ubo_load_2_y = f16tof32(ubo_load_2[0] >> 16);
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16);
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16);
|
||||
return matrix<float16_t, 4, 3>(vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector<float16_t, 3>(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector<float16_t, 3>(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector<float16_t, 3>(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]));
|
||||
}
|
||||
|
||||
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 + 8u)), 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 + 8u)), 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;
|
||||
@@ -61,14 +61,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, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16);
|
||||
@@ -80,6 +80,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@0x000002136A44CFC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -17,57 +17,57 @@ int i() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_8(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 4, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -78,11 +78,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, 4> 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, 4> 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))) + (8u * uint(p_a_i_a_i_m_i_save)))) / 4;
|
||||
uint4 ubo_load_9 = a[scalar_offset_4 / 4];
|
||||
uint2 ubo_load_8 = ((scalar_offset_4 & 2) ? ubo_load_9.zw : ubo_load_9.xy);
|
||||
@@ -98,6 +98,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@0x0000022FAD9FCD80(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,57 +11,57 @@ cbuffer cbuffer_a : register(b0, space0) {
|
||||
uint4 a[64];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_4(uint4 buffer[64], uint offset) {
|
||||
matrix<float16_t, 4, 4> a_load_4(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = a[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = a[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = a[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = a[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -69,11 +69,11 @@ 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, 4> 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, 4> l_a_3_a_2_m = a_load_4(896u);
|
||||
uint2 ubo_load_8 = a[56].zw;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -81,6 +81,3 @@ void f() {
|
||||
const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF)));
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000015C09593480(2,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -4,24 +4,24 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[32];
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
@@ -30,7 +30,7 @@ matrix<float16_t, 4, 4> tint_symbol(uint4 buffer[32], uint offset) {
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
const matrix<float16_t, 4, 4> t = transpose(tint_symbol(u, 264u));
|
||||
const matrix<float16_t, 4, 4> t = transpose(u_load(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -41,6 +41,3 @@ void f() {
|
||||
const float16_t a = abs(vector<float16_t, 4>(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000025F14CDF3D0(5,8-16): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -25,43 +25,43 @@ void d(vector<float16_t, 4> v) {
|
||||
void e(float16_t f_1) {
|
||||
}
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
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 + 8u)), 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 + 8u)), 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;
|
||||
@@ -69,9 +69,9 @@ 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, 264u));
|
||||
a(u_load(0u));
|
||||
b(u_load_1(256u));
|
||||
c(u_load_3(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -82,6 +82,3 @@ void f() {
|
||||
e(vector<float16_t, 4>(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x00000151DEE459C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,43 +11,43 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
static S p[4] = (S[4])0;
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_3(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
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 + 8u)), 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 + 8u)), 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;
|
||||
@@ -55,15 +55,12 @@ 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, 264u);
|
||||
p = u_load(0u);
|
||||
p[1] = u_load_1(256u);
|
||||
p[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
p[1].m[0] = vector<float16_t, 4>(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz;
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x000001D8880F79A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -11,65 +11,65 @@ cbuffer cbuffer_u : register(b0, space0) {
|
||||
};
|
||||
RWByteAddressBuffer s : register(u1, space0);
|
||||
|
||||
void tint_symbol_3(RWByteAddressBuffer buffer, uint offset, matrix<float16_t, 4, 4> value) {
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||
buffer.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
||||
void s_store_3(uint offset, matrix<float16_t, 4, 4> value) {
|
||||
s.Store<vector<float16_t, 4> >((offset + 0u), value[0u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 8u), value[1u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 16u), value[2u]);
|
||||
s.Store<vector<float16_t, 4> >((offset + 24u), value[3u]);
|
||||
}
|
||||
|
||||
void tint_symbol_1(RWByteAddressBuffer buffer, uint offset, S value) {
|
||||
buffer.Store((offset + 0u), asuint(value.before));
|
||||
tint_symbol_3(buffer, (offset + 8u), 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 + 8u), 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, 4> tint_symbol_8(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
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 + 8u)), 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 + 8u)), 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;
|
||||
@@ -77,15 +77,12 @@ 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, 392u, tint_symbol_8(u, 264u));
|
||||
s_store(0u, u_load(0u));
|
||||
s_store_1(128u, u_load_1(256u));
|
||||
s_store_3(392u, u_load_3(264u));
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
s.Store<vector<float16_t, 4> >(136u, vector<float16_t, 4>(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz);
|
||||
return;
|
||||
}
|
||||
FXC validation failure:
|
||||
D:\Projects\RampUp\dawn\test\tint\buffer\Shader@0x0000013BAAFBAEB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
@@ -15,43 +15,43 @@ struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
matrix<float16_t, 4, 4> tint_symbol_5(uint4 buffer[32], uint offset) {
|
||||
matrix<float16_t, 4, 4> u_load_3(uint offset) {
|
||||
const uint scalar_offset = ((offset + 0u)) / 4;
|
||||
uint4 ubo_load_1 = buffer[scalar_offset / 4];
|
||||
uint4 ubo_load_1 = u[scalar_offset / 4];
|
||||
uint2 ubo_load = ((scalar_offset & 2) ? ubo_load_1.zw : ubo_load_1.xy);
|
||||
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_yw = vector<float16_t, 2>(f16tof32(ubo_load >> 16));
|
||||
const uint scalar_offset_1 = ((offset + 8u)) / 4;
|
||||
uint4 ubo_load_3 = buffer[scalar_offset_1 / 4];
|
||||
uint4 ubo_load_3 = u[scalar_offset_1 / 4];
|
||||
uint2 ubo_load_2 = ((scalar_offset_1 & 2) ? ubo_load_3.zw : ubo_load_3.xy);
|
||||
vector<float16_t, 2> ubo_load_2_xz = vector<float16_t, 2>(f16tof32(ubo_load_2 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_2_yw = vector<float16_t, 2>(f16tof32(ubo_load_2 >> 16));
|
||||
const uint scalar_offset_2 = ((offset + 16u)) / 4;
|
||||
uint4 ubo_load_5 = buffer[scalar_offset_2 / 4];
|
||||
uint4 ubo_load_5 = u[scalar_offset_2 / 4];
|
||||
uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy);
|
||||
vector<float16_t, 2> ubo_load_4_xz = vector<float16_t, 2>(f16tof32(ubo_load_4 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_4_yw = vector<float16_t, 2>(f16tof32(ubo_load_4 >> 16));
|
||||
const uint scalar_offset_3 = ((offset + 24u)) / 4;
|
||||
uint4 ubo_load_7 = buffer[scalar_offset_3 / 4];
|
||||
uint4 ubo_load_7 = u[scalar_offset_3 / 4];
|
||||
uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy);
|
||||
vector<float16_t, 2> ubo_load_6_xz = vector<float16_t, 2>(f16tof32(ubo_load_6 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_6_yw = vector<float16_t, 2>(f16tof32(ubo_load_6 >> 16));
|
||||
return matrix<float16_t, 4, 4>(vector<float16_t, 4>(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector<float16_t, 4>(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector<float16_t, 4>(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector<float16_t, 4>(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]));
|
||||
}
|
||||
|
||||
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 + 8u)), 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 + 8u)), 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;
|
||||
@@ -61,14 +61,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, 264u);
|
||||
w = u_load(0u);
|
||||
w[1] = u_load_1(256u);
|
||||
w[3].m = u_load_3(264u);
|
||||
uint2 ubo_load_8 = u[1].xy;
|
||||
vector<float16_t, 2> ubo_load_8_xz = vector<float16_t, 2>(f16tof32(ubo_load_8 & 0xFFFF));
|
||||
vector<float16_t, 2> ubo_load_8_yw = vector<float16_t, 2>(f16tof32(ubo_load_8 >> 16));
|
||||
@@ -80,6 +80,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@0x000001355D73AE70(3,10-18): error X3000: syntax error: unexpected token 'float16_t'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user