| SKIP: INVALID |
| |
| struct f_inputs { |
| uint tint_local_index : SV_GroupIndex; |
| }; |
| |
| |
| cbuffer cbuffer_u : register(b0) { |
| uint4 u[2]; |
| }; |
| groupshared matrix<float16_t, 4, 3> w; |
| vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) { |
| uint4 v = src; |
| uint4 mask = (65535u).xxxx; |
| uint4 shift = (16u).xxxx; |
| float4 t_low = f16tof32((v & mask)); |
| float4 t_high = f16tof32(((v >> shift) & mask)); |
| float16_t v_1 = float16_t(t_low.x); |
| float16_t v_2 = float16_t(t_high.x); |
| float16_t v_3 = float16_t(t_low.y); |
| return vector<float16_t, 4>(v_1, v_2, v_3, float16_t(t_high.y)); |
| } |
| |
| matrix<float16_t, 4, 3> v_4(uint start_byte_offset) { |
| vector<float16_t, 3> v_5 = tint_bitcast_to_f16(u[(start_byte_offset / 16u)]).xyz; |
| vector<float16_t, 3> v_6 = tint_bitcast_to_f16(u[((8u + start_byte_offset) / 16u)]).xyz; |
| vector<float16_t, 3> v_7 = tint_bitcast_to_f16(u[((16u + start_byte_offset) / 16u)]).xyz; |
| return matrix<float16_t, 4, 3>(v_5, v_6, v_7, tint_bitcast_to_f16(u[((24u + start_byte_offset) / 16u)]).xyz); |
| } |
| |
| void f_inner(uint tint_local_index) { |
| if ((tint_local_index == 0u)) { |
| w = matrix<float16_t, 4, 3>((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); |
| } |
| GroupMemoryBarrierWithGroupSync(); |
| w = v_4(0u); |
| w[int(1)] = tint_bitcast_to_f16(u[0u]).xyz; |
| w[int(1)] = tint_bitcast_to_f16(u[0u]).xyz.zxy; |
| w[int(0)][int(1)] = float16_t(f16tof32(u[0u].z)); |
| } |
| |
| [numthreads(1, 1, 1)] |
| void f(f_inputs inputs) { |
| f_inner(inputs.tint_local_index); |
| } |
| |
| FXC validation failure: |
| <scrubbed_path>(9,20-28): error X3000: syntax error: unexpected token 'float16_t' |
| |
| |
| tint executable returned error: exit status 1 |