diff --git a/test/tint/buffer/storage/dynamic_index/read_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/dynamic_index/read_f16.wgsl.expected.fxc.hlsl index d8c50a19f02..090d418b06d 100644 --- a/test/tint/buffer/storage/dynamic_index/read_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/dynamic_index/read_f16.wgsl.expected.fxc.hlsl @@ -1,6 +1,11 @@ SKIP: FAILED +int tint_ftoi(float v) { + return ((v < 2147483520.0f) ? ((v < -2147483648.0f) ? -2147483648 : int(v)) : 2147483647); +} + ByteAddressBuffer sb : register(t0); +RWByteAddressBuffer s : register(u1); struct tint_symbol_1 { uint idx : SV_GroupIndex; @@ -101,42 +106,43 @@ sb_load_35_ret sb_load_35(uint offset) { } void main_inner(uint idx) { - const float scalar_f32 = asfloat(sb.Load((800u * idx))); - const int scalar_i32 = asint(sb.Load(((800u * idx) + 4u))); - const uint scalar_u32 = sb.Load(((800u * idx) + 8u)); - const float16_t scalar_f16 = sb.Load(((800u * idx) + 12u)); - const float2 vec2_f32 = asfloat(sb.Load2(((800u * idx) + 16u))); - const int2 vec2_i32 = asint(sb.Load2(((800u * idx) + 24u))); - const uint2 vec2_u32 = sb.Load2(((800u * idx) + 32u)); - const vector vec2_f16 = sb.Load >(((800u * idx) + 40u)); - const float3 vec3_f32 = asfloat(sb.Load3(((800u * idx) + 48u))); - const int3 vec3_i32 = asint(sb.Load3(((800u * idx) + 64u))); - const uint3 vec3_u32 = sb.Load3(((800u * idx) + 80u)); - const vector vec3_f16 = sb.Load >(((800u * idx) + 96u)); - const float4 vec4_f32 = asfloat(sb.Load4(((800u * idx) + 112u))); - const int4 vec4_i32 = asint(sb.Load4(((800u * idx) + 128u))); - const uint4 vec4_u32 = sb.Load4(((800u * idx) + 144u)); - const vector vec4_f16 = sb.Load >(((800u * idx) + 160u)); - const float2x2 mat2x2_f32 = sb_load_16(((800u * idx) + 168u)); - const float2x3 mat2x3_f32 = sb_load_17(((800u * idx) + 192u)); - const float2x4 mat2x4_f32 = sb_load_18(((800u * idx) + 224u)); - const float3x2 mat3x2_f32 = sb_load_19(((800u * idx) + 256u)); - const float3x3 mat3x3_f32 = sb_load_20(((800u * idx) + 288u)); - const float3x4 mat3x4_f32 = sb_load_21(((800u * idx) + 336u)); - const float4x2 mat4x2_f32 = sb_load_22(((800u * idx) + 384u)); - const float4x3 mat4x3_f32 = sb_load_23(((800u * idx) + 416u)); - const float4x4 mat4x4_f32 = sb_load_24(((800u * idx) + 480u)); - const matrix mat2x2_f16 = sb_load_25(((800u * idx) + 544u)); - const matrix mat2x3_f16 = sb_load_26(((800u * idx) + 552u)); - const matrix mat2x4_f16 = sb_load_27(((800u * idx) + 568u)); - const matrix mat3x2_f16 = sb_load_28(((800u * idx) + 584u)); - const matrix mat3x3_f16 = sb_load_29(((800u * idx) + 600u)); - const matrix mat3x4_f16 = sb_load_30(((800u * idx) + 624u)); - const matrix mat4x2_f16 = sb_load_31(((800u * idx) + 648u)); - const matrix mat4x3_f16 = sb_load_32(((800u * idx) + 664u)); - const matrix mat4x4_f16 = sb_load_33(((800u * idx) + 696u)); - const float3 arr2_vec3_f32[2] = sb_load_34(((800u * idx) + 736u)); - const matrix arr2_mat4x2_f16[2] = sb_load_35(((800u * idx) + 768u)); + float scalar_f32 = asfloat(sb.Load((800u * idx))); + int scalar_i32 = asint(sb.Load(((800u * idx) + 4u))); + uint scalar_u32 = sb.Load(((800u * idx) + 8u)); + float16_t scalar_f16 = sb.Load(((800u * idx) + 12u)); + float2 vec2_f32 = asfloat(sb.Load2(((800u * idx) + 16u))); + int2 vec2_i32 = asint(sb.Load2(((800u * idx) + 24u))); + uint2 vec2_u32 = sb.Load2(((800u * idx) + 32u)); + vector vec2_f16 = sb.Load >(((800u * idx) + 40u)); + float3 vec3_f32 = asfloat(sb.Load3(((800u * idx) + 48u))); + int3 vec3_i32 = asint(sb.Load3(((800u * idx) + 64u))); + uint3 vec3_u32 = sb.Load3(((800u * idx) + 80u)); + vector vec3_f16 = sb.Load >(((800u * idx) + 96u)); + float4 vec4_f32 = asfloat(sb.Load4(((800u * idx) + 112u))); + int4 vec4_i32 = asint(sb.Load4(((800u * idx) + 128u))); + uint4 vec4_u32 = sb.Load4(((800u * idx) + 144u)); + vector vec4_f16 = sb.Load >(((800u * idx) + 160u)); + float2x2 mat2x2_f32 = sb_load_16(((800u * idx) + 168u)); + float2x3 mat2x3_f32 = sb_load_17(((800u * idx) + 192u)); + float2x4 mat2x4_f32 = sb_load_18(((800u * idx) + 224u)); + float3x2 mat3x2_f32 = sb_load_19(((800u * idx) + 256u)); + float3x3 mat3x3_f32 = sb_load_20(((800u * idx) + 288u)); + float3x4 mat3x4_f32 = sb_load_21(((800u * idx) + 336u)); + float4x2 mat4x2_f32 = sb_load_22(((800u * idx) + 384u)); + float4x3 mat4x3_f32 = sb_load_23(((800u * idx) + 416u)); + float4x4 mat4x4_f32 = sb_load_24(((800u * idx) + 480u)); + matrix mat2x2_f16 = sb_load_25(((800u * idx) + 544u)); + matrix mat2x3_f16 = sb_load_26(((800u * idx) + 552u)); + matrix mat2x4_f16 = sb_load_27(((800u * idx) + 568u)); + matrix mat3x2_f16 = sb_load_28(((800u * idx) + 584u)); + matrix mat3x3_f16 = sb_load_29(((800u * idx) + 600u)); + matrix mat3x4_f16 = sb_load_30(((800u * idx) + 624u)); + matrix mat4x2_f16 = sb_load_31(((800u * idx) + 648u)); + matrix mat4x3_f16 = sb_load_32(((800u * idx) + 664u)); + matrix mat4x4_f16 = sb_load_33(((800u * idx) + 696u)); + float3 arr2_vec3_f32[2] = sb_load_34(((800u * idx) + 736u)); + matrix arr2_mat4x2_f16[2] = sb_load_35(((800u * idx) + 768u)); + s.Store(0u, asuint((((((((((((((((((((((((((((((((((((tint_ftoi(scalar_f32) + scalar_i32) + int(scalar_u32)) + int(scalar_f16)) + tint_ftoi(vec2_f32.x)) + vec2_i32.x) + int(vec2_u32.x)) + int(vec2_f16.x)) + tint_ftoi(vec3_f32.y)) + vec3_i32.y) + int(vec3_u32.y)) + int(vec3_f16.y)) + tint_ftoi(vec4_f32.z)) + vec4_i32.z) + int(vec4_u32.z)) + int(vec4_f16.z)) + tint_ftoi(mat2x2_f32[0].x)) + tint_ftoi(mat2x3_f32[0].x)) + tint_ftoi(mat2x4_f32[0].x)) + tint_ftoi(mat3x2_f32[0].x)) + tint_ftoi(mat3x3_f32[0].x)) + tint_ftoi(mat3x4_f32[0].x)) + tint_ftoi(mat4x2_f32[0].x)) + tint_ftoi(mat4x3_f32[0].x)) + tint_ftoi(mat4x4_f32[0].x)) + int(mat2x2_f16[0].x)) + int(mat2x3_f16[0].x)) + int(mat2x4_f16[0].x)) + int(mat3x2_f16[0].x)) + int(mat3x3_f16[0].x)) + int(mat3x4_f16[0].x)) + int(mat4x2_f16[0].x)) + int(mat4x3_f16[0].x)) + int(mat4x4_f16[0].x)) + int(arr2_mat4x2_f16[0][0].x)) + tint_ftoi(arr2_vec3_f32[0].x)))); } [numthreads(1, 1, 1)] @@ -144,3 +150,6 @@ void main(tint_symbol_1 tint_symbol) { main_inner(tint_symbol.idx); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020BC8A3A850(48,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/storage/dynamic_index/read_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/dynamic_index/read_f16.wgsl.expected.ir.fxc.hlsl index 0a09648868c..286d7f5ca9c 100644 --- a/test/tint/buffer/storage/dynamic_index/read_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/dynamic_index/read_f16.wgsl.expected.ir.fxc.hlsl @@ -246,5 +246,5 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001DDC5FAA170(12,21-29): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001F1DF34C140(12,21-29): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/storage/dynamic_index/write_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/dynamic_index/write_f16.wgsl.expected.fxc.hlsl index 42ff4449f89..9ae8cab9197 100644 --- a/test/tint/buffer/storage/dynamic_index/write_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/dynamic_index/write_f16.wgsl.expected.fxc.hlsl @@ -138,15 +138,15 @@ void main_inner(uint idx) { sb.Store(((800u * idx) + 8u), asuint(0u)); sb.Store(((800u * idx) + 12u), float16_t(0.0h)); sb.Store2(((800u * idx) + 16u), asuint((0.0f).xx)); - sb.Store2(((800u * idx) + 24u), asuint((0).xx)); + sb.Store2(((800u * idx) + 24u), asuint(int2((0).xx))); sb.Store2(((800u * idx) + 32u), asuint((0u).xx)); sb.Store >(((800u * idx) + 40u), (float16_t(0.0h)).xx); sb.Store3(((800u * idx) + 48u), asuint((0.0f).xxx)); - sb.Store3(((800u * idx) + 64u), asuint((0).xxx)); + sb.Store3(((800u * idx) + 64u), asuint(int3((0).xxx))); sb.Store3(((800u * idx) + 80u), asuint((0u).xxx)); sb.Store >(((800u * idx) + 96u), (float16_t(0.0h)).xxx); sb.Store4(((800u * idx) + 112u), asuint((0.0f).xxxx)); - sb.Store4(((800u * idx) + 128u), asuint((0).xxxx)); + sb.Store4(((800u * idx) + 128u), asuint(int4((0).xxxx))); sb.Store4(((800u * idx) + 144u), asuint((0u).xxxx)); sb.Store >(((800u * idx) + 160u), (float16_t(0.0h)).xxxx); sb_store_16(((800u * idx) + 168u), float2x2((0.0f).xx, (0.0f).xx)); @@ -167,9 +167,9 @@ void main_inner(uint idx) { sb_store_31(((800u * idx) + 648u), matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx)); sb_store_32(((800u * idx) + 664u), matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx)); sb_store_33(((800u * idx) + 696u), matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx)); - const float3 tint_symbol_2[2] = (float3[2])0; + float3 tint_symbol_2[2] = (float3[2])0; sb_store_34(((800u * idx) + 736u), tint_symbol_2); - const matrix tint_symbol_3[2] = (matrix[2])0; + matrix tint_symbol_3[2] = (matrix[2])0; sb_store_35(((800u * idx) + 768u), tint_symbol_3); } @@ -178,3 +178,7 @@ void main(tint_symbol_1 tint_symbol) { main_inner(tint_symbol.idx); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023E8772C480(61,38-46): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023E8772C480(62,3-10): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/dynamic_index/write_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/dynamic_index/write_f16.wgsl.expected.ir.fxc.hlsl index fded716b568..68c0b8c1bc7 100644 --- a/test/tint/buffer/storage/dynamic_index/write_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/dynamic_index/write_f16.wgsl.expected.ir.fxc.hlsl @@ -205,6 +205,6 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001E3A924A9E0(7,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001E3A924A9E0(8,3-10): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001F73B20B3A0(7,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F73B20B3A0(8,3-10): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/static_index/read_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/static_index/read_f16.wgsl.expected.fxc.hlsl index 8c94db2baec..3d4b2241446 100644 --- a/test/tint/buffer/storage/static_index/read_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/static_index/read_f16.wgsl.expected.fxc.hlsl @@ -1,5 +1,9 @@ SKIP: FAILED +int tint_ftoi(float v) { + return ((v < 2147483520.0f) ? ((v < -2147483648.0f) ? -2147483648 : int(v)) : 2147483647); +} + struct Inner { int scalar_i32; float scalar_f32; @@ -7,6 +11,7 @@ struct Inner { }; ByteAddressBuffer sb : register(t0); +RWByteAddressBuffer s : register(u1); float2x2 sb_load_16(uint offset) { return float2x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u)))); @@ -103,7 +108,7 @@ sb_load_35_ret sb_load_35(uint offset) { } Inner sb_load_36(uint offset) { - const Inner tint_symbol = {asint(sb.Load((offset + 0u))), asfloat(sb.Load((offset + 4u))), sb.Load((offset + 8u))}; + Inner tint_symbol = {asint(sb.Load((offset + 0u))), asfloat(sb.Load((offset + 4u))), sb.Load((offset + 8u))}; return tint_symbol; } @@ -120,43 +125,47 @@ sb_load_37_ret sb_load_37(uint offset) { [numthreads(1, 1, 1)] void main() { - const float scalar_f32 = asfloat(sb.Load(0u)); - const int scalar_i32 = asint(sb.Load(4u)); - const uint scalar_u32 = sb.Load(8u); - const float16_t scalar_f16 = sb.Load(12u); - const float2 vec2_f32 = asfloat(sb.Load2(16u)); - const int2 vec2_i32 = asint(sb.Load2(24u)); - const uint2 vec2_u32 = sb.Load2(32u); - const vector vec2_f16 = sb.Load >(40u); - const float3 vec3_f32 = asfloat(sb.Load3(48u)); - const int3 vec3_i32 = asint(sb.Load3(64u)); - const uint3 vec3_u32 = sb.Load3(80u); - const vector vec3_f16 = sb.Load >(96u); - const float4 vec4_f32 = asfloat(sb.Load4(112u)); - const int4 vec4_i32 = asint(sb.Load4(128u)); - const uint4 vec4_u32 = sb.Load4(144u); - const vector vec4_f16 = sb.Load >(160u); - const float2x2 mat2x2_f32 = sb_load_16(168u); - const float2x3 mat2x3_f32 = sb_load_17(192u); - const float2x4 mat2x4_f32 = sb_load_18(224u); - const float3x2 mat3x2_f32 = sb_load_19(256u); - const float3x3 mat3x3_f32 = sb_load_20(288u); - const float3x4 mat3x4_f32 = sb_load_21(336u); - const float4x2 mat4x2_f32 = sb_load_22(384u); - const float4x3 mat4x3_f32 = sb_load_23(416u); - const float4x4 mat4x4_f32 = sb_load_24(480u); - const matrix mat2x2_f16 = sb_load_25(544u); - const matrix mat2x3_f16 = sb_load_26(552u); - const matrix mat2x4_f16 = sb_load_27(568u); - const matrix mat3x2_f16 = sb_load_28(584u); - const matrix mat3x3_f16 = sb_load_29(600u); - const matrix mat3x4_f16 = sb_load_30(624u); - const matrix mat4x2_f16 = sb_load_31(648u); - const matrix mat4x3_f16 = sb_load_32(664u); - const matrix mat4x4_f16 = sb_load_33(696u); - const float3 arr2_vec3_f32[2] = sb_load_34(736u); - const matrix arr2_mat4x2_f16[2] = sb_load_35(768u); - const Inner struct_inner = sb_load_36(800u); - const Inner array_struct_inner[4] = sb_load_37(812u); + float scalar_f32 = asfloat(sb.Load(0u)); + int scalar_i32 = asint(sb.Load(4u)); + uint scalar_u32 = sb.Load(8u); + float16_t scalar_f16 = sb.Load(12u); + float2 vec2_f32 = asfloat(sb.Load2(16u)); + int2 vec2_i32 = asint(sb.Load2(24u)); + uint2 vec2_u32 = sb.Load2(32u); + vector vec2_f16 = sb.Load >(40u); + float3 vec3_f32 = asfloat(sb.Load3(48u)); + int3 vec3_i32 = asint(sb.Load3(64u)); + uint3 vec3_u32 = sb.Load3(80u); + vector vec3_f16 = sb.Load >(96u); + float4 vec4_f32 = asfloat(sb.Load4(112u)); + int4 vec4_i32 = asint(sb.Load4(128u)); + uint4 vec4_u32 = sb.Load4(144u); + vector vec4_f16 = sb.Load >(160u); + float2x2 mat2x2_f32 = sb_load_16(168u); + float2x3 mat2x3_f32 = sb_load_17(192u); + float2x4 mat2x4_f32 = sb_load_18(224u); + float3x2 mat3x2_f32 = sb_load_19(256u); + float3x3 mat3x3_f32 = sb_load_20(288u); + float3x4 mat3x4_f32 = sb_load_21(336u); + float4x2 mat4x2_f32 = sb_load_22(384u); + float4x3 mat4x3_f32 = sb_load_23(416u); + float4x4 mat4x4_f32 = sb_load_24(480u); + matrix mat2x2_f16 = sb_load_25(544u); + matrix mat2x3_f16 = sb_load_26(552u); + matrix mat2x4_f16 = sb_load_27(568u); + matrix mat3x2_f16 = sb_load_28(584u); + matrix mat3x3_f16 = sb_load_29(600u); + matrix mat3x4_f16 = sb_load_30(624u); + matrix mat4x2_f16 = sb_load_31(648u); + matrix mat4x3_f16 = sb_load_32(664u); + matrix mat4x4_f16 = sb_load_33(696u); + float3 arr2_vec3_f32[2] = sb_load_34(736u); + matrix arr2_mat4x2_f16[2] = sb_load_35(768u); + Inner struct_inner = sb_load_36(800u); + Inner array_struct_inner[4] = sb_load_37(812u); + s.Store(0u, asuint((((((((((((((((((((((((((((((((((((((tint_ftoi(scalar_f32) + scalar_i32) + int(scalar_u32)) + int(scalar_f16)) + tint_ftoi(vec2_f32.x)) + vec2_i32.x) + int(vec2_u32.x)) + int(vec2_f16.x)) + tint_ftoi(vec3_f32.y)) + vec3_i32.y) + int(vec3_u32.y)) + int(vec3_f16.y)) + tint_ftoi(vec4_f32.z)) + vec4_i32.z) + int(vec4_u32.z)) + int(vec4_f16.z)) + tint_ftoi(mat2x2_f32[0].x)) + tint_ftoi(mat2x3_f32[0].x)) + tint_ftoi(mat2x4_f32[0].x)) + tint_ftoi(mat3x2_f32[0].x)) + tint_ftoi(mat3x3_f32[0].x)) + tint_ftoi(mat3x4_f32[0].x)) + tint_ftoi(mat4x2_f32[0].x)) + tint_ftoi(mat4x3_f32[0].x)) + tint_ftoi(mat4x4_f32[0].x)) + int(mat2x2_f16[0].x)) + int(mat2x3_f16[0].x)) + int(mat2x4_f16[0].x)) + int(mat3x2_f16[0].x)) + int(mat3x3_f16[0].x)) + int(mat3x4_f16[0].x)) + int(mat4x2_f16[0].x)) + int(mat4x3_f16[0].x)) + int(mat4x4_f16[0].x)) + tint_ftoi(arr2_vec3_f32[0].x)) + int(arr2_mat4x2_f16[0][0].x)) + struct_inner.scalar_i32) + array_struct_inner[0].scalar_i32))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002378BE1EBB0(8,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/storage/static_index/read_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/static_index/read_f16.wgsl.expected.ir.fxc.hlsl index bdd98ab9720..8613ca6e44e 100644 --- a/test/tint/buffer/storage/static_index/read_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/static_index/read_f16.wgsl.expected.ir.fxc.hlsl @@ -278,5 +278,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029A7FB9CFD0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000019D44DA5220(4,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/storage/static_index/write_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/static_index/write_f16.wgsl.expected.fxc.hlsl index 7d5c0b93880..d3bb3e2bffc 100644 --- a/test/tint/buffer/storage/static_index/write_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/static_index/write_f16.wgsl.expected.fxc.hlsl @@ -156,15 +156,15 @@ void main() { sb.Store(8u, asuint(0u)); sb.Store(12u, float16_t(0.0h)); sb.Store2(16u, asuint((0.0f).xx)); - sb.Store2(24u, asuint((0).xx)); + sb.Store2(24u, asuint(int2((0).xx))); sb.Store2(32u, asuint((0u).xx)); sb.Store >(40u, (float16_t(0.0h)).xx); sb.Store3(48u, asuint((0.0f).xxx)); - sb.Store3(64u, asuint((0).xxx)); + sb.Store3(64u, asuint(int3((0).xxx))); sb.Store3(80u, asuint((0u).xxx)); sb.Store >(96u, (float16_t(0.0h)).xxx); sb.Store4(112u, asuint((0.0f).xxxx)); - sb.Store4(128u, asuint((0).xxxx)); + sb.Store4(128u, asuint(int4((0).xxxx))); sb.Store4(144u, asuint((0u).xxxx)); sb.Store >(160u, (float16_t(0.0h)).xxxx); sb_store_16(168u, float2x2((0.0f).xx, (0.0f).xx)); @@ -185,13 +185,16 @@ void main() { sb_store_31(648u, matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx)); sb_store_32(664u, matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx)); sb_store_33(696u, matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx)); - const float3 tint_symbol[2] = (float3[2])0; + float3 tint_symbol[2] = (float3[2])0; sb_store_34(736u, tint_symbol); - const matrix tint_symbol_1[2] = (matrix[2])0; + matrix tint_symbol_1[2] = (matrix[2])0; sb_store_35(768u, tint_symbol_1); - const Inner tint_symbol_2 = (Inner)0; + Inner tint_symbol_2 = (Inner)0; sb_store_36(800u, tint_symbol_2); - const Inner tint_symbol_3[4] = (Inner[4])0; + Inner tint_symbol_3[4] = (Inner[4])0; sb_store_37(812u, tint_symbol_3); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A572716CC0(4,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/storage/static_index/write_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/static_index/write_f16.wgsl.expected.ir.fxc.hlsl index e250fd955e5..362c2b355ad 100644 --- a/test/tint/buffer/storage/static_index/write_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/static_index/write_f16.wgsl.expected.ir.fxc.hlsl @@ -224,5 +224,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019D10B18DB0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000023DEC8FA870(4,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/storage/types/array4_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/array4_f16.wgsl.expected.fxc.hlsl index 6633a27fb64..3655454b7cc 100644 --- a/test/tint/buffer/storage/types/array4_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/array4_f16.wgsl.expected.fxc.hlsl @@ -28,3 +28,6 @@ void main() { tint_symbol_1_store(0u, tint_symbol_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000015AA2BE4420(4,39-47): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/storage/types/array4_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/array4_f16.wgsl.expected.ir.fxc.hlsl index e1f1f21d6df..a1a31f941fc 100644 --- a/test/tint/buffer/storage/types/array4_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/array4_f16.wgsl.expected.ir.fxc.hlsl @@ -50,5 +50,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000014000C3E830(4,21-29): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000295E8A0C8E0(4,21-29): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/storage/types/f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/f16.wgsl.expected.fxc.hlsl index e7f88743864..18b7a9be057 100644 --- a/test/tint/buffer/storage/types/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void main() { tint_symbol_1.Store(0u, tint_symbol.Load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024D32420560(6,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/f16.wgsl.expected.ir.fxc.hlsl index 4e2bf44c686..f0c85e061ad 100644 --- a/test/tint/buffer/storage/types/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/f16.wgsl.expected.ir.fxc.hlsl @@ -9,5 +9,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018D8C9B3B30(6,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000014881472E20(6,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/mat2x2_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat2x2_f16.wgsl.expected.fxc.hlsl index 13b6e825e59..e695c469fdb 100644 --- a/test/tint/buffer/storage/types/mat2x2_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat2x2_f16.wgsl.expected.fxc.hlsl @@ -17,3 +17,7 @@ void main() { tint_symbol_1_store(0u, tint_symbol_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CCD84DD750(4,46-54): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CCD84DD750(5,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/mat2x2_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/mat2x2_f16.wgsl.expected.ir.fxc.hlsl index cc73ddbd3cc..7ac749c95d8 100644 --- a/test/tint/buffer/storage/types/mat2x2_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat2x2_f16.wgsl.expected.ir.fxc.hlsl @@ -19,6 +19,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000291B00EED40(4,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000291B00EED40(5,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001E2666938C0(4,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E2666938C0(5,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/mat2x3_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat2x3_f16.wgsl.expected.fxc.hlsl index c3a50cf104d..3f501c82ac0 100644 --- a/test/tint/buffer/storage/types/mat2x3_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat2x3_f16.wgsl.expected.fxc.hlsl @@ -17,3 +17,7 @@ void main() { tint_symbol_1_store(0u, tint_symbol_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A95EA6F920(4,46-54): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A95EA6F920(5,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/mat2x3_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/mat2x3_f16.wgsl.expected.ir.fxc.hlsl index 368026a5527..bf8c17b5ea3 100644 --- a/test/tint/buffer/storage/types/mat2x3_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat2x3_f16.wgsl.expected.ir.fxc.hlsl @@ -19,6 +19,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000229646F9710(4,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000229646F9710(5,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001EFD0F6FB00(4,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EFD0F6FB00(5,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/mat2x4_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat2x4_f16.wgsl.expected.fxc.hlsl index e1915f18462..c99fa42f586 100644 --- a/test/tint/buffer/storage/types/mat2x4_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat2x4_f16.wgsl.expected.fxc.hlsl @@ -17,3 +17,7 @@ void main() { tint_symbol_1_store(0u, tint_symbol_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002876BA3FE90(4,46-54): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002876BA3FE90(5,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/mat2x4_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/mat2x4_f16.wgsl.expected.ir.fxc.hlsl index 38adddc9677..c0788bbaeec 100644 --- a/test/tint/buffer/storage/types/mat2x4_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat2x4_f16.wgsl.expected.ir.fxc.hlsl @@ -19,6 +19,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019F1F819A70(4,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000019F1F819A70(5,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000018C09D6D0E0(4,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018C09D6D0E0(5,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/mat3x2_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat3x2_f16.wgsl.expected.fxc.hlsl index f17ef3ebede..40255a5e395 100644 --- a/test/tint/buffer/storage/types/mat3x2_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat3x2_f16.wgsl.expected.fxc.hlsl @@ -18,3 +18,7 @@ void main() { tint_symbol_1_store(0u, tint_symbol_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018ABB22B940(4,46-54): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018ABB22B940(5,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/mat3x2_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/mat3x2_f16.wgsl.expected.ir.fxc.hlsl index dd793b73229..71ca298c841 100644 --- a/test/tint/buffer/storage/types/mat3x2_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat3x2_f16.wgsl.expected.ir.fxc.hlsl @@ -21,6 +21,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FF8777EFA0(4,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001FF8777EFA0(5,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001F1DB30FFA0(4,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F1DB30FFA0(5,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/mat3x3_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat3x3_f16.wgsl.expected.fxc.hlsl index ce1148735fa..9631df7cead 100644 --- a/test/tint/buffer/storage/types/mat3x3_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat3x3_f16.wgsl.expected.fxc.hlsl @@ -18,3 +18,7 @@ void main() { tint_symbol_1_store(0u, tint_symbol_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021ED2BDA6C0(4,46-54): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021ED2BDA6C0(5,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/mat3x3_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/mat3x3_f16.wgsl.expected.ir.fxc.hlsl index ba1137b9760..6c5dcd63d3d 100644 --- a/test/tint/buffer/storage/types/mat3x3_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat3x3_f16.wgsl.expected.ir.fxc.hlsl @@ -21,6 +21,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026F3618F350(4,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000026F3618F350(5,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000018D7D5038C0(4,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018D7D5038C0(5,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/mat3x4_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat3x4_f16.wgsl.expected.fxc.hlsl index 50b52d52e82..8ad9fb88e33 100644 --- a/test/tint/buffer/storage/types/mat3x4_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat3x4_f16.wgsl.expected.fxc.hlsl @@ -18,3 +18,7 @@ void main() { tint_symbol_1_store(0u, tint_symbol_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000122C8D4B330(4,46-54): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000122C8D4B330(5,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/mat3x4_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/mat3x4_f16.wgsl.expected.ir.fxc.hlsl index 8bfe06717a3..23422adc90b 100644 --- a/test/tint/buffer/storage/types/mat3x4_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat3x4_f16.wgsl.expected.ir.fxc.hlsl @@ -21,6 +21,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017D349BEEC0(4,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000017D349BEEC0(5,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000002B32B12FB00(4,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B32B12FB00(5,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/mat4x2_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat4x2_f16.wgsl.expected.fxc.hlsl index d8ae568edef..cade1764f20 100644 --- a/test/tint/buffer/storage/types/mat4x2_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat4x2_f16.wgsl.expected.fxc.hlsl @@ -19,3 +19,7 @@ void main() { tint_symbol_1_store(0u, tint_symbol_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F1DA9C3CA0(4,46-54): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F1DA9C3CA0(5,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/mat4x2_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/mat4x2_f16.wgsl.expected.ir.fxc.hlsl index 7e676f26afe..0f174c3ad8f 100644 --- a/test/tint/buffer/storage/types/mat4x2_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat4x2_f16.wgsl.expected.ir.fxc.hlsl @@ -23,6 +23,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E66D5AF120(4,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001E66D5AF120(5,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000027B5E3F4CE0(4,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027B5E3F4CE0(5,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/mat4x3_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat4x3_f16.wgsl.expected.fxc.hlsl index e43970a2744..70a8f221b5d 100644 --- a/test/tint/buffer/storage/types/mat4x3_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat4x3_f16.wgsl.expected.fxc.hlsl @@ -19,3 +19,7 @@ void main() { tint_symbol_1_store(0u, tint_symbol_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001857575B940(4,46-54): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001857575B940(5,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/mat4x3_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/mat4x3_f16.wgsl.expected.ir.fxc.hlsl index d01b42359cc..0ad08abb833 100644 --- a/test/tint/buffer/storage/types/mat4x3_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat4x3_f16.wgsl.expected.ir.fxc.hlsl @@ -23,6 +23,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001442C35E280(4,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001442C35E280(5,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000021122484CE0(4,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021122484CE0(5,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/mat4x4_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/mat4x4_f16.wgsl.expected.fxc.hlsl index ad8c9864cd8..fc533881812 100644 --- a/test/tint/buffer/storage/types/mat4x4_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat4x4_f16.wgsl.expected.fxc.hlsl @@ -19,3 +19,7 @@ void main() { tint_symbol_1_store(0u, tint_symbol_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002681375D2C0(4,46-54): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002681375D2C0(5,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/mat4x4_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/mat4x4_f16.wgsl.expected.ir.fxc.hlsl index dec251461c0..0d9214286d9 100644 --- a/test/tint/buffer/storage/types/mat4x4_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/mat4x4_f16.wgsl.expected.ir.fxc.hlsl @@ -23,6 +23,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027CB4F69350(4,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000027CB4F69350(5,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001D55B645FF0(4,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D55B645FF0(5,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/runtime_array_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/runtime_array_f16.wgsl.expected.fxc.hlsl index e7f88743864..975336339c6 100644 --- a/test/tint/buffer/storage/types/runtime_array_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/runtime_array_f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void main() { tint_symbol_1.Store(0u, tint_symbol.Load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BB547FFCE0(6,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/runtime_array_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/runtime_array_f16.wgsl.expected.ir.fxc.hlsl index bf46860ade3..b08308245c3 100644 --- a/test/tint/buffer/storage/types/runtime_array_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/runtime_array_f16.wgsl.expected.ir.fxc.hlsl @@ -9,5 +9,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002871BF91440(6,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001C77B0A2790(6,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/struct_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/struct_f16.wgsl.expected.fxc.hlsl index 3014b311391..385fae89ce3 100644 --- a/test/tint/buffer/storage/types/struct_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/struct_f16.wgsl.expected.fxc.hlsl @@ -17,12 +17,12 @@ matrix tint_symbol_load_4(uint offset) { } Inner tint_symbol_load_1(uint offset) { - const Inner tint_symbol_2 = {tint_symbol.Load((offset + 0u)), tint_symbol.Load >((offset + 8u)), tint_symbol_load_4((offset + 16u))}; + Inner tint_symbol_2 = {tint_symbol.Load((offset + 0u)), tint_symbol.Load >((offset + 8u)), tint_symbol_load_4((offset + 16u))}; return tint_symbol_2; } S tint_symbol_load(uint offset) { - const S tint_symbol_3 = {tint_symbol_load_1((offset + 0u))}; + S tint_symbol_3 = {tint_symbol_load_1((offset + 0u))}; return tint_symbol_3; } @@ -43,7 +43,10 @@ void tint_symbol_1_store(uint offset, S value) { [numthreads(1, 1, 1)] void main() { - const S t = tint_symbol_load(0u); + S t = tint_symbol_load(0u); tint_symbol_1_store(0u, t); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000212B65B1490(2,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/storage/types/struct_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/struct_f16.wgsl.expected.ir.fxc.hlsl index 79f28645e62..5e185055e9c 100644 --- a/test/tint/buffer/storage/types/struct_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/struct_f16.wgsl.expected.ir.fxc.hlsl @@ -55,5 +55,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C2DB29E6D0(2,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001EC988E4CD0(2,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/storage/types/vec2_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/vec2_f16.wgsl.expected.fxc.hlsl index d464cebc200..9d5ceebcf59 100644 --- a/test/tint/buffer/storage/types/vec2_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/vec2_f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void main() { tint_symbol_1.Store >(0u, tint_symbol.Load >(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018882BC0670(6,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/vec2_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/vec2_f16.wgsl.expected.ir.fxc.hlsl index 512de9f6df4..f91eb093f88 100644 --- a/test/tint/buffer/storage/types/vec2_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/vec2_f16.wgsl.expected.ir.fxc.hlsl @@ -9,5 +9,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019326C9E7E0(6,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000020F8A503780(6,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/vec3_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/vec3_f16.wgsl.expected.fxc.hlsl index c144b7c392e..e65d6b27038 100644 --- a/test/tint/buffer/storage/types/vec3_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/vec3_f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void main() { tint_symbol_1.Store >(0u, tint_symbol.Load >(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001ED9B3CFF20(6,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/vec3_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/vec3_f16.wgsl.expected.ir.fxc.hlsl index 927ae5e29cc..0ed3b131540 100644 --- a/test/tint/buffer/storage/types/vec3_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/vec3_f16.wgsl.expected.ir.fxc.hlsl @@ -9,5 +9,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A26A21F140(6,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000002AE00E53750(6,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/storage/types/vec4_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/storage/types/vec4_f16.wgsl.expected.fxc.hlsl index ac48c67da11..7ed9688f872 100644 --- a/test/tint/buffer/storage/types/vec4_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/storage/types/vec4_f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void main() { tint_symbol_1.Store >(0u, tint_symbol.Load >(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017A82EC0120(6,3-21): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/storage/types/vec4_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/storage/types/vec4_f16.wgsl.expected.ir.fxc.hlsl index 6e6f6b5c1d1..57aecfe340a 100644 --- a/test/tint/buffer/storage/types/vec4_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/storage/types/vec4_f16.wgsl.expected.ir.fxc.hlsl @@ -9,5 +9,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016F2555E870(6,3-21): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000023086413060(6,3-21): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/uniform/dynamic_index/read_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/dynamic_index/read_f16.wgsl.expected.fxc.hlsl index d46e10ebd64..b6494e58cb5 100644 --- a/test/tint/buffer/uniform/dynamic_index/read_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/dynamic_index/read_f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,13 @@ SKIP: FAILED +int tint_ftoi(float v) { + return ((v < 2147483520.0f) ? ((v < -2147483648.0f) ? -2147483648 : int(v)) : 2147483647); +} + cbuffer cbuffer_ub : register(b0) { uint4 ub[400]; }; +RWByteAddressBuffer s : register(u1); struct tint_symbol_1 { uint idx : SV_GroupIndex; @@ -249,70 +254,71 @@ ub_load_35_ret ub_load_35(uint offset) { void main_inner(uint idx) { const uint scalar_offset_55 = ((800u * idx)) / 4; - const float scalar_f32 = asfloat(ub[scalar_offset_55 / 4][scalar_offset_55 % 4]); + float scalar_f32 = asfloat(ub[scalar_offset_55 / 4][scalar_offset_55 % 4]); const uint scalar_offset_56 = (((800u * idx) + 4u)) / 4; - const int scalar_i32 = asint(ub[scalar_offset_56 / 4][scalar_offset_56 % 4]); + int scalar_i32 = asint(ub[scalar_offset_56 / 4][scalar_offset_56 % 4]); const uint scalar_offset_57 = (((800u * idx) + 8u)) / 4; - const uint scalar_u32 = ub[scalar_offset_57 / 4][scalar_offset_57 % 4]; + uint scalar_u32 = ub[scalar_offset_57 / 4][scalar_offset_57 % 4]; const uint scalar_offset_bytes = (((800u * idx) + 12u)); const uint scalar_offset_index = scalar_offset_bytes / 4; - const float16_t scalar_f16 = float16_t(f16tof32(((ub[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF))); + float16_t scalar_f16 = float16_t(f16tof32(((ub[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF))); const uint scalar_offset_58 = (((800u * idx) + 16u)) / 4; uint4 ubo_load_54 = ub[scalar_offset_58 / 4]; - const float2 vec2_f32 = asfloat(((scalar_offset_58 & 2) ? ubo_load_54.zw : ubo_load_54.xy)); + float2 vec2_f32 = asfloat(((scalar_offset_58 & 2) ? ubo_load_54.zw : ubo_load_54.xy)); const uint scalar_offset_59 = (((800u * idx) + 24u)) / 4; uint4 ubo_load_55 = ub[scalar_offset_59 / 4]; - const int2 vec2_i32 = asint(((scalar_offset_59 & 2) ? ubo_load_55.zw : ubo_load_55.xy)); + int2 vec2_i32 = asint(((scalar_offset_59 & 2) ? ubo_load_55.zw : ubo_load_55.xy)); const uint scalar_offset_60 = (((800u * idx) + 32u)) / 4; uint4 ubo_load_56 = ub[scalar_offset_60 / 4]; - const uint2 vec2_u32 = ((scalar_offset_60 & 2) ? ubo_load_56.zw : ubo_load_56.xy); + uint2 vec2_u32 = ((scalar_offset_60 & 2) ? ubo_load_56.zw : ubo_load_56.xy); const uint scalar_offset_61 = (((800u * idx) + 40u)) / 4; uint ubo_load_57 = ub[scalar_offset_61 / 4][scalar_offset_61 % 4]; - const vector vec2_f16 = vector(float16_t(f16tof32(ubo_load_57 & 0xFFFF)), float16_t(f16tof32(ubo_load_57 >> 16))); + vector vec2_f16 = vector(float16_t(f16tof32(ubo_load_57 & 0xFFFF)), float16_t(f16tof32(ubo_load_57 >> 16))); const uint scalar_offset_62 = (((800u * idx) + 48u)) / 4; - const float3 vec3_f32 = asfloat(ub[scalar_offset_62 / 4].xyz); + float3 vec3_f32 = asfloat(ub[scalar_offset_62 / 4].xyz); const uint scalar_offset_63 = (((800u * idx) + 64u)) / 4; - const int3 vec3_i32 = asint(ub[scalar_offset_63 / 4].xyz); + int3 vec3_i32 = asint(ub[scalar_offset_63 / 4].xyz); const uint scalar_offset_64 = (((800u * idx) + 80u)) / 4; - const uint3 vec3_u32 = ub[scalar_offset_64 / 4].xyz; + uint3 vec3_u32 = ub[scalar_offset_64 / 4].xyz; const uint scalar_offset_65 = (((800u * idx) + 96u)) / 4; uint4 ubo_load_59 = ub[scalar_offset_65 / 4]; uint2 ubo_load_58 = ((scalar_offset_65 & 2) ? ubo_load_59.zw : ubo_load_59.xy); vector ubo_load_58_xz = vector(f16tof32(ubo_load_58 & 0xFFFF)); float16_t ubo_load_58_y = f16tof32(ubo_load_58[0] >> 16); - const vector vec3_f16 = vector(ubo_load_58_xz[0], ubo_load_58_y, ubo_load_58_xz[1]); + vector vec3_f16 = vector(ubo_load_58_xz[0], ubo_load_58_y, ubo_load_58_xz[1]); const uint scalar_offset_66 = (((800u * idx) + 112u)) / 4; - const float4 vec4_f32 = asfloat(ub[scalar_offset_66 / 4]); + float4 vec4_f32 = asfloat(ub[scalar_offset_66 / 4]); const uint scalar_offset_67 = (((800u * idx) + 128u)) / 4; - const int4 vec4_i32 = asint(ub[scalar_offset_67 / 4]); + int4 vec4_i32 = asint(ub[scalar_offset_67 / 4]); const uint scalar_offset_68 = (((800u * idx) + 144u)) / 4; - const uint4 vec4_u32 = ub[scalar_offset_68 / 4]; + uint4 vec4_u32 = ub[scalar_offset_68 / 4]; const uint scalar_offset_69 = (((800u * idx) + 160u)) / 4; uint4 ubo_load_61 = ub[scalar_offset_69 / 4]; uint2 ubo_load_60 = ((scalar_offset_69 & 2) ? ubo_load_61.zw : ubo_load_61.xy); vector ubo_load_60_xz = vector(f16tof32(ubo_load_60 & 0xFFFF)); vector ubo_load_60_yw = vector(f16tof32(ubo_load_60 >> 16)); - const vector vec4_f16 = vector(ubo_load_60_xz[0], ubo_load_60_yw[0], ubo_load_60_xz[1], ubo_load_60_yw[1]); - const float2x2 mat2x2_f32 = ub_load_16(((800u * idx) + 168u)); - const float2x3 mat2x3_f32 = ub_load_17(((800u * idx) + 192u)); - const float2x4 mat2x4_f32 = ub_load_18(((800u * idx) + 224u)); - const float3x2 mat3x2_f32 = ub_load_19(((800u * idx) + 256u)); - const float3x3 mat3x3_f32 = ub_load_20(((800u * idx) + 288u)); - const float3x4 mat3x4_f32 = ub_load_21(((800u * idx) + 336u)); - const float4x2 mat4x2_f32 = ub_load_22(((800u * idx) + 384u)); - const float4x3 mat4x3_f32 = ub_load_23(((800u * idx) + 416u)); - const float4x4 mat4x4_f32 = ub_load_24(((800u * idx) + 480u)); - const matrix mat2x2_f16 = ub_load_25(((800u * idx) + 544u)); - const matrix mat2x3_f16 = ub_load_26(((800u * idx) + 552u)); - const matrix mat2x4_f16 = ub_load_27(((800u * idx) + 568u)); - const matrix mat3x2_f16 = ub_load_28(((800u * idx) + 584u)); - const matrix mat3x3_f16 = ub_load_29(((800u * idx) + 600u)); - const matrix mat3x4_f16 = ub_load_30(((800u * idx) + 624u)); - const matrix mat4x2_f16 = ub_load_31(((800u * idx) + 648u)); - const matrix mat4x3_f16 = ub_load_32(((800u * idx) + 664u)); - const matrix mat4x4_f16 = ub_load_33(((800u * idx) + 696u)); - const float3 arr2_vec3_f32[2] = ub_load_34(((800u * idx) + 736u)); - const matrix arr2_mat4x2_f16[2] = ub_load_35(((800u * idx) + 768u)); + vector vec4_f16 = vector(ubo_load_60_xz[0], ubo_load_60_yw[0], ubo_load_60_xz[1], ubo_load_60_yw[1]); + float2x2 mat2x2_f32 = ub_load_16(((800u * idx) + 168u)); + float2x3 mat2x3_f32 = ub_load_17(((800u * idx) + 192u)); + float2x4 mat2x4_f32 = ub_load_18(((800u * idx) + 224u)); + float3x2 mat3x2_f32 = ub_load_19(((800u * idx) + 256u)); + float3x3 mat3x3_f32 = ub_load_20(((800u * idx) + 288u)); + float3x4 mat3x4_f32 = ub_load_21(((800u * idx) + 336u)); + float4x2 mat4x2_f32 = ub_load_22(((800u * idx) + 384u)); + float4x3 mat4x3_f32 = ub_load_23(((800u * idx) + 416u)); + float4x4 mat4x4_f32 = ub_load_24(((800u * idx) + 480u)); + matrix mat2x2_f16 = ub_load_25(((800u * idx) + 544u)); + matrix mat2x3_f16 = ub_load_26(((800u * idx) + 552u)); + matrix mat2x4_f16 = ub_load_27(((800u * idx) + 568u)); + matrix mat3x2_f16 = ub_load_28(((800u * idx) + 584u)); + matrix mat3x3_f16 = ub_load_29(((800u * idx) + 600u)); + matrix mat3x4_f16 = ub_load_30(((800u * idx) + 624u)); + matrix mat4x2_f16 = ub_load_31(((800u * idx) + 648u)); + matrix mat4x3_f16 = ub_load_32(((800u * idx) + 664u)); + matrix mat4x4_f16 = ub_load_33(((800u * idx) + 696u)); + float3 arr2_vec3_f32[2] = ub_load_34(((800u * idx) + 736u)); + matrix arr2_mat4x2_f16[2] = ub_load_35(((800u * idx) + 768u)); + s.Store(0u, asuint((((((((((((((((((((((((((((((((((((tint_ftoi(scalar_f32) + scalar_i32) + int(scalar_u32)) + int(scalar_f16)) + tint_ftoi(vec2_f32.x)) + vec2_i32.x) + int(vec2_u32.x)) + int(vec2_f16.x)) + tint_ftoi(vec3_f32.y)) + vec3_i32.y) + int(vec3_u32.y)) + int(vec3_f16.y)) + tint_ftoi(vec4_f32.z)) + vec4_i32.z) + int(vec4_u32.z)) + int(vec4_f16.z)) + tint_ftoi(mat2x2_f32[0].x)) + tint_ftoi(mat2x3_f32[0].x)) + tint_ftoi(mat2x4_f32[0].x)) + tint_ftoi(mat3x2_f32[0].x)) + tint_ftoi(mat3x3_f32[0].x)) + tint_ftoi(mat3x4_f32[0].x)) + tint_ftoi(mat4x2_f32[0].x)) + tint_ftoi(mat4x3_f32[0].x)) + tint_ftoi(mat4x4_f32[0].x)) + int(mat2x2_f16[0].x)) + int(mat2x3_f16[0].x)) + int(mat2x4_f16[0].x)) + int(mat3x2_f16[0].x)) + int(mat3x3_f16[0].x)) + int(mat3x4_f16[0].x)) + int(mat4x2_f16[0].x)) + int(mat4x3_f16[0].x)) + int(mat4x4_f16[0].x)) + tint_ftoi(arr2_vec3_f32[0].x)) + int(arr2_mat4x2_f16[0][0].x)))); } [numthreads(1, 1, 1)] @@ -320,3 +326,6 @@ void main(tint_symbol_1 tint_symbol) { main_inner(tint_symbol.idx); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018416637920(86,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/dynamic_index/read_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/dynamic_index/read_f16.wgsl.expected.ir.fxc.hlsl index f5eee66e7dc..8859a011082 100644 --- a/test/tint/buffer/uniform/dynamic_index/read_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/dynamic_index/read_f16.wgsl.expected.ir.fxc.hlsl @@ -299,5 +299,5 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000181E5C934B0(10,21-29): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000023230EBB4E0(10,21-29): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/static_index/read_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/static_index/read_f16.wgsl.expected.fxc.hlsl index 7f770591a51..853ff75a8d3 100644 --- a/test/tint/buffer/uniform/static_index/read_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/static_index/read_f16.wgsl.expected.fxc.hlsl @@ -1,5 +1,9 @@ SKIP: FAILED +int tint_ftoi(float v) { + return ((v < 2147483520.0f) ? ((v < -2147483648.0f) ? -2147483648 : int(v)) : 2147483647); +} + struct Inner { int scalar_i32; float scalar_f32; @@ -9,6 +13,7 @@ struct Inner { cbuffer cbuffer_ub : register(b0) { uint4 ub[55]; }; +RWByteAddressBuffer s : register(u1); float2x2 ub_load_16(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -254,7 +259,7 @@ Inner ub_load_36(uint offset) { const uint scalar_offset_56 = ((offset + 4u)) / 4; const uint scalar_offset_bytes = ((offset + 8u)); const uint scalar_offset_index = scalar_offset_bytes / 4; - const Inner tint_symbol = {asint(ub[scalar_offset_55 / 4][scalar_offset_55 % 4]), asfloat(ub[scalar_offset_56 / 4][scalar_offset_56 % 4]), float16_t(f16tof32(((ub[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)))}; + Inner tint_symbol = {asint(ub[scalar_offset_55 / 4][scalar_offset_55 % 4]), asfloat(ub[scalar_offset_56 / 4][scalar_offset_56 % 4]), float16_t(f16tof32(((ub[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF)))}; return tint_symbol; } @@ -271,50 +276,54 @@ ub_load_37_ret ub_load_37(uint offset) { [numthreads(1, 1, 1)] void main() { - const float scalar_f32 = asfloat(ub[0].x); - const int scalar_i32 = asint(ub[0].y); - const uint scalar_u32 = ub[0].z; - const float16_t scalar_f16 = float16_t(f16tof32(((ub[0].w) & 0xFFFF))); - const float2 vec2_f32 = asfloat(ub[1].xy); - const int2 vec2_i32 = asint(ub[1].zw); - const uint2 vec2_u32 = ub[2].xy; + float scalar_f32 = asfloat(ub[0].x); + int scalar_i32 = asint(ub[0].y); + uint scalar_u32 = ub[0].z; + float16_t scalar_f16 = float16_t(f16tof32(((ub[0].w) & 0xFFFF))); + float2 vec2_f32 = asfloat(ub[1].xy); + int2 vec2_i32 = asint(ub[1].zw); + uint2 vec2_u32 = ub[2].xy; uint ubo_load_54 = ub[2].z; - const vector vec2_f16 = vector(float16_t(f16tof32(ubo_load_54 & 0xFFFF)), float16_t(f16tof32(ubo_load_54 >> 16))); - const float3 vec3_f32 = asfloat(ub[3].xyz); - const int3 vec3_i32 = asint(ub[4].xyz); - const uint3 vec3_u32 = ub[5].xyz; + vector vec2_f16 = vector(float16_t(f16tof32(ubo_load_54 & 0xFFFF)), float16_t(f16tof32(ubo_load_54 >> 16))); + float3 vec3_f32 = asfloat(ub[3].xyz); + int3 vec3_i32 = asint(ub[4].xyz); + uint3 vec3_u32 = ub[5].xyz; uint2 ubo_load_55 = ub[6].xy; vector ubo_load_55_xz = vector(f16tof32(ubo_load_55 & 0xFFFF)); float16_t ubo_load_55_y = f16tof32(ubo_load_55[0] >> 16); - const vector vec3_f16 = vector(ubo_load_55_xz[0], ubo_load_55_y, ubo_load_55_xz[1]); - const float4 vec4_f32 = asfloat(ub[7]); - const int4 vec4_i32 = asint(ub[8]); - const uint4 vec4_u32 = ub[9]; + vector vec3_f16 = vector(ubo_load_55_xz[0], ubo_load_55_y, ubo_load_55_xz[1]); + float4 vec4_f32 = asfloat(ub[7]); + int4 vec4_i32 = asint(ub[8]); + uint4 vec4_u32 = ub[9]; uint2 ubo_load_56 = ub[10].xy; vector ubo_load_56_xz = vector(f16tof32(ubo_load_56 & 0xFFFF)); vector ubo_load_56_yw = vector(f16tof32(ubo_load_56 >> 16)); - const vector vec4_f16 = vector(ubo_load_56_xz[0], ubo_load_56_yw[0], ubo_load_56_xz[1], ubo_load_56_yw[1]); - const float2x2 mat2x2_f32 = ub_load_16(168u); - const float2x3 mat2x3_f32 = ub_load_17(192u); - const float2x4 mat2x4_f32 = ub_load_18(224u); - const float3x2 mat3x2_f32 = ub_load_19(256u); - const float3x3 mat3x3_f32 = ub_load_20(288u); - const float3x4 mat3x4_f32 = ub_load_21(336u); - const float4x2 mat4x2_f32 = ub_load_22(384u); - const float4x3 mat4x3_f32 = ub_load_23(416u); - const float4x4 mat4x4_f32 = ub_load_24(480u); - const matrix mat2x2_f16 = ub_load_25(544u); - const matrix mat2x3_f16 = ub_load_26(552u); - const matrix mat2x4_f16 = ub_load_27(568u); - const matrix mat3x2_f16 = ub_load_28(584u); - const matrix mat3x3_f16 = ub_load_29(600u); - const matrix mat3x4_f16 = ub_load_30(624u); - const matrix mat4x2_f16 = ub_load_31(648u); - const matrix mat4x3_f16 = ub_load_32(664u); - const matrix mat4x4_f16 = ub_load_33(696u); - const float3 arr2_vec3_f32[2] = ub_load_34(736u); - const matrix arr2_mat4x2_f16[2] = ub_load_35(768u); - const Inner struct_inner = ub_load_36(800u); - const Inner array_struct_inner[4] = ub_load_37(816u); + vector vec4_f16 = vector(ubo_load_56_xz[0], ubo_load_56_yw[0], ubo_load_56_xz[1], ubo_load_56_yw[1]); + float2x2 mat2x2_f32 = ub_load_16(168u); + float2x3 mat2x3_f32 = ub_load_17(192u); + float2x4 mat2x4_f32 = ub_load_18(224u); + float3x2 mat3x2_f32 = ub_load_19(256u); + float3x3 mat3x3_f32 = ub_load_20(288u); + float3x4 mat3x4_f32 = ub_load_21(336u); + float4x2 mat4x2_f32 = ub_load_22(384u); + float4x3 mat4x3_f32 = ub_load_23(416u); + float4x4 mat4x4_f32 = ub_load_24(480u); + matrix mat2x2_f16 = ub_load_25(544u); + matrix mat2x3_f16 = ub_load_26(552u); + matrix mat2x4_f16 = ub_load_27(568u); + matrix mat3x2_f16 = ub_load_28(584u); + matrix mat3x3_f16 = ub_load_29(600u); + matrix mat3x4_f16 = ub_load_30(624u); + matrix mat4x2_f16 = ub_load_31(648u); + matrix mat4x3_f16 = ub_load_32(664u); + matrix mat4x4_f16 = ub_load_33(696u); + float3 arr2_vec3_f32[2] = ub_load_34(736u); + matrix arr2_mat4x2_f16[2] = ub_load_35(768u); + Inner struct_inner = ub_load_36(800u); + Inner array_struct_inner[4] = ub_load_37(816u); + s.Store(0u, asuint((((((((((((((((((((((((((((((((((((((tint_ftoi(scalar_f32) + scalar_i32) + int(scalar_u32)) + int(scalar_f16)) + tint_ftoi(vec2_f32.x)) + vec2_i32.x) + int(vec2_u32.x)) + int(vec2_f16.x)) + tint_ftoi(vec3_f32.y)) + vec3_i32.y) + int(vec3_u32.y)) + int(vec3_f16.y)) + tint_ftoi(vec4_f32.z)) + vec4_i32.z) + int(vec4_u32.z)) + int(vec4_f16.z)) + tint_ftoi(mat2x2_f32[0].x)) + tint_ftoi(mat2x3_f32[0].x)) + tint_ftoi(mat2x4_f32[0].x)) + tint_ftoi(mat3x2_f32[0].x)) + tint_ftoi(mat3x3_f32[0].x)) + tint_ftoi(mat3x4_f32[0].x)) + tint_ftoi(mat4x2_f32[0].x)) + tint_ftoi(mat4x3_f32[0].x)) + tint_ftoi(mat4x4_f32[0].x)) + int(mat2x2_f16[0].x)) + int(mat2x3_f16[0].x)) + int(mat2x4_f16[0].x)) + int(mat3x2_f16[0].x)) + int(mat3x3_f16[0].x)) + int(mat3x4_f16[0].x)) + int(mat4x2_f16[0].x)) + int(mat4x3_f16[0].x)) + int(mat4x4_f16[0].x)) + tint_ftoi(arr2_vec3_f32[0].x)) + int(arr2_mat4x2_f16[0][0].x)) + struct_inner.scalar_i32) + array_struct_inner[0].scalar_i32))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002A47BDDE5C0(8,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/static_index/read_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/static_index/read_f16.wgsl.expected.ir.fxc.hlsl index 1b70cbce996..96e0d734037 100644 --- a/test/tint/buffer/uniform/static_index/read_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/static_index/read_f16.wgsl.expected.ir.fxc.hlsl @@ -319,5 +319,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023E74836950(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001EA3BD44DF0(4,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 57ecbce9aaa..801f8a397f3 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_a : register(b0) { uint4 a[4]; }; +RWByteAddressBuffer s : register(u1); static int counter = 0; int i() { @@ -37,15 +38,21 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_a_i_save = i(); - const int p_a_i_i_save = i(); - const matrix l_a[4] = a_load(0u); - const matrix l_a_i = a_load_1((16u * uint(p_a_i_save))); + int p_a_i_save = i(); + int p_a_i_i_save = i(); + matrix l_a[4] = a_load(0u); + matrix l_a_i = a_load_1((16u * uint(p_a_i_save))); const uint scalar_offset_2 = (((16u * uint(p_a_i_save)) + (8u * uint(p_a_i_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); vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - const vector l_a_i_i = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); + vector l_a_i_i = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); + const uint scalar_offset_bytes = (((16u * uint(p_a_i_save)) + (8u * uint(p_a_i_i_save)))); + const uint scalar_offset_index = scalar_offset_bytes / 4; + s.Store(0u, (((float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF))) + l_a[0][0].x) + l_a_i[0].x) + l_a_i_i.x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000204157BE940(12,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 5bf25519ca4..c693b623105 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -63,5 +63,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C502844780(12,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E3C5EB3E50(12,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index c43d7a14d89..354ee4f554a 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_a : register(b0) { uint4 a[4]; }; +RWByteAddressBuffer s : register(u1); matrix a_load_1(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -31,11 +32,15 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_a[4] = a_load(0u); - const matrix l_a_i = a_load_1(32u); + matrix l_a[4] = a_load(0u); + matrix l_a_i = a_load_1(32u); uint2 ubo_load_4 = a[2].zw; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - const vector l_a_i_i = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); + vector l_a_i_i = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); + s.Store(0u, (((float16_t(f16tof32(((a[2].z) & 0xFFFF))) + l_a[0][0].x) + l_a_i[0].x) + l_a_i_i.x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002801AFB23C0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 28236674bf5..41d5b5ed7bc 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -54,5 +54,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000207C946FA80(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002610D67CCE0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl index f8e6c3e6771..d865ae4fcb4 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -20,14 +21,18 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(32u)); + matrix t = transpose(u_load(32u)); uint2 ubo_load_4 = u[0].zw; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - const float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy); + float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy); uint2 ubo_load_5 = u[0].zw; vector ubo_load_5_xz = vector(f16tof32(ubo_load_5 & 0xFFFF)); float16_t ubo_load_5_y = f16tof32(ubo_load_5[0] >> 16); - const float16_t a = abs(vector(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x); + float16_t a = abs(vector(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x); + s.Store(0u, ((float16_t(a) + float16_t(l)) + t[0].x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021F54634CB0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 3bb945a2812..2ecd2644f69 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -32,5 +32,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002064F15EB50(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002890FED5830(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl index 7de93b94b80..e53f518d874 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl @@ -3,17 +3,22 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; +RWByteAddressBuffer s : register(u1); -void a(matrix a_1[4]) { +float16_t a(matrix a_1[4]) { + return a_1[0][0].x; } -void b(matrix m) { +float16_t b(matrix m) { + return m[0].x; } -void c(vector v) { +float16_t c(vector v) { + return v.x; } -void d(float16_t f_1) { +float16_t d(float16_t f_1) { + return f_1; } matrix u_load_1(uint offset) { @@ -43,15 +48,19 @@ u_load_ret u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - a(u_load(0u)); - b(u_load_1(16u)); + float16_t tint_symbol = a(u_load(0u)); + float16_t tint_symbol_1 = b(u_load_1(16u)); uint2 ubo_load_4 = u[1].xy; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - c(vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy); + float16_t tint_symbol_2 = c(vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy); uint2 ubo_load_5 = u[1].xy; vector ubo_load_5_xz = vector(f16tof32(ubo_load_5 & 0xFFFF)); float16_t ubo_load_5_y = f16tof32(ubo_load_5[0] >> 16); - d(vector(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x); + float16_t tint_symbol_3 = d(vector(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x); + s.Store(0u, (((tint_symbol + tint_symbol_1) + tint_symbol_2) + tint_symbol_3)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D1F24EB700(6,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 27ed3b6b96d..3b62121f667 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -70,5 +70,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A2E13524B0(6,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000207FC344E30(6,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl index b3168b6a776..2af6dd2e737 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; +RWByteAddressBuffer s : register(u1); static matrix p[4] = (matrix[4])0; matrix u_load_1(uint offset) { @@ -39,5 +40,9 @@ void f() { float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); p[1][0] = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy; p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF))); + s.Store(0u, p[1][0].x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000275C9EBAB10(5,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl index c2e02a13dd2..f9b2ada17e9 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -56,5 +56,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AE31B4E6D0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026300AA9860(6,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl index 5c2c800ed96..a322a334a98 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl @@ -55,3 +55,7 @@ void f() { s.Store(16u, float16_t(f16tof32(((u[0].z) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023090873CB0(6,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023090873CB0(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl index c4e8ab09baa..11248688726 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -77,5 +77,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C86DCF10E0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000279EBBD4900(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl index 992d459b453..a66b84ddfbd 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,21 @@ SKIP: FAILED +groupshared matrix w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + w[i] = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; -groupshared matrix w[4]; +RWByteAddressBuffer s : register(u1); struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -35,13 +47,7 @@ u_load_ret u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { - const uint i = idx; - w[i] = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(32u); uint2 ubo_load_4 = u[0].zw; @@ -49,6 +55,7 @@ void f_inner(uint local_invocation_index) { float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); w[1][0] = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy; w[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF))); + s.Store(0u, w[1][0].x); } [numthreads(1, 1, 1)] @@ -56,3 +63,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001889D974ED0(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 519eb4dda57..dde58900ad6 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -80,5 +80,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001ECB8DFF4B0(10,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022449C39600(10,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index ecdefb5f407..c38c7af21d0 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_a : register(b0) { uint4 a[4]; }; +RWByteAddressBuffer s : register(u1); static int counter = 0; int i() { @@ -37,15 +38,21 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_a_i_save = i(); - const int p_a_i_i_save = i(); - const matrix l_a[4] = a_load(0u); - const matrix l_a_i = a_load_1((16u * uint(p_a_i_save))); + int p_a_i_save = i(); + int p_a_i_i_save = i(); + matrix l_a[4] = a_load(0u); + matrix l_a_i = a_load_1((16u * uint(p_a_i_save))); const uint scalar_offset_2 = (((16u * uint(p_a_i_save)) + (8u * uint(p_a_i_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); vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); - const vector l_a_i_i = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); + vector l_a_i_i = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); + const uint scalar_offset_bytes = (((16u * uint(p_a_i_save)) + (8u * uint(p_a_i_i_save)))); + const uint scalar_offset_index = scalar_offset_bytes / 4; + s.Store(0u, (((float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF))) + l_a[0][0].x) + l_a_i[0].x) + l_a_i_i.x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001729296B4E0(12,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 918785fa4c9..e31070487fe 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -63,5 +63,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020D9E332970(12,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000239941CCD20(12,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index 541caea20dc..3fb38d7eaf0 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_a : register(b0) { uint4 a[4]; }; +RWByteAddressBuffer s : register(u1); matrix a_load_1(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -31,11 +32,15 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_a[4] = a_load(0u); - const matrix l_a_i = a_load_1(32u); + matrix l_a[4] = a_load(0u); + matrix l_a_i = a_load_1(32u); uint2 ubo_load_4 = a[2].zw; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); - const vector l_a_i_i = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); + vector l_a_i_i = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); + s.Store(0u, (((float16_t(f16tof32(((a[2].z) & 0xFFFF))) + l_a[0][0].x) + l_a_i[0].x) + l_a_i_i.x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026E0E10A780(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index e0e7a932e69..17687198f41 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -54,5 +54,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002AD04042B90(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028071C44D30(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl index c95d40555e2..19afe8d8b48 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -20,14 +21,18 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(32u)); + matrix t = transpose(u_load(32u)); uint2 ubo_load_4 = u[0].zw; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); - const float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz); + float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz); uint2 ubo_load_5 = u[0].zw; vector ubo_load_5_xz = vector(f16tof32(ubo_load_5 & 0xFFFF)); vector ubo_load_5_yw = vector(f16tof32(ubo_load_5 >> 16)); - const float16_t a = abs(vector(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x); + float16_t a = abs(vector(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x); + s.Store(0u, ((t[0].x + float16_t(l)) + float16_t(a))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023EC217DD40(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 0d10f4acd91..ba4f4b07bcd 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -32,5 +32,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C472FF2840(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014AAAACD4F0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl index ef5acb37c21..c473cae80b8 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl @@ -3,17 +3,22 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; +RWByteAddressBuffer s : register(u1); -void a(matrix a_1[4]) { +float16_t a(matrix a_1[4]) { + return a_1[0][0].x; } -void b(matrix m) { +float16_t b(matrix m) { + return m[0].x; } -void c(vector v) { +float16_t c(vector v) { + return v.x; } -void d(float16_t f_1) { +float16_t d(float16_t f_1) { + return f_1; } matrix u_load_1(uint offset) { @@ -43,15 +48,19 @@ u_load_ret u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - a(u_load(0u)); - b(u_load_1(16u)); + float16_t tint_symbol = a(u_load(0u)); + float16_t tint_symbol_1 = b(u_load_1(16u)); uint2 ubo_load_4 = u[1].xy; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); - c(vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz); + float16_t tint_symbol_2 = c(vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz); uint2 ubo_load_5 = u[1].xy; vector ubo_load_5_xz = vector(f16tof32(ubo_load_5 & 0xFFFF)); vector ubo_load_5_yw = vector(f16tof32(ubo_load_5 >> 16)); - d(vector(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x); + float16_t tint_symbol_3 = d(vector(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x); + s.Store(0u, (((tint_symbol + tint_symbol_1) + tint_symbol_2) + tint_symbol_3)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002040ABD3CD0(6,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 2ff73f1fe65..0e83d61007b 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -70,5 +70,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002740EAEE710(6,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001DFA8A28F80(6,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl index ca3046cf3fd..71f70cb5c48 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; +RWByteAddressBuffer s : register(u1); static matrix p[4] = (matrix[4])0; matrix u_load_1(uint offset) { @@ -39,5 +40,9 @@ void f() { vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); p[1][0] = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz; p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF))); + s.Store(0u, p[1][0].x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A382D2E830(5,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl index 97aeba2e7ab..f1c392a7ad1 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -56,5 +56,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002D5489CF7C0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024FB488CF60(6,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl index 31c7a80922d..075bb55a85e 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl @@ -55,3 +55,7 @@ void f() { s.Store(16u, float16_t(f16tof32(((u[0].z) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001649BA46310(6,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001649BA46310(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl index b7f22ae241f..b6b2c725040 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -77,5 +77,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019DCA7EE2F0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B03FCF97C0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl index 2b4d8af5b94..a705dcc1982 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,20 @@ SKIP: FAILED +groupshared matrix w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + w[i] = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; -groupshared matrix w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -35,13 +46,7 @@ u_load_ret u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { - const uint i = idx; - w[i] = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(32u); uint2 ubo_load_4 = u[0].zw; @@ -56,3 +61,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020409489280(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 837b04428b6..2342b577cda 100644 --- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -78,5 +78,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000028CE26E6580(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E1BE935C00(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 0af6a5fe3a1..95beacc6d5a 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_a : register(b0) { uint4 a[4]; }; +RWByteAddressBuffer s : register(u1); static int counter = 0; int i() { @@ -35,12 +36,18 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_a_i_save = i(); - const int p_a_i_i_save = i(); - const matrix l_a[4] = a_load(0u); - const matrix l_a_i = a_load_1((16u * uint(p_a_i_save))); + int p_a_i_save = i(); + int p_a_i_i_save = i(); + matrix l_a[4] = a_load(0u); + matrix l_a_i = a_load_1((16u * uint(p_a_i_save))); const uint scalar_offset_4 = (((16u * uint(p_a_i_save)) + (4u * uint(p_a_i_i_save)))) / 4; uint ubo_load_4 = a[scalar_offset_4 / 4][scalar_offset_4 % 4]; - const vector l_a_i_i = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); + vector l_a_i_i = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); + const uint scalar_offset_bytes = (((16u * uint(p_a_i_save)) + (4u * uint(p_a_i_i_save)))); + const uint scalar_offset_index = scalar_offset_bytes / 4; + s.Store(0u, (((float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF))) + l_a[0][0].x) + l_a_i[0].x) + l_a_i_i.x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000207B04ABE10(12,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 695cd0874a9..5ea48b96a4b 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -66,5 +66,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001893CEC1FC0(12,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002460CA0C110(12,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index 0d432399936..7b7c77e1e26 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_a : register(b0) { uint4 a[4]; }; +RWByteAddressBuffer s : register(u1); matrix a_load_1(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -29,9 +30,13 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_a[4] = a_load(0u); - const matrix l_a_i = a_load_1(32u); + matrix l_a[4] = a_load(0u); + matrix l_a_i = a_load_1(32u); uint ubo_load_4 = a[2].y; - const vector l_a_i_i = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); + vector l_a_i_i = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); + s.Store(0u, (((float16_t(f16tof32(((a[2].y) & 0xFFFF))) + l_a[0][0].x) + l_a_i[0].x) + l_a_i_i.x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002C2794663C0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index c2b8e91053f..e5bdc68b49b 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -56,5 +56,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029219B7EC90(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020AD74EB730(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl index 1a1deb9e87b..fb7e00a6eb4 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -18,10 +19,14 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(32u)); + matrix t = transpose(u_load(32u)); uint ubo_load_4 = u[0].y; - const float16_t l = length(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx); + float16_t l = length(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx); uint ubo_load_5 = u[0].y; - const float16_t a = abs(vector(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x); + float16_t a = abs(vector(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x); + s.Store(0u, ((t[0].x + float16_t(l)) + float16_t(a))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028BBEB154D0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index a8f8647cfb5..4995ad359db 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -34,5 +34,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025C84E75040(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BA13A48F80(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl index c9bf52f5672..49a0977cf40 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl @@ -3,17 +3,22 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; +RWByteAddressBuffer s : register(u1); -void a(matrix a_1[4]) { +float16_t a(matrix a_1[4]) { + return a_1[0][0].x; } -void b(matrix m) { +float16_t b(matrix m) { + return m[0].x; } -void c(vector v) { +float16_t c(vector v) { + return v.x; } -void d(float16_t f_1) { +float16_t d(float16_t f_1) { + return f_1; } matrix u_load_1(uint offset) { @@ -41,11 +46,15 @@ u_load_ret u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - a(u_load(0u)); - b(u_load_1(16u)); + float16_t tint_symbol = a(u_load(0u)); + float16_t tint_symbol_1 = b(u_load_1(16u)); uint ubo_load_4 = u[1].x; - c(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx); + float16_t tint_symbol_2 = c(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx); uint ubo_load_5 = u[1].x; - d(vector(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x); + float16_t tint_symbol_3 = d(vector(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x); + s.Store(0u, (((tint_symbol + tint_symbol_1) + tint_symbol_2) + tint_symbol_3)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023FE2B954E0(6,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 9663e5fc457..444ad273565 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -72,5 +72,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000169F7697330(6,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001FA99CE4880(6,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl index bd1bbae691f..b53b37b12c0 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; +RWByteAddressBuffer s : register(u1); static matrix p[4] = (matrix[4])0; matrix u_load_1(uint offset) { @@ -35,5 +36,9 @@ void f() { uint ubo_load_4 = u[0].y; p[1][0] = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx; p[1][0].x = float16_t(f16tof32(((u[0].y) & 0xFFFF))); + s.Store(0u, p[1][0].x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025909CD3FF0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl index 7b36df4e579..e5e078870e0 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -58,5 +58,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FF3644E2E0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000236ACC5C7E0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl index 0109e9e18f7..e981f8c5a0d 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl @@ -53,3 +53,7 @@ void f() { s.Store(16u, float16_t(f16tof32(((u[0].y) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000293ADCFCFE0(6,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000293ADCFCFE0(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl index f4d655ad5bb..31413c12ad3 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -81,5 +81,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C2A06CE760(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A37CA35860(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl index 0e49992074b..84c82646641 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,20 @@ SKIP: FAILED +groupshared matrix w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + w[i] = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[4]; }; -groupshared matrix w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -33,13 +44,7 @@ u_load_ret u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { - const uint i = idx; - w[i] = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(32u); uint ubo_load_4 = u[0].y; @@ -52,3 +57,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000014105293960(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index a1fb622dd77..98ff1655aee 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -80,5 +80,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000219512F00F0(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EEE26C4FB0(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 80a0806a8be..86ceb87f24a 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_a : register(b0) { uint4 a[8]; }; +RWByteAddressBuffer s : register(u1); static int counter = 0; int i() { @@ -47,15 +48,21 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_a_i_save = i(); - const int p_a_i_i_save = i(); - const matrix l_a[4] = a_load(0u); - const matrix l_a_i = a_load_1((32u * uint(p_a_i_save))); + int p_a_i_save = i(); + int p_a_i_i_save = i(); + matrix l_a[4] = a_load(0u); + matrix l_a_i = a_load_1((32u * uint(p_a_i_save))); const uint scalar_offset_4 = (((32u * uint(p_a_i_save)) + (8u * uint(p_a_i_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); vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - const vector l_a_i_i = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); + vector l_a_i_i = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); + const uint scalar_offset_bytes = (((32u * uint(p_a_i_save)) + (8u * uint(p_a_i_i_save)))); + const uint scalar_offset_index = scalar_offset_bytes / 4; + s.Store(0u, (((float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF))) + l_a[0][0].x) + l_a_i[0].x) + l_a_i_i.x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002A335236120(12,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 2978e70f133..69917e44c13 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -65,5 +65,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F59245E4C0(12,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EE74804CB0(12,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index 76f8bf74cc0..54b49323466 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_a : register(b0) { uint4 a[8]; }; +RWByteAddressBuffer s : register(u1); matrix a_load_1(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -41,11 +42,15 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_a[4] = a_load(0u); - const matrix l_a_i = a_load_1(64u); + matrix l_a[4] = a_load(0u); + matrix l_a_i = a_load_1(64u); uint2 ubo_load_8 = a[4].zw; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - const vector l_a_i_i = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); + vector l_a_i_i = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); + s.Store(0u, (((float16_t(f16tof32(((a[4].z) & 0xFFFF))) + l_a[0][0].x) + l_a_i[0].x) + l_a_i_i.x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002AFDE759D40(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 94c0b6141f9..2cf67f255d8 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -56,5 +56,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BD8DCC3880(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002304631A630(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl index 3611c5053c6..c98f8a45fbb 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[8]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -30,14 +31,18 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(64u)); + matrix t = transpose(u_load(64u)); uint2 ubo_load_8 = u[0].zw; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - const float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy); + float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy); uint2 ubo_load_9 = u[0].zw; vector ubo_load_9_xz = vector(f16tof32(ubo_load_9 & 0xFFFF)); float16_t ubo_load_9_y = f16tof32(ubo_load_9[0] >> 16); - const float16_t a = abs(vector(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x); + float16_t a = abs(vector(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x); + s.Store(0u, ((t[0].x + float16_t(l)) + float16_t(a))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000208C8DD4C10(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 141e99cd077..9ae49c3b685 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -34,5 +34,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000276BF2A2560(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026F5F0FC970(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl index be7c2580f9f..d59161313b5 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl @@ -3,17 +3,22 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[8]; }; +RWByteAddressBuffer s : register(u1); -void a(matrix a_1[4]) { +float16_t a(matrix a_1[4]) { + return a_1[0][0].x; } -void b(matrix m) { +float16_t b(matrix m) { + return m[0].x; } -void c(vector v) { +float16_t c(vector v) { + return v.x; } -void d(float16_t f_1) { +float16_t d(float16_t f_1) { + return f_1; } matrix u_load_1(uint offset) { @@ -53,15 +58,19 @@ u_load_ret u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - a(u_load(0u)); - b(u_load_1(32u)); + float16_t tint_symbol = a(u_load(0u)); + float16_t tint_symbol_1 = b(u_load_1(32u)); uint2 ubo_load_8 = u[2].xy; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - c(vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy); + float16_t tint_symbol_2 = c(vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy); uint2 ubo_load_9 = u[2].xy; vector ubo_load_9_xz = vector(f16tof32(ubo_load_9 & 0xFFFF)); float16_t ubo_load_9_y = f16tof32(ubo_load_9[0] >> 16); - d(vector(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x); + float16_t tint_symbol_3 = d(vector(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x); + s.Store(0u, (((tint_symbol + tint_symbol_1) + tint_symbol_2) + tint_symbol_3)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001798BD77F80(6,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 505e8225cd0..6fc9479ccc0 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -72,5 +72,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C1493B2F60(6,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022E264B7350(6,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl index 04f31edd5b5..d276fd49409 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[8]; }; +RWByteAddressBuffer s : register(u1); static matrix p[4] = (matrix[4])0; matrix u_load_1(uint offset) { @@ -49,5 +50,9 @@ void f() { float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); p[1][0] = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy; p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF))); + s.Store(0u, p[1][0].x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002194B0E4CC0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl index 199426ff903..6132a3a3f87 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -58,5 +58,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000257381FE330(6,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EF04C14900(6,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl index 7aa49a0cf51..a913706f5ed 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl @@ -67,3 +67,7 @@ void f() { s.Store(32u, float16_t(f16tof32(((u[0].z) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000244494E5620(6,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000244494E5620(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 4b96dc8da7b..3402fe215c7 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -81,5 +81,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001801117E680(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002BB13E154A0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl index 05f40db2954..6e3a2a50a5c 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,20 @@ SKIP: FAILED +groupshared matrix w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + w[i] = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[8]; }; -groupshared matrix w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -45,13 +56,7 @@ u_load_ret u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { - const uint i = idx; - w[i] = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(64u); uint2 ubo_load_8 = u[0].zw; @@ -66,3 +71,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000176D797A830(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 6d62f659a32..27eda0cacbc 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -80,5 +80,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001C395A33820(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001ADC073F030(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index f77a1294f95..5373c541a9d 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_a : register(b0) { uint4 a[8]; }; +RWByteAddressBuffer s : register(u1); static int counter = 0; int i() { @@ -47,15 +48,21 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_a_i_save = i(); - const int p_a_i_i_save = i(); - const matrix l_a[4] = a_load(0u); - const matrix l_a_i = a_load_1((32u * uint(p_a_i_save))); + int p_a_i_save = i(); + int p_a_i_i_save = i(); + matrix l_a[4] = a_load(0u); + matrix l_a_i = a_load_1((32u * uint(p_a_i_save))); const uint scalar_offset_4 = (((32u * uint(p_a_i_save)) + (8u * uint(p_a_i_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); vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); - const vector l_a_i_i = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); + vector l_a_i_i = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); + const uint scalar_offset_bytes = (((32u * uint(p_a_i_save)) + (8u * uint(p_a_i_i_save)))); + const uint scalar_offset_index = scalar_offset_bytes / 4; + s.Store(0u, (((float16_t(f16tof32(((a[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF))) + l_a[0][0].x) + l_a_i[0].x) + l_a_i_i.x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000240CE37B730(12,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 36816718558..67fbbb52cbf 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -65,5 +65,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C8C80246C0(12,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000013D93274D60(12,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index d63c3584842..176a3154ca6 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_a : register(b0) { uint4 a[8]; }; +RWByteAddressBuffer s : register(u1); matrix a_load_1(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -41,11 +42,15 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_a[4] = a_load(0u); - const matrix l_a_i = a_load_1(64u); + matrix l_a[4] = a_load(0u); + matrix l_a_i = a_load_1(64u); uint2 ubo_load_8 = a[4].zw; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); - const vector l_a_i_i = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); + vector l_a_i_i = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); + s.Store(0u, (((float16_t(f16tof32(((a[4].z) & 0xFFFF))) + l_a[0][0].x) + l_a_i[0].x) + l_a_i_i.x)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021031015270(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 300c01e60f0..978d1a96c91 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -56,5 +56,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AF36796480(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025172168FE0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl index a61c3eb8df2..20d86767a32 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[8]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -30,14 +31,18 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(64u)); + matrix t = transpose(u_load(64u)); uint2 ubo_load_8 = u[0].zw; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); - const float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz); + float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz); uint2 ubo_load_9 = u[0].zw; vector ubo_load_9_xz = vector(f16tof32(ubo_load_9 & 0xFFFF)); vector ubo_load_9_yw = vector(f16tof32(ubo_load_9 >> 16)); - const float16_t a = abs(vector(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x); + float16_t a = abs(vector(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x); + s.Store(0u, ((t[0].x + float16_t(l)) + float16_t(a))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019CB46C9D20(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 2490c5ec876..2d29551fc94 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -34,5 +34,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026A5E4EEBB0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021A52F964E0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl index 93e18df5d8d..33ae83f8bba 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl @@ -3,17 +3,22 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[8]; }; +RWByteAddressBuffer s : register(u1); -void a(matrix a_1[4]) { +float16_t a(matrix a_1[4]) { + return a_1[0][0].x; } -void b(matrix m) { +float16_t b(matrix m) { + return m[0].x; } -void c(vector v) { +float16_t c(vector v) { + return v.x; } -void d(float16_t f_1) { +float16_t d(float16_t f_1) { + return f_1; } matrix u_load_1(uint offset) { @@ -53,15 +58,19 @@ u_load_ret u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - a(u_load(0u)); - b(u_load_1(32u)); + float16_t tint_symbol = a(u_load(0u)); + float16_t tint_symbol_1 = b(u_load_1(32u)); uint2 ubo_load_8 = u[2].xy; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); - c(vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz); + float16_t tint_symbol_2 = c(vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz); uint2 ubo_load_9 = u[2].xy; vector ubo_load_9_xz = vector(f16tof32(ubo_load_9 & 0xFFFF)); vector ubo_load_9_yw = vector(f16tof32(ubo_load_9 >> 16)); - d(vector(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x); + float16_t tint_symbol_3 = d(vector(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x); + s.Store(0u, (((tint_symbol + tint_symbol_1) + tint_symbol_2) + tint_symbol_3)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023FB43E9F80(6,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 963edea8363..227ea0f5254 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -72,5 +72,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FC1F2CF920(6,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000175F235BC30(6,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl index a993e7f252f..14f23a27def 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[8]; }; +RWByteAddressBuffer s : register(u1); static matrix p[4] = (matrix[4])0; matrix u_load_1(uint offset) { @@ -49,5 +50,9 @@ void f() { vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); p[1][0] = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz; p[1][0].x = float16_t(f16tof32(((u[0].z) & 0xFFFF))); + s.Store(0u, p[1][0].x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B3355E9080(5,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl index 5c7564ea7d4..0387a40426c 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -58,5 +58,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002834174FB30(6,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F157845590(6,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl index 6f1938f6f4f..f3fbafe3489 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl @@ -67,3 +67,7 @@ void f() { s.Store(32u, float16_t(f16tof32(((u[0].z) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000219A244E320(6,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000219A244E320(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 452dadab503..f4c253c37c2 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -81,5 +81,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000280FEF06460(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002163D8D3E20(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl index 257434603b9..81017af0668 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,20 @@ SKIP: FAILED +groupshared matrix w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + w[i] = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[8]; }; -groupshared matrix w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -45,13 +56,7 @@ u_load_ret u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { - const uint i = idx; - w[i] = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(64u); uint2 ubo_load_8 = u[0].zw; @@ -66,3 +71,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000156C7F8C2B0(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 2c9822ce1fb..adcaf0db4e8 100644 --- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -80,5 +80,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000024956932BC0(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000283D5A58870(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 965b25a39b3..d0156708905 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -26,7 +26,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol_4 = {a_load_4((offset + 0u))}; + Inner tint_symbol_4 = {a_load_4((offset + 0u))}; return tint_symbol_4; } @@ -42,7 +42,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_5 = {a_load_2((offset + 0u))}; + Outer tint_symbol_5 = {a_load_2((offset + 0u))}; return tint_symbol_5; } @@ -59,23 +59,26 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] 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] = 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 l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + int p_a_i_save = i(); + int p_a_i_a_i_save = i(); + int p_a_i_a_i_m_i_save = i(); + Outer l_a[4] = a_load(0u); + Outer l_a_i = a_load_1((256u * uint(p_a_i_save))); + Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save))); + Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + matrix 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 l_a_i_a_i_m_i = vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))); - const int tint_symbol = p_a_i_save; - const int tint_symbol_1 = p_a_i_a_i_save; - const int tint_symbol_2 = p_a_i_a_i_m_i_save; - const int tint_symbol_3 = i(); + vector l_a_i_a_i_m_i = vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))); + int tint_symbol = p_a_i_save; + int tint_symbol_1 = p_a_i_a_i_save; + int tint_symbol_2 = p_a_i_a_i_m_i_save; + int tint_symbol_3 = i(); const uint scalar_offset_bytes = (((((256u * uint(tint_symbol)) + (64u * uint(tint_symbol_1))) + (4u * uint(tint_symbol_2))) + (2u * uint(tint_symbol_3)))); const uint scalar_offset_index = scalar_offset_bytes / 4; - 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))); + 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: +C:\src\dawn\Shader@0x000001ED9D0AAB90(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 1efa54fc2fa..9d9edf0b612 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -38,31 +38,7 @@ fn f() { let l_a_i_a_i_m_i_i : f16 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :42:24 error: binary: %29 is not in scope - %28:u32 = add %27, %29 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:63:5 note: %29 declared here - %29:u32 = mul %51, 2u - ^^^^^^^ - -:50:24 error: binary: %29 is not in scope - %39:u32 = add %38, %29 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:63:5 note: %29 declared here - %29:u32 = mul %51, 2u - ^^^^^^^ - -:63:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :60:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -84,7 +60,7 @@ Failed to generate: :42:24 error: binary: %29 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %29:u32 = mul %51, 2u + %48:u32 = mul %47, 2u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -132,146 +108,143 @@ $B1: { # root %23:array = call %24, %10 %l_a_i_a:array = let %23 %26:u32 = add %10, %13 - %27:u32 = add %26, %16 - %28:u32 = add %27, %29 - %30:Inner = call %31, %28 - %l_a_i_a_i:Inner = let %30 - %33:u32 = add %10, %13 - %34:mat2x2 = call %35, %33 - %l_a_i_a_i_m:mat2x2 = let %34 - %37:u32 = add %10, %13 - %38:u32 = add %37, %16 - %39:u32 = add %38, %29 - %40:u32 = div %39, 16u - %41:ptr, read> = access %a, %40 - %42:u32 = mod %39, 16u - %43:u32 = div %42, 4u - %44:vec4 = load %41 - %45:u32 = swizzle %44, z - %46:u32 = swizzle %44, x - %47:bool = eq %43, 2u - %48:u32 = hlsl.ternary %46, %45, %47 - %49:vec2 = bitcast %48 - %l_a_i_a_i_m_i:vec2 = let %49 - %51:i32 = call %i - %29:u32 = mul %51, 2u - %52:u32 = add %10, %13 - %53:u32 = add %52, %16 - %54:u32 = add %53, %29 - %55:u32 = div %54, 16u - %56:ptr, read> = access %a, %55 - %57:u32 = mod %54, 16u - %58:u32 = div %57, 4u - %59:u32 = load_vector_element %56, %58 - %60:u32 = mod %54, 4u - %61:bool = eq %60, 0u - %62:u32 = hlsl.ternary 16u, 0u, %61 - %63:u32 = shr %59, %62 - %64:f32 = hlsl.f16tof32 %63 - %65:f16 = convert %64 - %l_a_i_a_i_m_i_i:f16 = let %65 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 + %30:u32 = add %10, %13 + %31:mat2x2 = call %32, %30 + %l_a_i_a_i_m:mat2x2 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:u32 = mod %35, 16u + %39:u32 = div %38, 4u + %40:vec4 = load %37 + %41:u32 = swizzle %40, z + %42:u32 = swizzle %40, x + %43:bool = eq %39, 2u + %44:u32 = hlsl.ternary %42, %41, %43 + %45:vec2 = bitcast %44 + %l_a_i_a_i_m_i:vec2 = let %45 + %47:i32 = call %i + %48:u32 = mul %47, 2u + %49:u32 = add %10, %13 + %50:u32 = add %49, %16 + %51:u32 = add %50, %48 + %52:u32 = div %51, 16u + %53:ptr, read> = access %a, %52 + %54:u32 = mod %51, 16u + %55:u32 = div %54, 4u + %56:u32 = load_vector_element %53, %55 + %57:u32 = mod %51, 4u + %58:bool = eq %57, 0u + %59:u32 = hlsl.ternary 16u, 0u, %58 + %60:u32 = shr %56, %59 + %61:f32 = hlsl.f16tof32 %60 + %62:f16 = convert %61 + %l_a_i_a_i_m_i_i:f16 = let %62 ret } } -%18 = func(%start_byte_offset:u32):array { +%32 = func(%start_byte_offset:u32):mat2x2 { $B4: { - %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat2x2(vec2(0.0h)))))) # %a_1: 'a' - loop [i: $B5, b: $B6, c: $B7] { # loop_1 - $B5: { # initializer - next_iteration 0u # -> $B6 + %65:u32 = div %start_byte_offset, 16u + %66:ptr, read> = access %a, %65 + %67:u32 = mod %start_byte_offset, 16u + %68:u32 = div %67, 4u + %69:vec4 = load %66 + %70:u32 = swizzle %69, z + %71:u32 = swizzle %69, x + %72:bool = eq %68, 2u + %73:u32 = hlsl.ternary %71, %70, %72 + %74:vec2 = bitcast %73 + %75:u32 = add 4u, %start_byte_offset + %76:u32 = div %75, 16u + %77:ptr, read> = access %a, %76 + %78:u32 = mod %75, 16u + %79:u32 = div %78, 4u + %80:vec4 = load %77 + %81:u32 = swizzle %80, z + %82:u32 = swizzle %80, x + %83:bool = eq %79, 2u + %84:u32 = hlsl.ternary %82, %81, %83 + %85:vec2 = bitcast %84 + %86:mat2x2 = construct %74, %85 + ret %86 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B5: { + %88:mat2x2 = call %32, %start_byte_offset_1 + %89:Inner = construct %88 + ret %89 + } +} +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B6: { + %a_1:ptr, read_write> = var, array(Inner(mat2x2(vec2(0.0h)))) # %a_1: 'a' + loop [i: $B7, b: $B8, c: $B9] { # loop_1 + $B7: { # initializer + next_iteration 0u # -> $B8 } - $B6 (%idx:u32): { # body - %70:bool = gte %idx, 4u - if %70 [t: $B8] { # if_1 - $B8: { # true + $B8 (%idx:u32): { # body + %93:bool = gte %idx, 4u + if %93 [t: $B10] { # if_1 + $B10: { # true exit_loop # loop_1 } } - %71:u32 = mul %idx, 256u - %72:u32 = add %start_byte_offset, %71 - %73:ptr = access %a_1, %idx - %74:Outer = call %21, %72 - store %73, %74 - continue # -> $B7 + %94:u32 = mul %idx, 64u + %95:u32 = add %start_byte_offset_2, %94 + %96:ptr = access %a_1, %idx + %97:Inner = call %28, %95 + store %96, %97 + continue # -> $B9 } - $B7: { # continuing - %75:u32 = add %idx, 1u - next_iteration %75 # -> $B6 + $B9: { # continuing + %98:u32 = add %idx, 1u + next_iteration %98 # -> $B8 } } - %76:array = load %a_1 - ret %76 + %99:array = load %a_1 + ret %99 } } -%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' - $B9: { - %78:array = call %24, %start_byte_offset_1 - %79:Outer = construct %78 - ret %79 +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' + $B11: { + %101:array = call %24, %start_byte_offset_3 + %102:Outer = construct %101 + ret %102 } } -%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %a_2:ptr, read_write> = var, array(Inner(mat2x2(vec2(0.0h)))) # %a_2: 'a' - loop [i: $B11, b: $B12, c: $B13] { # loop_2 - $B11: { # initializer - next_iteration 0u # -> $B12 +%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' + $B12: { + %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat2x2(vec2(0.0h)))))) # %a_2: 'a' + loop [i: $B13, b: $B14, c: $B15] { # loop_2 + $B13: { # initializer + next_iteration 0u # -> $B14 } - $B12 (%idx_1:u32): { # body - %83:bool = gte %idx_1, 4u - if %83 [t: $B14] { # if_2 - $B14: { # true + $B14 (%idx_1:u32): { # body + %106:bool = gte %idx_1, 4u + if %106 [t: $B16] { # if_2 + $B16: { # true exit_loop # loop_2 } } - %84:u32 = mul %idx_1, 64u - %85:u32 = add %start_byte_offset_2, %84 - %86:ptr = access %a_2, %idx_1 - %87:Inner = call %31, %85 - store %86, %87 - continue # -> $B13 + %107:u32 = mul %idx_1, 256u + %108:u32 = add %start_byte_offset_4, %107 + %109:ptr = access %a_2, %idx_1 + %110:Outer = call %21, %108 + store %109, %110 + continue # -> $B15 } - $B13: { # continuing - %88:u32 = add %idx_1, 1u - next_iteration %88 # -> $B12 + $B15: { # continuing + %111:u32 = add %idx_1, 1u + next_iteration %111 # -> $B14 } } - %89:array = load %a_2 - ret %89 - } -} -%31 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' - $B15: { - %91:mat2x2 = call %35, %start_byte_offset_3 - %92:Inner = construct %91 - ret %92 - } -} -%35 = func(%start_byte_offset_4:u32):mat2x2 { # %start_byte_offset_4: 'start_byte_offset' - $B16: { - %94:u32 = div %start_byte_offset_4, 16u - %95:ptr, read> = access %a, %94 - %96:u32 = mod %start_byte_offset_4, 16u - %97:u32 = div %96, 4u - %98:vec4 = load %95 - %99:u32 = swizzle %98, z - %100:u32 = swizzle %98, x - %101:bool = eq %97, 2u - %102:u32 = hlsl.ternary %100, %99, %101 - %103:vec2 = bitcast %102 - %104:u32 = add 4u, %start_byte_offset_4 - %105:u32 = div %104, 16u - %106:ptr, read> = access %a, %105 - %107:u32 = mod %104, 16u - %108:u32 = div %107, 4u - %109:vec4 = load %106 - %110:u32 = swizzle %109, z - %111:u32 = swizzle %109, x - %112:bool = eq %108, 2u - %113:u32 = hlsl.ternary %111, %110, %112 - %114:vec2 = bitcast %113 - %115:mat2x2 = construct %103, %114 - ret %115 + %112:array = load %a_2 + ret %112 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index dc1ee6458f7..9d9edf0b612 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -146,67 +146,67 @@ $B1: { # root ret } } -%24 = func(%start_byte_offset:u32):array { +%32 = func(%start_byte_offset:u32):mat2x2 { $B4: { + %65:u32 = div %start_byte_offset, 16u + %66:ptr, read> = access %a, %65 + %67:u32 = mod %start_byte_offset, 16u + %68:u32 = div %67, 4u + %69:vec4 = load %66 + %70:u32 = swizzle %69, z + %71:u32 = swizzle %69, x + %72:bool = eq %68, 2u + %73:u32 = hlsl.ternary %71, %70, %72 + %74:vec2 = bitcast %73 + %75:u32 = add 4u, %start_byte_offset + %76:u32 = div %75, 16u + %77:ptr, read> = access %a, %76 + %78:u32 = mod %75, 16u + %79:u32 = div %78, 4u + %80:vec4 = load %77 + %81:u32 = swizzle %80, z + %82:u32 = swizzle %80, x + %83:bool = eq %79, 2u + %84:u32 = hlsl.ternary %82, %81, %83 + %85:vec2 = bitcast %84 + %86:mat2x2 = construct %74, %85 + ret %86 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B5: { + %88:mat2x2 = call %32, %start_byte_offset_1 + %89:Inner = construct %88 + ret %89 + } +} +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B6: { %a_1:ptr, read_write> = var, array(Inner(mat2x2(vec2(0.0h)))) # %a_1: 'a' - loop [i: $B5, b: $B6, c: $B7] { # loop_1 - $B5: { # initializer - next_iteration 0u # -> $B6 + loop [i: $B7, b: $B8, c: $B9] { # loop_1 + $B7: { # initializer + next_iteration 0u # -> $B8 } - $B6 (%idx:u32): { # body - %67:bool = gte %idx, 4u - if %67 [t: $B8] { # if_1 - $B8: { # true + $B8 (%idx:u32): { # body + %93:bool = gte %idx, 4u + if %93 [t: $B10] { # if_1 + $B10: { # true exit_loop # loop_1 } } - %68:u32 = mul %idx, 64u - %69:u32 = add %start_byte_offset, %68 - %70:ptr = access %a_1, %idx - %71:Inner = call %28, %69 - store %70, %71 - continue # -> $B7 + %94:u32 = mul %idx, 64u + %95:u32 = add %start_byte_offset_2, %94 + %96:ptr = access %a_1, %idx + %97:Inner = call %28, %95 + store %96, %97 + continue # -> $B9 } - $B7: { # continuing - %72:u32 = add %idx, 1u - next_iteration %72 # -> $B6 + $B9: { # continuing + %98:u32 = add %idx, 1u + next_iteration %98 # -> $B8 } } - %73:array = load %a_1 - ret %73 - } -} -%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' - $B9: { - %75:mat2x2 = call %32, %start_byte_offset_1 - %76:Inner = construct %75 - ret %76 - } -} -%32 = func(%start_byte_offset_2:u32):mat2x2 { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %78:u32 = div %start_byte_offset_2, 16u - %79:ptr, read> = access %a, %78 - %80:u32 = mod %start_byte_offset_2, 16u - %81:u32 = div %80, 4u - %82:vec4 = load %79 - %83:u32 = swizzle %82, z - %84:u32 = swizzle %82, x - %85:bool = eq %81, 2u - %86:u32 = hlsl.ternary %84, %83, %85 - %87:vec2 = bitcast %86 - %88:u32 = add 4u, %start_byte_offset_2 - %89:u32 = div %88, 16u - %90:ptr, read> = access %a, %89 - %91:u32 = mod %88, 16u - %92:u32 = div %91, 4u - %93:vec4 = load %90 - %94:u32 = swizzle %93, z - %95:u32 = swizzle %93, x - %96:bool = eq %92, 2u - %97:u32 = hlsl.ternary %95, %94, %96 - %98:vec2 = bitcast %97 - %99:mat2x2 = construct %87, %98 + %99:array = load %a_1 ret %99 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index e51494c3b4c..8d8b3a928f8 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -20,7 +20,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol = {a_load_4((offset + 0u))}; + Inner tint_symbol = {a_load_4((offset + 0u))}; return tint_symbol; } @@ -36,7 +36,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_1 = {a_load_2((offset + 0u))}; + Outer tint_symbol_1 = {a_load_2((offset + 0u))}; return tint_symbol_1; } @@ -53,13 +53,16 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - 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 l_a_3_a_2_m = a_load_4(896u); + Outer l_a[4] = a_load(0u); + Outer l_a_3 = a_load_1(768u); + Inner l_a_3_a[4] = a_load_2(768u); + Inner l_a_3_a_2 = a_load_3(896u); + matrix l_a_3_a_2_m = a_load_4(896u); uint ubo_load_2 = a[56].y; - const vector l_a_3_a_2_m_1 = vector(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))); + vector l_a_3_a_2_m_1 = vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))); + float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].y) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016E7A713D40(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index eba878ced53..64f88c58010 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -96,5 +96,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000013277586520(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002360160C6B0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_builtin.wgsl.expected.fxc.hlsl index 84f92d5ceda..258894046f5 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -14,10 +14,13 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(260u)); + matrix t = transpose(u_load(260u)); uint ubo_load_2 = u[0].z; - const float16_t l = length(vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx); + float16_t l = length(vector(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(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx.x); + float16_t a = abs(vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000163A139B3F0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index b06a4b78c1f..a62df8bea92 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -27,5 +27,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026EEDF2FFD0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022FAE9F41E0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.fxc.hlsl index 005b5be8848..5237a809791 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.fxc.hlsl @@ -36,7 +36,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -62,3 +62,6 @@ void f() { e(vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A6A8D9CD00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 94c582134ae..594b209f70a 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -82,5 +82,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015C7C60E240(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C38E1E4CB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_private.wgsl.expected.fxc.hlsl index 46ae7935d8b..b218ac97b62 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_private.wgsl.expected.fxc.hlsl @@ -22,7 +22,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -46,3 +46,6 @@ void f() { p[1].m[0] = vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx; return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002A7D0DD3F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_private.wgsl.expected.ir.fxc.hlsl index d6c90f88377..378f21038c3 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -67,5 +67,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002646B94E940(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E14442A440(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_storage.wgsl.expected.fxc.hlsl index 348b202b48c..edaff6e5f6f 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_storage.wgsl.expected.fxc.hlsl @@ -42,7 +42,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -66,3 +66,6 @@ void f() { s.Store >(132u, vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))).yx); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002D3CA2A8380(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 8d52f6b6d78..77faa234a22 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -97,5 +97,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000014DC0BF2D10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001893E62C840(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_workgroup.wgsl.expected.fxc.hlsl index 2c819a1e205..12ce1491486 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -6,10 +6,22 @@ struct S { int after; }; +groupshared S w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + w[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[32]; }; -groupshared S w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -26,7 +38,7 @@ matrix u_load_3(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_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])}; + 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; } @@ -42,14 +54,7 @@ u_load_ret u_load(uint offset) { } 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_2 = (S)0; - w[i] = tint_symbol_2; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(256u); w[3].m = u_load_3(260u); @@ -62,3 +67,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002489B43BF50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index c4cbeb6b144..ff28e2eeb88 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -92,5 +92,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000002C86E87E140(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FDC088C430(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index d1a3c5701ad..278dc9fce3d 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -36,55 +36,7 @@ fn f() { let l_a_i_a_i_m_i_i : f32 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 4u - ^^^^^^^ - -:45:24 error: binary: %23 is not in scope - %32:u32 = add %31, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 4u - ^^^^^^^ - -:50:24 error: binary: %23 is not in scope - %38:u32 = add %37, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 4u - ^^^^^^^ - -:55:24 error: binary: %23 is not in scope - %44:u32 = add %43, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 4u - ^^^^^^^ - -:68:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :60:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -106,7 +58,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %56, 4u + %48:u32 = mul %47, 4u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -149,53 +101,45 @@ $B1: { # root %16:u32 = mul 8u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:array = call %28, %10 - %l_a_i_a:array = let %27 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 %30:u32 = add %10, %13 - %31:u32 = add %30, %16 - %32:u32 = add %31, %23 - %33:Inner = call %34, %32 - %l_a_i_a_i:Inner = let %33 - %36:u32 = add %10, %13 - %37:u32 = add %36, %16 - %38:u32 = add %37, %23 - %39:mat2x2 = call %40, %38 - %l_a_i_a_i_m:mat2x2 = let %39 - %42:u32 = add %10, %13 - %43:u32 = add %42, %16 - %44:u32 = add %43, %23 - %45:u32 = div %44, 16u - %46:ptr, read> = access %a, %45 - %47:u32 = mod %44, 16u - %48:u32 = div %47, 4u - %49:vec4 = load %46 - %50:vec2 = swizzle %49, zw - %51:vec2 = swizzle %49, xy - %52:bool = eq %48, 2u - %53:vec2 = hlsl.ternary %51, %50, %52 - %54:vec2 = bitcast %53 - %l_a_i_a_i_m_i:vec2 = let %54 - %56:i32 = call %i - %23:u32 = mul %56, 4u - %57:u32 = add %10, %13 - %58:u32 = add %57, %16 - %59:u32 = add %58, %23 - %60:u32 = div %59, 16u - %61:ptr, read> = access %a, %60 - %62:u32 = mod %59, 16u - %63:u32 = div %62, 4u - %64:u32 = load_vector_element %61, %63 - %65:f32 = bitcast %64 - %l_a_i_a_i_m_i_i:f32 = let %65 + %31:mat2x2 = call %32, %30 + %l_a_i_a_i_m:mat2x2 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:u32 = mod %35, 16u + %39:u32 = div %38, 4u + %40:vec4 = load %37 + %41:vec2 = swizzle %40, zw + %42:vec2 = swizzle %40, xy + %43:bool = eq %39, 2u + %44:vec2 = hlsl.ternary %42, %41, %43 + %45:vec2 = bitcast %44 + %l_a_i_a_i_m_i:vec2 = let %45 + %47:i32 = call %i + %48:u32 = mul %47, 4u + %49:u32 = add %10, %13 + %50:u32 = add %49, %16 + %51:u32 = add %50, %48 + %52:u32 = div %51, 16u + %53:ptr, read> = access %a, %52 + %54:u32 = mod %51, 16u + %55:u32 = div %54, 4u + %56:u32 = load_vector_element %53, %55 + %57:f32 = bitcast %56 + %l_a_i_a_i_m_i_i:f32 = let %57 ret } } -%28 = func(%start_byte_offset:u32):array { +%24 = func(%start_byte_offset:u32):array { $B4: { %a_1:ptr, read_write> = var, array(Inner(mat2x2(vec2(0.0f)))) # %a_1: 'a' loop [i: $B5, b: $B6, c: $B7] { # loop_1 @@ -203,67 +147,67 @@ $B1: { # root next_iteration 0u # -> $B6 } $B6 (%idx:u32): { # body - %70:bool = gte %idx, 4u - if %70 [t: $B8] { # if_1 + %62:bool = gte %idx, 4u + if %62 [t: $B8] { # if_1 $B8: { # true exit_loop # loop_1 } } - %71:u32 = mul %idx, 64u - %72:u32 = add %start_byte_offset, %71 - %73:ptr = access %a_1, %idx - %74:Inner = call %34, %72 - store %73, %74 + %63:u32 = mul %idx, 64u + %64:u32 = add %start_byte_offset, %63 + %65:ptr = access %a_1, %idx + %66:Inner = call %28, %64 + store %65, %66 continue # -> $B7 } $B7: { # continuing - %75:u32 = add %idx, 1u - next_iteration %75 # -> $B6 + %67:u32 = add %idx, 1u + next_iteration %67 # -> $B6 } } - %76:array = load %a_1 - ret %76 + %68:array = load %a_1 + ret %68 } } -%34 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' $B9: { - %78:mat2x2 = call %40, %start_byte_offset_1 - %79:Inner = construct %78 - ret %79 + %70:mat2x2 = call %32, %start_byte_offset_1 + %71:Inner = construct %70 + ret %71 } } -%40 = func(%start_byte_offset_2:u32):mat2x2 { # %start_byte_offset_2: 'start_byte_offset' +%32 = func(%start_byte_offset_2:u32):mat2x2 { # %start_byte_offset_2: 'start_byte_offset' $B10: { - %81:u32 = div %start_byte_offset_2, 16u - %82:ptr, read> = access %a, %81 - %83:u32 = mod %start_byte_offset_2, 16u - %84:u32 = div %83, 4u - %85:vec4 = load %82 - %86:vec2 = swizzle %85, zw - %87:vec2 = swizzle %85, xy - %88:bool = eq %84, 2u - %89:vec2 = hlsl.ternary %87, %86, %88 - %90:vec2 = bitcast %89 - %91:u32 = add 8u, %start_byte_offset_2 - %92:u32 = div %91, 16u - %93:ptr, read> = access %a, %92 - %94:u32 = mod %91, 16u - %95:u32 = div %94, 4u - %96:vec4 = load %93 - %97:vec2 = swizzle %96, zw - %98:vec2 = swizzle %96, xy - %99:bool = eq %95, 2u - %100:vec2 = hlsl.ternary %98, %97, %99 - %101:vec2 = bitcast %100 - %102:mat2x2 = construct %90, %101 - ret %102 + %73:u32 = div %start_byte_offset_2, 16u + %74:ptr, read> = access %a, %73 + %75:u32 = mod %start_byte_offset_2, 16u + %76:u32 = div %75, 4u + %77:vec4 = load %74 + %78:vec2 = swizzle %77, zw + %79:vec2 = swizzle %77, xy + %80:bool = eq %76, 2u + %81:vec2 = hlsl.ternary %79, %78, %80 + %82:vec2 = bitcast %81 + %83:u32 = add 8u, %start_byte_offset_2 + %84:u32 = div %83, 16u + %85:ptr, read> = access %a, %84 + %86:u32 = mod %83, 16u + %87:u32 = div %86, 4u + %88:vec4 = load %85 + %89:vec2 = swizzle %88, zw + %90:vec2 = swizzle %88, xy + %91:bool = eq %87, 2u + %92:vec2 = hlsl.ternary %90, %89, %91 + %93:vec2 = bitcast %92 + %94:mat2x2 = construct %82, %93 + ret %94 } } -%25 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %104:array = call %28, %start_byte_offset_3 - %105:Outer = construct %104 - ret %105 + %96:array = call %24, %start_byte_offset_3 + %97:Outer = construct %96 + ret %97 } } %18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' @@ -274,26 +218,26 @@ $B1: { # root next_iteration 0u # -> $B14 } $B14 (%idx_1:u32): { # body - %109:bool = gte %idx_1, 4u - if %109 [t: $B16] { # if_2 + %101:bool = gte %idx_1, 4u + if %101 [t: $B16] { # if_2 $B16: { # true exit_loop # loop_2 } } - %110:u32 = mul %idx_1, 256u - %111:u32 = add %start_byte_offset_4, %110 - %112:ptr = access %a_2, %idx_1 - %113:Outer = call %25, %111 - store %112, %113 + %102:u32 = mul %idx_1, 256u + %103:u32 = add %start_byte_offset_4, %102 + %104:ptr = access %a_2, %idx_1 + %105:Outer = call %21, %103 + store %104, %105 continue # -> $B15 } $B15: { # continuing - %114:u32 = add %idx_1, 1u - next_iteration %114 # -> $B14 + %106:u32 = add %idx_1, 1u + next_iteration %106 # -> $B14 } } - %115:array = load %a_2 - ret %115 + %107:array = load %a_2 + ret %107 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 278dc9fce3d..e6329e55750 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -139,9 +139,9 @@ $B1: { # root ret } } -%24 = func(%start_byte_offset:u32):array { +%18 = func(%start_byte_offset:u32):array { $B4: { - %a_1:ptr, read_write> = var, array(Inner(mat2x2(vec2(0.0f)))) # %a_1: 'a' + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat2x2(vec2(0.0f)))))) # %a_1: 'a' loop [i: $B5, b: $B6, c: $B7] { # loop_1 $B5: { # initializer next_iteration 0u # -> $B6 @@ -153,10 +153,10 @@ $B1: { # root exit_loop # loop_1 } } - %63:u32 = mul %idx, 64u + %63:u32 = mul %idx, 256u %64:u32 = add %start_byte_offset, %63 - %65:ptr = access %a_1, %idx - %66:Inner = call %28, %64 + %65:ptr = access %a_1, %idx + %66:Outer = call %21, %64 store %65, %66 continue # -> $B7 } @@ -165,78 +165,78 @@ $B1: { # root next_iteration %67 # -> $B6 } } - %68:array = load %a_1 + %68:array = load %a_1 ret %68 } } -%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' $B9: { - %70:mat2x2 = call %32, %start_byte_offset_1 - %71:Inner = construct %70 + %70:array = call %24, %start_byte_offset_1 + %71:Outer = construct %70 ret %71 } } -%32 = func(%start_byte_offset_2:u32):mat2x2 { # %start_byte_offset_2: 'start_byte_offset' +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' $B10: { - %73:u32 = div %start_byte_offset_2, 16u - %74:ptr, read> = access %a, %73 - %75:u32 = mod %start_byte_offset_2, 16u - %76:u32 = div %75, 4u - %77:vec4 = load %74 - %78:vec2 = swizzle %77, zw - %79:vec2 = swizzle %77, xy - %80:bool = eq %76, 2u - %81:vec2 = hlsl.ternary %79, %78, %80 - %82:vec2 = bitcast %81 - %83:u32 = add 8u, %start_byte_offset_2 - %84:u32 = div %83, 16u - %85:ptr, read> = access %a, %84 - %86:u32 = mod %83, 16u - %87:u32 = div %86, 4u - %88:vec4 = load %85 - %89:vec2 = swizzle %88, zw - %90:vec2 = swizzle %88, xy - %91:bool = eq %87, 2u - %92:vec2 = hlsl.ternary %90, %89, %91 - %93:vec2 = bitcast %92 - %94:mat2x2 = construct %82, %93 - ret %94 - } -} -%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %96:array = call %24, %start_byte_offset_3 - %97:Outer = construct %96 - ret %97 - } -} -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat2x2(vec2(0.0f)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 + %a_2:ptr, read_write> = var, array(Inner(mat2x2(vec2(0.0f)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %101:bool = gte %idx_1, 4u - if %101 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %75:bool = gte %idx_1, 4u + if %75 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %102:u32 = mul %idx_1, 256u - %103:u32 = add %start_byte_offset_4, %102 - %104:ptr = access %a_2, %idx_1 - %105:Outer = call %21, %103 - store %104, %105 - continue # -> $B15 + %76:u32 = mul %idx_1, 64u + %77:u32 = add %start_byte_offset_2, %76 + %78:ptr = access %a_2, %idx_1 + %79:Inner = call %28, %77 + store %78, %79 + continue # -> $B13 } - $B15: { # continuing - %106:u32 = add %idx_1, 1u - next_iteration %106 # -> $B14 + $B13: { # continuing + %80:u32 = add %idx_1, 1u + next_iteration %80 # -> $B12 } } - %107:array = load %a_2 + %81:array = load %a_2 + ret %81 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %83:mat2x2 = call %32, %start_byte_offset_3 + %84:Inner = construct %83 + ret %84 + } +} +%32 = func(%start_byte_offset_4:u32):mat2x2 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %86:u32 = div %start_byte_offset_4, 16u + %87:ptr, read> = access %a, %86 + %88:u32 = mod %start_byte_offset_4, 16u + %89:u32 = div %88, 4u + %90:vec4 = load %87 + %91:vec2 = swizzle %90, zw + %92:vec2 = swizzle %90, xy + %93:bool = eq %89, 2u + %94:vec2 = hlsl.ternary %92, %91, %93 + %95:vec2 = bitcast %94 + %96:u32 = add 8u, %start_byte_offset_4 + %97:u32 = div %96, 16u + %98:ptr, read> = access %a, %97 + %99:u32 = mod %96, 16u + %100:u32 = div %99, 4u + %101:vec4 = load %98 + %102:vec2 = swizzle %101, zw + %103:vec2 = swizzle %101, xy + %104:bool = eq %100, 2u + %105:vec2 = hlsl.ternary %103, %102, %104 + %106:vec2 = bitcast %105 + %107:mat2x2 = construct %95, %106 ret %107 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index f6d8e424426..4a5d6fc8bbe 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -32,7 +32,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol_4 = {a_load_4((offset + 0u))}; + Inner tint_symbol_4 = {a_load_4((offset + 0u))}; return tint_symbol_4; } @@ -48,7 +48,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_5 = {a_load_2((offset + 0u))}; + Outer tint_symbol_5 = {a_load_2((offset + 0u))}; return tint_symbol_5; } @@ -65,26 +65,29 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] 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] = 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 l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + int p_a_i_save = i(); + int p_a_i_a_i_save = i(); + int p_a_i_a_i_m_i_save = i(); + Outer l_a[4] = a_load(0u); + Outer l_a_i = a_load_1((256u * uint(p_a_i_save))); + Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save))); + Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + matrix 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); vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - const vector l_a_i_a_i_m_i = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); - const int tint_symbol = p_a_i_save; - const int tint_symbol_1 = p_a_i_a_i_save; - const int tint_symbol_2 = p_a_i_a_i_m_i_save; - const int tint_symbol_3 = i(); + vector l_a_i_a_i_m_i = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); + int tint_symbol = p_a_i_save; + int tint_symbol_1 = p_a_i_a_i_save; + int tint_symbol_2 = p_a_i_a_i_m_i_save; + int tint_symbol_3 = i(); const uint scalar_offset_bytes = (((((256u * uint(tint_symbol)) + (64u * uint(tint_symbol_1))) + (8u * uint(tint_symbol_2))) + (2u * uint(tint_symbol_3)))); const uint scalar_offset_index = scalar_offset_bytes / 4; - 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))); + 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: +C:\src\dawn\Shader@0x0000023D55BDB740(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 2e9398dd539..5c9ff58b769 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -38,55 +38,7 @@ fn f() { let l_a_i_a_i_m_i_i : f16 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:65:5 note: %23 declared here - %23:u32 = mul %53, 2u - ^^^^^^^ - -:43:24 error: binary: %23 is not in scope - %29:u32 = add %28, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:65:5 note: %23 declared here - %23:u32 = mul %53, 2u - ^^^^^^^ - -:48:24 error: binary: %23 is not in scope - %35:u32 = add %34, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:65:5 note: %23 declared here - %23:u32 = mul %53, 2u - ^^^^^^^ - -:53:24 error: binary: %23 is not in scope - %41:u32 = add %40, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:65:5 note: %23 declared here - %23:u32 = mul %53, 2u - ^^^^^^^ - -:65:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :55:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -108,7 +60,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %53, 2u + %43:u32 = mul %42, 2u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -151,79 +103,69 @@ $B1: { # root %16:u32 = mul 8u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:u32 = add %10, %13 - %28:u32 = add %27, %16 - %29:u32 = add %28, %23 - %30:array = call %31, %29 - %l_a_i_a:array = let %30 - %33:u32 = add %10, %13 - %34:u32 = add %33, %16 - %35:u32 = add %34, %23 - %36:Inner = call %37, %35 - %l_a_i_a_i:Inner = let %36 - %39:u32 = add %10, %13 - %40:u32 = add %39, %16 - %41:u32 = add %40, %23 - %42:mat2x3 = call %43, %41 - %l_a_i_a_i_m:mat2x3 = let %42 - %45:u32 = add %10, %13 - %46:u32 = add %45, %16 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 + %30:u32 = add %10, %13 + %31:mat2x3 = call %32, %30 + %l_a_i_a_i_m:mat2x3 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec4 = bitcast %38 + %40:vec3 = swizzle %39, xyz + %l_a_i_a_i_m_i:vec3 = let %40 + %42:i32 = call %i + %43:u32 = mul %42, 2u + %44:u32 = add %10, %13 + %45:u32 = add %44, %16 + %46:u32 = add %45, %43 %47:u32 = div %46, 16u %48:ptr, read> = access %a, %47 - %49:vec4 = load %48 - %50:vec4 = bitcast %49 - %51:vec3 = swizzle %50, xyz - %l_a_i_a_i_m_i:vec3 = let %51 - %53:i32 = call %i - %23:u32 = mul %53, 2u - %54:u32 = add %10, %13 - %55:u32 = add %54, %16 - %56:u32 = add %55, %23 - %57:u32 = div %56, 16u - %58:ptr, read> = access %a, %57 - %59:u32 = mod %56, 16u - %60:u32 = div %59, 4u - %61:u32 = load_vector_element %58, %60 - %62:u32 = mod %56, 4u - %63:bool = eq %62, 0u - %64:u32 = hlsl.ternary 16u, 0u, %63 - %65:u32 = shr %61, %64 - %66:f32 = hlsl.f16tof32 %65 - %67:f16 = convert %66 - %l_a_i_a_i_m_i_i:f16 = let %67 + %49:u32 = mod %46, 16u + %50:u32 = div %49, 4u + %51:u32 = load_vector_element %48, %50 + %52:u32 = mod %46, 4u + %53:bool = eq %52, 0u + %54:u32 = hlsl.ternary 16u, 0u, %53 + %55:u32 = shr %51, %54 + %56:f32 = hlsl.f16tof32 %55 + %57:f16 = convert %56 + %l_a_i_a_i_m_i_i:f16 = let %57 ret } } -%43 = func(%start_byte_offset:u32):mat2x3 { +%28 = func(%start_byte_offset:u32):Inner { $B4: { - %70:u32 = div %start_byte_offset, 16u - %71:ptr, read> = access %a, %70 - %72:vec4 = load %71 - %73:vec4 = bitcast %72 - %74:vec3 = swizzle %73, xyz - %75:u32 = add 8u, %start_byte_offset - %76:u32 = div %75, 16u - %77:ptr, read> = access %a, %76 - %78:vec4 = load %77 - %79:vec4 = bitcast %78 - %80:vec3 = swizzle %79, xyz - %81:mat2x3 = construct %74, %80 - ret %81 + %60:mat2x3 = call %32, %start_byte_offset + %61:Inner = construct %60 + ret %61 } } -%37 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' +%32 = func(%start_byte_offset_1:u32):mat2x3 { # %start_byte_offset_1: 'start_byte_offset' $B5: { - %83:mat2x3 = call %43, %start_byte_offset_1 - %84:Inner = construct %83 - ret %84 + %63:u32 = div %start_byte_offset_1, 16u + %64:ptr, read> = access %a, %63 + %65:vec4 = load %64 + %66:vec4 = bitcast %65 + %67:vec3 = swizzle %66, xyz + %68:u32 = add 8u, %start_byte_offset_1 + %69:u32 = div %68, 16u + %70:ptr, read> = access %a, %69 + %71:vec4 = load %70 + %72:vec4 = bitcast %71 + %73:vec3 = swizzle %72, xyz + %74:mat2x3 = construct %67, %73 + ret %74 } } -%31 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' $B6: { %a_1:ptr, read_write> = var, array(Inner(mat2x3(vec3(0.0h)))) # %a_1: 'a' loop [i: $B7, b: $B8, c: $B9] { # loop_1 @@ -231,33 +173,33 @@ $B1: { # root next_iteration 0u # -> $B8 } $B8 (%idx:u32): { # body - %88:bool = gte %idx, 4u - if %88 [t: $B10] { # if_1 + %78:bool = gte %idx, 4u + if %78 [t: $B10] { # if_1 $B10: { # true exit_loop # loop_1 } } - %89:u32 = mul %idx, 64u - %90:u32 = add %start_byte_offset_2, %89 - %91:ptr = access %a_1, %idx - %92:Inner = call %37, %90 - store %91, %92 + %79:u32 = mul %idx, 64u + %80:u32 = add %start_byte_offset_2, %79 + %81:ptr = access %a_1, %idx + %82:Inner = call %28, %80 + store %81, %82 continue # -> $B9 } $B9: { # continuing - %93:u32 = add %idx, 1u - next_iteration %93 # -> $B8 + %83:u32 = add %idx, 1u + next_iteration %83 # -> $B8 } } - %94:array = load %a_1 - ret %94 + %84:array = load %a_1 + ret %84 } } -%25 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %96:array = call %31, %start_byte_offset_3 - %97:Outer = construct %96 - ret %97 + %86:array = call %24, %start_byte_offset_3 + %87:Outer = construct %86 + ret %87 } } %18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' @@ -268,26 +210,26 @@ $B1: { # root next_iteration 0u # -> $B14 } $B14 (%idx_1:u32): { # body - %101:bool = gte %idx_1, 4u - if %101 [t: $B16] { # if_2 + %91:bool = gte %idx_1, 4u + if %91 [t: $B16] { # if_2 $B16: { # true exit_loop # loop_2 } } - %102:u32 = mul %idx_1, 256u - %103:u32 = add %start_byte_offset_4, %102 - %104:ptr = access %a_2, %idx_1 - %105:Outer = call %25, %103 - store %104, %105 + %92:u32 = mul %idx_1, 256u + %93:u32 = add %start_byte_offset_4, %92 + %94:ptr = access %a_2, %idx_1 + %95:Outer = call %21, %93 + store %94, %95 continue # -> $B15 } $B15: { # continuing - %106:u32 = add %idx_1, 1u - next_iteration %106 # -> $B14 + %96:u32 = add %idx_1, 1u + next_iteration %96 # -> $B14 } } - %107:array = load %a_2 - ret %107 + %97:array = load %a_2 + ret %97 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index cfbd0623e9d..99306bce8c2 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -141,94 +141,94 @@ $B1: { # root ret } } -%21 = func(%start_byte_offset:u32):Outer { +%18 = func(%start_byte_offset:u32):array { $B4: { - %60:array = call %24, %start_byte_offset - %61:Outer = construct %60 - ret %61 - } -} -%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %a_1:ptr, read_write> = var, array(Inner(mat2x3(vec3(0.0h)))) # %a_1: 'a' - loop [i: $B6, b: $B7, c: $B8] { # loop_1 - $B6: { # initializer - next_iteration 0u # -> $B7 + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat2x3(vec3(0.0h)))))) # %a_1: 'a' + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B7 (%idx:u32): { # body - %65:bool = gte %idx, 4u - if %65 [t: $B9] { # if_1 - $B9: { # true + $B6 (%idx:u32): { # body + %62:bool = gte %idx, 4u + if %62 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %66:u32 = mul %idx, 64u - %67:u32 = add %start_byte_offset_1, %66 - %68:ptr = access %a_1, %idx - %69:Inner = call %28, %67 - store %68, %69 - continue # -> $B8 + %63:u32 = mul %idx, 256u + %64:u32 = add %start_byte_offset, %63 + %65:ptr = access %a_1, %idx + %66:Outer = call %21, %64 + store %65, %66 + continue # -> $B7 } - $B8: { # continuing - %70:u32 = add %idx, 1u - next_iteration %70 # -> $B7 + $B7: { # continuing + %67:u32 = add %idx, 1u + next_iteration %67 # -> $B6 } } - %71:array = load %a_1 - ret %71 - } -} -%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %73:mat2x3 = call %32, %start_byte_offset_2 - %74:Inner = construct %73 - ret %74 + %68:array = load %a_1 + ret %68 } } -%32 = func(%start_byte_offset_3:u32):mat2x3 { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %76:u32 = div %start_byte_offset_3, 16u - %77:ptr, read> = access %a, %76 - %78:vec4 = load %77 - %79:vec4 = bitcast %78 - %80:vec3 = swizzle %79, xyz - %81:u32 = add 8u, %start_byte_offset_3 - %82:u32 = div %81, 16u - %83:ptr, read> = access %a, %82 - %84:vec4 = load %83 - %85:vec4 = bitcast %84 - %86:vec3 = swizzle %85, xyz - %87:mat2x3 = construct %80, %86 - ret %87 +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %70:array = call %24, %start_byte_offset_1 + %71:Outer = construct %70 + ret %71 } } -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat2x3(vec3(0.0h)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %a_2:ptr, read_write> = var, array(Inner(mat2x3(vec3(0.0h)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %91:bool = gte %idx_1, 4u - if %91 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %75:bool = gte %idx_1, 4u + if %75 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %92:u32 = mul %idx_1, 256u - %93:u32 = add %start_byte_offset_4, %92 - %94:ptr = access %a_2, %idx_1 - %95:Outer = call %21, %93 - store %94, %95 - continue # -> $B15 + %76:u32 = mul %idx_1, 64u + %77:u32 = add %start_byte_offset_2, %76 + %78:ptr = access %a_2, %idx_1 + %79:Inner = call %28, %77 + store %78, %79 + continue # -> $B13 } - $B15: { # continuing - %96:u32 = add %idx_1, 1u - next_iteration %96 # -> $B14 + $B13: { # continuing + %80:u32 = add %idx_1, 1u + next_iteration %80 # -> $B12 } } - %97:array = load %a_2 + %81:array = load %a_2 + ret %81 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %83:mat2x3 = call %32, %start_byte_offset_3 + %84:Inner = construct %83 + ret %84 + } +} +%32 = func(%start_byte_offset_4:u32):mat2x3 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %86:u32 = div %start_byte_offset_4, 16u + %87:ptr, read> = access %a, %86 + %88:vec4 = load %87 + %89:vec4 = bitcast %88 + %90:vec3 = swizzle %89, xyz + %91:u32 = add 8u, %start_byte_offset_4 + %92:u32 = div %91, 16u + %93:ptr, read> = access %a, %92 + %94:vec4 = load %93 + %95:vec4 = bitcast %94 + %96:vec3 = swizzle %95, xyz + %97:mat2x3 = construct %90, %96 ret %97 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index f433030e6a0..c6314092c70 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -26,7 +26,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol = {a_load_4((offset + 0u))}; + Inner tint_symbol = {a_load_4((offset + 0u))}; return tint_symbol; } @@ -42,7 +42,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_1 = {a_load_2((offset + 0u))}; + Outer tint_symbol_1 = {a_load_2((offset + 0u))}; return tint_symbol_1; } @@ -59,15 +59,18 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - 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 l_a_3_a_2_m = a_load_4(896u); + Outer l_a[4] = a_load(0u); + Outer l_a_3 = a_load_1(768u); + Inner l_a_3_a[4] = a_load_2(768u); + Inner l_a_3_a_2 = a_load_3(896u); + matrix l_a_3_a_2_m = a_load_4(896u); uint2 ubo_load_4 = a[56].zw; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - const vector l_a_3_a_2_m_1 = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); - const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); + vector l_a_3_a_2_m_1 = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); + float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000167C2BB6530(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 673a3b7d7d0..9a895dcaa65 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -98,5 +98,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E614EA4F60(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027D6DCA91A0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl index a320455dc0e..74734ec7fa9 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -20,14 +20,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(264u)); + matrix t = transpose(u_load(264u)); uint2 ubo_load_4 = u[1].xy; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - const float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy); + float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy); uint2 ubo_load_5 = u[1].xy; vector ubo_load_5_xz = vector(f16tof32(ubo_load_5 & 0xFFFF)); float16_t ubo_load_5_y = f16tof32(ubo_load_5[0] >> 16); - const float16_t a = abs(vector(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x); + float16_t a = abs(vector(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023254ADC490(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index e7748e3fb8a..96a190e280a 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -29,5 +29,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015B2B432370(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020ADA944CD0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl index 0b0b65ad29d..89a2fc08367 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl @@ -42,7 +42,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -72,3 +72,6 @@ void f() { e(vector(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B01BF44CE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 9d24c219353..4e300b61295 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -84,5 +84,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021A45DD2540(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C22A045690(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl index b3af07c042c..6a6cae3f628 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl @@ -28,7 +28,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -54,3 +54,6 @@ void f() { p[1].m[0] = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy; return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016E5A09E700(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl index 2329238b63e..2ba78969891 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -69,5 +69,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021CCB2ABE40(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C58CF85D70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl index 1818ba4f0e9..49df1e4ad99 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl @@ -48,7 +48,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -74,3 +74,6 @@ void f() { s.Store >(136u, vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]).zxy); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002670957AFB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 99f1a12ae3b..8f25292124d 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -99,5 +99,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001694C925500(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028B26B76350(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl index 00e8dd4550d..b52be6dc033 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -6,10 +6,22 @@ struct S { int after; }; +groupshared S w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + w[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[32]; }; -groupshared S w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -32,7 +44,7 @@ matrix u_load_3(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_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])}; + 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; } @@ -48,14 +60,7 @@ u_load_ret u_load(uint offset) { } 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_2 = (S)0; - w[i] = tint_symbol_2; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(256u); w[3].m = u_load_3(264u); @@ -70,3 +75,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D481E1D590(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index a5f7112c36a..79e80ab7ffd 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -94,5 +94,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000022B49612DF0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D0BF543E40(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 09eaefef5d4..9b875a547df 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -36,43 +36,7 @@ fn f() { let l_a_i_a_i_m_i_i : f32 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:63:5 note: %23 declared here - %23:u32 = mul %51, 4u - ^^^^^^^ - -:43:24 error: binary: %23 is not in scope - %29:u32 = add %28, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:63:5 note: %23 declared here - %23:u32 = mul %51, 4u - ^^^^^^^ - -:48:24 error: binary: %23 is not in scope - %35:u32 = add %34, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:63:5 note: %23 declared here - %23:u32 = mul %51, 4u - ^^^^^^^ - -:63:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :55:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -94,7 +58,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %51, 4u + %43:u32 = mul %42, 4u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -137,106 +101,98 @@ $B1: { # root %16:u32 = mul 16u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:u32 = add %10, %13 - %28:u32 = add %27, %16 - %29:u32 = add %28, %23 - %30:array = call %31, %29 - %l_a_i_a:array = let %30 - %33:u32 = add %10, %13 - %34:u32 = add %33, %16 - %35:u32 = add %34, %23 - %36:Inner = call %37, %35 - %l_a_i_a_i:Inner = let %36 - %39:u32 = add %10, %13 - %40:mat2x3 = call %41, %39 - %l_a_i_a_i_m:mat2x3 = let %40 - %43:u32 = add %10, %13 - %44:u32 = add %43, %16 - %45:u32 = div %44, 16u - %46:ptr, read> = access %a, %45 - %47:vec4 = load %46 - %48:vec3 = swizzle %47, xyz - %49:vec3 = bitcast %48 - %l_a_i_a_i_m_i:vec3 = let %49 - %51:i32 = call %i - %23:u32 = mul %51, 4u - %52:u32 = add %10, %13 - %53:u32 = add %52, %16 - %54:u32 = add %53, %23 - %55:u32 = div %54, 16u - %56:ptr, read> = access %a, %55 - %57:u32 = mod %54, 16u - %58:u32 = div %57, 4u - %59:u32 = load_vector_element %56, %58 - %60:f32 = bitcast %59 - %l_a_i_a_i_m_i_i:f32 = let %60 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 + %30:u32 = add %10, %13 + %31:mat2x3 = call %32, %30 + %l_a_i_a_i_m:mat2x3 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec3 = swizzle %38, xyz + %40:vec3 = bitcast %39 + %l_a_i_a_i_m_i:vec3 = let %40 + %42:i32 = call %i + %43:u32 = mul %42, 4u + %44:u32 = add %10, %13 + %45:u32 = add %44, %16 + %46:u32 = add %45, %43 + %47:u32 = div %46, 16u + %48:ptr, read> = access %a, %47 + %49:u32 = mod %46, 16u + %50:u32 = div %49, 4u + %51:u32 = load_vector_element %48, %50 + %52:f32 = bitcast %51 + %l_a_i_a_i_m_i_i:f32 = let %52 ret } } -%41 = func(%start_byte_offset:u32):mat2x3 { +%21 = func(%start_byte_offset:u32):Outer { $B4: { - %63:u32 = div %start_byte_offset, 16u - %64:ptr, read> = access %a, %63 - %65:vec4 = load %64 - %66:vec3 = swizzle %65, xyz - %67:vec3 = bitcast %66 - %68:u32 = add 16u, %start_byte_offset - %69:u32 = div %68, 16u - %70:ptr, read> = access %a, %69 - %71:vec4 = load %70 - %72:vec3 = swizzle %71, xyz - %73:vec3 = bitcast %72 - %74:mat2x3 = construct %67, %73 - ret %74 + %55:array = call %24, %start_byte_offset + %56:Outer = construct %55 + ret %56 } } -%37 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' +%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' $B5: { - %76:mat2x3 = call %41, %start_byte_offset_1 - %77:Inner = construct %76 - ret %77 - } -} -%31 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B6: { %a_1:ptr, read_write> = var, array(Inner(mat2x3(vec3(0.0f)))) # %a_1: 'a' - loop [i: $B7, b: $B8, c: $B9] { # loop_1 - $B7: { # initializer - next_iteration 0u # -> $B8 + loop [i: $B6, b: $B7, c: $B8] { # loop_1 + $B6: { # initializer + next_iteration 0u # -> $B7 } - $B8 (%idx:u32): { # body - %81:bool = gte %idx, 4u - if %81 [t: $B10] { # if_1 - $B10: { # true + $B7 (%idx:u32): { # body + %60:bool = gte %idx, 4u + if %60 [t: $B9] { # if_1 + $B9: { # true exit_loop # loop_1 } } - %82:u32 = mul %idx, 64u - %83:u32 = add %start_byte_offset_2, %82 - %84:ptr = access %a_1, %idx - %85:Inner = call %37, %83 - store %84, %85 - continue # -> $B9 + %61:u32 = mul %idx, 64u + %62:u32 = add %start_byte_offset_1, %61 + %63:ptr = access %a_1, %idx + %64:Inner = call %28, %62 + store %63, %64 + continue # -> $B8 } - $B9: { # continuing - %86:u32 = add %idx, 1u - next_iteration %86 # -> $B8 + $B8: { # continuing + %65:u32 = add %idx, 1u + next_iteration %65 # -> $B7 } } - %87:array = load %a_1 - ret %87 + %66:array = load %a_1 + ret %66 + } +} +%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %68:mat2x3 = call %32, %start_byte_offset_2 + %69:Inner = construct %68 + ret %69 } } -%25 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' +%32 = func(%start_byte_offset_3:u32):mat2x3 { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %89:array = call %31, %start_byte_offset_3 - %90:Outer = construct %89 - ret %90 + %71:u32 = div %start_byte_offset_3, 16u + %72:ptr, read> = access %a, %71 + %73:vec4 = load %72 + %74:vec3 = swizzle %73, xyz + %75:vec3 = bitcast %74 + %76:u32 = add 16u, %start_byte_offset_3 + %77:u32 = div %76, 16u + %78:ptr, read> = access %a, %77 + %79:vec4 = load %78 + %80:vec3 = swizzle %79, xyz + %81:vec3 = bitcast %80 + %82:mat2x3 = construct %75, %81 + ret %82 } } %18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' @@ -247,26 +203,26 @@ $B1: { # root next_iteration 0u # -> $B14 } $B14 (%idx_1:u32): { # body - %94:bool = gte %idx_1, 4u - if %94 [t: $B16] { # if_2 + %86:bool = gte %idx_1, 4u + if %86 [t: $B16] { # if_2 $B16: { # true exit_loop # loop_2 } } - %95:u32 = mul %idx_1, 256u - %96:u32 = add %start_byte_offset_4, %95 - %97:ptr = access %a_2, %idx_1 - %98:Outer = call %25, %96 - store %97, %98 + %87:u32 = mul %idx_1, 256u + %88:u32 = add %start_byte_offset_4, %87 + %89:ptr = access %a_2, %idx_1 + %90:Outer = call %21, %88 + store %89, %90 continue # -> $B15 } $B15: { # continuing - %99:u32 = add %idx_1, 1u - next_iteration %99 # -> $B14 + %91:u32 = add %idx_1, 1u + next_iteration %91 # -> $B14 } } - %100:array = load %a_2 - ret %100 + %92:array = load %a_2 + ret %92 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index d0f862ec5ec..d002a7087be 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -134,9 +134,9 @@ $B1: { # root ret } } -%24 = func(%start_byte_offset:u32):array { +%18 = func(%start_byte_offset:u32):array { $B4: { - %a_1:ptr, read_write> = var, array(Inner(mat2x3(vec3(0.0f)))) # %a_1: 'a' + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat2x3(vec3(0.0f)))))) # %a_1: 'a' loop [i: $B5, b: $B6, c: $B7] { # loop_1 $B5: { # initializer next_iteration 0u # -> $B6 @@ -148,10 +148,10 @@ $B1: { # root exit_loop # loop_1 } } - %58:u32 = mul %idx, 64u + %58:u32 = mul %idx, 256u %59:u32 = add %start_byte_offset, %58 - %60:ptr = access %a_1, %idx - %61:Inner = call %28, %59 + %60:ptr = access %a_1, %idx + %61:Outer = call %21, %59 store %60, %61 continue # -> $B7 } @@ -160,68 +160,68 @@ $B1: { # root next_iteration %62 # -> $B6 } } - %63:array = load %a_1 + %63:array = load %a_1 ret %63 } } -%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' $B9: { - %65:mat2x3 = call %32, %start_byte_offset_1 - %66:Inner = construct %65 + %65:array = call %24, %start_byte_offset_1 + %66:Outer = construct %65 ret %66 } } -%32 = func(%start_byte_offset_2:u32):mat2x3 { # %start_byte_offset_2: 'start_byte_offset' +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' $B10: { - %68:u32 = div %start_byte_offset_2, 16u - %69:ptr, read> = access %a, %68 - %70:vec4 = load %69 - %71:vec3 = swizzle %70, xyz - %72:vec3 = bitcast %71 - %73:u32 = add 16u, %start_byte_offset_2 - %74:u32 = div %73, 16u - %75:ptr, read> = access %a, %74 - %76:vec4 = load %75 - %77:vec3 = swizzle %76, xyz - %78:vec3 = bitcast %77 - %79:mat2x3 = construct %72, %78 - ret %79 - } -} -%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %81:array = call %24, %start_byte_offset_3 - %82:Outer = construct %81 - ret %82 - } -} -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat2x3(vec3(0.0f)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 + %a_2:ptr, read_write> = var, array(Inner(mat2x3(vec3(0.0f)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %86:bool = gte %idx_1, 4u - if %86 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %70:bool = gte %idx_1, 4u + if %70 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %87:u32 = mul %idx_1, 256u - %88:u32 = add %start_byte_offset_4, %87 - %89:ptr = access %a_2, %idx_1 - %90:Outer = call %21, %88 - store %89, %90 - continue # -> $B15 + %71:u32 = mul %idx_1, 64u + %72:u32 = add %start_byte_offset_2, %71 + %73:ptr = access %a_2, %idx_1 + %74:Inner = call %28, %72 + store %73, %74 + continue # -> $B13 } - $B15: { # continuing - %91:u32 = add %idx_1, 1u - next_iteration %91 # -> $B14 + $B13: { # continuing + %75:u32 = add %idx_1, 1u + next_iteration %75 # -> $B12 } } - %92:array = load %a_2 + %76:array = load %a_2 + ret %76 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %78:mat2x3 = call %32, %start_byte_offset_3 + %79:Inner = construct %78 + ret %79 + } +} +%32 = func(%start_byte_offset_4:u32):mat2x3 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %81:u32 = div %start_byte_offset_4, 16u + %82:ptr, read> = access %a, %81 + %83:vec4 = load %82 + %84:vec3 = swizzle %83, xyz + %85:vec3 = bitcast %84 + %86:u32 = add 16u, %start_byte_offset_4 + %87:u32 = div %86, 16u + %88:ptr, read> = access %a, %87 + %89:vec4 = load %88 + %90:vec3 = swizzle %89, xyz + %91:vec3 = bitcast %90 + %92:mat2x3 = construct %85, %91 ret %92 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 37f794af5cc..954c48590ed 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -32,7 +32,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol_4 = {a_load_4((offset + 0u))}; + Inner tint_symbol_4 = {a_load_4((offset + 0u))}; return tint_symbol_4; } @@ -48,7 +48,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_5 = {a_load_2((offset + 0u))}; + Outer tint_symbol_5 = {a_load_2((offset + 0u))}; return tint_symbol_5; } @@ -65,26 +65,29 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] 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] = 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 l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + int p_a_i_save = i(); + int p_a_i_a_i_save = i(); + int p_a_i_a_i_m_i_save = i(); + Outer l_a[4] = a_load(0u); + Outer l_a_i = a_load_1((256u * uint(p_a_i_save))); + Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save))); + Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + matrix 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); vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); - const vector l_a_i_a_i_m_i = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); - const int tint_symbol = p_a_i_save; - const int tint_symbol_1 = p_a_i_a_i_save; - const int tint_symbol_2 = p_a_i_a_i_m_i_save; - const int tint_symbol_3 = i(); + vector l_a_i_a_i_m_i = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); + int tint_symbol = p_a_i_save; + int tint_symbol_1 = p_a_i_a_i_save; + int tint_symbol_2 = p_a_i_a_i_m_i_save; + int tint_symbol_3 = i(); const uint scalar_offset_bytes = (((((256u * uint(tint_symbol)) + (64u * uint(tint_symbol_1))) + (8u * uint(tint_symbol_2))) + (2u * uint(tint_symbol_3)))); const uint scalar_offset_index = scalar_offset_bytes / 4; - 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))); + 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: +C:\src\dawn\Shader@0x000001F331534640(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index d63f08a665a..421f139d9e3 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -38,43 +38,7 @@ fn f() { let l_a_i_a_i_m_i_i : f16 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :40:24 error: binary: %26 is not in scope - %25:u32 = add %24, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:61:5 note: %26 declared here - %26:u32 = mul %49, 2u - ^^^^^^^ - -:45:24 error: binary: %26 is not in scope - %32:u32 = add %31, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:61:5 note: %26 declared here - %26:u32 = mul %49, 2u - ^^^^^^^ - -:50:24 error: binary: %26 is not in scope - %38:u32 = add %37, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:61:5 note: %26 declared here - %26:u32 = mul %49, 2u - ^^^^^^^ - -:61:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :54:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -96,7 +60,7 @@ Failed to generate: :40:24 error: binary: %26 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %26:u32 = mul %49, 2u + %42:u32 = mul %41, 2u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -141,56 +105,49 @@ $B1: { # root %l_a:array = let %17 %20:Outer = call %21, %10 %l_a_i:Outer = let %20 - %23:u32 = add %10, %13 - %24:u32 = add %23, %16 - %25:u32 = add %24, %26 - %27:array = call %28, %25 - %l_a_i_a:array = let %27 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 %30:u32 = add %10, %13 - %31:u32 = add %30, %16 - %32:u32 = add %31, %26 - %33:Inner = call %34, %32 - %l_a_i_a_i:Inner = let %33 - %36:u32 = add %10, %13 - %37:u32 = add %36, %16 - %38:u32 = add %37, %26 - %39:mat2x4 = call %40, %38 - %l_a_i_a_i_m:mat2x4 = let %39 - %42:u32 = add %10, %13 - %43:u32 = add %42, %16 - %44:u32 = div %43, 16u - %45:ptr, read> = access %a, %44 - %46:vec4 = load %45 - %47:vec4 = bitcast %46 - %l_a_i_a_i_m_i:vec4 = let %47 - %49:i32 = call %i - %26:u32 = mul %49, 2u - %50:u32 = add %10, %13 - %51:u32 = add %50, %16 - %52:u32 = add %51, %26 - %53:u32 = div %52, 16u - %54:ptr, read> = access %a, %53 - %55:u32 = mod %52, 16u - %56:u32 = div %55, 4u - %57:u32 = load_vector_element %54, %56 - %58:u32 = mod %52, 4u - %59:bool = eq %58, 0u - %60:u32 = hlsl.ternary 16u, 0u, %59 - %61:u32 = shr %57, %60 - %62:f32 = hlsl.f16tof32 %61 - %63:f16 = convert %62 - %l_a_i_a_i_m_i_i:f16 = let %63 + %31:mat2x4 = call %32, %30 + %l_a_i_a_i_m:mat2x4 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec4 = bitcast %38 + %l_a_i_a_i_m_i:vec4 = let %39 + %41:i32 = call %i + %42:u32 = mul %41, 2u + %43:u32 = add %10, %13 + %44:u32 = add %43, %16 + %45:u32 = add %44, %42 + %46:u32 = div %45, 16u + %47:ptr, read> = access %a, %46 + %48:u32 = mod %45, 16u + %49:u32 = div %48, 4u + %50:u32 = load_vector_element %47, %49 + %51:u32 = mod %45, 4u + %52:bool = eq %51, 0u + %53:u32 = hlsl.ternary 16u, 0u, %52 + %54:u32 = shr %50, %53 + %55:f32 = hlsl.f16tof32 %54 + %56:f16 = convert %55 + %l_a_i_a_i_m_i_i:f16 = let %56 ret } } %21 = func(%start_byte_offset:u32):Outer { $B4: { - %66:array = call %28, %start_byte_offset - %67:Outer = construct %66 - ret %67 + %59:array = call %24, %start_byte_offset + %60:Outer = construct %59 + ret %60 } } -%28 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' +%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' $B5: { %a_1:ptr, read_write> = var, array(Inner(mat2x4(vec4(0.0h)))) # %a_1: 'a' loop [i: $B6, b: $B7, c: $B8] { # loop_1 @@ -198,48 +155,48 @@ $B1: { # root next_iteration 0u # -> $B7 } $B7 (%idx:u32): { # body - %71:bool = gte %idx, 4u - if %71 [t: $B9] { # if_1 + %64:bool = gte %idx, 4u + if %64 [t: $B9] { # if_1 $B9: { # true exit_loop # loop_1 } } - %72:u32 = mul %idx, 64u - %73:u32 = add %start_byte_offset_1, %72 - %74:ptr = access %a_1, %idx - %75:Inner = call %34, %73 - store %74, %75 + %65:u32 = mul %idx, 64u + %66:u32 = add %start_byte_offset_1, %65 + %67:ptr = access %a_1, %idx + %68:Inner = call %28, %66 + store %67, %68 continue # -> $B8 } $B8: { # continuing - %76:u32 = add %idx, 1u - next_iteration %76 # -> $B7 + %69:u32 = add %idx, 1u + next_iteration %69 # -> $B7 } } - %77:array = load %a_1 - ret %77 + %70:array = load %a_1 + ret %70 } } -%34 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' +%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' $B10: { - %79:mat2x4 = call %40, %start_byte_offset_2 - %80:Inner = construct %79 - ret %80 + %72:mat2x4 = call %32, %start_byte_offset_2 + %73:Inner = construct %72 + ret %73 } } -%40 = func(%start_byte_offset_3:u32):mat2x4 { # %start_byte_offset_3: 'start_byte_offset' +%32 = func(%start_byte_offset_3:u32):mat2x4 { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %82:u32 = div %start_byte_offset_3, 16u - %83:ptr, read> = access %a, %82 - %84:vec4 = load %83 - %85:vec4 = bitcast %84 - %86:u32 = add 8u, %start_byte_offset_3 - %87:u32 = div %86, 16u - %88:ptr, read> = access %a, %87 - %89:vec4 = load %88 - %90:vec4 = bitcast %89 - %91:mat2x4 = construct %85, %90 - ret %91 + %75:u32 = div %start_byte_offset_3, 16u + %76:ptr, read> = access %a, %75 + %77:vec4 = load %76 + %78:vec4 = bitcast %77 + %79:u32 = add 8u, %start_byte_offset_3 + %80:u32 = div %79, 16u + %81:ptr, read> = access %a, %80 + %82:vec4 = load %81 + %83:vec4 = bitcast %82 + %84:mat2x4 = construct %78, %83 + ret %84 } } %18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' @@ -250,26 +207,26 @@ $B1: { # root next_iteration 0u # -> $B14 } $B14 (%idx_1:u32): { # body - %95:bool = gte %idx_1, 4u - if %95 [t: $B16] { # if_2 + %88:bool = gte %idx_1, 4u + if %88 [t: $B16] { # if_2 $B16: { # true exit_loop # loop_2 } } - %96:u32 = mul %idx_1, 256u - %97:u32 = add %start_byte_offset_4, %96 - %98:ptr = access %a_2, %idx_1 - %99:Outer = call %21, %97 - store %98, %99 + %89:u32 = mul %idx_1, 256u + %90:u32 = add %start_byte_offset_4, %89 + %91:ptr = access %a_2, %idx_1 + %92:Outer = call %21, %90 + store %91, %92 continue # -> $B15 } $B15: { # continuing - %100:u32 = add %idx_1, 1u - next_iteration %100 # -> $B14 + %93:u32 = add %idx_1, 1u + next_iteration %93 # -> $B14 } } - %101:array = load %a_2 - ret %101 + %94:array = load %a_2 + ret %94 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 164afa67b18..a2f9bf94b5e 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -140,9 +140,9 @@ $B1: { # root ret } } -%18 = func(%start_byte_offset:u32):array { +%24 = func(%start_byte_offset:u32):array { $B4: { - %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat2x4(vec4(0.0h)))))) # %a_1: 'a' + %a_1:ptr, read_write> = var, array(Inner(mat2x4(vec4(0.0h)))) # %a_1: 'a' loop [i: $B5, b: $B6, c: $B7] { # loop_1 $B5: { # initializer next_iteration 0u # -> $B6 @@ -154,10 +154,10 @@ $B1: { # root exit_loop # loop_1 } } - %62:u32 = mul %idx, 256u + %62:u32 = mul %idx, 64u %63:u32 = add %start_byte_offset, %62 - %64:ptr = access %a_1, %idx - %65:Outer = call %21, %63 + %64:ptr = access %a_1, %idx + %65:Inner = call %28, %63 store %64, %65 continue # -> $B7 } @@ -166,66 +166,66 @@ $B1: { # root next_iteration %66 # -> $B6 } } - %67:array = load %a_1 + %67:array = load %a_1 ret %67 } } -%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' $B9: { - %69:array = call %24, %start_byte_offset_1 - %70:Outer = construct %69 + %69:mat2x4 = call %32, %start_byte_offset_1 + %70:Inner = construct %69 ret %70 } } -%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' +%32 = func(%start_byte_offset_2:u32):mat2x4 { # %start_byte_offset_2: 'start_byte_offset' $B10: { - %a_2:ptr, read_write> = var, array(Inner(mat2x4(vec4(0.0h)))) # %a_2: 'a' - loop [i: $B11, b: $B12, c: $B13] { # loop_2 - $B11: { # initializer - next_iteration 0u # -> $B12 + %72:u32 = div %start_byte_offset_2, 16u + %73:ptr, read> = access %a, %72 + %74:vec4 = load %73 + %75:vec4 = bitcast %74 + %76:u32 = add 8u, %start_byte_offset_2 + %77:u32 = div %76, 16u + %78:ptr, read> = access %a, %77 + %79:vec4 = load %78 + %80:vec4 = bitcast %79 + %81:mat2x4 = construct %75, %80 + ret %81 + } +} +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' + $B11: { + %83:array = call %24, %start_byte_offset_3 + %84:Outer = construct %83 + ret %84 + } +} +%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' + $B12: { + %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat2x4(vec4(0.0h)))))) # %a_2: 'a' + loop [i: $B13, b: $B14, c: $B15] { # loop_2 + $B13: { # initializer + next_iteration 0u # -> $B14 } - $B12 (%idx_1:u32): { # body - %74:bool = gte %idx_1, 4u - if %74 [t: $B14] { # if_2 - $B14: { # true + $B14 (%idx_1:u32): { # body + %88:bool = gte %idx_1, 4u + if %88 [t: $B16] { # if_2 + $B16: { # true exit_loop # loop_2 } } - %75:u32 = mul %idx_1, 64u - %76:u32 = add %start_byte_offset_2, %75 - %77:ptr = access %a_2, %idx_1 - %78:Inner = call %28, %76 - store %77, %78 - continue # -> $B13 + %89:u32 = mul %idx_1, 256u + %90:u32 = add %start_byte_offset_4, %89 + %91:ptr = access %a_2, %idx_1 + %92:Outer = call %21, %90 + store %91, %92 + continue # -> $B15 } - $B13: { # continuing - %79:u32 = add %idx_1, 1u - next_iteration %79 # -> $B12 + $B15: { # continuing + %93:u32 = add %idx_1, 1u + next_iteration %93 # -> $B14 } } - %80:array = load %a_2 - ret %80 - } -} -%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' - $B15: { - %82:mat2x4 = call %32, %start_byte_offset_3 - %83:Inner = construct %82 - ret %83 - } -} -%32 = func(%start_byte_offset_4:u32):mat2x4 { # %start_byte_offset_4: 'start_byte_offset' - $B16: { - %85:u32 = div %start_byte_offset_4, 16u - %86:ptr, read> = access %a, %85 - %87:vec4 = load %86 - %88:vec4 = bitcast %87 - %89:u32 = add 8u, %start_byte_offset_4 - %90:u32 = div %89, 16u - %91:ptr, read> = access %a, %90 - %92:vec4 = load %91 - %93:vec4 = bitcast %92 - %94:mat2x4 = construct %88, %93 + %94:array = load %a_2 ret %94 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index f2a6d53aad7..605ce87fa79 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -26,7 +26,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol = {a_load_4((offset + 0u))}; + Inner tint_symbol = {a_load_4((offset + 0u))}; return tint_symbol; } @@ -42,7 +42,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_1 = {a_load_2((offset + 0u))}; + Outer tint_symbol_1 = {a_load_2((offset + 0u))}; return tint_symbol_1; } @@ -59,15 +59,18 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - 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 l_a_3_a_2_m = a_load_4(896u); + Outer l_a[4] = a_load(0u); + Outer l_a_3 = a_load_1(768u); + Inner l_a_3_a[4] = a_load_2(768u); + Inner l_a_3_a_2 = a_load_3(896u); + matrix l_a_3_a_2_m = a_load_4(896u); uint2 ubo_load_4 = a[56].zw; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); - const vector l_a_3_a_2_m_1 = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); - const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); + vector l_a_3_a_2_m_1 = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); + float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000161F02B4D00(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 9434ec1f93b..4ff80ffd08b 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -98,5 +98,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000141C0C65070(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000172B788AF80(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl index 0dae90adecf..2191909aa24 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -20,14 +20,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(264u)); + matrix t = transpose(u_load(264u)); uint2 ubo_load_4 = u[1].xy; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); - const float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz); + float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]).ywxz); uint2 ubo_load_5 = u[1].xy; vector ubo_load_5_xz = vector(f16tof32(ubo_load_5 & 0xFFFF)); vector ubo_load_5_yw = vector(f16tof32(ubo_load_5 >> 16)); - const float16_t a = abs(vector(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x); + float16_t a = abs(vector(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: +C:\src\dawn\Shader@0x000001A084734880(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 099c04f90dc..6c0fae9a977 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -29,5 +29,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000239C17EE810(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FDCA2E4CC0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl index eda58a13a44..0db95f2a747 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl @@ -42,7 +42,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -72,3 +72,6 @@ void f() { e(vector(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: +C:\src\dawn\Shader@0x00000209B8365140(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 30632e40d11..7955fa7bad1 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -84,5 +84,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000261357D3190(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A86A186340(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl index e458f87f4dc..21d35a020a4 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl @@ -28,7 +28,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -54,3 +54,6 @@ void f() { p[1].m[0] = vector(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: +C:\src\dawn\Shader@0x0000027FDEFDA830(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl index 16cfe4473fe..e4182d91a01 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -69,5 +69,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000293BDB32A90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002719C33B710(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl index 4a0e524f716..e5103abcabf 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl @@ -48,7 +48,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -74,3 +74,6 @@ void f() { s.Store >(136u, vector(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: +C:\src\dawn\Shader@0x000001B9984E4D00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 9d4b1aa7815..c19af533926 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -99,5 +99,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000205D62D29C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001ED5CB8E490(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl index b7cba960f03..88283642f70 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -6,10 +6,22 @@ struct S { int after; }; +groupshared S w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + w[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[32]; }; -groupshared S w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -32,7 +44,7 @@ matrix u_load_3(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_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])}; + 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; } @@ -48,14 +60,7 @@ u_load_ret u_load(uint offset) { } 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_2 = (S)0; - w[i] = tint_symbol_2; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(256u); w[3].m = u_load_3(264u); @@ -70,3 +75,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001DDD029A7B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 2bbb8a2f68c..7602bc67c32 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -94,5 +94,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001BBFEA57020(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019D9AF58FE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 8e64e6a7be4..9fd547adde4 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -36,55 +36,7 @@ fn f() { let l_a_i_a_i_m_i_i : f32 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:64:5 note: %23 declared here - %23:u32 = mul %52, 4u - ^^^^^^^ - -:43:24 error: binary: %23 is not in scope - %29:u32 = add %28, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:64:5 note: %23 declared here - %23:u32 = mul %52, 4u - ^^^^^^^ - -:48:24 error: binary: %23 is not in scope - %35:u32 = add %34, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:64:5 note: %23 declared here - %23:u32 = mul %52, 4u - ^^^^^^^ - -:53:24 error: binary: %23 is not in scope - %41:u32 = add %40, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:64:5 note: %23 declared here - %23:u32 = mul %52, 4u - ^^^^^^^ - -:64:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :54:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -106,7 +58,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %52, 4u + %42:u32 = mul %41, 4u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -149,135 +101,125 @@ $B1: { # root %16:u32 = mul 16u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:u32 = add %10, %13 - %28:u32 = add %27, %16 - %29:u32 = add %28, %23 - %30:array = call %31, %29 - %l_a_i_a:array = let %30 - %33:u32 = add %10, %13 - %34:u32 = add %33, %16 - %35:u32 = add %34, %23 - %36:Inner = call %37, %35 - %l_a_i_a_i:Inner = let %36 - %39:u32 = add %10, %13 - %40:u32 = add %39, %16 - %41:u32 = add %40, %23 - %42:mat2x4 = call %43, %41 - %l_a_i_a_i_m:mat2x4 = let %42 - %45:u32 = add %10, %13 - %46:u32 = add %45, %16 - %47:u32 = div %46, 16u - %48:ptr, read> = access %a, %47 - %49:vec4 = load %48 - %50:vec4 = bitcast %49 - %l_a_i_a_i_m_i:vec4 = let %50 - %52:i32 = call %i - %23:u32 = mul %52, 4u - %53:u32 = add %10, %13 - %54:u32 = add %53, %16 - %55:u32 = add %54, %23 - %56:u32 = div %55, 16u - %57:ptr, read> = access %a, %56 - %58:u32 = mod %55, 16u - %59:u32 = div %58, 4u - %60:u32 = load_vector_element %57, %59 - %61:f32 = bitcast %60 - %l_a_i_a_i_m_i_i:f32 = let %61 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 + %30:u32 = add %10, %13 + %31:mat2x4 = call %32, %30 + %l_a_i_a_i_m:mat2x4 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec4 = bitcast %38 + %l_a_i_a_i_m_i:vec4 = let %39 + %41:i32 = call %i + %42:u32 = mul %41, 4u + %43:u32 = add %10, %13 + %44:u32 = add %43, %16 + %45:u32 = add %44, %42 + %46:u32 = div %45, 16u + %47:ptr, read> = access %a, %46 + %48:u32 = mod %45, 16u + %49:u32 = div %48, 4u + %50:u32 = load_vector_element %47, %49 + %51:f32 = bitcast %50 + %l_a_i_a_i_m_i_i:f32 = let %51 ret } } -%43 = func(%start_byte_offset:u32):mat2x4 { +%18 = func(%start_byte_offset:u32):array { $B4: { - %64:u32 = div %start_byte_offset, 16u - %65:ptr, read> = access %a, %64 - %66:vec4 = load %65 - %67:vec4 = bitcast %66 - %68:u32 = add 16u, %start_byte_offset - %69:u32 = div %68, 16u - %70:ptr, read> = access %a, %69 - %71:vec4 = load %70 - %72:vec4 = bitcast %71 - %73:mat2x4 = construct %67, %72 - ret %73 - } -} -%37 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %75:mat2x4 = call %43, %start_byte_offset_1 - %76:Inner = construct %75 - ret %76 - } -} -%31 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B6: { - %a_1:ptr, read_write> = var, array(Inner(mat2x4(vec4(0.0f)))) # %a_1: 'a' - loop [i: $B7, b: $B8, c: $B9] { # loop_1 - $B7: { # initializer - next_iteration 0u # -> $B8 + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat2x4(vec4(0.0f)))))) # %a_1: 'a' + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B8 (%idx:u32): { # body - %80:bool = gte %idx, 4u - if %80 [t: $B10] { # if_1 - $B10: { # true + $B6 (%idx:u32): { # body + %56:bool = gte %idx, 4u + if %56 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %81:u32 = mul %idx, 64u - %82:u32 = add %start_byte_offset_2, %81 - %83:ptr = access %a_1, %idx - %84:Inner = call %37, %82 - store %83, %84 - continue # -> $B9 + %57:u32 = mul %idx, 256u + %58:u32 = add %start_byte_offset, %57 + %59:ptr = access %a_1, %idx + %60:Outer = call %21, %58 + store %59, %60 + continue # -> $B7 } - $B9: { # continuing - %85:u32 = add %idx, 1u - next_iteration %85 # -> $B8 + $B7: { # continuing + %61:u32 = add %idx, 1u + next_iteration %61 # -> $B6 } } - %86:array = load %a_1 - ret %86 + %62:array = load %a_1 + ret %62 } } -%25 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %88:array = call %31, %start_byte_offset_3 - %89:Outer = construct %88 - ret %89 +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %64:array = call %24, %start_byte_offset_1 + %65:Outer = construct %64 + ret %65 } } -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat2x4(vec4(0.0f)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %a_2:ptr, read_write> = var, array(Inner(mat2x4(vec4(0.0f)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %93:bool = gte %idx_1, 4u - if %93 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %69:bool = gte %idx_1, 4u + if %69 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %94:u32 = mul %idx_1, 256u - %95:u32 = add %start_byte_offset_4, %94 - %96:ptr = access %a_2, %idx_1 - %97:Outer = call %25, %95 - store %96, %97 - continue # -> $B15 + %70:u32 = mul %idx_1, 64u + %71:u32 = add %start_byte_offset_2, %70 + %72:ptr = access %a_2, %idx_1 + %73:Inner = call %28, %71 + store %72, %73 + continue # -> $B13 } - $B15: { # continuing - %98:u32 = add %idx_1, 1u - next_iteration %98 # -> $B14 + $B13: { # continuing + %74:u32 = add %idx_1, 1u + next_iteration %74 # -> $B12 } } - %99:array = load %a_2 - ret %99 + %75:array = load %a_2 + ret %75 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %77:mat2x4 = call %32, %start_byte_offset_3 + %78:Inner = construct %77 + ret %78 + } +} +%32 = func(%start_byte_offset_4:u32):mat2x4 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %80:u32 = div %start_byte_offset_4, 16u + %81:ptr, read> = access %a, %80 + %82:vec4 = load %81 + %83:vec4 = bitcast %82 + %84:u32 = add 16u, %start_byte_offset_4 + %85:u32 = div %84, 16u + %86:ptr, read> = access %a, %85 + %87:vec4 = load %86 + %88:vec4 = bitcast %87 + %89:mat2x4 = construct %83, %88 + ret %89 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index feda416201f..9fd547adde4 100644 --- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -133,92 +133,92 @@ $B1: { # root ret } } -%32 = func(%start_byte_offset:u32):mat2x4 { +%18 = func(%start_byte_offset:u32):array { $B4: { - %54:u32 = div %start_byte_offset, 16u - %55:ptr, read> = access %a, %54 - %56:vec4 = load %55 - %57:vec4 = bitcast %56 - %58:u32 = add 16u, %start_byte_offset - %59:u32 = div %58, 16u - %60:ptr, read> = access %a, %59 - %61:vec4 = load %60 - %62:vec4 = bitcast %61 - %63:mat2x4 = construct %57, %62 - ret %63 - } -} -%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %65:mat2x4 = call %32, %start_byte_offset_1 - %66:Inner = construct %65 - ret %66 - } -} -%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B6: { - %a_1:ptr, read_write> = var, array(Inner(mat2x4(vec4(0.0f)))) # %a_1: 'a' - loop [i: $B7, b: $B8, c: $B9] { # loop_1 - $B7: { # initializer - next_iteration 0u # -> $B8 + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat2x4(vec4(0.0f)))))) # %a_1: 'a' + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B8 (%idx:u32): { # body - %70:bool = gte %idx, 4u - if %70 [t: $B10] { # if_1 - $B10: { # true + $B6 (%idx:u32): { # body + %56:bool = gte %idx, 4u + if %56 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %71:u32 = mul %idx, 64u - %72:u32 = add %start_byte_offset_2, %71 - %73:ptr = access %a_1, %idx - %74:Inner = call %28, %72 - store %73, %74 - continue # -> $B9 + %57:u32 = mul %idx, 256u + %58:u32 = add %start_byte_offset, %57 + %59:ptr = access %a_1, %idx + %60:Outer = call %21, %58 + store %59, %60 + continue # -> $B7 } - $B9: { # continuing - %75:u32 = add %idx, 1u - next_iteration %75 # -> $B8 + $B7: { # continuing + %61:u32 = add %idx, 1u + next_iteration %61 # -> $B6 } } - %76:array = load %a_1 - ret %76 + %62:array = load %a_1 + ret %62 } } -%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %78:array = call %24, %start_byte_offset_3 - %79:Outer = construct %78 - ret %79 +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %64:array = call %24, %start_byte_offset_1 + %65:Outer = construct %64 + ret %65 } } -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat2x4(vec4(0.0f)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %a_2:ptr, read_write> = var, array(Inner(mat2x4(vec4(0.0f)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %83:bool = gte %idx_1, 4u - if %83 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %69:bool = gte %idx_1, 4u + if %69 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %84:u32 = mul %idx_1, 256u - %85:u32 = add %start_byte_offset_4, %84 - %86:ptr = access %a_2, %idx_1 - %87:Outer = call %21, %85 - store %86, %87 - continue # -> $B15 + %70:u32 = mul %idx_1, 64u + %71:u32 = add %start_byte_offset_2, %70 + %72:ptr = access %a_2, %idx_1 + %73:Inner = call %28, %71 + store %72, %73 + continue # -> $B13 } - $B15: { # continuing - %88:u32 = add %idx_1, 1u - next_iteration %88 # -> $B14 + $B13: { # continuing + %74:u32 = add %idx_1, 1u + next_iteration %74 # -> $B12 } } - %89:array = load %a_2 + %75:array = load %a_2 + ret %75 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %77:mat2x4 = call %32, %start_byte_offset_3 + %78:Inner = construct %77 + ret %78 + } +} +%32 = func(%start_byte_offset_4:u32):mat2x4 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %80:u32 = div %start_byte_offset_4, 16u + %81:ptr, read> = access %a, %80 + %82:vec4 = load %81 + %83:vec4 = bitcast %82 + %84:u32 = add 16u, %start_byte_offset_4 + %85:u32 = div %84, 16u + %86:ptr, read> = access %a, %85 + %87:vec4 = load %86 + %88:vec4 = bitcast %87 + %89:mat2x4 = construct %83, %88 ret %89 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 3eff28ba75a..aff9cccb3d4 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -28,7 +28,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol_4 = {a_load_4((offset + 0u))}; + Inner tint_symbol_4 = {a_load_4((offset + 0u))}; return tint_symbol_4; } @@ -44,7 +44,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_5 = {a_load_2((offset + 0u))}; + Outer tint_symbol_5 = {a_load_2((offset + 0u))}; return tint_symbol_5; } @@ -61,23 +61,26 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] 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] = 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 l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + int p_a_i_save = i(); + int p_a_i_a_i_save = i(); + int p_a_i_a_i_m_i_save = i(); + Outer l_a[4] = a_load(0u); + Outer l_a_i = a_load_1((256u * uint(p_a_i_save))); + Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save))); + Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + matrix 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 l_a_i_a_i_m_i = vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))); - const int tint_symbol = p_a_i_save; - const int tint_symbol_1 = p_a_i_a_i_save; - const int tint_symbol_2 = p_a_i_a_i_m_i_save; - const int tint_symbol_3 = i(); + vector l_a_i_a_i_m_i = vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))); + int tint_symbol = p_a_i_save; + int tint_symbol_1 = p_a_i_a_i_save; + int tint_symbol_2 = p_a_i_a_i_m_i_save; + int tint_symbol_3 = i(); const uint scalar_offset_bytes = (((((256u * uint(tint_symbol)) + (64u * uint(tint_symbol_1))) + (4u * uint(tint_symbol_2))) + (2u * uint(tint_symbol_3)))); const uint scalar_offset_index = scalar_offset_bytes / 4; - 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))); + 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: +C:\src\dawn\Shader@0x0000027805AEAB90(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index bd94d384989..37a49767f6e 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -38,43 +38,7 @@ fn f() { let l_a_i_a_i_m_i_i : f16 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :40:24 error: binary: %26 is not in scope - %25:u32 = add %24, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:66:5 note: %26 declared here - %26:u32 = mul %54, 2u - ^^^^^^^ - -:48:24 error: binary: %26 is not in scope - %36:u32 = add %35, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:66:5 note: %26 declared here - %26:u32 = mul %54, 2u - ^^^^^^^ - -:53:24 error: binary: %26 is not in scope - %42:u32 = add %41, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:66:5 note: %26 declared here - %26:u32 = mul %54, 2u - ^^^^^^^ - -:66:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :60:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -96,7 +60,7 @@ Failed to generate: :40:24 error: binary: %26 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %26:u32 = mul %54, 2u + %48:u32 = mul %47, 2u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -141,163 +105,157 @@ $B1: { # root %l_a:array = let %17 %20:Outer = call %21, %10 %l_a_i:Outer = let %20 - %23:u32 = add %10, %13 - %24:u32 = add %23, %16 - %25:u32 = add %24, %26 - %27:array = call %28, %25 - %l_a_i_a:array = let %27 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 %30:u32 = add %10, %13 - %31:Inner = call %32, %30 - %l_a_i_a_i:Inner = let %31 + %31:mat3x2 = call %32, %30 + %l_a_i_a_i_m:mat3x2 = let %31 %34:u32 = add %10, %13 %35:u32 = add %34, %16 - %36:u32 = add %35, %26 - %37:mat3x2 = call %38, %36 - %l_a_i_a_i_m:mat3x2 = let %37 - %40:u32 = add %10, %13 - %41:u32 = add %40, %16 - %42:u32 = add %41, %26 - %43:u32 = div %42, 16u - %44:ptr, read> = access %a, %43 - %45:u32 = mod %42, 16u - %46:u32 = div %45, 4u - %47:vec4 = load %44 - %48:u32 = swizzle %47, z - %49:u32 = swizzle %47, x - %50:bool = eq %46, 2u - %51:u32 = hlsl.ternary %49, %48, %50 - %52:vec2 = bitcast %51 - %l_a_i_a_i_m_i:vec2 = let %52 - %54:i32 = call %i - %26:u32 = mul %54, 2u - %55:u32 = add %10, %13 - %56:u32 = add %55, %16 - %57:u32 = add %56, %26 - %58:u32 = div %57, 16u - %59:ptr, read> = access %a, %58 - %60:u32 = mod %57, 16u - %61:u32 = div %60, 4u - %62:u32 = load_vector_element %59, %61 - %63:u32 = mod %57, 4u - %64:bool = eq %63, 0u - %65:u32 = hlsl.ternary 16u, 0u, %64 - %66:u32 = shr %62, %65 - %67:f32 = hlsl.f16tof32 %66 - %68:f16 = convert %67 - %l_a_i_a_i_m_i_i:f16 = let %68 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:u32 = mod %35, 16u + %39:u32 = div %38, 4u + %40:vec4 = load %37 + %41:u32 = swizzle %40, z + %42:u32 = swizzle %40, x + %43:bool = eq %39, 2u + %44:u32 = hlsl.ternary %42, %41, %43 + %45:vec2 = bitcast %44 + %l_a_i_a_i_m_i:vec2 = let %45 + %47:i32 = call %i + %48:u32 = mul %47, 2u + %49:u32 = add %10, %13 + %50:u32 = add %49, %16 + %51:u32 = add %50, %48 + %52:u32 = div %51, 16u + %53:ptr, read> = access %a, %52 + %54:u32 = mod %51, 16u + %55:u32 = div %54, 4u + %56:u32 = load_vector_element %53, %55 + %57:u32 = mod %51, 4u + %58:bool = eq %57, 0u + %59:u32 = hlsl.ternary 16u, 0u, %58 + %60:u32 = shr %56, %59 + %61:f32 = hlsl.f16tof32 %60 + %62:f16 = convert %61 + %l_a_i_a_i_m_i_i:f16 = let %62 ret } } -%21 = func(%start_byte_offset:u32):Outer { +%18 = func(%start_byte_offset:u32):array { $B4: { - %71:array = call %28, %start_byte_offset - %72:Outer = construct %71 - ret %72 - } -} -%28 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %a_1:ptr, read_write> = var, array(Inner(mat3x2(vec2(0.0h)))) # %a_1: 'a' - loop [i: $B6, b: $B7, c: $B8] { # loop_1 - $B6: { # initializer - next_iteration 0u # -> $B7 + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat3x2(vec2(0.0h)))))) # %a_1: 'a' + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B7 (%idx:u32): { # body - %76:bool = gte %idx, 4u - if %76 [t: $B9] { # if_1 - $B9: { # true + $B6 (%idx:u32): { # body + %67:bool = gte %idx, 4u + if %67 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %77:u32 = mul %idx, 64u - %78:u32 = add %start_byte_offset_1, %77 - %79:ptr = access %a_1, %idx - %80:Inner = call %32, %78 - store %79, %80 - continue # -> $B8 + %68:u32 = mul %idx, 256u + %69:u32 = add %start_byte_offset, %68 + %70:ptr = access %a_1, %idx + %71:Outer = call %21, %69 + store %70, %71 + continue # -> $B7 } - $B8: { # continuing - %81:u32 = add %idx, 1u - next_iteration %81 # -> $B7 + $B7: { # continuing + %72:u32 = add %idx, 1u + next_iteration %72 # -> $B6 } } - %82:array = load %a_1 - ret %82 - } -} -%32 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %84:mat3x2 = call %38, %start_byte_offset_2 - %85:Inner = construct %84 - ret %85 + %73:array = load %a_1 + ret %73 } } -%38 = func(%start_byte_offset_3:u32):mat3x2 { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %87:u32 = div %start_byte_offset_3, 16u - %88:ptr, read> = access %a, %87 - %89:u32 = mod %start_byte_offset_3, 16u - %90:u32 = div %89, 4u - %91:vec4 = load %88 - %92:u32 = swizzle %91, z - %93:u32 = swizzle %91, x - %94:bool = eq %90, 2u - %95:u32 = hlsl.ternary %93, %92, %94 - %96:vec2 = bitcast %95 - %97:u32 = add 4u, %start_byte_offset_3 - %98:u32 = div %97, 16u - %99:ptr, read> = access %a, %98 - %100:u32 = mod %97, 16u - %101:u32 = div %100, 4u - %102:vec4 = load %99 - %103:u32 = swizzle %102, z - %104:u32 = swizzle %102, x - %105:bool = eq %101, 2u - %106:u32 = hlsl.ternary %104, %103, %105 - %107:vec2 = bitcast %106 - %108:u32 = add 8u, %start_byte_offset_3 - %109:u32 = div %108, 16u - %110:ptr, read> = access %a, %109 - %111:u32 = mod %108, 16u - %112:u32 = div %111, 4u - %113:vec4 = load %110 - %114:u32 = swizzle %113, z - %115:u32 = swizzle %113, x - %116:bool = eq %112, 2u - %117:u32 = hlsl.ternary %115, %114, %116 - %118:vec2 = bitcast %117 - %119:mat3x2 = construct %96, %107, %118 - ret %119 +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %75:array = call %24, %start_byte_offset_1 + %76:Outer = construct %75 + ret %76 } } -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat3x2(vec2(0.0h)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %a_2:ptr, read_write> = var, array(Inner(mat3x2(vec2(0.0h)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %123:bool = gte %idx_1, 4u - if %123 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %80:bool = gte %idx_1, 4u + if %80 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %124:u32 = mul %idx_1, 256u - %125:u32 = add %start_byte_offset_4, %124 - %126:ptr = access %a_2, %idx_1 - %127:Outer = call %21, %125 - store %126, %127 - continue # -> $B15 + %81:u32 = mul %idx_1, 64u + %82:u32 = add %start_byte_offset_2, %81 + %83:ptr = access %a_2, %idx_1 + %84:Inner = call %28, %82 + store %83, %84 + continue # -> $B13 } - $B15: { # continuing - %128:u32 = add %idx_1, 1u - next_iteration %128 # -> $B14 + $B13: { # continuing + %85:u32 = add %idx_1, 1u + next_iteration %85 # -> $B12 } } - %129:array = load %a_2 - ret %129 + %86:array = load %a_2 + ret %86 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %88:mat3x2 = call %32, %start_byte_offset_3 + %89:Inner = construct %88 + ret %89 + } +} +%32 = func(%start_byte_offset_4:u32):mat3x2 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %91:u32 = div %start_byte_offset_4, 16u + %92:ptr, read> = access %a, %91 + %93:u32 = mod %start_byte_offset_4, 16u + %94:u32 = div %93, 4u + %95:vec4 = load %92 + %96:u32 = swizzle %95, z + %97:u32 = swizzle %95, x + %98:bool = eq %94, 2u + %99:u32 = hlsl.ternary %97, %96, %98 + %100:vec2 = bitcast %99 + %101:u32 = add 4u, %start_byte_offset_4 + %102:u32 = div %101, 16u + %103:ptr, read> = access %a, %102 + %104:u32 = mod %101, 16u + %105:u32 = div %104, 4u + %106:vec4 = load %103 + %107:u32 = swizzle %106, z + %108:u32 = swizzle %106, x + %109:bool = eq %105, 2u + %110:u32 = hlsl.ternary %108, %107, %109 + %111:vec2 = bitcast %110 + %112:u32 = add 8u, %start_byte_offset_4 + %113:u32 = div %112, 16u + %114:ptr, read> = access %a, %113 + %115:u32 = mod %112, 16u + %116:u32 = div %115, 4u + %117:vec4 = load %114 + %118:u32 = swizzle %117, z + %119:u32 = swizzle %117, x + %120:bool = eq %116, 2u + %121:u32 = hlsl.ternary %119, %118, %120 + %122:vec2 = bitcast %121 + %123:mat3x2 = construct %100, %111, %122 + ret %123 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 3dbc5f6d311..37a49767f6e 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -146,9 +146,9 @@ $B1: { # root ret } } -%24 = func(%start_byte_offset:u32):array { +%18 = func(%start_byte_offset:u32):array { $B4: { - %a_1:ptr, read_write> = var, array(Inner(mat3x2(vec2(0.0h)))) # %a_1: 'a' + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat3x2(vec2(0.0h)))))) # %a_1: 'a' loop [i: $B5, b: $B6, c: $B7] { # loop_1 $B5: { # initializer next_iteration 0u # -> $B6 @@ -160,10 +160,10 @@ $B1: { # root exit_loop # loop_1 } } - %68:u32 = mul %idx, 64u + %68:u32 = mul %idx, 256u %69:u32 = add %start_byte_offset, %68 - %70:ptr = access %a_1, %idx - %71:Inner = call %28, %69 + %70:ptr = access %a_1, %idx + %71:Outer = call %21, %69 store %70, %71 continue # -> $B7 } @@ -172,89 +172,89 @@ $B1: { # root next_iteration %72 # -> $B6 } } - %73:array = load %a_1 + %73:array = load %a_1 ret %73 } } -%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' $B9: { - %75:mat3x2 = call %32, %start_byte_offset_1 - %76:Inner = construct %75 + %75:array = call %24, %start_byte_offset_1 + %76:Outer = construct %75 ret %76 } } -%32 = func(%start_byte_offset_2:u32):mat3x2 { # %start_byte_offset_2: 'start_byte_offset' +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' $B10: { - %78:u32 = div %start_byte_offset_2, 16u - %79:ptr, read> = access %a, %78 - %80:u32 = mod %start_byte_offset_2, 16u - %81:u32 = div %80, 4u - %82:vec4 = load %79 - %83:u32 = swizzle %82, z - %84:u32 = swizzle %82, x - %85:bool = eq %81, 2u - %86:u32 = hlsl.ternary %84, %83, %85 - %87:vec2 = bitcast %86 - %88:u32 = add 4u, %start_byte_offset_2 - %89:u32 = div %88, 16u - %90:ptr, read> = access %a, %89 - %91:u32 = mod %88, 16u - %92:u32 = div %91, 4u - %93:vec4 = load %90 - %94:u32 = swizzle %93, z - %95:u32 = swizzle %93, x - %96:bool = eq %92, 2u - %97:u32 = hlsl.ternary %95, %94, %96 - %98:vec2 = bitcast %97 - %99:u32 = add 8u, %start_byte_offset_2 - %100:u32 = div %99, 16u - %101:ptr, read> = access %a, %100 - %102:u32 = mod %99, 16u - %103:u32 = div %102, 4u - %104:vec4 = load %101 - %105:u32 = swizzle %104, z - %106:u32 = swizzle %104, x - %107:bool = eq %103, 2u - %108:u32 = hlsl.ternary %106, %105, %107 - %109:vec2 = bitcast %108 - %110:mat3x2 = construct %87, %98, %109 - ret %110 - } -} -%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %112:array = call %24, %start_byte_offset_3 - %113:Outer = construct %112 - ret %113 - } -} -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat3x2(vec2(0.0h)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 + %a_2:ptr, read_write> = var, array(Inner(mat3x2(vec2(0.0h)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %117:bool = gte %idx_1, 4u - if %117 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %80:bool = gte %idx_1, 4u + if %80 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %118:u32 = mul %idx_1, 256u - %119:u32 = add %start_byte_offset_4, %118 - %120:ptr = access %a_2, %idx_1 - %121:Outer = call %21, %119 - store %120, %121 - continue # -> $B15 + %81:u32 = mul %idx_1, 64u + %82:u32 = add %start_byte_offset_2, %81 + %83:ptr = access %a_2, %idx_1 + %84:Inner = call %28, %82 + store %83, %84 + continue # -> $B13 } - $B15: { # continuing - %122:u32 = add %idx_1, 1u - next_iteration %122 # -> $B14 + $B13: { # continuing + %85:u32 = add %idx_1, 1u + next_iteration %85 # -> $B12 } } - %123:array = load %a_2 + %86:array = load %a_2 + ret %86 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %88:mat3x2 = call %32, %start_byte_offset_3 + %89:Inner = construct %88 + ret %89 + } +} +%32 = func(%start_byte_offset_4:u32):mat3x2 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %91:u32 = div %start_byte_offset_4, 16u + %92:ptr, read> = access %a, %91 + %93:u32 = mod %start_byte_offset_4, 16u + %94:u32 = div %93, 4u + %95:vec4 = load %92 + %96:u32 = swizzle %95, z + %97:u32 = swizzle %95, x + %98:bool = eq %94, 2u + %99:u32 = hlsl.ternary %97, %96, %98 + %100:vec2 = bitcast %99 + %101:u32 = add 4u, %start_byte_offset_4 + %102:u32 = div %101, 16u + %103:ptr, read> = access %a, %102 + %104:u32 = mod %101, 16u + %105:u32 = div %104, 4u + %106:vec4 = load %103 + %107:u32 = swizzle %106, z + %108:u32 = swizzle %106, x + %109:bool = eq %105, 2u + %110:u32 = hlsl.ternary %108, %107, %109 + %111:vec2 = bitcast %110 + %112:u32 = add 8u, %start_byte_offset_4 + %113:u32 = div %112, 16u + %114:ptr, read> = access %a, %113 + %115:u32 = mod %112, 16u + %116:u32 = div %115, 4u + %117:vec4 = load %114 + %118:u32 = swizzle %117, z + %119:u32 = swizzle %117, x + %120:bool = eq %116, 2u + %121:u32 = hlsl.ternary %119, %118, %120 + %122:vec2 = bitcast %121 + %123:mat3x2 = construct %100, %111, %122 ret %123 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index ef9462adb35..e6c0b64404d 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -22,7 +22,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol = {a_load_4((offset + 0u))}; + Inner tint_symbol = {a_load_4((offset + 0u))}; return tint_symbol; } @@ -38,7 +38,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_1 = {a_load_2((offset + 0u))}; + Outer tint_symbol_1 = {a_load_2((offset + 0u))}; return tint_symbol_1; } @@ -55,13 +55,16 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - 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 l_a_3_a_2_m = a_load_4(896u); + Outer l_a[4] = a_load(0u); + Outer l_a_3 = a_load_1(768u); + Inner l_a_3_a[4] = a_load_2(768u); + Inner l_a_3_a_2 = a_load_3(896u); + matrix l_a_3_a_2_m = a_load_4(896u); uint ubo_load_3 = a[56].y; - const vector l_a_3_a_2_m_1 = vector(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))); + vector l_a_3_a_2_m_1 = vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))); + float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].y) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019207DF3EB0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 5675ced0d9f..fd53dda260a 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -98,5 +98,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002D906B70A90(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B3172FBDF0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_builtin.wgsl.expected.fxc.hlsl index 62d2952dafb..9fe51740aeb 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -16,10 +16,13 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(260u)); + matrix t = transpose(u_load(260u)); uint ubo_load_3 = u[0].z; - const float16_t l = length(vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx); + float16_t l = length(vector(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(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x); + float16_t a = abs(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000214826E5210(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index d938dec7048..60a9e499794 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -29,5 +29,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D24BC50F10(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029022FCD140(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.fxc.hlsl index f1ddb7e4f33..044bdd9af7b 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.fxc.hlsl @@ -38,7 +38,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -64,3 +64,6 @@ void f() { e(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000298D55C3340(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 42639d26402..cbd3b274124 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -84,5 +84,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000207F5A354F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025AF19BABB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_private.wgsl.expected.fxc.hlsl index 3b3d247c08a..7eb9c1292e2 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_private.wgsl.expected.fxc.hlsl @@ -24,7 +24,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -48,3 +48,6 @@ void f() { p[1].m[0] = vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx; return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000015D24FE3FF0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_private.wgsl.expected.ir.fxc.hlsl index d4ee2ed55e8..1f0c5f81342 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -69,5 +69,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015BCC1DE320(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002842A234900(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_storage.wgsl.expected.fxc.hlsl index 824671b1079..21a0452e499 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_storage.wgsl.expected.fxc.hlsl @@ -45,7 +45,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -69,3 +69,6 @@ void f() { s.Store >(132u, vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027FB6374CB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 15d897b7806..bcf8f343ead 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -100,5 +100,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021089266F00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001ED316D6340(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_workgroup.wgsl.expected.fxc.hlsl index 47c2d5e1b0c..32d633234d0 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -6,10 +6,22 @@ struct S { int after; }; +groupshared S w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + w[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[32]; }; -groupshared S w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -28,7 +40,7 @@ matrix u_load_3(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_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])}; + 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; } @@ -44,14 +56,7 @@ u_load_ret u_load(uint offset) { } 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_2 = (S)0; - w[i] = tint_symbol_2; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(256u); w[3].m = u_load_3(260u); @@ -64,3 +69,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000296092EB720(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 2782fe19631..856b4094559 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -94,5 +94,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001A007FA5D00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F535807820(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index b1c49474bf7..56ec61a2db6 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -36,55 +36,7 @@ fn f() { let l_a_i_a_i_m_i_i : f32 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 4u - ^^^^^^^ - -:45:24 error: binary: %23 is not in scope - %32:u32 = add %31, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 4u - ^^^^^^^ - -:50:24 error: binary: %23 is not in scope - %38:u32 = add %37, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 4u - ^^^^^^^ - -:55:24 error: binary: %23 is not in scope - %44:u32 = add %43, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 4u - ^^^^^^^ - -:68:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :60:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -106,7 +58,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %56, 4u + %48:u32 = mul %47, 4u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -149,162 +101,154 @@ $B1: { # root %16:u32 = mul 8u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:array = call %28, %10 - %l_a_i_a:array = let %27 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 %30:u32 = add %10, %13 - %31:u32 = add %30, %16 - %32:u32 = add %31, %23 - %33:Inner = call %34, %32 - %l_a_i_a_i:Inner = let %33 - %36:u32 = add %10, %13 - %37:u32 = add %36, %16 - %38:u32 = add %37, %23 - %39:mat3x2 = call %40, %38 - %l_a_i_a_i_m:mat3x2 = let %39 - %42:u32 = add %10, %13 - %43:u32 = add %42, %16 - %44:u32 = add %43, %23 - %45:u32 = div %44, 16u - %46:ptr, read> = access %a, %45 - %47:u32 = mod %44, 16u - %48:u32 = div %47, 4u - %49:vec4 = load %46 - %50:vec2 = swizzle %49, zw - %51:vec2 = swizzle %49, xy - %52:bool = eq %48, 2u - %53:vec2 = hlsl.ternary %51, %50, %52 - %54:vec2 = bitcast %53 - %l_a_i_a_i_m_i:vec2 = let %54 - %56:i32 = call %i - %23:u32 = mul %56, 4u - %57:u32 = add %10, %13 - %58:u32 = add %57, %16 - %59:u32 = add %58, %23 - %60:u32 = div %59, 16u - %61:ptr, read> = access %a, %60 - %62:u32 = mod %59, 16u - %63:u32 = div %62, 4u - %64:u32 = load_vector_element %61, %63 - %65:f32 = bitcast %64 - %l_a_i_a_i_m_i_i:f32 = let %65 + %31:mat3x2 = call %32, %30 + %l_a_i_a_i_m:mat3x2 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:u32 = mod %35, 16u + %39:u32 = div %38, 4u + %40:vec4 = load %37 + %41:vec2 = swizzle %40, zw + %42:vec2 = swizzle %40, xy + %43:bool = eq %39, 2u + %44:vec2 = hlsl.ternary %42, %41, %43 + %45:vec2 = bitcast %44 + %l_a_i_a_i_m_i:vec2 = let %45 + %47:i32 = call %i + %48:u32 = mul %47, 4u + %49:u32 = add %10, %13 + %50:u32 = add %49, %16 + %51:u32 = add %50, %48 + %52:u32 = div %51, 16u + %53:ptr, read> = access %a, %52 + %54:u32 = mod %51, 16u + %55:u32 = div %54, 4u + %56:u32 = load_vector_element %53, %55 + %57:f32 = bitcast %56 + %l_a_i_a_i_m_i_i:f32 = let %57 ret } } -%18 = func(%start_byte_offset:u32):array { +%21 = func(%start_byte_offset:u32):Outer { $B4: { - %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat3x2(vec2(0.0f)))))) # %a_1: 'a' - loop [i: $B5, b: $B6, c: $B7] { # loop_1 - $B5: { # initializer - next_iteration 0u # -> $B6 + %60:array = call %24, %start_byte_offset + %61:Outer = construct %60 + ret %61 + } +} +%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' + $B5: { + %a_1:ptr, read_write> = var, array(Inner(mat3x2(vec2(0.0f)))) # %a_1: 'a' + loop [i: $B6, b: $B7, c: $B8] { # loop_1 + $B6: { # initializer + next_iteration 0u # -> $B7 } - $B6 (%idx:u32): { # body - %70:bool = gte %idx, 4u - if %70 [t: $B8] { # if_1 - $B8: { # true + $B7 (%idx:u32): { # body + %65:bool = gte %idx, 4u + if %65 [t: $B9] { # if_1 + $B9: { # true exit_loop # loop_1 } } - %71:u32 = mul %idx, 256u - %72:u32 = add %start_byte_offset, %71 - %73:ptr = access %a_1, %idx - %74:Outer = call %25, %72 - store %73, %74 - continue # -> $B7 + %66:u32 = mul %idx, 64u + %67:u32 = add %start_byte_offset_1, %66 + %68:ptr = access %a_1, %idx + %69:Inner = call %28, %67 + store %68, %69 + continue # -> $B8 } - $B7: { # continuing - %75:u32 = add %idx, 1u - next_iteration %75 # -> $B6 + $B8: { # continuing + %70:u32 = add %idx, 1u + next_iteration %70 # -> $B7 } } - %76:array = load %a_1 - ret %76 + %71:array = load %a_1 + ret %71 } } -%25 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' - $B9: { - %78:array = call %28, %start_byte_offset_1 - %79:Outer = construct %78 - ret %79 +%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %73:mat3x2 = call %32, %start_byte_offset_2 + %74:Inner = construct %73 + ret %74 } } -%28 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %a_2:ptr, read_write> = var, array(Inner(mat3x2(vec2(0.0f)))) # %a_2: 'a' - loop [i: $B11, b: $B12, c: $B13] { # loop_2 - $B11: { # initializer - next_iteration 0u # -> $B12 +%32 = func(%start_byte_offset_3:u32):mat3x2 { # %start_byte_offset_3: 'start_byte_offset' + $B11: { + %76:u32 = div %start_byte_offset_3, 16u + %77:ptr, read> = access %a, %76 + %78:u32 = mod %start_byte_offset_3, 16u + %79:u32 = div %78, 4u + %80:vec4 = load %77 + %81:vec2 = swizzle %80, zw + %82:vec2 = swizzle %80, xy + %83:bool = eq %79, 2u + %84:vec2 = hlsl.ternary %82, %81, %83 + %85:vec2 = bitcast %84 + %86:u32 = add 8u, %start_byte_offset_3 + %87:u32 = div %86, 16u + %88:ptr, read> = access %a, %87 + %89:u32 = mod %86, 16u + %90:u32 = div %89, 4u + %91:vec4 = load %88 + %92:vec2 = swizzle %91, zw + %93:vec2 = swizzle %91, xy + %94:bool = eq %90, 2u + %95:vec2 = hlsl.ternary %93, %92, %94 + %96:vec2 = bitcast %95 + %97:u32 = add 16u, %start_byte_offset_3 + %98:u32 = div %97, 16u + %99:ptr, read> = access %a, %98 + %100:u32 = mod %97, 16u + %101:u32 = div %100, 4u + %102:vec4 = load %99 + %103:vec2 = swizzle %102, zw + %104:vec2 = swizzle %102, xy + %105:bool = eq %101, 2u + %106:vec2 = hlsl.ternary %104, %103, %105 + %107:vec2 = bitcast %106 + %108:mat3x2 = construct %85, %96, %107 + ret %108 + } +} +%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' + $B12: { + %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat3x2(vec2(0.0f)))))) # %a_2: 'a' + loop [i: $B13, b: $B14, c: $B15] { # loop_2 + $B13: { # initializer + next_iteration 0u # -> $B14 } - $B12 (%idx_1:u32): { # body - %83:bool = gte %idx_1, 4u - if %83 [t: $B14] { # if_2 - $B14: { # true + $B14 (%idx_1:u32): { # body + %112:bool = gte %idx_1, 4u + if %112 [t: $B16] { # if_2 + $B16: { # true exit_loop # loop_2 } } - %84:u32 = mul %idx_1, 64u - %85:u32 = add %start_byte_offset_2, %84 - %86:ptr = access %a_2, %idx_1 - %87:Inner = call %34, %85 - store %86, %87 - continue # -> $B13 + %113:u32 = mul %idx_1, 256u + %114:u32 = add %start_byte_offset_4, %113 + %115:ptr = access %a_2, %idx_1 + %116:Outer = call %21, %114 + store %115, %116 + continue # -> $B15 } - $B13: { # continuing - %88:u32 = add %idx_1, 1u - next_iteration %88 # -> $B12 + $B15: { # continuing + %117:u32 = add %idx_1, 1u + next_iteration %117 # -> $B14 } } - %89:array = load %a_2 - ret %89 - } -} -%34 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' - $B15: { - %91:mat3x2 = call %40, %start_byte_offset_3 - %92:Inner = construct %91 - ret %92 - } -} -%40 = func(%start_byte_offset_4:u32):mat3x2 { # %start_byte_offset_4: 'start_byte_offset' - $B16: { - %94:u32 = div %start_byte_offset_4, 16u - %95:ptr, read> = access %a, %94 - %96:u32 = mod %start_byte_offset_4, 16u - %97:u32 = div %96, 4u - %98:vec4 = load %95 - %99:vec2 = swizzle %98, zw - %100:vec2 = swizzle %98, xy - %101:bool = eq %97, 2u - %102:vec2 = hlsl.ternary %100, %99, %101 - %103:vec2 = bitcast %102 - %104:u32 = add 8u, %start_byte_offset_4 - %105:u32 = div %104, 16u - %106:ptr, read> = access %a, %105 - %107:u32 = mod %104, 16u - %108:u32 = div %107, 4u - %109:vec4 = load %106 - %110:vec2 = swizzle %109, zw - %111:vec2 = swizzle %109, xy - %112:bool = eq %108, 2u - %113:vec2 = hlsl.ternary %111, %110, %112 - %114:vec2 = bitcast %113 - %115:u32 = add 16u, %start_byte_offset_4 - %116:u32 = div %115, 16u - %117:ptr, read> = access %a, %116 - %118:u32 = mod %115, 16u - %119:u32 = div %118, 4u - %120:vec4 = load %117 - %121:vec2 = swizzle %120, zw - %122:vec2 = swizzle %120, xy - %123:bool = eq %119, 2u - %124:vec2 = hlsl.ternary %122, %121, %123 - %125:vec2 = bitcast %124 - %126:mat3x2 = construct %103, %114, %125 - ret %126 + %118:array = load %a_2 + ret %118 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 4693ca1ab1c..ce65b77a393 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -139,78 +139,78 @@ $B1: { # root ret } } -%28 = func(%start_byte_offset:u32):Inner { +%24 = func(%start_byte_offset:u32):array { $B4: { - %60:mat3x2 = call %32, %start_byte_offset - %61:Inner = construct %60 - ret %61 - } -} -%32 = func(%start_byte_offset_1:u32):mat3x2 { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %63:u32 = div %start_byte_offset_1, 16u - %64:ptr, read> = access %a, %63 - %65:u32 = mod %start_byte_offset_1, 16u - %66:u32 = div %65, 4u - %67:vec4 = load %64 - %68:vec2 = swizzle %67, zw - %69:vec2 = swizzle %67, xy - %70:bool = eq %66, 2u - %71:vec2 = hlsl.ternary %69, %68, %70 - %72:vec2 = bitcast %71 - %73:u32 = add 8u, %start_byte_offset_1 - %74:u32 = div %73, 16u - %75:ptr, read> = access %a, %74 - %76:u32 = mod %73, 16u - %77:u32 = div %76, 4u - %78:vec4 = load %75 - %79:vec2 = swizzle %78, zw - %80:vec2 = swizzle %78, xy - %81:bool = eq %77, 2u - %82:vec2 = hlsl.ternary %80, %79, %81 - %83:vec2 = bitcast %82 - %84:u32 = add 16u, %start_byte_offset_1 - %85:u32 = div %84, 16u - %86:ptr, read> = access %a, %85 - %87:u32 = mod %84, 16u - %88:u32 = div %87, 4u - %89:vec4 = load %86 - %90:vec2 = swizzle %89, zw - %91:vec2 = swizzle %89, xy - %92:bool = eq %88, 2u - %93:vec2 = hlsl.ternary %91, %90, %92 - %94:vec2 = bitcast %93 - %95:mat3x2 = construct %72, %83, %94 - ret %95 - } -} -%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B6: { %a_1:ptr, read_write> = var, array(Inner(mat3x2(vec2(0.0f)))) # %a_1: 'a' - loop [i: $B7, b: $B8, c: $B9] { # loop_1 - $B7: { # initializer - next_iteration 0u # -> $B8 + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B8 (%idx:u32): { # body - %99:bool = gte %idx, 4u - if %99 [t: $B10] { # if_1 - $B10: { # true + $B6 (%idx:u32): { # body + %62:bool = gte %idx, 4u + if %62 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %100:u32 = mul %idx, 64u - %101:u32 = add %start_byte_offset_2, %100 - %102:ptr = access %a_1, %idx - %103:Inner = call %28, %101 - store %102, %103 - continue # -> $B9 + %63:u32 = mul %idx, 64u + %64:u32 = add %start_byte_offset, %63 + %65:ptr = access %a_1, %idx + %66:Inner = call %28, %64 + store %65, %66 + continue # -> $B7 } - $B9: { # continuing - %104:u32 = add %idx, 1u - next_iteration %104 # -> $B8 + $B7: { # continuing + %67:u32 = add %idx, 1u + next_iteration %67 # -> $B6 } } - %105:array = load %a_1 + %68:array = load %a_1 + ret %68 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %70:mat3x2 = call %32, %start_byte_offset_1 + %71:Inner = construct %70 + ret %71 + } +} +%32 = func(%start_byte_offset_2:u32):mat3x2 { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %73:u32 = div %start_byte_offset_2, 16u + %74:ptr, read> = access %a, %73 + %75:u32 = mod %start_byte_offset_2, 16u + %76:u32 = div %75, 4u + %77:vec4 = load %74 + %78:vec2 = swizzle %77, zw + %79:vec2 = swizzle %77, xy + %80:bool = eq %76, 2u + %81:vec2 = hlsl.ternary %79, %78, %80 + %82:vec2 = bitcast %81 + %83:u32 = add 8u, %start_byte_offset_2 + %84:u32 = div %83, 16u + %85:ptr, read> = access %a, %84 + %86:u32 = mod %83, 16u + %87:u32 = div %86, 4u + %88:vec4 = load %85 + %89:vec2 = swizzle %88, zw + %90:vec2 = swizzle %88, xy + %91:bool = eq %87, 2u + %92:vec2 = hlsl.ternary %90, %89, %91 + %93:vec2 = bitcast %92 + %94:u32 = add 16u, %start_byte_offset_2 + %95:u32 = div %94, 16u + %96:ptr, read> = access %a, %95 + %97:u32 = mod %94, 16u + %98:u32 = div %97, 4u + %99:vec4 = load %96 + %100:vec2 = swizzle %99, zw + %101:vec2 = swizzle %99, xy + %102:bool = eq %98, 2u + %103:vec2 = hlsl.ternary %101, %100, %102 + %104:vec2 = bitcast %103 + %105:mat3x2 = construct %82, %93, %104 ret %105 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index a1f09a2d5bb..57dd8d2694b 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -37,7 +37,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol_4 = {a_load_4((offset + 0u))}; + Inner tint_symbol_4 = {a_load_4((offset + 0u))}; return tint_symbol_4; } @@ -53,7 +53,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_5 = {a_load_2((offset + 0u))}; + Outer tint_symbol_5 = {a_load_2((offset + 0u))}; return tint_symbol_5; } @@ -70,26 +70,29 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] 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] = 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 l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + int p_a_i_save = i(); + int p_a_i_a_i_save = i(); + int p_a_i_a_i_m_i_save = i(); + Outer l_a[4] = a_load(0u); + Outer l_a_i = a_load_1((256u * uint(p_a_i_save))); + Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save))); + Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + matrix 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); vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16); - const vector l_a_i_a_i_m_i = vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]); - const int tint_symbol = p_a_i_save; - const int tint_symbol_1 = p_a_i_a_i_save; - const int tint_symbol_2 = p_a_i_a_i_m_i_save; - const int tint_symbol_3 = i(); + vector l_a_i_a_i_m_i = vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]); + int tint_symbol = p_a_i_save; + int tint_symbol_1 = p_a_i_a_i_save; + int tint_symbol_2 = p_a_i_a_i_m_i_save; + int tint_symbol_3 = i(); const uint scalar_offset_bytes = (((((256u * uint(tint_symbol)) + (64u * uint(tint_symbol_1))) + (8u * uint(tint_symbol_2))) + (2u * uint(tint_symbol_3)))); const uint scalar_offset_index = scalar_offset_bytes / 4; - 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))); + 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: +C:\src\dawn\Shader@0x00000205D240B740(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 31807eda9bf..b7fdeb22aa4 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -38,43 +38,7 @@ fn f() { let l_a_i_a_i_m_i_i : f16 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:61:5 note: %23 declared here - %23:u32 = mul %49, 2u - ^^^^^^^ - -:48:24 error: binary: %23 is not in scope - %36:u32 = add %35, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:61:5 note: %23 declared here - %23:u32 = mul %49, 2u - ^^^^^^^ - -:53:24 error: binary: %23 is not in scope - %42:u32 = add %41, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:61:5 note: %23 declared here - %23:u32 = mul %49, 2u - ^^^^^^^ - -:61:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :55:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -96,7 +60,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %49, 2u + %43:u32 = mul %42, 2u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -139,115 +103,109 @@ $B1: { # root %16:u32 = mul 8u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:array = call %28, %10 - %l_a_i_a:array = let %27 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 %30:u32 = add %10, %13 - %31:Inner = call %32, %30 - %l_a_i_a_i:Inner = let %31 + %31:mat3x3 = call %32, %30 + %l_a_i_a_i_m:mat3x3 = let %31 %34:u32 = add %10, %13 %35:u32 = add %34, %16 - %36:u32 = add %35, %23 - %37:mat3x3 = call %38, %36 - %l_a_i_a_i_m:mat3x3 = let %37 - %40:u32 = add %10, %13 - %41:u32 = add %40, %16 - %42:u32 = add %41, %23 - %43:u32 = div %42, 16u - %44:ptr, read> = access %a, %43 - %45:vec4 = load %44 - %46:vec4 = bitcast %45 - %47:vec3 = swizzle %46, xyz - %l_a_i_a_i_m_i:vec3 = let %47 - %49:i32 = call %i - %23:u32 = mul %49, 2u - %50:u32 = add %10, %13 - %51:u32 = add %50, %16 - %52:u32 = add %51, %23 - %53:u32 = div %52, 16u - %54:ptr, read> = access %a, %53 - %55:u32 = mod %52, 16u - %56:u32 = div %55, 4u - %57:u32 = load_vector_element %54, %56 - %58:u32 = mod %52, 4u - %59:bool = eq %58, 0u - %60:u32 = hlsl.ternary 16u, 0u, %59 - %61:u32 = shr %57, %60 - %62:f32 = hlsl.f16tof32 %61 - %63:f16 = convert %62 - %l_a_i_a_i_m_i_i:f16 = let %63 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec4 = bitcast %38 + %40:vec3 = swizzle %39, xyz + %l_a_i_a_i_m_i:vec3 = let %40 + %42:i32 = call %i + %43:u32 = mul %42, 2u + %44:u32 = add %10, %13 + %45:u32 = add %44, %16 + %46:u32 = add %45, %43 + %47:u32 = div %46, 16u + %48:ptr, read> = access %a, %47 + %49:u32 = mod %46, 16u + %50:u32 = div %49, 4u + %51:u32 = load_vector_element %48, %50 + %52:u32 = mod %46, 4u + %53:bool = eq %52, 0u + %54:u32 = hlsl.ternary 16u, 0u, %53 + %55:u32 = shr %51, %54 + %56:f32 = hlsl.f16tof32 %55 + %57:f16 = convert %56 + %l_a_i_a_i_m_i_i:f16 = let %57 ret } } -%28 = func(%start_byte_offset:u32):array { +%21 = func(%start_byte_offset:u32):Outer { $B4: { + %60:array = call %24, %start_byte_offset + %61:Outer = construct %60 + ret %61 + } +} +%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' + $B5: { %a_1:ptr, read_write> = var, array(Inner(mat3x3(vec3(0.0h)))) # %a_1: 'a' - loop [i: $B5, b: $B6, c: $B7] { # loop_1 - $B5: { # initializer - next_iteration 0u # -> $B6 + loop [i: $B6, b: $B7, c: $B8] { # loop_1 + $B6: { # initializer + next_iteration 0u # -> $B7 } - $B6 (%idx:u32): { # body - %68:bool = gte %idx, 4u - if %68 [t: $B8] { # if_1 - $B8: { # true + $B7 (%idx:u32): { # body + %65:bool = gte %idx, 4u + if %65 [t: $B9] { # if_1 + $B9: { # true exit_loop # loop_1 } } - %69:u32 = mul %idx, 64u - %70:u32 = add %start_byte_offset, %69 - %71:ptr = access %a_1, %idx - %72:Inner = call %32, %70 - store %71, %72 - continue # -> $B7 + %66:u32 = mul %idx, 64u + %67:u32 = add %start_byte_offset_1, %66 + %68:ptr = access %a_1, %idx + %69:Inner = call %28, %67 + store %68, %69 + continue # -> $B8 } - $B7: { # continuing - %73:u32 = add %idx, 1u - next_iteration %73 # -> $B6 + $B8: { # continuing + %70:u32 = add %idx, 1u + next_iteration %70 # -> $B7 } } - %74:array = load %a_1 - ret %74 + %71:array = load %a_1 + ret %71 } } -%32 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' - $B9: { - %76:mat3x3 = call %38, %start_byte_offset_1 - %77:Inner = construct %76 - ret %77 - } -} -%38 = func(%start_byte_offset_2:u32):mat3x3 { # %start_byte_offset_2: 'start_byte_offset' +%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' $B10: { - %79:u32 = div %start_byte_offset_2, 16u - %80:ptr, read> = access %a, %79 - %81:vec4 = load %80 - %82:vec4 = bitcast %81 - %83:vec3 = swizzle %82, xyz - %84:u32 = add 8u, %start_byte_offset_2 - %85:u32 = div %84, 16u - %86:ptr, read> = access %a, %85 - %87:vec4 = load %86 - %88:vec4 = bitcast %87 - %89:vec3 = swizzle %88, xyz - %90:u32 = add 16u, %start_byte_offset_2 - %91:u32 = div %90, 16u - %92:ptr, read> = access %a, %91 - %93:vec4 = load %92 - %94:vec4 = bitcast %93 - %95:vec3 = swizzle %94, xyz - %96:mat3x3 = construct %83, %89, %95 - ret %96 + %73:mat3x3 = call %32, %start_byte_offset_2 + %74:Inner = construct %73 + ret %74 } } -%25 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' +%32 = func(%start_byte_offset_3:u32):mat3x3 { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %98:array = call %28, %start_byte_offset_3 - %99:Outer = construct %98 - ret %99 + %76:u32 = div %start_byte_offset_3, 16u + %77:ptr, read> = access %a, %76 + %78:vec4 = load %77 + %79:vec4 = bitcast %78 + %80:vec3 = swizzle %79, xyz + %81:u32 = add 8u, %start_byte_offset_3 + %82:u32 = div %81, 16u + %83:ptr, read> = access %a, %82 + %84:vec4 = load %83 + %85:vec4 = bitcast %84 + %86:vec3 = swizzle %85, xyz + %87:u32 = add 16u, %start_byte_offset_3 + %88:u32 = div %87, 16u + %89:ptr, read> = access %a, %88 + %90:vec4 = load %89 + %91:vec4 = bitcast %90 + %92:vec3 = swizzle %91, xyz + %93:mat3x3 = construct %80, %86, %92 + ret %93 } } %18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' @@ -258,26 +216,26 @@ $B1: { # root next_iteration 0u # -> $B14 } $B14 (%idx_1:u32): { # body - %103:bool = gte %idx_1, 4u - if %103 [t: $B16] { # if_2 + %97:bool = gte %idx_1, 4u + if %97 [t: $B16] { # if_2 $B16: { # true exit_loop # loop_2 } } - %104:u32 = mul %idx_1, 256u - %105:u32 = add %start_byte_offset_4, %104 - %106:ptr = access %a_2, %idx_1 - %107:Outer = call %25, %105 - store %106, %107 + %98:u32 = mul %idx_1, 256u + %99:u32 = add %start_byte_offset_4, %98 + %100:ptr = access %a_2, %idx_1 + %101:Outer = call %21, %99 + store %100, %101 continue # -> $B15 } $B15: { # continuing - %108:u32 = add %idx_1, 1u - next_iteration %108 # -> $B14 + %102:u32 = add %idx_1, 1u + next_iteration %102 # -> $B14 } } - %109:array = load %a_2 - ret %109 + %103:array = load %a_2 + ret %103 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 6cf4100fc23..913f6399b4f 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -141,63 +141,63 @@ $B1: { # root ret } } -%28 = func(%start_byte_offset:u32):Inner { +%24 = func(%start_byte_offset:u32):array { $B4: { - %60:mat3x3 = call %32, %start_byte_offset - %61:Inner = construct %60 - ret %61 - } -} -%32 = func(%start_byte_offset_1:u32):mat3x3 { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %63:u32 = div %start_byte_offset_1, 16u - %64:ptr, read> = access %a, %63 - %65:vec4 = load %64 - %66:vec4 = bitcast %65 - %67:vec3 = swizzle %66, xyz - %68:u32 = add 8u, %start_byte_offset_1 - %69:u32 = div %68, 16u - %70:ptr, read> = access %a, %69 - %71:vec4 = load %70 - %72:vec4 = bitcast %71 - %73:vec3 = swizzle %72, xyz - %74:u32 = add 16u, %start_byte_offset_1 - %75:u32 = div %74, 16u - %76:ptr, read> = access %a, %75 - %77:vec4 = load %76 - %78:vec4 = bitcast %77 - %79:vec3 = swizzle %78, xyz - %80:mat3x3 = construct %67, %73, %79 - ret %80 - } -} -%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B6: { %a_1:ptr, read_write> = var, array(Inner(mat3x3(vec3(0.0h)))) # %a_1: 'a' - loop [i: $B7, b: $B8, c: $B9] { # loop_1 - $B7: { # initializer - next_iteration 0u # -> $B8 + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B8 (%idx:u32): { # body - %84:bool = gte %idx, 4u - if %84 [t: $B10] { # if_1 - $B10: { # true + $B6 (%idx:u32): { # body + %62:bool = gte %idx, 4u + if %62 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %85:u32 = mul %idx, 64u - %86:u32 = add %start_byte_offset_2, %85 - %87:ptr = access %a_1, %idx - %88:Inner = call %28, %86 - store %87, %88 - continue # -> $B9 + %63:u32 = mul %idx, 64u + %64:u32 = add %start_byte_offset, %63 + %65:ptr = access %a_1, %idx + %66:Inner = call %28, %64 + store %65, %66 + continue # -> $B7 } - $B9: { # continuing - %89:u32 = add %idx, 1u - next_iteration %89 # -> $B8 + $B7: { # continuing + %67:u32 = add %idx, 1u + next_iteration %67 # -> $B6 } } - %90:array = load %a_1 + %68:array = load %a_1 + ret %68 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %70:mat3x3 = call %32, %start_byte_offset_1 + %71:Inner = construct %70 + ret %71 + } +} +%32 = func(%start_byte_offset_2:u32):mat3x3 { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %73:u32 = div %start_byte_offset_2, 16u + %74:ptr, read> = access %a, %73 + %75:vec4 = load %74 + %76:vec4 = bitcast %75 + %77:vec3 = swizzle %76, xyz + %78:u32 = add 8u, %start_byte_offset_2 + %79:u32 = div %78, 16u + %80:ptr, read> = access %a, %79 + %81:vec4 = load %80 + %82:vec4 = bitcast %81 + %83:vec3 = swizzle %82, xyz + %84:u32 = add 16u, %start_byte_offset_2 + %85:u32 = div %84, 16u + %86:ptr, read> = access %a, %85 + %87:vec4 = load %86 + %88:vec4 = bitcast %87 + %89:vec3 = swizzle %88, xyz + %90:mat3x3 = construct %77, %83, %89 ret %90 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index fd723e651c0..c702ece9010 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -31,7 +31,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol = {a_load_4((offset + 0u))}; + Inner tint_symbol = {a_load_4((offset + 0u))}; return tint_symbol; } @@ -47,7 +47,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_1 = {a_load_2((offset + 0u))}; + Outer tint_symbol_1 = {a_load_2((offset + 0u))}; return tint_symbol_1; } @@ -64,15 +64,18 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - 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 l_a_3_a_2_m = a_load_4(896u); + Outer l_a[4] = a_load(0u); + Outer l_a_3 = a_load_1(768u); + Inner l_a_3_a[4] = a_load_2(768u); + Inner l_a_3_a_2 = a_load_3(896u); + matrix l_a_3_a_2_m = a_load_4(896u); uint2 ubo_load_6 = a[56].zw; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16); - const vector l_a_3_a_2_m_1 = vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]); - const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); + vector l_a_3_a_2_m_1 = vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]); + float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017CF01F4FC0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 11aa54bdea4..d21a03069d6 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -99,5 +99,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002183174DEC0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002C70EA8BDF0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_builtin.wgsl.expected.fxc.hlsl index 2d964f2c3d7..41271fd194d 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -25,14 +25,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(264u)); + matrix t = transpose(u_load(264u)); uint2 ubo_load_6 = u[1].xy; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16); - const float16_t l = length(vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]).zxy); + float16_t l = length(vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]).zxy); uint2 ubo_load_7 = u[1].xy; vector ubo_load_7_xz = vector(f16tof32(ubo_load_7 & 0xFFFF)); float16_t ubo_load_7_y = f16tof32(ubo_load_7[0] >> 16); - const float16_t a = abs(vector(ubo_load_7_xz[0], ubo_load_7_y, ubo_load_7_xz[1]).zxy.x); + float16_t a = abs(vector(ubo_load_7_xz[0], ubo_load_7_y, ubo_load_7_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000013CDE9A5500(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 302f2ef9abb..a7b017f7c90 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -30,5 +30,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000200DB07E6F0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018045CC6900(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.fxc.hlsl index adfaff6a76c..57edc4f8dce 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.fxc.hlsl @@ -47,7 +47,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -77,3 +77,6 @@ void f() { e(vector(ubo_load_7_xz[0], ubo_load_7_y, ubo_load_7_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BC5FB3B3A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl index f25c078448b..9a6025f078f 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -85,5 +85,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A4DA862540(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FCF8FEDF50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_private.wgsl.expected.fxc.hlsl index c561c1ddf98..83332552679 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_private.wgsl.expected.fxc.hlsl @@ -33,7 +33,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -59,3 +59,6 @@ void f() { p[1].m[0] = vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]).zxy; return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027F768B12A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_private.wgsl.expected.ir.fxc.hlsl index c0874ba2316..e144b76cf6c 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -70,5 +70,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000204A045E2E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001ACE2C89830(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_storage.wgsl.expected.fxc.hlsl index f1b5f3bae40..47256f67cd2 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_storage.wgsl.expected.fxc.hlsl @@ -54,7 +54,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -80,3 +80,6 @@ void f() { s.Store >(136u, vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]).zxy); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000159D69F4830(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 18f84139be8..93537f34bc3 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -101,5 +101,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019987ED3420(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DA0B6B6340(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_workgroup.wgsl.expected.fxc.hlsl index 75596960326..ade46a0e6dc 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -6,10 +6,22 @@ struct S { int after; }; +groupshared S w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + w[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[32]; }; -groupshared S w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -37,7 +49,7 @@ matrix u_load_3(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_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])}; + 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; } @@ -53,14 +65,7 @@ u_load_ret u_load(uint offset) { } 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_2 = (S)0; - w[i] = tint_symbol_2; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(256u); w[3].m = u_load_3(264u); @@ -75,3 +80,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D639D5A010(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 202ee386170..c9f461223a0 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -95,5 +95,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001AFE40757B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F11E335760(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 2dc91fc9a09..931aeae9949 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -36,31 +36,7 @@ fn f() { let l_a_i_a_i_m_i_i : f32 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :40:24 error: binary: %26 is not in scope - %25:u32 = add %24, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:60:5 note: %26 declared here - %26:u32 = mul %48, 4u - ^^^^^^^ - -:48:24 error: binary: %26 is not in scope - %36:u32 = add %35, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:60:5 note: %26 declared here - %26:u32 = mul %48, 4u - ^^^^^^^ - -:60:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :55:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -82,7 +58,7 @@ Failed to generate: :40:24 error: binary: %26 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %26:u32 = mul %48, 4u + %43:u32 = mul %42, 4u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -127,137 +103,132 @@ $B1: { # root %l_a:array = let %17 %20:Outer = call %21, %10 %l_a_i:Outer = let %20 - %23:u32 = add %10, %13 - %24:u32 = add %23, %16 - %25:u32 = add %24, %26 - %27:array = call %28, %25 - %l_a_i_a:array = let %27 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 %30:u32 = add %10, %13 - %31:Inner = call %32, %30 - %l_a_i_a_i:Inner = let %31 + %31:mat3x3 = call %32, %30 + %l_a_i_a_i_m:mat3x3 = let %31 %34:u32 = add %10, %13 %35:u32 = add %34, %16 - %36:u32 = add %35, %26 - %37:mat3x3 = call %38, %36 - %l_a_i_a_i_m:mat3x3 = let %37 - %40:u32 = add %10, %13 - %41:u32 = add %40, %16 - %42:u32 = div %41, 16u - %43:ptr, read> = access %a, %42 - %44:vec4 = load %43 - %45:vec3 = swizzle %44, xyz - %46:vec3 = bitcast %45 - %l_a_i_a_i_m_i:vec3 = let %46 - %48:i32 = call %i - %26:u32 = mul %48, 4u - %49:u32 = add %10, %13 - %50:u32 = add %49, %16 - %51:u32 = add %50, %26 - %52:u32 = div %51, 16u - %53:ptr, read> = access %a, %52 - %54:u32 = mod %51, 16u - %55:u32 = div %54, 4u - %56:u32 = load_vector_element %53, %55 - %57:f32 = bitcast %56 - %l_a_i_a_i_m_i_i:f32 = let %57 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec3 = swizzle %38, xyz + %40:vec3 = bitcast %39 + %l_a_i_a_i_m_i:vec3 = let %40 + %42:i32 = call %i + %43:u32 = mul %42, 4u + %44:u32 = add %10, %13 + %45:u32 = add %44, %16 + %46:u32 = add %45, %43 + %47:u32 = div %46, 16u + %48:ptr, read> = access %a, %47 + %49:u32 = mod %46, 16u + %50:u32 = div %49, 4u + %51:u32 = load_vector_element %48, %50 + %52:f32 = bitcast %51 + %l_a_i_a_i_m_i_i:f32 = let %52 ret } } -%18 = func(%start_byte_offset:u32):array { +%32 = func(%start_byte_offset:u32):mat3x3 { $B4: { - %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat3x3(vec3(0.0f)))))) # %a_1: 'a' - loop [i: $B5, b: $B6, c: $B7] { # loop_1 - $B5: { # initializer - next_iteration 0u # -> $B6 + %55:u32 = div %start_byte_offset, 16u + %56:ptr, read> = access %a, %55 + %57:vec4 = load %56 + %58:vec3 = swizzle %57, xyz + %59:vec3 = bitcast %58 + %60:u32 = add 16u, %start_byte_offset + %61:u32 = div %60, 16u + %62:ptr, read> = access %a, %61 + %63:vec4 = load %62 + %64:vec3 = swizzle %63, xyz + %65:vec3 = bitcast %64 + %66:u32 = add 32u, %start_byte_offset + %67:u32 = div %66, 16u + %68:ptr, read> = access %a, %67 + %69:vec4 = load %68 + %70:vec3 = swizzle %69, xyz + %71:vec3 = bitcast %70 + %72:mat3x3 = construct %59, %65, %71 + ret %72 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B5: { + %74:mat3x3 = call %32, %start_byte_offset_1 + %75:Inner = construct %74 + ret %75 + } +} +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B6: { + %a_1:ptr, read_write> = var, array(Inner(mat3x3(vec3(0.0f)))) # %a_1: 'a' + loop [i: $B7, b: $B8, c: $B9] { # loop_1 + $B7: { # initializer + next_iteration 0u # -> $B8 } - $B6 (%idx:u32): { # body - %62:bool = gte %idx, 4u - if %62 [t: $B8] { # if_1 - $B8: { # true + $B8 (%idx:u32): { # body + %79:bool = gte %idx, 4u + if %79 [t: $B10] { # if_1 + $B10: { # true exit_loop # loop_1 } } - %63:u32 = mul %idx, 256u - %64:u32 = add %start_byte_offset, %63 - %65:ptr = access %a_1, %idx - %66:Outer = call %21, %64 - store %65, %66 - continue # -> $B7 + %80:u32 = mul %idx, 64u + %81:u32 = add %start_byte_offset_2, %80 + %82:ptr = access %a_1, %idx + %83:Inner = call %28, %81 + store %82, %83 + continue # -> $B9 } - $B7: { # continuing - %67:u32 = add %idx, 1u - next_iteration %67 # -> $B6 + $B9: { # continuing + %84:u32 = add %idx, 1u + next_iteration %84 # -> $B8 } } - %68:array = load %a_1 - ret %68 + %85:array = load %a_1 + ret %85 } } -%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' - $B9: { - %70:array = call %28, %start_byte_offset_1 - %71:Outer = construct %70 - ret %71 +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' + $B11: { + %87:array = call %24, %start_byte_offset_3 + %88:Outer = construct %87 + ret %88 } } -%28 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %a_2:ptr, read_write> = var, array(Inner(mat3x3(vec3(0.0f)))) # %a_2: 'a' - loop [i: $B11, b: $B12, c: $B13] { # loop_2 - $B11: { # initializer - next_iteration 0u # -> $B12 +%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' + $B12: { + %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat3x3(vec3(0.0f)))))) # %a_2: 'a' + loop [i: $B13, b: $B14, c: $B15] { # loop_2 + $B13: { # initializer + next_iteration 0u # -> $B14 } - $B12 (%idx_1:u32): { # body - %75:bool = gte %idx_1, 4u - if %75 [t: $B14] { # if_2 - $B14: { # true + $B14 (%idx_1:u32): { # body + %92:bool = gte %idx_1, 4u + if %92 [t: $B16] { # if_2 + $B16: { # true exit_loop # loop_2 } } - %76:u32 = mul %idx_1, 64u - %77:u32 = add %start_byte_offset_2, %76 - %78:ptr = access %a_2, %idx_1 - %79:Inner = call %32, %77 - store %78, %79 - continue # -> $B13 + %93:u32 = mul %idx_1, 256u + %94:u32 = add %start_byte_offset_4, %93 + %95:ptr = access %a_2, %idx_1 + %96:Outer = call %21, %94 + store %95, %96 + continue # -> $B15 } - $B13: { # continuing - %80:u32 = add %idx_1, 1u - next_iteration %80 # -> $B12 + $B15: { # continuing + %97:u32 = add %idx_1, 1u + next_iteration %97 # -> $B14 } } - %81:array = load %a_2 - ret %81 - } -} -%32 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' - $B15: { - %83:mat3x3 = call %38, %start_byte_offset_3 - %84:Inner = construct %83 - ret %84 - } -} -%38 = func(%start_byte_offset_4:u32):mat3x3 { # %start_byte_offset_4: 'start_byte_offset' - $B16: { - %86:u32 = div %start_byte_offset_4, 16u - %87:ptr, read> = access %a, %86 - %88:vec4 = load %87 - %89:vec3 = swizzle %88, xyz - %90:vec3 = bitcast %89 - %91:u32 = add 16u, %start_byte_offset_4 - %92:u32 = div %91, 16u - %93:ptr, read> = access %a, %92 - %94:vec4 = load %93 - %95:vec3 = swizzle %94, xyz - %96:vec3 = bitcast %95 - %97:u32 = add 32u, %start_byte_offset_4 - %98:u32 = div %97, 16u - %99:ptr, read> = access %a, %98 - %100:vec4 = load %99 - %101:vec3 = swizzle %100, xyz - %102:vec3 = bitcast %101 - %103:mat3x3 = construct %90, %96, %102 - ret %103 + %98:array = load %a_2 + ret %98 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 8e6fa6d9d62..d40d68c2be6 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -134,70 +134,70 @@ $B1: { # root ret } } -%21 = func(%start_byte_offset:u32):Outer { +%24 = func(%start_byte_offset:u32):array { $B4: { - %55:array = call %24, %start_byte_offset - %56:Outer = construct %55 - ret %56 - } -} -%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' - $B5: { %a_1:ptr, read_write> = var, array(Inner(mat3x3(vec3(0.0f)))) # %a_1: 'a' - loop [i: $B6, b: $B7, c: $B8] { # loop_1 - $B6: { # initializer - next_iteration 0u # -> $B7 + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B7 (%idx:u32): { # body - %60:bool = gte %idx, 4u - if %60 [t: $B9] { # if_1 - $B9: { # true + $B6 (%idx:u32): { # body + %57:bool = gte %idx, 4u + if %57 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %61:u32 = mul %idx, 64u - %62:u32 = add %start_byte_offset_1, %61 - %63:ptr = access %a_1, %idx - %64:Inner = call %28, %62 - store %63, %64 - continue # -> $B8 + %58:u32 = mul %idx, 64u + %59:u32 = add %start_byte_offset, %58 + %60:ptr = access %a_1, %idx + %61:Inner = call %28, %59 + store %60, %61 + continue # -> $B7 } - $B8: { # continuing - %65:u32 = add %idx, 1u - next_iteration %65 # -> $B7 + $B7: { # continuing + %62:u32 = add %idx, 1u + next_iteration %62 # -> $B6 } } - %66:array = load %a_1 + %63:array = load %a_1 + ret %63 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %65:mat3x3 = call %32, %start_byte_offset_1 + %66:Inner = construct %65 ret %66 } } -%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' +%32 = func(%start_byte_offset_2:u32):mat3x3 { # %start_byte_offset_2: 'start_byte_offset' $B10: { - %68:mat3x3 = call %32, %start_byte_offset_2 - %69:Inner = construct %68 - ret %69 + %68:u32 = div %start_byte_offset_2, 16u + %69:ptr, read> = access %a, %68 + %70:vec4 = load %69 + %71:vec3 = swizzle %70, xyz + %72:vec3 = bitcast %71 + %73:u32 = add 16u, %start_byte_offset_2 + %74:u32 = div %73, 16u + %75:ptr, read> = access %a, %74 + %76:vec4 = load %75 + %77:vec3 = swizzle %76, xyz + %78:vec3 = bitcast %77 + %79:u32 = add 32u, %start_byte_offset_2 + %80:u32 = div %79, 16u + %81:ptr, read> = access %a, %80 + %82:vec4 = load %81 + %83:vec3 = swizzle %82, xyz + %84:vec3 = bitcast %83 + %85:mat3x3 = construct %72, %78, %84 + ret %85 } } -%32 = func(%start_byte_offset_3:u32):mat3x3 { # %start_byte_offset_3: 'start_byte_offset' +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %71:u32 = div %start_byte_offset_3, 16u - %72:ptr, read> = access %a, %71 - %73:vec4 = load %72 - %74:vec3 = swizzle %73, xyz - %75:vec3 = bitcast %74 - %76:u32 = add 16u, %start_byte_offset_3 - %77:u32 = div %76, 16u - %78:ptr, read> = access %a, %77 - %79:vec4 = load %78 - %80:vec3 = swizzle %79, xyz - %81:vec3 = bitcast %80 - %82:u32 = add 32u, %start_byte_offset_3 - %83:u32 = div %82, 16u - %84:ptr, read> = access %a, %83 - %85:vec4 = load %84 - %86:vec3 = swizzle %85, xyz - %87:vec3 = bitcast %86 - %88:mat3x3 = construct %75, %81, %87 + %87:array = call %24, %start_byte_offset_3 + %88:Outer = construct %87 ret %88 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index df191557de8..6e18e205f7a 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -37,7 +37,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol_4 = {a_load_4((offset + 0u))}; + Inner tint_symbol_4 = {a_load_4((offset + 0u))}; return tint_symbol_4; } @@ -53,7 +53,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_5 = {a_load_2((offset + 0u))}; + Outer tint_symbol_5 = {a_load_2((offset + 0u))}; return tint_symbol_5; } @@ -70,26 +70,29 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] 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] = 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 l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + int p_a_i_save = i(); + int p_a_i_a_i_save = i(); + int p_a_i_a_i_m_i_save = i(); + Outer l_a[4] = a_load(0u); + Outer l_a_i = a_load_1((256u * uint(p_a_i_save))); + Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save))); + Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + matrix 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); vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); vector ubo_load_6_yw = vector(f16tof32(ubo_load_6 >> 16)); - const vector l_a_i_a_i_m_i = vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]); - const int tint_symbol = p_a_i_save; - const int tint_symbol_1 = p_a_i_a_i_save; - const int tint_symbol_2 = p_a_i_a_i_m_i_save; - const int tint_symbol_3 = i(); + vector l_a_i_a_i_m_i = vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]); + int tint_symbol = p_a_i_save; + int tint_symbol_1 = p_a_i_a_i_save; + int tint_symbol_2 = p_a_i_a_i_m_i_save; + int tint_symbol_3 = i(); const uint scalar_offset_bytes = (((((256u * uint(tint_symbol)) + (64u * uint(tint_symbol_1))) + (8u * uint(tint_symbol_2))) + (2u * uint(tint_symbol_3)))); const uint scalar_offset_index = scalar_offset_bytes / 4; - 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))); + 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: +C:\src\dawn\Shader@0x00000295B06CEEA0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index faa23e585a7..f43607257e8 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -38,31 +38,7 @@ fn f() { let l_a_i_a_i_m_i_i : f16 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:60:5 note: %23 declared here - %23:u32 = mul %48, 2u - ^^^^^^^ - -:43:24 error: binary: %23 is not in scope - %29:u32 = add %28, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:60:5 note: %23 declared here - %23:u32 = mul %48, 2u - ^^^^^^^ - -:60:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :54:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -84,7 +60,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %48, 2u + %42:u32 = mul %41, 2u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -127,111 +103,105 @@ $B1: { # root %16:u32 = mul 8u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:u32 = add %10, %13 - %28:u32 = add %27, %16 - %29:u32 = add %28, %23 - %30:array = call %31, %29 - %l_a_i_a:array = let %30 - %33:u32 = add %10, %13 - %34:Inner = call %35, %33 - %l_a_i_a_i:Inner = let %34 - %37:u32 = add %10, %13 - %38:mat3x4 = call %39, %37 - %l_a_i_a_i_m:mat3x4 = let %38 - %41:u32 = add %10, %13 - %42:u32 = add %41, %16 - %43:u32 = div %42, 16u - %44:ptr, read> = access %a, %43 - %45:vec4 = load %44 - %46:vec4 = bitcast %45 - %l_a_i_a_i_m_i:vec4 = let %46 - %48:i32 = call %i - %23:u32 = mul %48, 2u - %49:u32 = add %10, %13 - %50:u32 = add %49, %16 - %51:u32 = add %50, %23 - %52:u32 = div %51, 16u - %53:ptr, read> = access %a, %52 - %54:u32 = mod %51, 16u - %55:u32 = div %54, 4u - %56:u32 = load_vector_element %53, %55 - %57:u32 = mod %51, 4u - %58:bool = eq %57, 0u - %59:u32 = hlsl.ternary 16u, 0u, %58 - %60:u32 = shr %56, %59 - %61:f32 = hlsl.f16tof32 %60 - %62:f16 = convert %61 - %l_a_i_a_i_m_i_i:f16 = let %62 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 + %30:u32 = add %10, %13 + %31:mat3x4 = call %32, %30 + %l_a_i_a_i_m:mat3x4 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec4 = bitcast %38 + %l_a_i_a_i_m_i:vec4 = let %39 + %41:i32 = call %i + %42:u32 = mul %41, 2u + %43:u32 = add %10, %13 + %44:u32 = add %43, %16 + %45:u32 = add %44, %42 + %46:u32 = div %45, 16u + %47:ptr, read> = access %a, %46 + %48:u32 = mod %45, 16u + %49:u32 = div %48, 4u + %50:u32 = load_vector_element %47, %49 + %51:u32 = mod %45, 4u + %52:bool = eq %51, 0u + %53:u32 = hlsl.ternary 16u, 0u, %52 + %54:u32 = shr %50, %53 + %55:f32 = hlsl.f16tof32 %54 + %56:f16 = convert %55 + %l_a_i_a_i_m_i_i:f16 = let %56 ret } } -%35 = func(%start_byte_offset:u32):Inner { +%24 = func(%start_byte_offset:u32):array { $B4: { - %65:mat3x4 = call %39, %start_byte_offset - %66:Inner = construct %65 - ret %66 - } -} -%39 = func(%start_byte_offset_1:u32):mat3x4 { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %68:u32 = div %start_byte_offset_1, 16u - %69:ptr, read> = access %a, %68 - %70:vec4 = load %69 - %71:vec4 = bitcast %70 - %72:u32 = add 8u, %start_byte_offset_1 - %73:u32 = div %72, 16u - %74:ptr, read> = access %a, %73 - %75:vec4 = load %74 - %76:vec4 = bitcast %75 - %77:u32 = add 16u, %start_byte_offset_1 - %78:u32 = div %77, 16u - %79:ptr, read> = access %a, %78 - %80:vec4 = load %79 - %81:vec4 = bitcast %80 - %82:mat3x4 = construct %71, %76, %81 - ret %82 - } -} -%31 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B6: { %a_1:ptr, read_write> = var, array(Inner(mat3x4(vec4(0.0h)))) # %a_1: 'a' - loop [i: $B7, b: $B8, c: $B9] { # loop_1 - $B7: { # initializer - next_iteration 0u # -> $B8 + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B8 (%idx:u32): { # body - %86:bool = gte %idx, 4u - if %86 [t: $B10] { # if_1 - $B10: { # true + $B6 (%idx:u32): { # body + %61:bool = gte %idx, 4u + if %61 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %87:u32 = mul %idx, 64u - %88:u32 = add %start_byte_offset_2, %87 - %89:ptr = access %a_1, %idx - %90:Inner = call %35, %88 - store %89, %90 - continue # -> $B9 + %62:u32 = mul %idx, 64u + %63:u32 = add %start_byte_offset, %62 + %64:ptr = access %a_1, %idx + %65:Inner = call %28, %63 + store %64, %65 + continue # -> $B7 } - $B9: { # continuing - %91:u32 = add %idx, 1u - next_iteration %91 # -> $B8 + $B7: { # continuing + %66:u32 = add %idx, 1u + next_iteration %66 # -> $B6 } } - %92:array = load %a_1 - ret %92 + %67:array = load %a_1 + ret %67 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %69:mat3x4 = call %32, %start_byte_offset_1 + %70:Inner = construct %69 + ret %70 + } +} +%32 = func(%start_byte_offset_2:u32):mat3x4 { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %72:u32 = div %start_byte_offset_2, 16u + %73:ptr, read> = access %a, %72 + %74:vec4 = load %73 + %75:vec4 = bitcast %74 + %76:u32 = add 8u, %start_byte_offset_2 + %77:u32 = div %76, 16u + %78:ptr, read> = access %a, %77 + %79:vec4 = load %78 + %80:vec4 = bitcast %79 + %81:u32 = add 16u, %start_byte_offset_2 + %82:u32 = div %81, 16u + %83:ptr, read> = access %a, %82 + %84:vec4 = load %83 + %85:vec4 = bitcast %84 + %86:mat3x4 = construct %75, %80, %85 + ret %86 } } -%25 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %94:array = call %31, %start_byte_offset_3 - %95:Outer = construct %94 - ret %95 + %88:array = call %24, %start_byte_offset_3 + %89:Outer = construct %88 + ret %89 } } %18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' @@ -242,26 +212,26 @@ $B1: { # root next_iteration 0u # -> $B14 } $B14 (%idx_1:u32): { # body - %99:bool = gte %idx_1, 4u - if %99 [t: $B16] { # if_2 + %93:bool = gte %idx_1, 4u + if %93 [t: $B16] { # if_2 $B16: { # true exit_loop # loop_2 } } - %100:u32 = mul %idx_1, 256u - %101:u32 = add %start_byte_offset_4, %100 - %102:ptr = access %a_2, %idx_1 - %103:Outer = call %25, %101 - store %102, %103 + %94:u32 = mul %idx_1, 256u + %95:u32 = add %start_byte_offset_4, %94 + %96:ptr = access %a_2, %idx_1 + %97:Outer = call %21, %95 + store %96, %97 continue # -> $B15 } $B15: { # continuing - %104:u32 = add %idx_1, 1u - next_iteration %104 # -> $B14 + %98:u32 = add %idx_1, 1u + next_iteration %98 # -> $B14 } } - %105:array = load %a_2 - ret %105 + %99:array = load %a_2 + ret %99 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index d8bfe563229..e8cfa757bda 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -140,97 +140,97 @@ $B1: { # root ret } } -%28 = func(%start_byte_offset:u32):Inner { +%18 = func(%start_byte_offset:u32):array { $B4: { - %59:mat3x4 = call %32, %start_byte_offset - %60:Inner = construct %59 - ret %60 - } -} -%32 = func(%start_byte_offset_1:u32):mat3x4 { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %62:u32 = div %start_byte_offset_1, 16u - %63:ptr, read> = access %a, %62 - %64:vec4 = load %63 - %65:vec4 = bitcast %64 - %66:u32 = add 8u, %start_byte_offset_1 - %67:u32 = div %66, 16u - %68:ptr, read> = access %a, %67 - %69:vec4 = load %68 - %70:vec4 = bitcast %69 - %71:u32 = add 16u, %start_byte_offset_1 - %72:u32 = div %71, 16u - %73:ptr, read> = access %a, %72 - %74:vec4 = load %73 - %75:vec4 = bitcast %74 - %76:mat3x4 = construct %65, %70, %75 - ret %76 - } -} -%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B6: { - %a_1:ptr, read_write> = var, array(Inner(mat3x4(vec4(0.0h)))) # %a_1: 'a' - loop [i: $B7, b: $B8, c: $B9] { # loop_1 - $B7: { # initializer - next_iteration 0u # -> $B8 + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat3x4(vec4(0.0h)))))) # %a_1: 'a' + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B8 (%idx:u32): { # body - %80:bool = gte %idx, 4u - if %80 [t: $B10] { # if_1 - $B10: { # true + $B6 (%idx:u32): { # body + %61:bool = gte %idx, 4u + if %61 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %81:u32 = mul %idx, 64u - %82:u32 = add %start_byte_offset_2, %81 - %83:ptr = access %a_1, %idx - %84:Inner = call %28, %82 - store %83, %84 - continue # -> $B9 + %62:u32 = mul %idx, 256u + %63:u32 = add %start_byte_offset, %62 + %64:ptr = access %a_1, %idx + %65:Outer = call %21, %63 + store %64, %65 + continue # -> $B7 } - $B9: { # continuing - %85:u32 = add %idx, 1u - next_iteration %85 # -> $B8 + $B7: { # continuing + %66:u32 = add %idx, 1u + next_iteration %66 # -> $B6 } } - %86:array = load %a_1 - ret %86 + %67:array = load %a_1 + ret %67 } } -%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %88:array = call %24, %start_byte_offset_3 - %89:Outer = construct %88 - ret %89 +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %69:array = call %24, %start_byte_offset_1 + %70:Outer = construct %69 + ret %70 } } -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat3x4(vec4(0.0h)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %a_2:ptr, read_write> = var, array(Inner(mat3x4(vec4(0.0h)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %93:bool = gte %idx_1, 4u - if %93 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %74:bool = gte %idx_1, 4u + if %74 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %94:u32 = mul %idx_1, 256u - %95:u32 = add %start_byte_offset_4, %94 - %96:ptr = access %a_2, %idx_1 - %97:Outer = call %21, %95 - store %96, %97 - continue # -> $B15 + %75:u32 = mul %idx_1, 64u + %76:u32 = add %start_byte_offset_2, %75 + %77:ptr = access %a_2, %idx_1 + %78:Inner = call %28, %76 + store %77, %78 + continue # -> $B13 } - $B15: { # continuing - %98:u32 = add %idx_1, 1u - next_iteration %98 # -> $B14 + $B13: { # continuing + %79:u32 = add %idx_1, 1u + next_iteration %79 # -> $B12 } } - %99:array = load %a_2 + %80:array = load %a_2 + ret %80 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %82:mat3x4 = call %32, %start_byte_offset_3 + %83:Inner = construct %82 + ret %83 + } +} +%32 = func(%start_byte_offset_4:u32):mat3x4 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %85:u32 = div %start_byte_offset_4, 16u + %86:ptr, read> = access %a, %85 + %87:vec4 = load %86 + %88:vec4 = bitcast %87 + %89:u32 = add 8u, %start_byte_offset_4 + %90:u32 = div %89, 16u + %91:ptr, read> = access %a, %90 + %92:vec4 = load %91 + %93:vec4 = bitcast %92 + %94:u32 = add 16u, %start_byte_offset_4 + %95:u32 = div %94, 16u + %96:ptr, read> = access %a, %95 + %97:vec4 = load %96 + %98:vec4 = bitcast %97 + %99:mat3x4 = construct %88, %93, %98 ret %99 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index eb5b51872d6..d7665a328eb 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -31,7 +31,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol = {a_load_4((offset + 0u))}; + Inner tint_symbol = {a_load_4((offset + 0u))}; return tint_symbol; } @@ -47,7 +47,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_1 = {a_load_2((offset + 0u))}; + Outer tint_symbol_1 = {a_load_2((offset + 0u))}; return tint_symbol_1; } @@ -64,15 +64,18 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - 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 l_a_3_a_2_m = a_load_4(896u); + Outer l_a[4] = a_load(0u); + Outer l_a_3 = a_load_1(768u); + Inner l_a_3_a[4] = a_load_2(768u); + Inner l_a_3_a_2 = a_load_3(896u); + matrix l_a_3_a_2_m = a_load_4(896u); uint2 ubo_load_6 = a[56].zw; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); vector ubo_load_6_yw = vector(f16tof32(ubo_load_6 >> 16)); - const vector l_a_3_a_2_m_1 = vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]); - const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); + vector l_a_3_a_2_m_1 = vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]); + float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020190E682C0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 2d343ecdcee..0c954cc03a1 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -99,5 +99,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EBAD5441E0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A41E2091A0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_builtin.wgsl.expected.fxc.hlsl index 64905e4477d..399d1925d87 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -25,14 +25,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(264u)); + matrix t = transpose(u_load(264u)); uint2 ubo_load_6 = u[1].xy; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); vector ubo_load_6_yw = vector(f16tof32(ubo_load_6 >> 16)); - const float16_t l = length(vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]).ywxz); + float16_t l = length(vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]).ywxz); uint2 ubo_load_7 = u[1].xy; vector ubo_load_7_xz = vector(f16tof32(ubo_load_7 & 0xFFFF)); vector ubo_load_7_yw = vector(f16tof32(ubo_load_7 >> 16)); - const float16_t a = abs(vector(ubo_load_7_xz[0], ubo_load_7_yw[0], ubo_load_7_xz[1], ubo_load_7_yw[1]).ywxz.x); + float16_t a = abs(vector(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: +C:\src\dawn\Shader@0x0000022E6406B9C0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 2a7aac8a755..9abad08800e 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -30,5 +30,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000215F9583E00(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C4E55DCCB0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.fxc.hlsl index dfefe8444fd..949d90852c9 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.fxc.hlsl @@ -47,7 +47,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -77,3 +77,6 @@ void f() { e(vector(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: +C:\src\dawn\Shader@0x000001CCC7BB34B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl index ae2a332da14..8d6471da0aa 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -85,5 +85,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DBA1852540(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D271DD4CE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_private.wgsl.expected.fxc.hlsl index 83305a26c70..7923a211ba2 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_private.wgsl.expected.fxc.hlsl @@ -33,7 +33,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -59,3 +59,6 @@ void f() { p[1].m[0] = vector(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: +C:\src\dawn\Shader@0x00000270E0B31310(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_private.wgsl.expected.ir.fxc.hlsl index 1d77fd7504b..018c04a8652 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -70,5 +70,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016CFB18E2E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000015B76BFB6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_storage.wgsl.expected.fxc.hlsl index 8b1f179fe76..a448d947eec 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_storage.wgsl.expected.fxc.hlsl @@ -54,7 +54,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -80,3 +80,6 @@ void f() { s.Store >(136u, vector(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: +C:\src\dawn\Shader@0x000001E0C9BB4D00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 4d9d7397a44..7c8519d52f6 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -101,5 +101,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018460E73DC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021976867420(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_workgroup.wgsl.expected.fxc.hlsl index a19fef207aa..ea986d46f40 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -6,10 +6,22 @@ struct S { int after; }; +groupshared S w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + w[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[32]; }; -groupshared S w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -37,7 +49,7 @@ matrix u_load_3(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_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])}; + 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; } @@ -53,14 +65,7 @@ u_load_ret u_load(uint offset) { } 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_2 = (S)0; - w[i] = tint_symbol_2; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(256u); w[3].m = u_load_3(264u); @@ -75,3 +80,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016A16DA6580(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index dd977e998d9..605eda265cf 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -95,5 +95,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000180F72F2420(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CF9DE8A2C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 631a20b7453..1ecaaf4eb1c 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -133,97 +133,97 @@ $B1: { # root ret } } -%21 = func(%start_byte_offset:u32):Outer { +%18 = func(%start_byte_offset:u32):array { $B4: { - %54:array = call %24, %start_byte_offset - %55:Outer = construct %54 - ret %55 - } -} -%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %a_1:ptr, read_write> = var, array(Inner(mat3x4(vec4(0.0f)))) # %a_1: 'a' - loop [i: $B6, b: $B7, c: $B8] { # loop_1 - $B6: { # initializer - next_iteration 0u # -> $B7 + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat3x4(vec4(0.0f)))))) # %a_1: 'a' + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B7 (%idx:u32): { # body - %59:bool = gte %idx, 4u - if %59 [t: $B9] { # if_1 - $B9: { # true + $B6 (%idx:u32): { # body + %56:bool = gte %idx, 4u + if %56 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %60:u32 = mul %idx, 64u - %61:u32 = add %start_byte_offset_1, %60 - %62:ptr = access %a_1, %idx - %63:Inner = call %28, %61 - store %62, %63 - continue # -> $B8 + %57:u32 = mul %idx, 256u + %58:u32 = add %start_byte_offset, %57 + %59:ptr = access %a_1, %idx + %60:Outer = call %21, %58 + store %59, %60 + continue # -> $B7 } - $B8: { # continuing - %64:u32 = add %idx, 1u - next_iteration %64 # -> $B7 + $B7: { # continuing + %61:u32 = add %idx, 1u + next_iteration %61 # -> $B6 } } - %65:array = load %a_1 - ret %65 + %62:array = load %a_1 + ret %62 } } -%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %67:mat3x4 = call %32, %start_byte_offset_2 - %68:Inner = construct %67 - ret %68 - } -} -%32 = func(%start_byte_offset_3:u32):mat3x4 { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %70:u32 = div %start_byte_offset_3, 16u - %71:ptr, read> = access %a, %70 - %72:vec4 = load %71 - %73:vec4 = bitcast %72 - %74:u32 = add 16u, %start_byte_offset_3 - %75:u32 = div %74, 16u - %76:ptr, read> = access %a, %75 - %77:vec4 = load %76 - %78:vec4 = bitcast %77 - %79:u32 = add 32u, %start_byte_offset_3 - %80:u32 = div %79, 16u - %81:ptr, read> = access %a, %80 - %82:vec4 = load %81 - %83:vec4 = bitcast %82 - %84:mat3x4 = construct %73, %78, %83 - ret %84 +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %64:array = call %24, %start_byte_offset_1 + %65:Outer = construct %64 + ret %65 } } -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat3x4(vec4(0.0f)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %a_2:ptr, read_write> = var, array(Inner(mat3x4(vec4(0.0f)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %88:bool = gte %idx_1, 4u - if %88 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %69:bool = gte %idx_1, 4u + if %69 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %89:u32 = mul %idx_1, 256u - %90:u32 = add %start_byte_offset_4, %89 - %91:ptr = access %a_2, %idx_1 - %92:Outer = call %21, %90 - store %91, %92 - continue # -> $B15 + %70:u32 = mul %idx_1, 64u + %71:u32 = add %start_byte_offset_2, %70 + %72:ptr = access %a_2, %idx_1 + %73:Inner = call %28, %71 + store %72, %73 + continue # -> $B13 } - $B15: { # continuing - %93:u32 = add %idx_1, 1u - next_iteration %93 # -> $B14 + $B13: { # continuing + %74:u32 = add %idx_1, 1u + next_iteration %74 # -> $B12 } } - %94:array = load %a_2 + %75:array = load %a_2 + ret %75 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %77:mat3x4 = call %32, %start_byte_offset_3 + %78:Inner = construct %77 + ret %78 + } +} +%32 = func(%start_byte_offset_4:u32):mat3x4 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %80:u32 = div %start_byte_offset_4, 16u + %81:ptr, read> = access %a, %80 + %82:vec4 = load %81 + %83:vec4 = bitcast %82 + %84:u32 = add 16u, %start_byte_offset_4 + %85:u32 = div %84, 16u + %86:ptr, read> = access %a, %85 + %87:vec4 = load %86 + %88:vec4 = bitcast %87 + %89:u32 = add 32u, %start_byte_offset_4 + %90:u32 = div %89, 16u + %91:ptr, read> = access %a, %90 + %92:vec4 = load %91 + %93:vec4 = bitcast %92 + %94:mat3x4 = construct %83, %88, %93 ret %94 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 82fa24cf0a2..4d658e7bc41 100644 --- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -133,60 +133,60 @@ $B1: { # root ret } } -%32 = func(%start_byte_offset:u32):mat3x4 { +%24 = func(%start_byte_offset:u32):array { $B4: { - %54:u32 = div %start_byte_offset, 16u - %55:ptr, read> = access %a, %54 - %56:vec4 = load %55 - %57:vec4 = bitcast %56 - %58:u32 = add 16u, %start_byte_offset - %59:u32 = div %58, 16u - %60:ptr, read> = access %a, %59 - %61:vec4 = load %60 - %62:vec4 = bitcast %61 - %63:u32 = add 32u, %start_byte_offset - %64:u32 = div %63, 16u - %65:ptr, read> = access %a, %64 - %66:vec4 = load %65 - %67:vec4 = bitcast %66 - %68:mat3x4 = construct %57, %62, %67 - ret %68 - } -} -%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %70:mat3x4 = call %32, %start_byte_offset_1 - %71:Inner = construct %70 - ret %71 - } -} -%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B6: { %a_1:ptr, read_write> = var, array(Inner(mat3x4(vec4(0.0f)))) # %a_1: 'a' - loop [i: $B7, b: $B8, c: $B9] { # loop_1 - $B7: { # initializer - next_iteration 0u # -> $B8 + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B8 (%idx:u32): { # body - %75:bool = gte %idx, 4u - if %75 [t: $B10] { # if_1 - $B10: { # true + $B6 (%idx:u32): { # body + %56:bool = gte %idx, 4u + if %56 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %76:u32 = mul %idx, 64u - %77:u32 = add %start_byte_offset_2, %76 - %78:ptr = access %a_1, %idx - %79:Inner = call %28, %77 - store %78, %79 - continue # -> $B9 + %57:u32 = mul %idx, 64u + %58:u32 = add %start_byte_offset, %57 + %59:ptr = access %a_1, %idx + %60:Inner = call %28, %58 + store %59, %60 + continue # -> $B7 } - $B9: { # continuing - %80:u32 = add %idx, 1u - next_iteration %80 # -> $B8 + $B7: { # continuing + %61:u32 = add %idx, 1u + next_iteration %61 # -> $B6 } } - %81:array = load %a_1 + %62:array = load %a_1 + ret %62 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %64:mat3x4 = call %32, %start_byte_offset_1 + %65:Inner = construct %64 + ret %65 + } +} +%32 = func(%start_byte_offset_2:u32):mat3x4 { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %67:u32 = div %start_byte_offset_2, 16u + %68:ptr, read> = access %a, %67 + %69:vec4 = load %68 + %70:vec4 = bitcast %69 + %71:u32 = add 16u, %start_byte_offset_2 + %72:u32 = div %71, 16u + %73:ptr, read> = access %a, %72 + %74:vec4 = load %73 + %75:vec4 = bitcast %74 + %76:u32 = add 32u, %start_byte_offset_2 + %77:u32 = div %76, 16u + %78:ptr, read> = access %a, %77 + %79:vec4 = load %78 + %80:vec4 = bitcast %79 + %81:mat3x4 = construct %70, %75, %80 ret %81 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index bb08cf674f3..7e5e1839743 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -30,7 +30,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol_4 = {a_load_4((offset + 0u))}; + Inner tint_symbol_4 = {a_load_4((offset + 0u))}; return tint_symbol_4; } @@ -46,7 +46,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_5 = {a_load_2((offset + 0u))}; + Outer tint_symbol_5 = {a_load_2((offset + 0u))}; return tint_symbol_5; } @@ -63,23 +63,26 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] 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] = 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 l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + int p_a_i_save = i(); + int p_a_i_a_i_save = i(); + int p_a_i_a_i_m_i_save = i(); + Outer l_a[4] = a_load(0u); + Outer l_a_i = a_load_1((256u * uint(p_a_i_save))); + Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save))); + Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + matrix 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 l_a_i_a_i_m_i = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); - const int tint_symbol = p_a_i_save; - const int tint_symbol_1 = p_a_i_a_i_save; - const int tint_symbol_2 = p_a_i_a_i_m_i_save; - const int tint_symbol_3 = i(); + vector l_a_i_a_i_m_i = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); + int tint_symbol = p_a_i_save; + int tint_symbol_1 = p_a_i_a_i_save; + int tint_symbol_2 = p_a_i_a_i_m_i_save; + int tint_symbol_3 = i(); const uint scalar_offset_bytes = (((((256u * uint(tint_symbol)) + (64u * uint(tint_symbol_1))) + (4u * uint(tint_symbol_2))) + (2u * uint(tint_symbol_3)))); const uint scalar_offset_index = scalar_offset_bytes / 4; - 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))); + 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: +C:\src\dawn\Shader@0x000001D1B2EB9790(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 09d90c1d9ae..0e5afa854c9 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -38,43 +38,7 @@ fn f() { let l_a_i_a_i_m_i_i : f16 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 2u - ^^^^^^^ - -:43:24 error: binary: %23 is not in scope - %29:u32 = add %28, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 2u - ^^^^^^^ - -:48:24 error: binary: %23 is not in scope - %35:u32 = add %34, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:68:5 note: %23 declared here - %23:u32 = mul %56, 2u - ^^^^^^^ - -:68:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :60:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -96,7 +60,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %56, 2u + %48:u32 = mul %47, 2u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -139,148 +103,140 @@ $B1: { # root %16:u32 = mul 4u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:u32 = add %10, %13 - %28:u32 = add %27, %16 - %29:u32 = add %28, %23 - %30:array = call %31, %29 - %l_a_i_a:array = let %30 - %33:u32 = add %10, %13 - %34:u32 = add %33, %16 - %35:u32 = add %34, %23 - %36:Inner = call %37, %35 - %l_a_i_a_i:Inner = let %36 - %39:u32 = add %10, %13 - %40:mat4x2 = call %41, %39 - %l_a_i_a_i_m:mat4x2 = let %40 - %43:u32 = add %10, %13 - %44:u32 = add %43, %16 - %45:u32 = div %44, 16u - %46:ptr, read> = access %a, %45 - %47:u32 = mod %44, 16u - %48:u32 = div %47, 4u - %49:vec4 = load %46 - %50:u32 = swizzle %49, z - %51:u32 = swizzle %49, x - %52:bool = eq %48, 2u - %53:u32 = hlsl.ternary %51, %50, %52 - %54:vec2 = bitcast %53 - %l_a_i_a_i_m_i:vec2 = let %54 - %56:i32 = call %i - %23:u32 = mul %56, 2u - %57:u32 = add %10, %13 - %58:u32 = add %57, %16 - %59:u32 = add %58, %23 - %60:u32 = div %59, 16u - %61:ptr, read> = access %a, %60 - %62:u32 = mod %59, 16u - %63:u32 = div %62, 4u - %64:u32 = load_vector_element %61, %63 - %65:u32 = mod %59, 4u - %66:bool = eq %65, 0u - %67:u32 = hlsl.ternary 16u, 0u, %66 - %68:u32 = shr %64, %67 - %69:f32 = hlsl.f16tof32 %68 - %70:f16 = convert %69 - %l_a_i_a_i_m_i_i:f16 = let %70 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 + %30:u32 = add %10, %13 + %31:mat4x2 = call %32, %30 + %l_a_i_a_i_m:mat4x2 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:u32 = mod %35, 16u + %39:u32 = div %38, 4u + %40:vec4 = load %37 + %41:u32 = swizzle %40, z + %42:u32 = swizzle %40, x + %43:bool = eq %39, 2u + %44:u32 = hlsl.ternary %42, %41, %43 + %45:vec2 = bitcast %44 + %l_a_i_a_i_m_i:vec2 = let %45 + %47:i32 = call %i + %48:u32 = mul %47, 2u + %49:u32 = add %10, %13 + %50:u32 = add %49, %16 + %51:u32 = add %50, %48 + %52:u32 = div %51, 16u + %53:ptr, read> = access %a, %52 + %54:u32 = mod %51, 16u + %55:u32 = div %54, 4u + %56:u32 = load_vector_element %53, %55 + %57:u32 = mod %51, 4u + %58:bool = eq %57, 0u + %59:u32 = hlsl.ternary 16u, 0u, %58 + %60:u32 = shr %56, %59 + %61:f32 = hlsl.f16tof32 %60 + %62:f16 = convert %61 + %l_a_i_a_i_m_i_i:f16 = let %62 ret } } -%41 = func(%start_byte_offset:u32):mat4x2 { +%21 = func(%start_byte_offset:u32):Outer { $B4: { - %73:u32 = div %start_byte_offset, 16u - %74:ptr, read> = access %a, %73 - %75:u32 = mod %start_byte_offset, 16u - %76:u32 = div %75, 4u - %77:vec4 = load %74 - %78:u32 = swizzle %77, z - %79:u32 = swizzle %77, x - %80:bool = eq %76, 2u - %81:u32 = hlsl.ternary %79, %78, %80 - %82:vec2 = bitcast %81 - %83:u32 = add 4u, %start_byte_offset - %84:u32 = div %83, 16u - %85:ptr, read> = access %a, %84 - %86:u32 = mod %83, 16u - %87:u32 = div %86, 4u - %88:vec4 = load %85 - %89:u32 = swizzle %88, z - %90:u32 = swizzle %88, x - %91:bool = eq %87, 2u - %92:u32 = hlsl.ternary %90, %89, %91 - %93:vec2 = bitcast %92 - %94:u32 = add 8u, %start_byte_offset - %95:u32 = div %94, 16u - %96:ptr, read> = access %a, %95 - %97:u32 = mod %94, 16u - %98:u32 = div %97, 4u - %99:vec4 = load %96 - %100:u32 = swizzle %99, z - %101:u32 = swizzle %99, x - %102:bool = eq %98, 2u - %103:u32 = hlsl.ternary %101, %100, %102 - %104:vec2 = bitcast %103 - %105:u32 = add 12u, %start_byte_offset - %106:u32 = div %105, 16u - %107:ptr, read> = access %a, %106 - %108:u32 = mod %105, 16u - %109:u32 = div %108, 4u - %110:vec4 = load %107 - %111:u32 = swizzle %110, z - %112:u32 = swizzle %110, x - %113:bool = eq %109, 2u - %114:u32 = hlsl.ternary %112, %111, %113 - %115:vec2 = bitcast %114 - %116:mat4x2 = construct %82, %93, %104, %115 - ret %116 + %65:array = call %24, %start_byte_offset + %66:Outer = construct %65 + ret %66 } } -%37 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' +%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' $B5: { - %118:mat4x2 = call %41, %start_byte_offset_1 - %119:Inner = construct %118 - ret %119 - } -} -%31 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B6: { %a_1:ptr, read_write> = var, array(Inner(mat4x2(vec2(0.0h)))) # %a_1: 'a' - loop [i: $B7, b: $B8, c: $B9] { # loop_1 - $B7: { # initializer - next_iteration 0u # -> $B8 + loop [i: $B6, b: $B7, c: $B8] { # loop_1 + $B6: { # initializer + next_iteration 0u # -> $B7 } - $B8 (%idx:u32): { # body - %123:bool = gte %idx, 4u - if %123 [t: $B10] { # if_1 - $B10: { # true + $B7 (%idx:u32): { # body + %70:bool = gte %idx, 4u + if %70 [t: $B9] { # if_1 + $B9: { # true exit_loop # loop_1 } } - %124:u32 = mul %idx, 64u - %125:u32 = add %start_byte_offset_2, %124 - %126:ptr = access %a_1, %idx - %127:Inner = call %37, %125 - store %126, %127 - continue # -> $B9 + %71:u32 = mul %idx, 64u + %72:u32 = add %start_byte_offset_1, %71 + %73:ptr = access %a_1, %idx + %74:Inner = call %28, %72 + store %73, %74 + continue # -> $B8 } - $B9: { # continuing - %128:u32 = add %idx, 1u - next_iteration %128 # -> $B8 + $B8: { # continuing + %75:u32 = add %idx, 1u + next_iteration %75 # -> $B7 } } - %129:array = load %a_1 - ret %129 + %76:array = load %a_1 + ret %76 + } +} +%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %78:mat4x2 = call %32, %start_byte_offset_2 + %79:Inner = construct %78 + ret %79 } } -%25 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' +%32 = func(%start_byte_offset_3:u32):mat4x2 { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %131:array = call %31, %start_byte_offset_3 - %132:Outer = construct %131 - ret %132 + %81:u32 = div %start_byte_offset_3, 16u + %82:ptr, read> = access %a, %81 + %83:u32 = mod %start_byte_offset_3, 16u + %84:u32 = div %83, 4u + %85:vec4 = load %82 + %86:u32 = swizzle %85, z + %87:u32 = swizzle %85, x + %88:bool = eq %84, 2u + %89:u32 = hlsl.ternary %87, %86, %88 + %90:vec2 = bitcast %89 + %91:u32 = add 4u, %start_byte_offset_3 + %92:u32 = div %91, 16u + %93:ptr, read> = access %a, %92 + %94:u32 = mod %91, 16u + %95:u32 = div %94, 4u + %96:vec4 = load %93 + %97:u32 = swizzle %96, z + %98:u32 = swizzle %96, x + %99:bool = eq %95, 2u + %100:u32 = hlsl.ternary %98, %97, %99 + %101:vec2 = bitcast %100 + %102:u32 = add 8u, %start_byte_offset_3 + %103:u32 = div %102, 16u + %104:ptr, read> = access %a, %103 + %105:u32 = mod %102, 16u + %106:u32 = div %105, 4u + %107:vec4 = load %104 + %108:u32 = swizzle %107, z + %109:u32 = swizzle %107, x + %110:bool = eq %106, 2u + %111:u32 = hlsl.ternary %109, %108, %110 + %112:vec2 = bitcast %111 + %113:u32 = add 12u, %start_byte_offset_3 + %114:u32 = div %113, 16u + %115:ptr, read> = access %a, %114 + %116:u32 = mod %113, 16u + %117:u32 = div %116, 4u + %118:vec4 = load %115 + %119:u32 = swizzle %118, z + %120:u32 = swizzle %118, x + %121:bool = eq %117, 2u + %122:u32 = hlsl.ternary %120, %119, %121 + %123:vec2 = bitcast %122 + %124:mat4x2 = construct %90, %101, %112, %123 + ret %124 } } %18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' @@ -291,26 +247,26 @@ $B1: { # root next_iteration 0u # -> $B14 } $B14 (%idx_1:u32): { # body - %136:bool = gte %idx_1, 4u - if %136 [t: $B16] { # if_2 + %128:bool = gte %idx_1, 4u + if %128 [t: $B16] { # if_2 $B16: { # true exit_loop # loop_2 } } - %137:u32 = mul %idx_1, 256u - %138:u32 = add %start_byte_offset_4, %137 - %139:ptr = access %a_2, %idx_1 - %140:Outer = call %25, %138 - store %139, %140 + %129:u32 = mul %idx_1, 256u + %130:u32 = add %start_byte_offset_4, %129 + %131:ptr = access %a_2, %idx_1 + %132:Outer = call %21, %130 + store %131, %132 continue # -> $B15 } $B15: { # continuing - %141:u32 = add %idx_1, 1u - next_iteration %141 # -> $B14 + %133:u32 = add %idx_1, 1u + next_iteration %133 # -> $B14 } } - %142:array = load %a_2 - ret %142 + %134:array = load %a_2 + ret %134 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 0e5afa854c9..0033edfb655 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -146,96 +146,96 @@ $B1: { # root ret } } -%21 = func(%start_byte_offset:u32):Outer { +%32 = func(%start_byte_offset:u32):mat4x2 { $B4: { - %65:array = call %24, %start_byte_offset - %66:Outer = construct %65 - ret %66 + %65:u32 = div %start_byte_offset, 16u + %66:ptr, read> = access %a, %65 + %67:u32 = mod %start_byte_offset, 16u + %68:u32 = div %67, 4u + %69:vec4 = load %66 + %70:u32 = swizzle %69, z + %71:u32 = swizzle %69, x + %72:bool = eq %68, 2u + %73:u32 = hlsl.ternary %71, %70, %72 + %74:vec2 = bitcast %73 + %75:u32 = add 4u, %start_byte_offset + %76:u32 = div %75, 16u + %77:ptr, read> = access %a, %76 + %78:u32 = mod %75, 16u + %79:u32 = div %78, 4u + %80:vec4 = load %77 + %81:u32 = swizzle %80, z + %82:u32 = swizzle %80, x + %83:bool = eq %79, 2u + %84:u32 = hlsl.ternary %82, %81, %83 + %85:vec2 = bitcast %84 + %86:u32 = add 8u, %start_byte_offset + %87:u32 = div %86, 16u + %88:ptr, read> = access %a, %87 + %89:u32 = mod %86, 16u + %90:u32 = div %89, 4u + %91:vec4 = load %88 + %92:u32 = swizzle %91, z + %93:u32 = swizzle %91, x + %94:bool = eq %90, 2u + %95:u32 = hlsl.ternary %93, %92, %94 + %96:vec2 = bitcast %95 + %97:u32 = add 12u, %start_byte_offset + %98:u32 = div %97, 16u + %99:ptr, read> = access %a, %98 + %100:u32 = mod %97, 16u + %101:u32 = div %100, 4u + %102:vec4 = load %99 + %103:u32 = swizzle %102, z + %104:u32 = swizzle %102, x + %105:bool = eq %101, 2u + %106:u32 = hlsl.ternary %104, %103, %105 + %107:vec2 = bitcast %106 + %108:mat4x2 = construct %74, %85, %96, %107 + ret %108 } } -%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' $B5: { + %110:mat4x2 = call %32, %start_byte_offset_1 + %111:Inner = construct %110 + ret %111 + } +} +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B6: { %a_1:ptr, read_write> = var, array(Inner(mat4x2(vec2(0.0h)))) # %a_1: 'a' - loop [i: $B6, b: $B7, c: $B8] { # loop_1 - $B6: { # initializer - next_iteration 0u # -> $B7 + loop [i: $B7, b: $B8, c: $B9] { # loop_1 + $B7: { # initializer + next_iteration 0u # -> $B8 } - $B7 (%idx:u32): { # body - %70:bool = gte %idx, 4u - if %70 [t: $B9] { # if_1 - $B9: { # true + $B8 (%idx:u32): { # body + %115:bool = gte %idx, 4u + if %115 [t: $B10] { # if_1 + $B10: { # true exit_loop # loop_1 } } - %71:u32 = mul %idx, 64u - %72:u32 = add %start_byte_offset_1, %71 - %73:ptr = access %a_1, %idx - %74:Inner = call %28, %72 - store %73, %74 - continue # -> $B8 + %116:u32 = mul %idx, 64u + %117:u32 = add %start_byte_offset_2, %116 + %118:ptr = access %a_1, %idx + %119:Inner = call %28, %117 + store %118, %119 + continue # -> $B9 } - $B8: { # continuing - %75:u32 = add %idx, 1u - next_iteration %75 # -> $B7 + $B9: { # continuing + %120:u32 = add %idx, 1u + next_iteration %120 # -> $B8 } } - %76:array = load %a_1 - ret %76 - } -} -%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %78:mat4x2 = call %32, %start_byte_offset_2 - %79:Inner = construct %78 - ret %79 + %121:array = load %a_1 + ret %121 } } -%32 = func(%start_byte_offset_3:u32):mat4x2 { # %start_byte_offset_3: 'start_byte_offset' +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %81:u32 = div %start_byte_offset_3, 16u - %82:ptr, read> = access %a, %81 - %83:u32 = mod %start_byte_offset_3, 16u - %84:u32 = div %83, 4u - %85:vec4 = load %82 - %86:u32 = swizzle %85, z - %87:u32 = swizzle %85, x - %88:bool = eq %84, 2u - %89:u32 = hlsl.ternary %87, %86, %88 - %90:vec2 = bitcast %89 - %91:u32 = add 4u, %start_byte_offset_3 - %92:u32 = div %91, 16u - %93:ptr, read> = access %a, %92 - %94:u32 = mod %91, 16u - %95:u32 = div %94, 4u - %96:vec4 = load %93 - %97:u32 = swizzle %96, z - %98:u32 = swizzle %96, x - %99:bool = eq %95, 2u - %100:u32 = hlsl.ternary %98, %97, %99 - %101:vec2 = bitcast %100 - %102:u32 = add 8u, %start_byte_offset_3 - %103:u32 = div %102, 16u - %104:ptr, read> = access %a, %103 - %105:u32 = mod %102, 16u - %106:u32 = div %105, 4u - %107:vec4 = load %104 - %108:u32 = swizzle %107, z - %109:u32 = swizzle %107, x - %110:bool = eq %106, 2u - %111:u32 = hlsl.ternary %109, %108, %110 - %112:vec2 = bitcast %111 - %113:u32 = add 12u, %start_byte_offset_3 - %114:u32 = div %113, 16u - %115:ptr, read> = access %a, %114 - %116:u32 = mod %113, 16u - %117:u32 = div %116, 4u - %118:vec4 = load %115 - %119:u32 = swizzle %118, z - %120:u32 = swizzle %118, x - %121:bool = eq %117, 2u - %122:u32 = hlsl.ternary %120, %119, %121 - %123:vec2 = bitcast %122 - %124:mat4x2 = construct %90, %101, %112, %123 + %123:array = call %24, %start_byte_offset_3 + %124:Outer = construct %123 ret %124 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index ded93af4ea2..289f793c6ba 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -24,7 +24,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol = {a_load_4((offset + 0u))}; + Inner tint_symbol = {a_load_4((offset + 0u))}; return tint_symbol; } @@ -40,7 +40,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_1 = {a_load_2((offset + 0u))}; + Outer tint_symbol_1 = {a_load_2((offset + 0u))}; return tint_symbol_1; } @@ -57,13 +57,16 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - 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 l_a_3_a_2_m = a_load_4(896u); + Outer l_a[4] = a_load(0u); + Outer l_a_3 = a_load_1(768u); + Inner l_a_3_a[4] = a_load_2(768u); + Inner l_a_3_a_2 = a_load_3(896u); + matrix l_a_3_a_2_m = a_load_4(896u); uint ubo_load_4 = a[56].y; - const vector l_a_3_a_2_m_1 = vector(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))); + vector l_a_3_a_2_m_1 = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); + float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].y) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002AC229E4D00(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 8981e61bcc9..04d6d4458cc 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -100,5 +100,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F9499C5CE0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000150FF28C120(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl index f88e9c9264e..29cff16e176 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -18,10 +18,13 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(260u)); + matrix t = transpose(u_load(260u)); uint ubo_load_4 = u[0].z; - const float16_t l = length(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx); + float16_t l = length(vector(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(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x); + float16_t a = abs(vector(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F6EDB9CCB0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 74dbe8fde94..2ef616f87d3 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029BDA101CC0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014349375110(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl index 16457956677..5daf90e6e6b 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl @@ -40,7 +40,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -66,3 +66,6 @@ void f() { e(vector(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D45DA36330(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 55ca8236c9e..65a6bab2ebf 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -86,5 +86,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F2FB3E0100(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027AF99AD010(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl index 76d51497cf2..19c0571b6b9 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl @@ -26,7 +26,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -50,3 +50,6 @@ void f() { p[1].m[0] = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx; return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A8E2DE12A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl index 5de802f9433..7e0b7e4cb67 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -71,5 +71,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027ED01DF550(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FC2473B150(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl index 7c2a5436422..e9f9d89723f 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl @@ -48,7 +48,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -72,3 +72,6 @@ void f() { s.Store >(132u, vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002CC863A9090(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 5cbdb671983..bccb6db0d45 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -103,5 +103,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E5D5EB4A50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014D1CE4C460(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl index 366b3c6a949..7dc22ba75a3 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -6,10 +6,22 @@ struct S { int after; }; +groupshared S w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + w[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[32]; }; -groupshared S w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -30,7 +42,7 @@ matrix u_load_3(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_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])}; + 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; } @@ -46,14 +58,7 @@ u_load_ret u_load(uint offset) { } 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_2 = (S)0; - w[i] = tint_symbol_2; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(256u); w[3].m = u_load_3(260u); @@ -66,3 +71,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002435A4B6380(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index ea27176f7ac..fde624d3701 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -96,5 +96,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000020D0CFE5070(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000210A9EE70F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 35a8904f3ef..fba081a8d4d 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -36,55 +36,7 @@ fn f() { let l_a_i_a_i_m_i_i : f32 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:69:5 note: %23 declared here - %23:u32 = mul %57, 4u - ^^^^^^^ - -:43:24 error: binary: %23 is not in scope - %29:u32 = add %28, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:69:5 note: %23 declared here - %23:u32 = mul %57, 4u - ^^^^^^^ - -:51:24 error: binary: %23 is not in scope - %39:u32 = add %38, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:69:5 note: %23 declared here - %23:u32 = mul %57, 4u - ^^^^^^^ - -:56:24 error: binary: %23 is not in scope - %45:u32 = add %44, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:69:5 note: %23 declared here - %23:u32 = mul %57, 4u - ^^^^^^^ - -:69:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :60:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -106,7 +58,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %57, 4u + %48:u32 = mul %47, 4u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -149,110 +101,101 @@ $B1: { # root %16:u32 = mul 8u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:u32 = add %10, %13 - %28:u32 = add %27, %16 - %29:u32 = add %28, %23 - %30:array = call %31, %29 - %l_a_i_a:array = let %30 - %33:u32 = add %10, %13 - %34:Inner = call %35, %33 - %l_a_i_a_i:Inner = let %34 - %37:u32 = add %10, %13 - %38:u32 = add %37, %16 - %39:u32 = add %38, %23 - %40:mat4x2 = call %41, %39 - %l_a_i_a_i_m:mat4x2 = let %40 - %43:u32 = add %10, %13 - %44:u32 = add %43, %16 - %45:u32 = add %44, %23 - %46:u32 = div %45, 16u - %47:ptr, read> = access %a, %46 - %48:u32 = mod %45, 16u - %49:u32 = div %48, 4u - %50:vec4 = load %47 - %51:vec2 = swizzle %50, zw - %52:vec2 = swizzle %50, xy - %53:bool = eq %49, 2u - %54:vec2 = hlsl.ternary %52, %51, %53 - %55:vec2 = bitcast %54 - %l_a_i_a_i_m_i:vec2 = let %55 - %57:i32 = call %i - %23:u32 = mul %57, 4u - %58:u32 = add %10, %13 - %59:u32 = add %58, %16 - %60:u32 = add %59, %23 - %61:u32 = div %60, 16u - %62:ptr, read> = access %a, %61 - %63:u32 = mod %60, 16u - %64:u32 = div %63, 4u - %65:u32 = load_vector_element %62, %64 - %66:f32 = bitcast %65 - %l_a_i_a_i_m_i_i:f32 = let %66 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 + %30:u32 = add %10, %13 + %31:mat4x2 = call %32, %30 + %l_a_i_a_i_m:mat4x2 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:u32 = mod %35, 16u + %39:u32 = div %38, 4u + %40:vec4 = load %37 + %41:vec2 = swizzle %40, zw + %42:vec2 = swizzle %40, xy + %43:bool = eq %39, 2u + %44:vec2 = hlsl.ternary %42, %41, %43 + %45:vec2 = bitcast %44 + %l_a_i_a_i_m_i:vec2 = let %45 + %47:i32 = call %i + %48:u32 = mul %47, 4u + %49:u32 = add %10, %13 + %50:u32 = add %49, %16 + %51:u32 = add %50, %48 + %52:u32 = div %51, 16u + %53:ptr, read> = access %a, %52 + %54:u32 = mod %51, 16u + %55:u32 = div %54, 4u + %56:u32 = load_vector_element %53, %55 + %57:f32 = bitcast %56 + %l_a_i_a_i_m_i_i:f32 = let %57 ret } } -%35 = func(%start_byte_offset:u32):Inner { +%28 = func(%start_byte_offset:u32):Inner { $B4: { - %69:mat4x2 = call %41, %start_byte_offset - %70:Inner = construct %69 - ret %70 + %60:mat4x2 = call %32, %start_byte_offset + %61:Inner = construct %60 + ret %61 } } -%41 = func(%start_byte_offset_1:u32):mat4x2 { # %start_byte_offset_1: 'start_byte_offset' +%32 = func(%start_byte_offset_1:u32):mat4x2 { # %start_byte_offset_1: 'start_byte_offset' $B5: { - %72:u32 = div %start_byte_offset_1, 16u - %73:ptr, read> = access %a, %72 - %74:u32 = mod %start_byte_offset_1, 16u - %75:u32 = div %74, 4u - %76:vec4 = load %73 - %77:vec2 = swizzle %76, zw - %78:vec2 = swizzle %76, xy - %79:bool = eq %75, 2u - %80:vec2 = hlsl.ternary %78, %77, %79 - %81:vec2 = bitcast %80 - %82:u32 = add 8u, %start_byte_offset_1 - %83:u32 = div %82, 16u - %84:ptr, read> = access %a, %83 - %85:u32 = mod %82, 16u - %86:u32 = div %85, 4u - %87:vec4 = load %84 - %88:vec2 = swizzle %87, zw - %89:vec2 = swizzle %87, xy - %90:bool = eq %86, 2u - %91:vec2 = hlsl.ternary %89, %88, %90 - %92:vec2 = bitcast %91 - %93:u32 = add 16u, %start_byte_offset_1 - %94:u32 = div %93, 16u - %95:ptr, read> = access %a, %94 - %96:u32 = mod %93, 16u - %97:u32 = div %96, 4u - %98:vec4 = load %95 - %99:vec2 = swizzle %98, zw - %100:vec2 = swizzle %98, xy - %101:bool = eq %97, 2u - %102:vec2 = hlsl.ternary %100, %99, %101 - %103:vec2 = bitcast %102 - %104:u32 = add 24u, %start_byte_offset_1 - %105:u32 = div %104, 16u - %106:ptr, read> = access %a, %105 - %107:u32 = mod %104, 16u - %108:u32 = div %107, 4u - %109:vec4 = load %106 - %110:vec2 = swizzle %109, zw - %111:vec2 = swizzle %109, xy - %112:bool = eq %108, 2u - %113:vec2 = hlsl.ternary %111, %110, %112 - %114:vec2 = bitcast %113 - %115:mat4x2 = construct %81, %92, %103, %114 - ret %115 + %63:u32 = div %start_byte_offset_1, 16u + %64:ptr, read> = access %a, %63 + %65:u32 = mod %start_byte_offset_1, 16u + %66:u32 = div %65, 4u + %67:vec4 = load %64 + %68:vec2 = swizzle %67, zw + %69:vec2 = swizzle %67, xy + %70:bool = eq %66, 2u + %71:vec2 = hlsl.ternary %69, %68, %70 + %72:vec2 = bitcast %71 + %73:u32 = add 8u, %start_byte_offset_1 + %74:u32 = div %73, 16u + %75:ptr, read> = access %a, %74 + %76:u32 = mod %73, 16u + %77:u32 = div %76, 4u + %78:vec4 = load %75 + %79:vec2 = swizzle %78, zw + %80:vec2 = swizzle %78, xy + %81:bool = eq %77, 2u + %82:vec2 = hlsl.ternary %80, %79, %81 + %83:vec2 = bitcast %82 + %84:u32 = add 16u, %start_byte_offset_1 + %85:u32 = div %84, 16u + %86:ptr, read> = access %a, %85 + %87:u32 = mod %84, 16u + %88:u32 = div %87, 4u + %89:vec4 = load %86 + %90:vec2 = swizzle %89, zw + %91:vec2 = swizzle %89, xy + %92:bool = eq %88, 2u + %93:vec2 = hlsl.ternary %91, %90, %92 + %94:vec2 = bitcast %93 + %95:u32 = add 24u, %start_byte_offset_1 + %96:u32 = div %95, 16u + %97:ptr, read> = access %a, %96 + %98:u32 = mod %95, 16u + %99:u32 = div %98, 4u + %100:vec4 = load %97 + %101:vec2 = swizzle %100, zw + %102:vec2 = swizzle %100, xy + %103:bool = eq %99, 2u + %104:vec2 = hlsl.ternary %102, %101, %103 + %105:vec2 = bitcast %104 + %106:mat4x2 = construct %72, %83, %94, %105 + ret %106 } } -%31 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' $B6: { %a_1:ptr, read_write> = var, array(Inner(mat4x2(vec2(0.0f)))) # %a_1: 'a' loop [i: $B7, b: $B8, c: $B9] { # loop_1 @@ -260,33 +203,33 @@ $B1: { # root next_iteration 0u # -> $B8 } $B8 (%idx:u32): { # body - %119:bool = gte %idx, 4u - if %119 [t: $B10] { # if_1 + %110:bool = gte %idx, 4u + if %110 [t: $B10] { # if_1 $B10: { # true exit_loop # loop_1 } } - %120:u32 = mul %idx, 64u - %121:u32 = add %start_byte_offset_2, %120 - %122:ptr = access %a_1, %idx - %123:Inner = call %35, %121 - store %122, %123 + %111:u32 = mul %idx, 64u + %112:u32 = add %start_byte_offset_2, %111 + %113:ptr = access %a_1, %idx + %114:Inner = call %28, %112 + store %113, %114 continue # -> $B9 } $B9: { # continuing - %124:u32 = add %idx, 1u - next_iteration %124 # -> $B8 + %115:u32 = add %idx, 1u + next_iteration %115 # -> $B8 } } - %125:array = load %a_1 - ret %125 + %116:array = load %a_1 + ret %116 } } -%25 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %127:array = call %31, %start_byte_offset_3 - %128:Outer = construct %127 - ret %128 + %118:array = call %24, %start_byte_offset_3 + %119:Outer = construct %118 + ret %119 } } %18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' @@ -297,26 +240,26 @@ $B1: { # root next_iteration 0u # -> $B14 } $B14 (%idx_1:u32): { # body - %132:bool = gte %idx_1, 4u - if %132 [t: $B16] { # if_2 + %123:bool = gte %idx_1, 4u + if %123 [t: $B16] { # if_2 $B16: { # true exit_loop # loop_2 } } - %133:u32 = mul %idx_1, 256u - %134:u32 = add %start_byte_offset_4, %133 - %135:ptr = access %a_2, %idx_1 - %136:Outer = call %25, %134 - store %135, %136 + %124:u32 = mul %idx_1, 256u + %125:u32 = add %start_byte_offset_4, %124 + %126:ptr = access %a_2, %idx_1 + %127:Outer = call %21, %125 + store %126, %127 continue # -> $B15 } $B15: { # continuing - %137:u32 = add %idx_1, 1u - next_iteration %137 # -> $B14 + %128:u32 = add %idx_1, 1u + next_iteration %128 # -> $B14 } } - %138:array = load %a_2 - ret %138 + %129:array = load %a_2 + ret %129 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 1ecb4d70a8b..c3b99f4f905 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -139,96 +139,96 @@ $B1: { # root ret } } -%24 = func(%start_byte_offset:u32):array { +%21 = func(%start_byte_offset:u32):Outer { $B4: { + %60:array = call %24, %start_byte_offset + %61:Outer = construct %60 + ret %61 + } +} +%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' + $B5: { %a_1:ptr, read_write> = var, array(Inner(mat4x2(vec2(0.0f)))) # %a_1: 'a' - loop [i: $B5, b: $B6, c: $B7] { # loop_1 - $B5: { # initializer - next_iteration 0u # -> $B6 + loop [i: $B6, b: $B7, c: $B8] { # loop_1 + $B6: { # initializer + next_iteration 0u # -> $B7 } - $B6 (%idx:u32): { # body - %62:bool = gte %idx, 4u - if %62 [t: $B8] { # if_1 - $B8: { # true + $B7 (%idx:u32): { # body + %65:bool = gte %idx, 4u + if %65 [t: $B9] { # if_1 + $B9: { # true exit_loop # loop_1 } } - %63:u32 = mul %idx, 64u - %64:u32 = add %start_byte_offset, %63 - %65:ptr = access %a_1, %idx - %66:Inner = call %28, %64 - store %65, %66 - continue # -> $B7 + %66:u32 = mul %idx, 64u + %67:u32 = add %start_byte_offset_1, %66 + %68:ptr = access %a_1, %idx + %69:Inner = call %28, %67 + store %68, %69 + continue # -> $B8 } - $B7: { # continuing - %67:u32 = add %idx, 1u - next_iteration %67 # -> $B6 + $B8: { # continuing + %70:u32 = add %idx, 1u + next_iteration %70 # -> $B7 } } - %68:array = load %a_1 - ret %68 - } -} -%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' - $B9: { - %70:mat4x2 = call %32, %start_byte_offset_1 - %71:Inner = construct %70 + %71:array = load %a_1 ret %71 } } -%32 = func(%start_byte_offset_2:u32):mat4x2 { # %start_byte_offset_2: 'start_byte_offset' +%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' $B10: { - %73:u32 = div %start_byte_offset_2, 16u - %74:ptr, read> = access %a, %73 - %75:u32 = mod %start_byte_offset_2, 16u - %76:u32 = div %75, 4u - %77:vec4 = load %74 - %78:vec2 = swizzle %77, zw - %79:vec2 = swizzle %77, xy - %80:bool = eq %76, 2u - %81:vec2 = hlsl.ternary %79, %78, %80 - %82:vec2 = bitcast %81 - %83:u32 = add 8u, %start_byte_offset_2 - %84:u32 = div %83, 16u - %85:ptr, read> = access %a, %84 - %86:u32 = mod %83, 16u - %87:u32 = div %86, 4u - %88:vec4 = load %85 - %89:vec2 = swizzle %88, zw - %90:vec2 = swizzle %88, xy - %91:bool = eq %87, 2u - %92:vec2 = hlsl.ternary %90, %89, %91 - %93:vec2 = bitcast %92 - %94:u32 = add 16u, %start_byte_offset_2 - %95:u32 = div %94, 16u - %96:ptr, read> = access %a, %95 - %97:u32 = mod %94, 16u - %98:u32 = div %97, 4u - %99:vec4 = load %96 - %100:vec2 = swizzle %99, zw - %101:vec2 = swizzle %99, xy - %102:bool = eq %98, 2u - %103:vec2 = hlsl.ternary %101, %100, %102 - %104:vec2 = bitcast %103 - %105:u32 = add 24u, %start_byte_offset_2 - %106:u32 = div %105, 16u - %107:ptr, read> = access %a, %106 - %108:u32 = mod %105, 16u - %109:u32 = div %108, 4u - %110:vec4 = load %107 - %111:vec2 = swizzle %110, zw - %112:vec2 = swizzle %110, xy - %113:bool = eq %109, 2u - %114:vec2 = hlsl.ternary %112, %111, %113 - %115:vec2 = bitcast %114 - %116:mat4x2 = construct %82, %93, %104, %115 - ret %116 + %73:mat4x2 = call %32, %start_byte_offset_2 + %74:Inner = construct %73 + ret %74 } } -%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' +%32 = func(%start_byte_offset_3:u32):mat4x2 { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %118:array = call %24, %start_byte_offset_3 - %119:Outer = construct %118 + %76:u32 = div %start_byte_offset_3, 16u + %77:ptr, read> = access %a, %76 + %78:u32 = mod %start_byte_offset_3, 16u + %79:u32 = div %78, 4u + %80:vec4 = load %77 + %81:vec2 = swizzle %80, zw + %82:vec2 = swizzle %80, xy + %83:bool = eq %79, 2u + %84:vec2 = hlsl.ternary %82, %81, %83 + %85:vec2 = bitcast %84 + %86:u32 = add 8u, %start_byte_offset_3 + %87:u32 = div %86, 16u + %88:ptr, read> = access %a, %87 + %89:u32 = mod %86, 16u + %90:u32 = div %89, 4u + %91:vec4 = load %88 + %92:vec2 = swizzle %91, zw + %93:vec2 = swizzle %91, xy + %94:bool = eq %90, 2u + %95:vec2 = hlsl.ternary %93, %92, %94 + %96:vec2 = bitcast %95 + %97:u32 = add 16u, %start_byte_offset_3 + %98:u32 = div %97, 16u + %99:ptr, read> = access %a, %98 + %100:u32 = mod %97, 16u + %101:u32 = div %100, 4u + %102:vec4 = load %99 + %103:vec2 = swizzle %102, zw + %104:vec2 = swizzle %102, xy + %105:bool = eq %101, 2u + %106:vec2 = hlsl.ternary %104, %103, %105 + %107:vec2 = bitcast %106 + %108:u32 = add 24u, %start_byte_offset_3 + %109:u32 = div %108, 16u + %110:ptr, read> = access %a, %109 + %111:u32 = mod %108, 16u + %112:u32 = div %111, 4u + %113:vec4 = load %110 + %114:vec2 = swizzle %113, zw + %115:vec2 = swizzle %113, xy + %116:bool = eq %112, 2u + %117:vec2 = hlsl.ternary %115, %114, %116 + %118:vec2 = bitcast %117 + %119:mat4x2 = construct %85, %96, %107, %118 ret %119 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 2df63f9c9c4..2f10832d160 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -42,7 +42,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol_4 = {a_load_4((offset + 0u))}; + Inner tint_symbol_4 = {a_load_4((offset + 0u))}; return tint_symbol_4; } @@ -58,7 +58,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_5 = {a_load_2((offset + 0u))}; + Outer tint_symbol_5 = {a_load_2((offset + 0u))}; return tint_symbol_5; } @@ -75,26 +75,29 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] 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] = 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 l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + int p_a_i_save = i(); + int p_a_i_a_i_save = i(); + int p_a_i_a_i_m_i_save = i(); + Outer l_a[4] = a_load(0u); + Outer l_a_i = a_load_1((256u * uint(p_a_i_save))); + Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save))); + Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + matrix 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); vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - const vector l_a_i_a_i_m_i = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); - const int tint_symbol = p_a_i_save; - const int tint_symbol_1 = p_a_i_a_i_save; - const int tint_symbol_2 = p_a_i_a_i_m_i_save; - const int tint_symbol_3 = i(); + vector l_a_i_a_i_m_i = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); + int tint_symbol = p_a_i_save; + int tint_symbol_1 = p_a_i_a_i_save; + int tint_symbol_2 = p_a_i_a_i_m_i_save; + int tint_symbol_3 = i(); const uint scalar_offset_bytes = (((((256u * uint(tint_symbol)) + (64u * uint(tint_symbol_1))) + (8u * uint(tint_symbol_2))) + (2u * uint(tint_symbol_3)))); const uint scalar_offset_index = scalar_offset_bytes / 4; - 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))); + 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: +C:\src\dawn\Shader@0x00000280E19A8FE0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 9120550634c..43b5578c9ff 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -38,43 +38,7 @@ fn f() { let l_a_i_a_i_m_i_i : f16 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :40:24 error: binary: %26 is not in scope - %25:u32 = add %24, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:62:5 note: %26 declared here - %26:u32 = mul %50, 2u - ^^^^^^^ - -:45:24 error: binary: %26 is not in scope - %32:u32 = add %31, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:62:5 note: %26 declared here - %26:u32 = mul %50, 2u - ^^^^^^^ - -:50:24 error: binary: %26 is not in scope - %38:u32 = add %37, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:62:5 note: %26 declared here - %26:u32 = mul %50, 2u - ^^^^^^^ - -:62:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :55:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -96,7 +60,7 @@ Failed to generate: :40:24 error: binary: %26 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %26:u32 = mul %50, 2u + %43:u32 = mul %42, 2u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -141,150 +105,143 @@ $B1: { # root %l_a:array = let %17 %20:Outer = call %21, %10 %l_a_i:Outer = let %20 - %23:u32 = add %10, %13 - %24:u32 = add %23, %16 - %25:u32 = add %24, %26 - %27:array = call %28, %25 - %l_a_i_a:array = let %27 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 %30:u32 = add %10, %13 - %31:u32 = add %30, %16 - %32:u32 = add %31, %26 - %33:Inner = call %34, %32 - %l_a_i_a_i:Inner = let %33 - %36:u32 = add %10, %13 - %37:u32 = add %36, %16 - %38:u32 = add %37, %26 - %39:mat4x3 = call %40, %38 - %l_a_i_a_i_m:mat4x3 = let %39 - %42:u32 = add %10, %13 - %43:u32 = add %42, %16 - %44:u32 = div %43, 16u - %45:ptr, read> = access %a, %44 - %46:vec4 = load %45 - %47:vec4 = bitcast %46 - %48:vec3 = swizzle %47, xyz - %l_a_i_a_i_m_i:vec3 = let %48 - %50:i32 = call %i - %26:u32 = mul %50, 2u - %51:u32 = add %10, %13 - %52:u32 = add %51, %16 - %53:u32 = add %52, %26 - %54:u32 = div %53, 16u - %55:ptr, read> = access %a, %54 - %56:u32 = mod %53, 16u - %57:u32 = div %56, 4u - %58:u32 = load_vector_element %55, %57 - %59:u32 = mod %53, 4u - %60:bool = eq %59, 0u - %61:u32 = hlsl.ternary 16u, 0u, %60 - %62:u32 = shr %58, %61 - %63:f32 = hlsl.f16tof32 %62 - %64:f16 = convert %63 - %l_a_i_a_i_m_i_i:f16 = let %64 + %31:mat4x3 = call %32, %30 + %l_a_i_a_i_m:mat4x3 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec4 = bitcast %38 + %40:vec3 = swizzle %39, xyz + %l_a_i_a_i_m_i:vec3 = let %40 + %42:i32 = call %i + %43:u32 = mul %42, 2u + %44:u32 = add %10, %13 + %45:u32 = add %44, %16 + %46:u32 = add %45, %43 + %47:u32 = div %46, 16u + %48:ptr, read> = access %a, %47 + %49:u32 = mod %46, 16u + %50:u32 = div %49, 4u + %51:u32 = load_vector_element %48, %50 + %52:u32 = mod %46, 4u + %53:bool = eq %52, 0u + %54:u32 = hlsl.ternary 16u, 0u, %53 + %55:u32 = shr %51, %54 + %56:f32 = hlsl.f16tof32 %55 + %57:f16 = convert %56 + %l_a_i_a_i_m_i_i:f16 = let %57 ret } } -%21 = func(%start_byte_offset:u32):Outer { +%18 = func(%start_byte_offset:u32):array { $B4: { - %67:array = call %28, %start_byte_offset - %68:Outer = construct %67 - ret %68 - } -} -%28 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %a_1:ptr, read_write> = var, array(Inner(mat4x3(vec3(0.0h)))) # %a_1: 'a' - loop [i: $B6, b: $B7, c: $B8] { # loop_1 - $B6: { # initializer - next_iteration 0u # -> $B7 + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat4x3(vec3(0.0h)))))) # %a_1: 'a' + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B7 (%idx:u32): { # body - %72:bool = gte %idx, 4u - if %72 [t: $B9] { # if_1 - $B9: { # true + $B6 (%idx:u32): { # body + %62:bool = gte %idx, 4u + if %62 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %73:u32 = mul %idx, 64u - %74:u32 = add %start_byte_offset_1, %73 - %75:ptr = access %a_1, %idx - %76:Inner = call %34, %74 - store %75, %76 - continue # -> $B8 + %63:u32 = mul %idx, 256u + %64:u32 = add %start_byte_offset, %63 + %65:ptr = access %a_1, %idx + %66:Outer = call %21, %64 + store %65, %66 + continue # -> $B7 } - $B8: { # continuing - %77:u32 = add %idx, 1u - next_iteration %77 # -> $B7 + $B7: { # continuing + %67:u32 = add %idx, 1u + next_iteration %67 # -> $B6 } } - %78:array = load %a_1 - ret %78 - } -} -%34 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %80:mat4x3 = call %40, %start_byte_offset_2 - %81:Inner = construct %80 - ret %81 + %68:array = load %a_1 + ret %68 } } -%40 = func(%start_byte_offset_3:u32):mat4x3 { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %83:u32 = div %start_byte_offset_3, 16u - %84:ptr, read> = access %a, %83 - %85:vec4 = load %84 - %86:vec4 = bitcast %85 - %87:vec3 = swizzle %86, xyz - %88:u32 = add 8u, %start_byte_offset_3 - %89:u32 = div %88, 16u - %90:ptr, read> = access %a, %89 - %91:vec4 = load %90 - %92:vec4 = bitcast %91 - %93:vec3 = swizzle %92, xyz - %94:u32 = add 16u, %start_byte_offset_3 - %95:u32 = div %94, 16u - %96:ptr, read> = access %a, %95 - %97:vec4 = load %96 - %98:vec4 = bitcast %97 - %99:vec3 = swizzle %98, xyz - %100:u32 = add 24u, %start_byte_offset_3 - %101:u32 = div %100, 16u - %102:ptr, read> = access %a, %101 - %103:vec4 = load %102 - %104:vec4 = bitcast %103 - %105:vec3 = swizzle %104, xyz - %106:mat4x3 = construct %87, %93, %99, %105 - ret %106 +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %70:array = call %24, %start_byte_offset_1 + %71:Outer = construct %70 + ret %71 } } -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat4x3(vec3(0.0h)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %a_2:ptr, read_write> = var, array(Inner(mat4x3(vec3(0.0h)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %110:bool = gte %idx_1, 4u - if %110 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %75:bool = gte %idx_1, 4u + if %75 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %111:u32 = mul %idx_1, 256u - %112:u32 = add %start_byte_offset_4, %111 - %113:ptr = access %a_2, %idx_1 - %114:Outer = call %21, %112 - store %113, %114 - continue # -> $B15 + %76:u32 = mul %idx_1, 64u + %77:u32 = add %start_byte_offset_2, %76 + %78:ptr = access %a_2, %idx_1 + %79:Inner = call %28, %77 + store %78, %79 + continue # -> $B13 } - $B15: { # continuing - %115:u32 = add %idx_1, 1u - next_iteration %115 # -> $B14 + $B13: { # continuing + %80:u32 = add %idx_1, 1u + next_iteration %80 # -> $B12 } } - %116:array = load %a_2 - ret %116 + %81:array = load %a_2 + ret %81 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %83:mat4x3 = call %32, %start_byte_offset_3 + %84:Inner = construct %83 + ret %84 + } +} +%32 = func(%start_byte_offset_4:u32):mat4x3 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %86:u32 = div %start_byte_offset_4, 16u + %87:ptr, read> = access %a, %86 + %88:vec4 = load %87 + %89:vec4 = bitcast %88 + %90:vec3 = swizzle %89, xyz + %91:u32 = add 8u, %start_byte_offset_4 + %92:u32 = div %91, 16u + %93:ptr, read> = access %a, %92 + %94:vec4 = load %93 + %95:vec4 = bitcast %94 + %96:vec3 = swizzle %95, xyz + %97:u32 = add 16u, %start_byte_offset_4 + %98:u32 = div %97, 16u + %99:ptr, read> = access %a, %98 + %100:vec4 = load %99 + %101:vec4 = bitcast %100 + %102:vec3 = swizzle %101, xyz + %103:u32 = add 24u, %start_byte_offset_4 + %104:u32 = div %103, 16u + %105:ptr, read> = access %a, %104 + %106:vec4 = load %105 + %107:vec4 = bitcast %106 + %108:vec3 = swizzle %107, xyz + %109:mat4x3 = construct %90, %96, %102, %108 + ret %109 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 43b5578c9ff..2f7b3e91292 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -141,106 +141,106 @@ $B1: { # root ret } } -%18 = func(%start_byte_offset:u32):array { +%32 = func(%start_byte_offset:u32):mat4x3 { $B4: { - %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat4x3(vec3(0.0h)))))) # %a_1: 'a' - loop [i: $B5, b: $B6, c: $B7] { # loop_1 - $B5: { # initializer - next_iteration 0u # -> $B6 + %60:u32 = div %start_byte_offset, 16u + %61:ptr, read> = access %a, %60 + %62:vec4 = load %61 + %63:vec4 = bitcast %62 + %64:vec3 = swizzle %63, xyz + %65:u32 = add 8u, %start_byte_offset + %66:u32 = div %65, 16u + %67:ptr, read> = access %a, %66 + %68:vec4 = load %67 + %69:vec4 = bitcast %68 + %70:vec3 = swizzle %69, xyz + %71:u32 = add 16u, %start_byte_offset + %72:u32 = div %71, 16u + %73:ptr, read> = access %a, %72 + %74:vec4 = load %73 + %75:vec4 = bitcast %74 + %76:vec3 = swizzle %75, xyz + %77:u32 = add 24u, %start_byte_offset + %78:u32 = div %77, 16u + %79:ptr, read> = access %a, %78 + %80:vec4 = load %79 + %81:vec4 = bitcast %80 + %82:vec3 = swizzle %81, xyz + %83:mat4x3 = construct %64, %70, %76, %82 + ret %83 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B5: { + %85:mat4x3 = call %32, %start_byte_offset_1 + %86:Inner = construct %85 + ret %86 + } +} +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B6: { + %a_1:ptr, read_write> = var, array(Inner(mat4x3(vec3(0.0h)))) # %a_1: 'a' + loop [i: $B7, b: $B8, c: $B9] { # loop_1 + $B7: { # initializer + next_iteration 0u # -> $B8 } - $B6 (%idx:u32): { # body - %62:bool = gte %idx, 4u - if %62 [t: $B8] { # if_1 - $B8: { # true + $B8 (%idx:u32): { # body + %90:bool = gte %idx, 4u + if %90 [t: $B10] { # if_1 + $B10: { # true exit_loop # loop_1 } } - %63:u32 = mul %idx, 256u - %64:u32 = add %start_byte_offset, %63 - %65:ptr = access %a_1, %idx - %66:Outer = call %21, %64 - store %65, %66 - continue # -> $B7 + %91:u32 = mul %idx, 64u + %92:u32 = add %start_byte_offset_2, %91 + %93:ptr = access %a_1, %idx + %94:Inner = call %28, %92 + store %93, %94 + continue # -> $B9 } - $B7: { # continuing - %67:u32 = add %idx, 1u - next_iteration %67 # -> $B6 + $B9: { # continuing + %95:u32 = add %idx, 1u + next_iteration %95 # -> $B8 } } - %68:array = load %a_1 - ret %68 + %96:array = load %a_1 + ret %96 } } -%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' - $B9: { - %70:array = call %24, %start_byte_offset_1 - %71:Outer = construct %70 - ret %71 +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' + $B11: { + %98:array = call %24, %start_byte_offset_3 + %99:Outer = construct %98 + ret %99 } } -%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %a_2:ptr, read_write> = var, array(Inner(mat4x3(vec3(0.0h)))) # %a_2: 'a' - loop [i: $B11, b: $B12, c: $B13] { # loop_2 - $B11: { # initializer - next_iteration 0u # -> $B12 +%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' + $B12: { + %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat4x3(vec3(0.0h)))))) # %a_2: 'a' + loop [i: $B13, b: $B14, c: $B15] { # loop_2 + $B13: { # initializer + next_iteration 0u # -> $B14 } - $B12 (%idx_1:u32): { # body - %75:bool = gte %idx_1, 4u - if %75 [t: $B14] { # if_2 - $B14: { # true + $B14 (%idx_1:u32): { # body + %103:bool = gte %idx_1, 4u + if %103 [t: $B16] { # if_2 + $B16: { # true exit_loop # loop_2 } } - %76:u32 = mul %idx_1, 64u - %77:u32 = add %start_byte_offset_2, %76 - %78:ptr = access %a_2, %idx_1 - %79:Inner = call %28, %77 - store %78, %79 - continue # -> $B13 + %104:u32 = mul %idx_1, 256u + %105:u32 = add %start_byte_offset_4, %104 + %106:ptr = access %a_2, %idx_1 + %107:Outer = call %21, %105 + store %106, %107 + continue # -> $B15 } - $B13: { # continuing - %80:u32 = add %idx_1, 1u - next_iteration %80 # -> $B12 + $B15: { # continuing + %108:u32 = add %idx_1, 1u + next_iteration %108 # -> $B14 } } - %81:array = load %a_2 - ret %81 - } -} -%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' - $B15: { - %83:mat4x3 = call %32, %start_byte_offset_3 - %84:Inner = construct %83 - ret %84 - } -} -%32 = func(%start_byte_offset_4:u32):mat4x3 { # %start_byte_offset_4: 'start_byte_offset' - $B16: { - %86:u32 = div %start_byte_offset_4, 16u - %87:ptr, read> = access %a, %86 - %88:vec4 = load %87 - %89:vec4 = bitcast %88 - %90:vec3 = swizzle %89, xyz - %91:u32 = add 8u, %start_byte_offset_4 - %92:u32 = div %91, 16u - %93:ptr, read> = access %a, %92 - %94:vec4 = load %93 - %95:vec4 = bitcast %94 - %96:vec3 = swizzle %95, xyz - %97:u32 = add 16u, %start_byte_offset_4 - %98:u32 = div %97, 16u - %99:ptr, read> = access %a, %98 - %100:vec4 = load %99 - %101:vec4 = bitcast %100 - %102:vec3 = swizzle %101, xyz - %103:u32 = add 24u, %start_byte_offset_4 - %104:u32 = div %103, 16u - %105:ptr, read> = access %a, %104 - %106:vec4 = load %105 - %107:vec4 = bitcast %106 - %108:vec3 = swizzle %107, xyz - %109:mat4x3 = construct %90, %96, %102, %108 + %109:array = load %a_2 ret %109 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index d1e167e7bee..a929b564428 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -36,7 +36,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol = {a_load_4((offset + 0u))}; + Inner tint_symbol = {a_load_4((offset + 0u))}; return tint_symbol; } @@ -52,7 +52,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_1 = {a_load_2((offset + 0u))}; + Outer tint_symbol_1 = {a_load_2((offset + 0u))}; return tint_symbol_1; } @@ -69,15 +69,18 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - 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 l_a_3_a_2_m = a_load_4(896u); + Outer l_a[4] = a_load(0u); + Outer l_a_3 = a_load_1(768u); + Inner l_a_3_a[4] = a_load_2(768u); + Inner l_a_3_a_2 = a_load_3(896u); + matrix l_a_3_a_2_m = a_load_4(896u); uint2 ubo_load_8 = a[56].zw; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - const vector l_a_3_a_2_m_1 = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); - const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); + vector l_a_3_a_2_m_1 = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); + float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000204FC5754E0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 5d66eb96ae3..44c1020674d 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -100,5 +100,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021333975050(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B767D99460(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl index 45151e8fbf9..efd7ec1e1dc 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -30,14 +30,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(264u)); + matrix t = transpose(u_load(264u)); uint2 ubo_load_8 = u[1].xy; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - const float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy); + float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy); uint2 ubo_load_9 = u[1].xy; vector ubo_load_9_xz = vector(f16tof32(ubo_load_9 & 0xFFFF)); float16_t ubo_load_9_y = f16tof32(ubo_load_9[0] >> 16); - const float16_t a = abs(vector(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x); + float16_t a = abs(vector(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E3F221CCB0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 6d2fabdbbb6..c181a71499e 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018400E7F150(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EF5D86B3F0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl index 58453e323e6..ac9fb1fbaeb 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl @@ -52,7 +52,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -82,3 +82,6 @@ void f() { e(vector(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A5DFD7C130(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 1ac3ec2f7fb..8baf1ce5b76 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -86,5 +86,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AC02CBE6F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C0E5B05AD0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl index 85d2e7342f1..1b8b3116ed7 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl @@ -38,7 +38,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -64,3 +64,6 @@ void f() { p[1].m[0] = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy; return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002816EE03CB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl index 9a517075211..4f88a460e9b 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -71,5 +71,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CCD9FEE2F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DFAD58B720(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl index 04c1a523ae0..2fc015bb0d2 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl @@ -60,7 +60,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -86,3 +86,6 @@ void f() { s.Store >(136u, vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002B2F5BD6CA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 2e79f837f54..844062283d2 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -103,5 +103,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000257BFC3F350(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000278774B8550(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl index 7d701e66943..19cdc1cce16 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -6,10 +6,22 @@ struct S { int after; }; +groupshared S w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + w[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[32]; }; -groupshared S w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -42,7 +54,7 @@ matrix u_load_3(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_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])}; + 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; } @@ -58,14 +70,7 @@ u_load_ret u_load(uint offset) { } 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_2 = (S)0; - w[i] = tint_symbol_2; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(256u); w[3].m = u_load_3(264u); @@ -80,3 +85,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016D2267B720(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 944bbbc0c01..dd78a879b17 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -96,5 +96,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000019C8AE62350(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001653C32CC50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index c6d1da35de5..eac3e882e95 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -36,55 +36,7 @@ fn f() { let l_a_i_a_i_m_i_i : f32 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:64:5 note: %23 declared here - %23:u32 = mul %52, 4u - ^^^^^^^ - -:43:24 error: binary: %23 is not in scope - %29:u32 = add %28, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:64:5 note: %23 declared here - %23:u32 = mul %52, 4u - ^^^^^^^ - -:51:24 error: binary: %23 is not in scope - %39:u32 = add %38, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:64:5 note: %23 declared here - %23:u32 = mul %52, 4u - ^^^^^^^ - -:56:24 error: binary: %23 is not in scope - %45:u32 = add %44, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:64:5 note: %23 declared here - %23:u32 = mul %52, 4u - ^^^^^^^ - -:64:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :55:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -106,7 +58,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %52, 4u + %43:u32 = mul %42, 4u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -149,85 +101,76 @@ $B1: { # root %16:u32 = mul 16u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:u32 = add %10, %13 - %28:u32 = add %27, %16 - %29:u32 = add %28, %23 - %30:array = call %31, %29 - %l_a_i_a:array = let %30 - %33:u32 = add %10, %13 - %34:Inner = call %35, %33 - %l_a_i_a_i:Inner = let %34 - %37:u32 = add %10, %13 - %38:u32 = add %37, %16 - %39:u32 = add %38, %23 - %40:mat4x3 = call %41, %39 - %l_a_i_a_i_m:mat4x3 = let %40 - %43:u32 = add %10, %13 - %44:u32 = add %43, %16 - %45:u32 = add %44, %23 - %46:u32 = div %45, 16u - %47:ptr, read> = access %a, %46 - %48:vec4 = load %47 - %49:vec3 = swizzle %48, xyz - %50:vec3 = bitcast %49 - %l_a_i_a_i_m_i:vec3 = let %50 - %52:i32 = call %i - %23:u32 = mul %52, 4u - %53:u32 = add %10, %13 - %54:u32 = add %53, %16 - %55:u32 = add %54, %23 - %56:u32 = div %55, 16u - %57:ptr, read> = access %a, %56 - %58:u32 = mod %55, 16u - %59:u32 = div %58, 4u - %60:u32 = load_vector_element %57, %59 - %61:f32 = bitcast %60 - %l_a_i_a_i_m_i_i:f32 = let %61 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 + %30:u32 = add %10, %13 + %31:mat4x3 = call %32, %30 + %l_a_i_a_i_m:mat4x3 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec3 = swizzle %38, xyz + %40:vec3 = bitcast %39 + %l_a_i_a_i_m_i:vec3 = let %40 + %42:i32 = call %i + %43:u32 = mul %42, 4u + %44:u32 = add %10, %13 + %45:u32 = add %44, %16 + %46:u32 = add %45, %43 + %47:u32 = div %46, 16u + %48:ptr, read> = access %a, %47 + %49:u32 = mod %46, 16u + %50:u32 = div %49, 4u + %51:u32 = load_vector_element %48, %50 + %52:f32 = bitcast %51 + %l_a_i_a_i_m_i_i:f32 = let %52 ret } } -%35 = func(%start_byte_offset:u32):Inner { +%32 = func(%start_byte_offset:u32):mat4x3 { $B4: { - %64:mat4x3 = call %41, %start_byte_offset - %65:Inner = construct %64 - ret %65 - } -} -%41 = func(%start_byte_offset_1:u32):mat4x3 { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %67:u32 = div %start_byte_offset_1, 16u + %55:u32 = div %start_byte_offset, 16u + %56:ptr, read> = access %a, %55 + %57:vec4 = load %56 + %58:vec3 = swizzle %57, xyz + %59:vec3 = bitcast %58 + %60:u32 = add 16u, %start_byte_offset + %61:u32 = div %60, 16u + %62:ptr, read> = access %a, %61 + %63:vec4 = load %62 + %64:vec3 = swizzle %63, xyz + %65:vec3 = bitcast %64 + %66:u32 = add 32u, %start_byte_offset + %67:u32 = div %66, 16u %68:ptr, read> = access %a, %67 %69:vec4 = load %68 %70:vec3 = swizzle %69, xyz %71:vec3 = bitcast %70 - %72:u32 = add 16u, %start_byte_offset_1 + %72:u32 = add 48u, %start_byte_offset %73:u32 = div %72, 16u %74:ptr, read> = access %a, %73 %75:vec4 = load %74 %76:vec3 = swizzle %75, xyz %77:vec3 = bitcast %76 - %78:u32 = add 32u, %start_byte_offset_1 - %79:u32 = div %78, 16u - %80:ptr, read> = access %a, %79 - %81:vec4 = load %80 - %82:vec3 = swizzle %81, xyz - %83:vec3 = bitcast %82 - %84:u32 = add 48u, %start_byte_offset_1 - %85:u32 = div %84, 16u - %86:ptr, read> = access %a, %85 - %87:vec4 = load %86 - %88:vec3 = swizzle %87, xyz - %89:vec3 = bitcast %88 - %90:mat4x3 = construct %71, %77, %83, %89 - ret %90 + %78:mat4x3 = construct %59, %65, %71, %77 + ret %78 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B5: { + %80:mat4x3 = call %32, %start_byte_offset_1 + %81:Inner = construct %80 + ret %81 } } -%31 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' $B6: { %a_1:ptr, read_write> = var, array(Inner(mat4x3(vec3(0.0f)))) # %a_1: 'a' loop [i: $B7, b: $B8, c: $B9] { # loop_1 @@ -235,33 +178,33 @@ $B1: { # root next_iteration 0u # -> $B8 } $B8 (%idx:u32): { # body - %94:bool = gte %idx, 4u - if %94 [t: $B10] { # if_1 + %85:bool = gte %idx, 4u + if %85 [t: $B10] { # if_1 $B10: { # true exit_loop # loop_1 } } - %95:u32 = mul %idx, 64u - %96:u32 = add %start_byte_offset_2, %95 - %97:ptr = access %a_1, %idx - %98:Inner = call %35, %96 - store %97, %98 + %86:u32 = mul %idx, 64u + %87:u32 = add %start_byte_offset_2, %86 + %88:ptr = access %a_1, %idx + %89:Inner = call %28, %87 + store %88, %89 continue # -> $B9 } $B9: { # continuing - %99:u32 = add %idx, 1u - next_iteration %99 # -> $B8 + %90:u32 = add %idx, 1u + next_iteration %90 # -> $B8 } } - %100:array = load %a_1 - ret %100 + %91:array = load %a_1 + ret %91 } } -%25 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' $B11: { - %102:array = call %31, %start_byte_offset_3 - %103:Outer = construct %102 - ret %103 + %93:array = call %24, %start_byte_offset_3 + %94:Outer = construct %93 + ret %94 } } %18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' @@ -272,26 +215,26 @@ $B1: { # root next_iteration 0u # -> $B14 } $B14 (%idx_1:u32): { # body - %107:bool = gte %idx_1, 4u - if %107 [t: $B16] { # if_2 + %98:bool = gte %idx_1, 4u + if %98 [t: $B16] { # if_2 $B16: { # true exit_loop # loop_2 } } - %108:u32 = mul %idx_1, 256u - %109:u32 = add %start_byte_offset_4, %108 - %110:ptr = access %a_2, %idx_1 - %111:Outer = call %25, %109 - store %110, %111 + %99:u32 = mul %idx_1, 256u + %100:u32 = add %start_byte_offset_4, %99 + %101:ptr = access %a_2, %idx_1 + %102:Outer = call %21, %100 + store %101, %102 continue # -> $B15 } $B15: { # continuing - %112:u32 = add %idx_1, 1u - next_iteration %112 # -> $B14 + %103:u32 = add %idx_1, 1u + next_iteration %103 # -> $B14 } } - %113:array = load %a_2 - ret %113 + %104:array = load %a_2 + ret %104 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index f4f3c622062..4837c66d450 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -134,106 +134,106 @@ $B1: { # root ret } } -%21 = func(%start_byte_offset:u32):Outer { +%18 = func(%start_byte_offset:u32):array { $B4: { - %55:array = call %24, %start_byte_offset - %56:Outer = construct %55 - ret %56 - } -} -%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %a_1:ptr, read_write> = var, array(Inner(mat4x3(vec3(0.0f)))) # %a_1: 'a' - loop [i: $B6, b: $B7, c: $B8] { # loop_1 - $B6: { # initializer - next_iteration 0u # -> $B7 + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat4x3(vec3(0.0f)))))) # %a_1: 'a' + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B7 (%idx:u32): { # body - %60:bool = gte %idx, 4u - if %60 [t: $B9] { # if_1 - $B9: { # true + $B6 (%idx:u32): { # body + %57:bool = gte %idx, 4u + if %57 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %61:u32 = mul %idx, 64u - %62:u32 = add %start_byte_offset_1, %61 - %63:ptr = access %a_1, %idx - %64:Inner = call %28, %62 - store %63, %64 - continue # -> $B8 + %58:u32 = mul %idx, 256u + %59:u32 = add %start_byte_offset, %58 + %60:ptr = access %a_1, %idx + %61:Outer = call %21, %59 + store %60, %61 + continue # -> $B7 } - $B8: { # continuing - %65:u32 = add %idx, 1u - next_iteration %65 # -> $B7 + $B7: { # continuing + %62:u32 = add %idx, 1u + next_iteration %62 # -> $B6 } } - %66:array = load %a_1 - ret %66 - } -} -%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %68:mat4x3 = call %32, %start_byte_offset_2 - %69:Inner = construct %68 - ret %69 + %63:array = load %a_1 + ret %63 } } -%32 = func(%start_byte_offset_3:u32):mat4x3 { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %71:u32 = div %start_byte_offset_3, 16u - %72:ptr, read> = access %a, %71 - %73:vec4 = load %72 - %74:vec3 = swizzle %73, xyz - %75:vec3 = bitcast %74 - %76:u32 = add 16u, %start_byte_offset_3 - %77:u32 = div %76, 16u - %78:ptr, read> = access %a, %77 - %79:vec4 = load %78 - %80:vec3 = swizzle %79, xyz - %81:vec3 = bitcast %80 - %82:u32 = add 32u, %start_byte_offset_3 - %83:u32 = div %82, 16u - %84:ptr, read> = access %a, %83 - %85:vec4 = load %84 - %86:vec3 = swizzle %85, xyz - %87:vec3 = bitcast %86 - %88:u32 = add 48u, %start_byte_offset_3 - %89:u32 = div %88, 16u - %90:ptr, read> = access %a, %89 - %91:vec4 = load %90 - %92:vec3 = swizzle %91, xyz - %93:vec3 = bitcast %92 - %94:mat4x3 = construct %75, %81, %87, %93 - ret %94 +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %65:array = call %24, %start_byte_offset_1 + %66:Outer = construct %65 + ret %66 } } -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat4x3(vec3(0.0f)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %a_2:ptr, read_write> = var, array(Inner(mat4x3(vec3(0.0f)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 } - $B14 (%idx_1:u32): { # body - %98:bool = gte %idx_1, 4u - if %98 [t: $B16] { # if_2 - $B16: { # true + $B12 (%idx_1:u32): { # body + %70:bool = gte %idx_1, 4u + if %70 [t: $B14] { # if_2 + $B14: { # true exit_loop # loop_2 } } - %99:u32 = mul %idx_1, 256u - %100:u32 = add %start_byte_offset_4, %99 - %101:ptr = access %a_2, %idx_1 - %102:Outer = call %21, %100 - store %101, %102 - continue # -> $B15 + %71:u32 = mul %idx_1, 64u + %72:u32 = add %start_byte_offset_2, %71 + %73:ptr = access %a_2, %idx_1 + %74:Inner = call %28, %72 + store %73, %74 + continue # -> $B13 } - $B15: { # continuing - %103:u32 = add %idx_1, 1u - next_iteration %103 # -> $B14 + $B13: { # continuing + %75:u32 = add %idx_1, 1u + next_iteration %75 # -> $B12 } } - %104:array = load %a_2 + %76:array = load %a_2 + ret %76 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %78:mat4x3 = call %32, %start_byte_offset_3 + %79:Inner = construct %78 + ret %79 + } +} +%32 = func(%start_byte_offset_4:u32):mat4x3 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %81:u32 = div %start_byte_offset_4, 16u + %82:ptr, read> = access %a, %81 + %83:vec4 = load %82 + %84:vec3 = swizzle %83, xyz + %85:vec3 = bitcast %84 + %86:u32 = add 16u, %start_byte_offset_4 + %87:u32 = div %86, 16u + %88:ptr, read> = access %a, %87 + %89:vec4 = load %88 + %90:vec3 = swizzle %89, xyz + %91:vec3 = bitcast %90 + %92:u32 = add 32u, %start_byte_offset_4 + %93:u32 = div %92, 16u + %94:ptr, read> = access %a, %93 + %95:vec4 = load %94 + %96:vec3 = swizzle %95, xyz + %97:vec3 = bitcast %96 + %98:u32 = add 48u, %start_byte_offset_4 + %99:u32 = div %98, 16u + %100:ptr, read> = access %a, %99 + %101:vec4 = load %100 + %102:vec3 = swizzle %101, xyz + %103:vec3 = bitcast %102 + %104:mat4x3 = construct %85, %91, %97, %103 ret %104 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index e9eba1acdbb..e2c8a1545b6 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -42,7 +42,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol_4 = {a_load_4((offset + 0u))}; + Inner tint_symbol_4 = {a_load_4((offset + 0u))}; return tint_symbol_4; } @@ -58,7 +58,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_5 = {a_load_2((offset + 0u))}; + Outer tint_symbol_5 = {a_load_2((offset + 0u))}; return tint_symbol_5; } @@ -75,26 +75,29 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] 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] = 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 l_a_i_a_i_m = a_load_4(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + int p_a_i_save = i(); + int p_a_i_a_i_save = i(); + int p_a_i_a_i_m_i_save = i(); + Outer l_a[4] = a_load(0u); + Outer l_a_i = a_load_1((256u * uint(p_a_i_save))); + Inner l_a_i_a[4] = a_load_2((256u * uint(p_a_i_save))); + Inner l_a_i_a_i = a_load_3(((256u * uint(p_a_i_save)) + (64u * uint(p_a_i_a_i_save)))); + matrix 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); vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); - const vector l_a_i_a_i_m_i = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); - const int tint_symbol = p_a_i_save; - const int tint_symbol_1 = p_a_i_a_i_save; - const int tint_symbol_2 = p_a_i_a_i_m_i_save; - const int tint_symbol_3 = i(); + vector l_a_i_a_i_m_i = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); + int tint_symbol = p_a_i_save; + int tint_symbol_1 = p_a_i_a_i_save; + int tint_symbol_2 = p_a_i_a_i_m_i_save; + int tint_symbol_3 = i(); const uint scalar_offset_bytes = (((((256u * uint(tint_symbol)) + (64u * uint(tint_symbol_1))) + (8u * uint(tint_symbol_2))) + (2u * uint(tint_symbol_3)))); const uint scalar_offset_index = scalar_offset_bytes / 4; - 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))); + 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: +C:\src\dawn\Shader@0x0000027BD3A0A710(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 55015b7db40..1800362de9a 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -38,31 +38,7 @@ fn f() { let l_a_i_a_i_m_i_i : f16 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :40:24 error: binary: %26 is not in scope - %25:u32 = add %24, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:59:5 note: %26 declared here - %26:u32 = mul %47, 2u - ^^^^^^^ - -:48:24 error: binary: %26 is not in scope - %36:u32 = add %35, %26 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:59:5 note: %26 declared here - %26:u32 = mul %47, 2u - ^^^^^^^ - -:59:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :54:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -84,7 +60,7 @@ Failed to generate: :40:24 error: binary: %26 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %26:u32 = mul %47, 2u + %42:u32 = mul %41, 2u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -129,143 +105,138 @@ $B1: { # root %l_a:array = let %17 %20:Outer = call %21, %10 %l_a_i:Outer = let %20 - %23:u32 = add %10, %13 - %24:u32 = add %23, %16 - %25:u32 = add %24, %26 - %27:array = call %28, %25 - %l_a_i_a:array = let %27 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 %30:u32 = add %10, %13 - %31:Inner = call %32, %30 - %l_a_i_a_i:Inner = let %31 + %31:mat4x4 = call %32, %30 + %l_a_i_a_i_m:mat4x4 = let %31 %34:u32 = add %10, %13 %35:u32 = add %34, %16 - %36:u32 = add %35, %26 - %37:mat4x4 = call %38, %36 - %l_a_i_a_i_m:mat4x4 = let %37 - %40:u32 = add %10, %13 - %41:u32 = add %40, %16 - %42:u32 = div %41, 16u - %43:ptr, read> = access %a, %42 - %44:vec4 = load %43 - %45:vec4 = bitcast %44 - %l_a_i_a_i_m_i:vec4 = let %45 - %47:i32 = call %i - %26:u32 = mul %47, 2u - %48:u32 = add %10, %13 - %49:u32 = add %48, %16 - %50:u32 = add %49, %26 - %51:u32 = div %50, 16u - %52:ptr, read> = access %a, %51 - %53:u32 = mod %50, 16u - %54:u32 = div %53, 4u - %55:u32 = load_vector_element %52, %54 - %56:u32 = mod %50, 4u - %57:bool = eq %56, 0u - %58:u32 = hlsl.ternary 16u, 0u, %57 - %59:u32 = shr %55, %58 - %60:f32 = hlsl.f16tof32 %59 - %61:f16 = convert %60 - %l_a_i_a_i_m_i_i:f16 = let %61 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec4 = bitcast %38 + %l_a_i_a_i_m_i:vec4 = let %39 + %41:i32 = call %i + %42:u32 = mul %41, 2u + %43:u32 = add %10, %13 + %44:u32 = add %43, %16 + %45:u32 = add %44, %42 + %46:u32 = div %45, 16u + %47:ptr, read> = access %a, %46 + %48:u32 = mod %45, 16u + %49:u32 = div %48, 4u + %50:u32 = load_vector_element %47, %49 + %51:u32 = mod %45, 4u + %52:bool = eq %51, 0u + %53:u32 = hlsl.ternary 16u, 0u, %52 + %54:u32 = shr %50, %53 + %55:f32 = hlsl.f16tof32 %54 + %56:f16 = convert %55 + %l_a_i_a_i_m_i_i:f16 = let %56 ret } } -%21 = func(%start_byte_offset:u32):Outer { +%18 = func(%start_byte_offset:u32):array { $B4: { - %64:array = call %28, %start_byte_offset - %65:Outer = construct %64 - ret %65 - } -} -%28 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' - $B5: { - %a_1:ptr, read_write> = var, array(Inner(mat4x4(vec4(0.0h)))) # %a_1: 'a' - loop [i: $B6, b: $B7, c: $B8] { # loop_1 - $B6: { # initializer - next_iteration 0u # -> $B7 + %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat4x4(vec4(0.0h)))))) # %a_1: 'a' + loop [i: $B5, b: $B6, c: $B7] { # loop_1 + $B5: { # initializer + next_iteration 0u # -> $B6 } - $B7 (%idx:u32): { # body - %69:bool = gte %idx, 4u - if %69 [t: $B9] { # if_1 - $B9: { # true + $B6 (%idx:u32): { # body + %61:bool = gte %idx, 4u + if %61 [t: $B8] { # if_1 + $B8: { # true exit_loop # loop_1 } } - %70:u32 = mul %idx, 64u - %71:u32 = add %start_byte_offset_1, %70 - %72:ptr = access %a_1, %idx - %73:Inner = call %32, %71 - store %72, %73 - continue # -> $B8 + %62:u32 = mul %idx, 256u + %63:u32 = add %start_byte_offset, %62 + %64:ptr = access %a_1, %idx + %65:Outer = call %21, %63 + store %64, %65 + continue # -> $B7 } - $B8: { # continuing - %74:u32 = add %idx, 1u - next_iteration %74 # -> $B7 + $B7: { # continuing + %66:u32 = add %idx, 1u + next_iteration %66 # -> $B6 } } - %75:array = load %a_1 - ret %75 + %67:array = load %a_1 + ret %67 + } +} +%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' + $B9: { + %69:array = call %24, %start_byte_offset_1 + %70:Outer = construct %69 + ret %70 } } -%32 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' $B10: { - %77:mat4x4 = call %38, %start_byte_offset_2 - %78:Inner = construct %77 - ret %78 + %a_2:ptr, read_write> = var, array(Inner(mat4x4(vec4(0.0h)))) # %a_2: 'a' + loop [i: $B11, b: $B12, c: $B13] { # loop_2 + $B11: { # initializer + next_iteration 0u # -> $B12 + } + $B12 (%idx_1:u32): { # body + %74:bool = gte %idx_1, 4u + if %74 [t: $B14] { # if_2 + $B14: { # true + exit_loop # loop_2 + } + } + %75:u32 = mul %idx_1, 64u + %76:u32 = add %start_byte_offset_2, %75 + %77:ptr = access %a_2, %idx_1 + %78:Inner = call %28, %76 + store %77, %78 + continue # -> $B13 + } + $B13: { # continuing + %79:u32 = add %idx_1, 1u + next_iteration %79 # -> $B12 + } + } + %80:array = load %a_2 + ret %80 + } +} +%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' + $B15: { + %82:mat4x4 = call %32, %start_byte_offset_3 + %83:Inner = construct %82 + ret %83 } } -%38 = func(%start_byte_offset_3:u32):mat4x4 { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %80:u32 = div %start_byte_offset_3, 16u - %81:ptr, read> = access %a, %80 - %82:vec4 = load %81 - %83:vec4 = bitcast %82 - %84:u32 = add 8u, %start_byte_offset_3 - %85:u32 = div %84, 16u +%32 = func(%start_byte_offset_4:u32):mat4x4 { # %start_byte_offset_4: 'start_byte_offset' + $B16: { + %85:u32 = div %start_byte_offset_4, 16u %86:ptr, read> = access %a, %85 %87:vec4 = load %86 %88:vec4 = bitcast %87 - %89:u32 = add 16u, %start_byte_offset_3 + %89:u32 = add 8u, %start_byte_offset_4 %90:u32 = div %89, 16u %91:ptr, read> = access %a, %90 %92:vec4 = load %91 %93:vec4 = bitcast %92 - %94:u32 = add 24u, %start_byte_offset_3 + %94:u32 = add 16u, %start_byte_offset_4 %95:u32 = div %94, 16u %96:ptr, read> = access %a, %95 %97:vec4 = load %96 %98:vec4 = bitcast %97 - %99:mat4x4 = construct %83, %88, %93, %98 - ret %99 - } -} -%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' - $B12: { - %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat4x4(vec4(0.0h)))))) # %a_2: 'a' - loop [i: $B13, b: $B14, c: $B15] { # loop_2 - $B13: { # initializer - next_iteration 0u # -> $B14 - } - $B14 (%idx_1:u32): { # body - %103:bool = gte %idx_1, 4u - if %103 [t: $B16] { # if_2 - $B16: { # true - exit_loop # loop_2 - } - } - %104:u32 = mul %idx_1, 256u - %105:u32 = add %start_byte_offset_4, %104 - %106:ptr = access %a_2, %idx_1 - %107:Outer = call %21, %105 - store %106, %107 - continue # -> $B15 - } - $B15: { # continuing - %108:u32 = add %idx_1, 1u - next_iteration %108 # -> $B14 - } - } - %109:array = load %a_2 - ret %109 + %99:u32 = add 24u, %start_byte_offset_4 + %100:u32 = div %99, 16u + %101:ptr, read> = access %a, %100 + %102:vec4 = load %101 + %103:vec4 = bitcast %102 + %104:mat4x4 = construct %88, %93, %98, %103 + ret %104 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 1800362de9a..9a5f0ab27ac 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -140,102 +140,102 @@ $B1: { # root ret } } -%18 = func(%start_byte_offset:u32):array { +%32 = func(%start_byte_offset:u32):mat4x4 { $B4: { - %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat4x4(vec4(0.0h)))))) # %a_1: 'a' - loop [i: $B5, b: $B6, c: $B7] { # loop_1 - $B5: { # initializer - next_iteration 0u # -> $B6 + %59:u32 = div %start_byte_offset, 16u + %60:ptr, read> = access %a, %59 + %61:vec4 = load %60 + %62:vec4 = bitcast %61 + %63:u32 = add 8u, %start_byte_offset + %64:u32 = div %63, 16u + %65:ptr, read> = access %a, %64 + %66:vec4 = load %65 + %67:vec4 = bitcast %66 + %68:u32 = add 16u, %start_byte_offset + %69:u32 = div %68, 16u + %70:ptr, read> = access %a, %69 + %71:vec4 = load %70 + %72:vec4 = bitcast %71 + %73:u32 = add 24u, %start_byte_offset + %74:u32 = div %73, 16u + %75:ptr, read> = access %a, %74 + %76:vec4 = load %75 + %77:vec4 = bitcast %76 + %78:mat4x4 = construct %62, %67, %72, %77 + ret %78 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B5: { + %80:mat4x4 = call %32, %start_byte_offset_1 + %81:Inner = construct %80 + ret %81 + } +} +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B6: { + %a_1:ptr, read_write> = var, array(Inner(mat4x4(vec4(0.0h)))) # %a_1: 'a' + loop [i: $B7, b: $B8, c: $B9] { # loop_1 + $B7: { # initializer + next_iteration 0u # -> $B8 } - $B6 (%idx:u32): { # body - %61:bool = gte %idx, 4u - if %61 [t: $B8] { # if_1 - $B8: { # true + $B8 (%idx:u32): { # body + %85:bool = gte %idx, 4u + if %85 [t: $B10] { # if_1 + $B10: { # true exit_loop # loop_1 } } - %62:u32 = mul %idx, 256u - %63:u32 = add %start_byte_offset, %62 - %64:ptr = access %a_1, %idx - %65:Outer = call %21, %63 - store %64, %65 - continue # -> $B7 + %86:u32 = mul %idx, 64u + %87:u32 = add %start_byte_offset_2, %86 + %88:ptr = access %a_1, %idx + %89:Inner = call %28, %87 + store %88, %89 + continue # -> $B9 } - $B7: { # continuing - %66:u32 = add %idx, 1u - next_iteration %66 # -> $B6 + $B9: { # continuing + %90:u32 = add %idx, 1u + next_iteration %90 # -> $B8 } } - %67:array = load %a_1 - ret %67 + %91:array = load %a_1 + ret %91 } } -%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' - $B9: { - %69:array = call %24, %start_byte_offset_1 - %70:Outer = construct %69 - ret %70 +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' + $B11: { + %93:array = call %24, %start_byte_offset_3 + %94:Outer = construct %93 + ret %94 } } -%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %a_2:ptr, read_write> = var, array(Inner(mat4x4(vec4(0.0h)))) # %a_2: 'a' - loop [i: $B11, b: $B12, c: $B13] { # loop_2 - $B11: { # initializer - next_iteration 0u # -> $B12 +%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' + $B12: { + %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat4x4(vec4(0.0h)))))) # %a_2: 'a' + loop [i: $B13, b: $B14, c: $B15] { # loop_2 + $B13: { # initializer + next_iteration 0u # -> $B14 } - $B12 (%idx_1:u32): { # body - %74:bool = gte %idx_1, 4u - if %74 [t: $B14] { # if_2 - $B14: { # true + $B14 (%idx_1:u32): { # body + %98:bool = gte %idx_1, 4u + if %98 [t: $B16] { # if_2 + $B16: { # true exit_loop # loop_2 } } - %75:u32 = mul %idx_1, 64u - %76:u32 = add %start_byte_offset_2, %75 - %77:ptr = access %a_2, %idx_1 - %78:Inner = call %28, %76 - store %77, %78 - continue # -> $B13 + %99:u32 = mul %idx_1, 256u + %100:u32 = add %start_byte_offset_4, %99 + %101:ptr = access %a_2, %idx_1 + %102:Outer = call %21, %100 + store %101, %102 + continue # -> $B15 } - $B13: { # continuing - %79:u32 = add %idx_1, 1u - next_iteration %79 # -> $B12 + $B15: { # continuing + %103:u32 = add %idx_1, 1u + next_iteration %103 # -> $B14 } } - %80:array = load %a_2 - ret %80 - } -} -%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' - $B15: { - %82:mat4x4 = call %32, %start_byte_offset_3 - %83:Inner = construct %82 - ret %83 - } -} -%32 = func(%start_byte_offset_4:u32):mat4x4 { # %start_byte_offset_4: 'start_byte_offset' - $B16: { - %85:u32 = div %start_byte_offset_4, 16u - %86:ptr, read> = access %a, %85 - %87:vec4 = load %86 - %88:vec4 = bitcast %87 - %89:u32 = add 8u, %start_byte_offset_4 - %90:u32 = div %89, 16u - %91:ptr, read> = access %a, %90 - %92:vec4 = load %91 - %93:vec4 = bitcast %92 - %94:u32 = add 16u, %start_byte_offset_4 - %95:u32 = div %94, 16u - %96:ptr, read> = access %a, %95 - %97:vec4 = load %96 - %98:vec4 = bitcast %97 - %99:u32 = add 24u, %start_byte_offset_4 - %100:u32 = div %99, 16u - %101:ptr, read> = access %a, %100 - %102:vec4 = load %101 - %103:vec4 = bitcast %102 - %104:mat4x4 = construct %88, %93, %98, %103 + %104:array = load %a_2 ret %104 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index c05be9ad5be..70fd0594f80 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -36,7 +36,7 @@ matrix a_load_4(uint offset) { } Inner a_load_3(uint offset) { - const Inner tint_symbol = {a_load_4((offset + 0u))}; + Inner tint_symbol = {a_load_4((offset + 0u))}; return tint_symbol; } @@ -52,7 +52,7 @@ a_load_2_ret a_load_2(uint offset) { } Outer a_load_1(uint offset) { - const Outer tint_symbol_1 = {a_load_2((offset + 0u))}; + Outer tint_symbol_1 = {a_load_2((offset + 0u))}; return tint_symbol_1; } @@ -69,15 +69,18 @@ a_load_ret a_load(uint offset) { [numthreads(1, 1, 1)] void f() { - 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 l_a_3_a_2_m = a_load_4(896u); + Outer l_a[4] = a_load(0u); + Outer l_a_3 = a_load_1(768u); + Inner l_a_3_a[4] = a_load_2(768u); + Inner l_a_3_a_2 = a_load_3(896u); + matrix l_a_3_a_2_m = a_load_4(896u); uint2 ubo_load_8 = a[56].zw; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); - const vector l_a_3_a_2_m_1 = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); - const float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); + vector l_a_3_a_2_m_1 = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); + float16_t l_a_3_a_2_m_1_0 = float16_t(f16tof32(((a[56].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001583C853CC0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 1adf2331038..6f2f1b0c6ad 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -100,5 +100,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017194FC2490(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018CED2398A0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl index 010f655f82f..8f63eea4d8f 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -30,14 +30,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(264u)); + matrix t = transpose(u_load(264u)); uint2 ubo_load_8 = u[1].xy; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); - const float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz); + float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz); uint2 ubo_load_9 = u[1].xy; vector ubo_load_9_xz = vector(f16tof32(ubo_load_9 & 0xFFFF)); vector ubo_load_9_yw = vector(f16tof32(ubo_load_9 >> 16)); - const float16_t a = abs(vector(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x); + float16_t a = abs(vector(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: +C:\src\dawn\Shader@0x000001D9F94A5210(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index be8c1c4a4cb..7ea407efb9a 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F85A26EB80(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025CA9F3A500(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl index c01a377682b..d4c35662843 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl @@ -52,7 +52,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -82,3 +82,6 @@ void f() { e(vector(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: +C:\src\dawn\Shader@0x0000027B05261200(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 02e2e76125a..a46098b6e4e 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -86,5 +86,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023554592FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002502BC85AA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl index 12372c4964b..04344b96ab2 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl @@ -38,7 +38,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -64,3 +64,6 @@ void f() { p[1].m[0] = vector(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: +C:\src\dawn\Shader@0x00000297E71F4D00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl index 1e7c9afa232..890021c6b86 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -71,5 +71,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002493D462540(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E4F6659FF0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl index c6b3ee068b9..20da339caa9 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl @@ -60,7 +60,7 @@ matrix u_load_3(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 = {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])}; + 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; } @@ -86,3 +86,6 @@ void f() { s.Store >(136u, vector(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: +C:\src\dawn\Shader@0x0000028E58F3B720(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 0b94f3beafc..26e59e50791 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -103,5 +103,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A419715050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000141BBEAC660(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl index d19fb3e6868..45d1684c3d8 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -6,10 +6,22 @@ struct S { int after; }; +groupshared S w[4]; + +void tint_zero_workgroup_memory(uint local_idx) { + { + for(uint idx = local_idx; (idx < 4u); idx = (idx + 1u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + w[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[32]; }; -groupshared S w[4]; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -42,7 +54,7 @@ matrix u_load_3(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_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])}; + 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; } @@ -58,14 +70,7 @@ u_load_ret u_load(uint offset) { } 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_2 = (S)0; - w[i] = tint_symbol_2; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); w[1] = u_load_1(256u); w[3].m = u_load_3(264u); @@ -80,3 +85,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E277497FC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 05a097218a9..c3055cebc0e 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -96,5 +96,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001B0644D4100(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F478A68000(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl index 7ba3d09b846..484df98b19b 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl @@ -36,55 +36,7 @@ fn f() { let l_a_i_a_i_m_i_i : f32 = (*(p_a_i_a_i_m_i))[i()]; } -Failed to generate: :38:24 error: binary: %23 is not in scope - %22:u32 = add %21, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:62:5 note: %23 declared here - %23:u32 = mul %50, 4u - ^^^^^^^ - -:45:24 error: binary: %23 is not in scope - %32:u32 = add %31, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:62:5 note: %23 declared here - %23:u32 = mul %50, 4u - ^^^^^^^ - -:50:24 error: binary: %23 is not in scope - %38:u32 = add %37, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:62:5 note: %23 declared here - %23:u32 = mul %50, 4u - ^^^^^^^ - -:55:24 error: binary: %23 is not in scope - %44:u32 = add %43, %23 - ^^^ - -:24:3 note: in block - $B3: { - ^^^ - -:62:5 note: %23 declared here - %23:u32 = mul %50, 4u - ^^^^^^^ - -:62:5 error: binary: no matching overload for 'operator * (i32, u32)' +Failed to generate: :54:5 error: binary: no matching overload for 'operator * (i32, u32)' 9 candidate operators: • 'operator * (T ✓ , T ✗ ) -> T' where: @@ -106,7 +58,7 @@ Failed to generate: :38:24 error: binary: %23 is not in scope • 'operator * (matKxR ✗ , matCxK ✗ ) -> matCxR' where: ✗ 'T' is 'f32' or 'f16' - %23:u32 = mul %50, 4u + %42:u32 = mul %41, 4u ^^^^^^^^^^^^^^^^^^^^^ :24:3 note: in block @@ -149,113 +101,105 @@ $B1: { # root %16:u32 = mul 16u, %15 %17:array = call %18, 0u %l_a:array = let %17 - %20:u32 = add %10, %13 - %21:u32 = add %20, %16 - %22:u32 = add %21, %23 - %24:Outer = call %25, %22 - %l_a_i:Outer = let %24 - %27:array = call %28, %10 - %l_a_i_a:array = let %27 + %20:Outer = call %21, %10 + %l_a_i:Outer = let %20 + %23:array = call %24, %10 + %l_a_i_a:array = let %23 + %26:u32 = add %10, %13 + %27:Inner = call %28, %26 + %l_a_i_a_i:Inner = let %27 %30:u32 = add %10, %13 - %31:u32 = add %30, %16 - %32:u32 = add %31, %23 - %33:Inner = call %34, %32 - %l_a_i_a_i:Inner = let %33 - %36:u32 = add %10, %13 - %37:u32 = add %36, %16 - %38:u32 = add %37, %23 - %39:mat4x4 = call %40, %38 - %l_a_i_a_i_m:mat4x4 = let %39 - %42:u32 = add %10, %13 - %43:u32 = add %42, %16 - %44:u32 = add %43, %23 - %45:u32 = div %44, 16u - %46:ptr, read> = access %a, %45 - %47:vec4 = load %46 - %48:vec4 = bitcast %47 - %l_a_i_a_i_m_i:vec4 = let %48 - %50:i32 = call %i - %23:u32 = mul %50, 4u - %51:u32 = add %10, %13 - %52:u32 = add %51, %16 - %53:u32 = add %52, %23 - %54:u32 = div %53, 16u - %55:ptr, read> = access %a, %54 - %56:u32 = mod %53, 16u - %57:u32 = div %56, 4u - %58:u32 = load_vector_element %55, %57 - %59:f32 = bitcast %58 - %l_a_i_a_i_m_i_i:f32 = let %59 + %31:mat4x4 = call %32, %30 + %l_a_i_a_i_m:mat4x4 = let %31 + %34:u32 = add %10, %13 + %35:u32 = add %34, %16 + %36:u32 = div %35, 16u + %37:ptr, read> = access %a, %36 + %38:vec4 = load %37 + %39:vec4 = bitcast %38 + %l_a_i_a_i_m_i:vec4 = let %39 + %41:i32 = call %i + %42:u32 = mul %41, 4u + %43:u32 = add %10, %13 + %44:u32 = add %43, %16 + %45:u32 = add %44, %42 + %46:u32 = div %45, 16u + %47:ptr, read> = access %a, %46 + %48:u32 = mod %45, 16u + %49:u32 = div %48, 4u + %50:u32 = load_vector_element %47, %49 + %51:f32 = bitcast %50 + %l_a_i_a_i_m_i_i:f32 = let %51 ret } } -%28 = func(%start_byte_offset:u32):array { +%21 = func(%start_byte_offset:u32):Outer { $B4: { + %54:array = call %24, %start_byte_offset + %55:Outer = construct %54 + ret %55 + } +} +%24 = func(%start_byte_offset_1:u32):array { # %start_byte_offset_1: 'start_byte_offset' + $B5: { %a_1:ptr, read_write> = var, array(Inner(mat4x4(vec4(0.0f)))) # %a_1: 'a' - loop [i: $B5, b: $B6, c: $B7] { # loop_1 - $B5: { # initializer - next_iteration 0u # -> $B6 + loop [i: $B6, b: $B7, c: $B8] { # loop_1 + $B6: { # initializer + next_iteration 0u # -> $B7 } - $B6 (%idx:u32): { # body - %64:bool = gte %idx, 4u - if %64 [t: $B8] { # if_1 - $B8: { # true + $B7 (%idx:u32): { # body + %59:bool = gte %idx, 4u + if %59 [t: $B9] { # if_1 + $B9: { # true exit_loop # loop_1 } } - %65:u32 = mul %idx, 64u - %66:u32 = add %start_byte_offset, %65 - %67:ptr = access %a_1, %idx - %68:Inner = call %34, %66 - store %67, %68 - continue # -> $B7 + %60:u32 = mul %idx, 64u + %61:u32 = add %start_byte_offset_1, %60 + %62:ptr = access %a_1, %idx + %63:Inner = call %28, %61 + store %62, %63 + continue # -> $B8 } - $B7: { # continuing - %69:u32 = add %idx, 1u - next_iteration %69 # -> $B6 + $B8: { # continuing + %64:u32 = add %idx, 1u + next_iteration %64 # -> $B7 } } - %70:array = load %a_1 - ret %70 + %65:array = load %a_1 + ret %65 } } -%34 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' - $B9: { - %72:mat4x4 = call %40, %start_byte_offset_1 - %73:Inner = construct %72 - ret %73 +%28 = func(%start_byte_offset_2:u32):Inner { # %start_byte_offset_2: 'start_byte_offset' + $B10: { + %67:mat4x4 = call %32, %start_byte_offset_2 + %68:Inner = construct %67 + ret %68 } } -%40 = func(%start_byte_offset_2:u32):mat4x4 { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %75:u32 = div %start_byte_offset_2, 16u +%32 = func(%start_byte_offset_3:u32):mat4x4 { # %start_byte_offset_3: 'start_byte_offset' + $B11: { + %70:u32 = div %start_byte_offset_3, 16u + %71:ptr, read> = access %a, %70 + %72:vec4 = load %71 + %73:vec4 = bitcast %72 + %74:u32 = add 16u, %start_byte_offset_3 + %75:u32 = div %74, 16u %76:ptr, read> = access %a, %75 %77:vec4 = load %76 %78:vec4 = bitcast %77 - %79:u32 = add 16u, %start_byte_offset_2 + %79:u32 = add 32u, %start_byte_offset_3 %80:u32 = div %79, 16u %81:ptr, read> = access %a, %80 %82:vec4 = load %81 %83:vec4 = bitcast %82 - %84:u32 = add 32u, %start_byte_offset_2 + %84:u32 = add 48u, %start_byte_offset_3 %85:u32 = div %84, 16u %86:ptr, read> = access %a, %85 %87:vec4 = load %86 %88:vec4 = bitcast %87 - %89:u32 = add 48u, %start_byte_offset_2 - %90:u32 = div %89, 16u - %91:ptr, read> = access %a, %90 - %92:vec4 = load %91 - %93:vec4 = bitcast %92 - %94:mat4x4 = construct %78, %83, %88, %93 - ret %94 - } -} -%25 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' - $B11: { - %96:array = call %28, %start_byte_offset_3 - %97:Outer = construct %96 - ret %97 + %89:mat4x4 = construct %73, %78, %83, %88 + ret %89 } } %18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' @@ -266,26 +210,26 @@ $B1: { # root next_iteration 0u # -> $B14 } $B14 (%idx_1:u32): { # body - %101:bool = gte %idx_1, 4u - if %101 [t: $B16] { # if_2 + %93:bool = gte %idx_1, 4u + if %93 [t: $B16] { # if_2 $B16: { # true exit_loop # loop_2 } } - %102:u32 = mul %idx_1, 256u - %103:u32 = add %start_byte_offset_4, %102 - %104:ptr = access %a_2, %idx_1 - %105:Outer = call %25, %103 - store %104, %105 + %94:u32 = mul %idx_1, 256u + %95:u32 = add %start_byte_offset_4, %94 + %96:ptr = access %a_2, %idx_1 + %97:Outer = call %21, %95 + store %96, %97 continue # -> $B15 } $B15: { # continuing - %106:u32 = add %idx_1, 1u - next_iteration %106 # -> $B14 + %98:u32 = add %idx_1, 1u + next_iteration %98 # -> $B14 } } - %107:array = load %a_2 - ret %107 + %99:array = load %a_2 + ret %99 } } diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index dd5351fe24d..f967e5c5104 100644 --- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -133,102 +133,102 @@ $B1: { # root ret } } -%18 = func(%start_byte_offset:u32):array { +%32 = func(%start_byte_offset:u32):mat4x4 { $B4: { - %a_1:ptr, read_write> = var, array(Outer(array(Inner(mat4x4(vec4(0.0f)))))) # %a_1: 'a' - loop [i: $B5, b: $B6, c: $B7] { # loop_1 - $B5: { # initializer - next_iteration 0u # -> $B6 + %54:u32 = div %start_byte_offset, 16u + %55:ptr, read> = access %a, %54 + %56:vec4 = load %55 + %57:vec4 = bitcast %56 + %58:u32 = add 16u, %start_byte_offset + %59:u32 = div %58, 16u + %60:ptr, read> = access %a, %59 + %61:vec4 = load %60 + %62:vec4 = bitcast %61 + %63:u32 = add 32u, %start_byte_offset + %64:u32 = div %63, 16u + %65:ptr, read> = access %a, %64 + %66:vec4 = load %65 + %67:vec4 = bitcast %66 + %68:u32 = add 48u, %start_byte_offset + %69:u32 = div %68, 16u + %70:ptr, read> = access %a, %69 + %71:vec4 = load %70 + %72:vec4 = bitcast %71 + %73:mat4x4 = construct %57, %62, %67, %72 + ret %73 + } +} +%28 = func(%start_byte_offset_1:u32):Inner { # %start_byte_offset_1: 'start_byte_offset' + $B5: { + %75:mat4x4 = call %32, %start_byte_offset_1 + %76:Inner = construct %75 + ret %76 + } +} +%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' + $B6: { + %a_1:ptr, read_write> = var, array(Inner(mat4x4(vec4(0.0f)))) # %a_1: 'a' + loop [i: $B7, b: $B8, c: $B9] { # loop_1 + $B7: { # initializer + next_iteration 0u # -> $B8 } - $B6 (%idx:u32): { # body - %56:bool = gte %idx, 4u - if %56 [t: $B8] { # if_1 - $B8: { # true + $B8 (%idx:u32): { # body + %80:bool = gte %idx, 4u + if %80 [t: $B10] { # if_1 + $B10: { # true exit_loop # loop_1 } } - %57:u32 = mul %idx, 256u - %58:u32 = add %start_byte_offset, %57 - %59:ptr = access %a_1, %idx - %60:Outer = call %21, %58 - store %59, %60 - continue # -> $B7 + %81:u32 = mul %idx, 64u + %82:u32 = add %start_byte_offset_2, %81 + %83:ptr = access %a_1, %idx + %84:Inner = call %28, %82 + store %83, %84 + continue # -> $B9 } - $B7: { # continuing - %61:u32 = add %idx, 1u - next_iteration %61 # -> $B6 + $B9: { # continuing + %85:u32 = add %idx, 1u + next_iteration %85 # -> $B8 } } - %62:array = load %a_1 - ret %62 + %86:array = load %a_1 + ret %86 } } -%21 = func(%start_byte_offset_1:u32):Outer { # %start_byte_offset_1: 'start_byte_offset' - $B9: { - %64:array = call %24, %start_byte_offset_1 - %65:Outer = construct %64 - ret %65 +%21 = func(%start_byte_offset_3:u32):Outer { # %start_byte_offset_3: 'start_byte_offset' + $B11: { + %88:array = call %24, %start_byte_offset_3 + %89:Outer = construct %88 + ret %89 } } -%24 = func(%start_byte_offset_2:u32):array { # %start_byte_offset_2: 'start_byte_offset' - $B10: { - %a_2:ptr, read_write> = var, array(Inner(mat4x4(vec4(0.0f)))) # %a_2: 'a' - loop [i: $B11, b: $B12, c: $B13] { # loop_2 - $B11: { # initializer - next_iteration 0u # -> $B12 +%18 = func(%start_byte_offset_4:u32):array { # %start_byte_offset_4: 'start_byte_offset' + $B12: { + %a_2:ptr, read_write> = var, array(Outer(array(Inner(mat4x4(vec4(0.0f)))))) # %a_2: 'a' + loop [i: $B13, b: $B14, c: $B15] { # loop_2 + $B13: { # initializer + next_iteration 0u # -> $B14 } - $B12 (%idx_1:u32): { # body - %69:bool = gte %idx_1, 4u - if %69 [t: $B14] { # if_2 - $B14: { # true + $B14 (%idx_1:u32): { # body + %93:bool = gte %idx_1, 4u + if %93 [t: $B16] { # if_2 + $B16: { # true exit_loop # loop_2 } } - %70:u32 = mul %idx_1, 64u - %71:u32 = add %start_byte_offset_2, %70 - %72:ptr = access %a_2, %idx_1 - %73:Inner = call %28, %71 - store %72, %73 - continue # -> $B13 + %94:u32 = mul %idx_1, 256u + %95:u32 = add %start_byte_offset_4, %94 + %96:ptr = access %a_2, %idx_1 + %97:Outer = call %21, %95 + store %96, %97 + continue # -> $B15 } - $B13: { # continuing - %74:u32 = add %idx_1, 1u - next_iteration %74 # -> $B12 + $B15: { # continuing + %98:u32 = add %idx_1, 1u + next_iteration %98 # -> $B14 } } - %75:array = load %a_2 - ret %75 - } -} -%28 = func(%start_byte_offset_3:u32):Inner { # %start_byte_offset_3: 'start_byte_offset' - $B15: { - %77:mat4x4 = call %32, %start_byte_offset_3 - %78:Inner = construct %77 - ret %78 - } -} -%32 = func(%start_byte_offset_4:u32):mat4x4 { # %start_byte_offset_4: 'start_byte_offset' - $B16: { - %80:u32 = div %start_byte_offset_4, 16u - %81:ptr, read> = access %a, %80 - %82:vec4 = load %81 - %83:vec4 = bitcast %82 - %84:u32 = add 16u, %start_byte_offset_4 - %85:u32 = div %84, 16u - %86:ptr, read> = access %a, %85 - %87:vec4 = load %86 - %88:vec4 = bitcast %87 - %89:u32 = add 32u, %start_byte_offset_4 - %90:u32 = div %89, 16u - %91:ptr, read> = access %a, %90 - %92:vec4 = load %91 - %93:vec4 = bitcast %92 - %94:u32 = add 48u, %start_byte_offset_4 - %95:u32 = div %94, 16u - %96:ptr, read> = access %a, %95 - %97:vec4 = load %96 - %98:vec4 = bitcast %97 - %99:mat4x4 = construct %83, %88, %93, %98 + %99:array = load %a_2 ret %99 } } diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 8557a570d82..85c95bda3cb 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -20,10 +20,13 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_m_i_save = i(); - const matrix l_m = m_load(0u); + int p_m_i_save = i(); + matrix l_m = m_load(0u); const uint scalar_offset_2 = ((4u * uint(p_m_i_save))) / 4; uint ubo_load_2 = m[scalar_offset_2 / 4][scalar_offset_2 % 4]; - const vector l_m_i = vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))); + vector l_m_i = vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000214163A8500(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 5317829b705..ca43048372b 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -34,5 +34,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D6E8923180(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BB65764F00(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index bcbbc9af926..045bfdfe269 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -20,8 +20,11 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_m = m_load(0u); + matrix l_m = m_load(0u); uint ubo_load_2 = m[0].y; - const vector l_m_1 = vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))); + vector l_m_1 = vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000014EC33F5AB0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 0246e9a1f29..890d88b293b 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -32,5 +32,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A1E22F0350(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000278647FCF70(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_builtin.wgsl.expected.fxc.hlsl index d83d93b5e91..59eeab6aca8 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -14,10 +14,13 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(0u)); + matrix t = transpose(u_load(0u)); uint ubo_load_2 = u[0].y; - const float16_t l = length(vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16)))); + float16_t l = length(vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16)))); uint ubo_load_3 = u[0].x; - const float16_t a = abs(vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx.x); + float16_t a = abs(vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BB2035B9F0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index faf8df1c8f0..512d355c348 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -27,5 +27,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F88C022420(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016A361C3A10(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.fxc.hlsl index e35678555d9..acf76dad52d 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.fxc.hlsl @@ -33,3 +33,8 @@ void f() { c(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000227FD474BF0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000227FD474BF0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000227FD474BF0(11,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 5945b097c4b..8dc341ab435 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -38,7 +38,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A0FDEFE2E0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001A0FDEFE2E0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001A0FDEFE2E0(11,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001EBDBFA46C0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EBDBFA46C0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EBDBFA46C0(11,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_private.wgsl.expected.fxc.hlsl index 79bf8cfeacb..beefa88e667 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_private.wgsl.expected.fxc.hlsl @@ -23,3 +23,6 @@ void f() { p[0][1] = float16_t(f16tof32(((u[0].y) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024DE1EC0190(4,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_private.wgsl.expected.ir.fxc.hlsl index 8c5a88b085e..6830ba87198 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -29,5 +29,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E87847F700(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DAB5C6D580(5,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_storage.wgsl.expected.fxc.hlsl index 8221fe89499..3e4ef10df90 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_storage.wgsl.expected.fxc.hlsl @@ -28,3 +28,7 @@ void f() { s.Store(2u, float16_t(f16tof32(((u[0].y) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022C1D76D280(6,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022C1D76D280(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl index b1d533bb21e..5d45bac8af5 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -34,5 +34,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002089EA9ECA0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018D587FB0D0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_workgroup.wgsl.expected.fxc.hlsl index a5ed0bb0878..35f945c8556 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,17 @@ SKIP: FAILED +groupshared matrix w; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + w = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx); + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; -groupshared matrix w; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -18,10 +26,7 @@ matrix u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - w = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx); - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); uint ubo_load_2 = u[0].x; w[1] = vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))); @@ -35,3 +40,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002382D1A4BA0(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 2498a969cd0..5454830fdb5 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -41,5 +41,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000215D96BEE70(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029E9FD9C390(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 171535ef1a2..55caf3a5c08 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -26,13 +26,16 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_m_i_save = i(); - const matrix l_m = m_load(0u); + int p_m_i_save = i(); + matrix l_m = m_load(0u); const uint scalar_offset_2 = ((8u * uint(p_m_i_save))) / 4; uint4 ubo_load_5 = m[scalar_offset_2 / 4]; uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy); vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - const vector l_m_i = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); + vector l_m_i = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022D6A286360(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 11e68a998e9..a310890b0a6 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -35,5 +35,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D6342AE510(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023B3AC297D0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index 3c8a83ade1f..1a96c3c73f5 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -26,10 +26,13 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_m = m_load(0u); + matrix l_m = m_load(0u); uint2 ubo_load_4 = m[0].zw; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - const vector l_m_1 = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); + vector l_m_1 = vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000219E6863A30(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 3741a6dd4ac..43d3311dda9 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -34,5 +34,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000213724AFD20(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024E83B84E30(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl index 9b6d9d0bd5a..251ce21af64 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -20,14 +20,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(0u)); + matrix t = transpose(u_load(0u)); uint2 ubo_load_4 = u[0].zw; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - const float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1])); + float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1])); uint2 ubo_load_5 = u[0].xy; vector ubo_load_5_xz = vector(f16tof32(ubo_load_5 & 0xFFFF)); float16_t ubo_load_5_y = f16tof32(ubo_load_5[0] >> 16); - const float16_t a = abs(vector(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x); + float16_t a = abs(vector(ubo_load_5_xz[0], ubo_load_5_y, ubo_load_5_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000228EE439110(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 2e72423afa2..95aad78e4f6 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -29,5 +29,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024648A538B0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000156951A4E70(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl index e12acb240be..ca07c795ca6 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.fxc.hlsl @@ -45,3 +45,8 @@ void f() { c(vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E756E87340(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E756E87340(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E756E87340(11,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl index d389997dd90..9fa2eeea82f 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -40,7 +40,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D4178AF620(5,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001D4178AF620(8,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001D4178AF620(11,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E2A03E4900(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E2A03E4900(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E2A03E4900(11,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl index cab193fab13..7afdd77a682 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_private.wgsl.expected.fxc.hlsl @@ -33,3 +33,6 @@ void f() { p[0][1] = float16_t(f16tof32(((u[0].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020E583A6350(4,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl index 66fc5449848..6d42e3c42b2 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000233CDF12490(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025A2664AFF0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl index 64110fe161e..8a62a37e6f5 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_storage.wgsl.expected.fxc.hlsl @@ -38,3 +38,7 @@ void f() { s.Store(2u, float16_t(f16tof32(((u[0].z) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000251ABC43E10(6,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000251ABC43E10(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 442853495c0..e22960f1fa6 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -36,5 +36,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D050FB0090(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000233221B6FA0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl index 7f52127e06c..920828a7c17 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,17 @@ SKIP: FAILED +groupshared matrix w; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + w = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; -groupshared matrix w; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -24,10 +32,7 @@ matrix u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - w = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); uint2 ubo_load_4 = u[0].xy; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); @@ -45,3 +50,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024165E9E0B0(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 5ae5c2f6d8a..cb70ec4525c 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000002BDB4D8EC90(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001AECB6FA420(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index d1e7665803e..cde81b7facb 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -26,13 +26,16 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_m_i_save = i(); - const matrix l_m = m_load(0u); + int p_m_i_save = i(); + matrix l_m = m_load(0u); const uint scalar_offset_2 = ((8u * uint(p_m_i_save))) / 4; uint4 ubo_load_5 = m[scalar_offset_2 / 4]; uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy); vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); - const vector l_m_i = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); + vector l_m_i = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000138FD5F6860(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 274d5ce5af8..9d1cde7f097 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -35,5 +35,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C77BCCE900(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025BE80297D0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index 4b6aea8dff1..473a974fd40 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -26,10 +26,13 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_m = m_load(0u); + matrix l_m = m_load(0u); uint2 ubo_load_4 = m[0].zw; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); - const vector l_m_1 = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); + vector l_m_1 = vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022BEDD33A10(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 58d1974b182..2d1cf8ebc92 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -34,5 +34,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000292DE350990(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002162DADD3B0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl index 34b793c81e1..d1c04ce7cde 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -20,14 +20,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(0u)); + matrix t = transpose(u_load(0u)); uint2 ubo_load_4 = u[0].zw; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); vector ubo_load_4_yw = vector(f16tof32(ubo_load_4 >> 16)); - const float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1])); + float16_t l = length(vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1])); uint2 ubo_load_5 = u[0].xy; vector ubo_load_5_xz = vector(f16tof32(ubo_load_5 & 0xFFFF)); vector ubo_load_5_yw = vector(f16tof32(ubo_load_5 >> 16)); - const float16_t a = abs(vector(ubo_load_5_xz[0], ubo_load_5_yw[0], ubo_load_5_xz[1], ubo_load_5_yw[1]).ywxz.x); + float16_t a = abs(vector(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: +C:\src\dawn\Shader@0x00000170B09F40E0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index a0985440478..af9481f6280 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -29,5 +29,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001316EDEFEF0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022008C663E0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl index 52b341f076e..f4ad807067b 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.fxc.hlsl @@ -45,3 +45,8 @@ void f() { c(vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]).ywxz.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022351ED3E00(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022351ED3E00(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022351ED3E00(11,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 22ba5889c6d..395cbf58cea 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -40,7 +40,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000194FDE0E6E0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000194FDE0E6E0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000194FDE0E6E0(11,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000017FC67B4900(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017FC67B4900(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017FC67B4900(11,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl index bde3c458793..11c8c21d502 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_private.wgsl.expected.fxc.hlsl @@ -33,3 +33,6 @@ void f() { p[0][1] = float16_t(f16tof32(((u[0].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001ED849CA8C0(4,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl index a7c81824497..f28964604af 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000292C6A22560(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021D129FD540(5,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl index e6f13157740..f928cc2486c 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_storage.wgsl.expected.fxc.hlsl @@ -38,3 +38,7 @@ void f() { s.Store(2u, float16_t(f16tof32(((u[0].z) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002AA636143E0(6,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002AA636143E0(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 5fd545d042a..4892c9a2d4b 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -36,5 +36,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000012CE34EFEE0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A57A588BF0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl index 30368e6a7a4..32b739ceb1f 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,17 @@ SKIP: FAILED +groupshared matrix w; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + w = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; -groupshared matrix w; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -24,10 +32,7 @@ matrix u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - w = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); uint2 ubo_load_4 = u[0].xy; vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); @@ -45,3 +50,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D421A49030(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 7f38f5b3e18..aa1dff1e993 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000174BC2DE2E0(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000173B7474E20(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index f65a6e43379..01ce96fbc0d 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -22,10 +22,13 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_m_i_save = i(); - const matrix l_m = m_load(0u); + int p_m_i_save = i(); + matrix l_m = m_load(0u); const uint scalar_offset_3 = ((4u * uint(p_m_i_save))) / 4; uint ubo_load_3 = m[scalar_offset_3 / 4][scalar_offset_3 % 4]; - const vector l_m_i = vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))); + vector l_m_i = vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023DA390BC60(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 2ccbd8e02d9..9e7bc171b30 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -36,5 +36,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000247ADD4E4F0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D74E7286B0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index 91288830f7e..984a9ea0479 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -22,8 +22,11 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_m = m_load(0u); + matrix l_m = m_load(0u); uint ubo_load_3 = m[0].y; - const vector l_m_1 = vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))); + vector l_m_1 = vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001FC5200BC20(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 61873a7ec98..32d33a60331 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -34,5 +34,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002D39B74F4F0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FE7D0C4FC0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_builtin.wgsl.expected.fxc.hlsl index b211d3964e1..b2a38102797 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -16,10 +16,13 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(0u)); + matrix t = transpose(u_load(0u)); uint ubo_load_3 = u[0].y; - const float16_t l = length(vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16)))); + float16_t l = length(vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16)))); uint ubo_load_4 = u[0].x; - const float16_t a = abs(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x); + float16_t a = abs(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000174EACFC040(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index bb23ef6874a..10401ac6a6c 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -29,5 +29,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002645934F4D0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023E23CCB740(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.fxc.hlsl index c9dd8fe5ce6..b237cbaa078 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.fxc.hlsl @@ -35,3 +35,8 @@ void f() { c(vector(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026A355E6330(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026A355E6330(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026A355E6330(11,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 54db5b9128b..17f7b58f5b5 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -40,7 +40,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002236FB5FC50(5,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002236FB5FC50(8,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002236FB5FC50(11,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000016B969C8FC0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016B969C8FC0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016B969C8FC0(11,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_private.wgsl.expected.fxc.hlsl index f4d13237443..87975fb0549 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_private.wgsl.expected.fxc.hlsl @@ -25,3 +25,6 @@ void f() { p[0][1] = float16_t(f16tof32(((u[0].y) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020270BF4440(4,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_private.wgsl.expected.ir.fxc.hlsl index 500e6351a59..d294e64911e 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D306E6F5E0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C9AE40D4A0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_storage.wgsl.expected.fxc.hlsl index b5715c63208..75a837e2fad 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_storage.wgsl.expected.fxc.hlsl @@ -31,3 +31,7 @@ void f() { s.Store(2u, float16_t(f16tof32(((u[0].y) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002E0D3985510(6,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002E0D3985510(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 745972650ea..38a6b6b684a 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -37,5 +37,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016CCDE63580(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002153B759700(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_workgroup.wgsl.expected.fxc.hlsl index 9885774dfcd..6c4e7c1a2ab 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,17 @@ SKIP: FAILED +groupshared matrix w; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + w = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; -groupshared matrix w; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -20,10 +28,7 @@ matrix u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - w = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); uint ubo_load_3 = u[0].x; w[1] = vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16))); @@ -37,3 +42,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002DAF8AE3B50(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 0c6e8fda016..cb074916dd6 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000024E8544FCE0(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C7D8804F00(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 2f9090a42bd..3e1dd241486 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -31,13 +31,16 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_m_i_save = i(); - const matrix l_m = m_load(0u); + int p_m_i_save = i(); + matrix l_m = m_load(0u); const uint scalar_offset_3 = ((8u * uint(p_m_i_save))) / 4; uint4 ubo_load_7 = m[scalar_offset_3 / 4]; uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy); vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16); - const vector l_m_i = vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]); + vector l_m_i = vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020D3C374760(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index d7f120d67d5..0c307e22082 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -36,5 +36,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000286281EF5C0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018500788250(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index 9c8bd6d67de..7c9d7e4b7bb 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -31,10 +31,13 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_m = m_load(0u); + matrix l_m = m_load(0u); uint2 ubo_load_6 = m[0].zw; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16); - const vector l_m_1 = vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]); + vector l_m_1 = vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000263EB286370(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index c098933e031..ebd00c360d2 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -35,5 +35,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E96E81E320(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000218CAEE4550(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_builtin.wgsl.expected.fxc.hlsl index 5d4e5ef2c29..269d5d42842 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -25,14 +25,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(0u)); + matrix t = transpose(u_load(0u)); uint2 ubo_load_6 = u[0].zw; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16); - const float16_t l = length(vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1])); + float16_t l = length(vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1])); uint2 ubo_load_7 = u[0].xy; vector ubo_load_7_xz = vector(f16tof32(ubo_load_7 & 0xFFFF)); float16_t ubo_load_7_y = f16tof32(ubo_load_7[0] >> 16); - const float16_t a = abs(vector(ubo_load_7_xz[0], ubo_load_7_y, ubo_load_7_xz[1]).zxy.x); + float16_t a = abs(vector(ubo_load_7_xz[0], ubo_load_7_y, ubo_load_7_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002103115CFE0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index b505ab42641..18c611317b1 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -30,5 +30,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002794771EEF0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017366474E20(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.fxc.hlsl index dc31bd81318..93acb65d63f 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.fxc.hlsl @@ -50,3 +50,8 @@ void f() { c(vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001949B194D00(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001949B194D00(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001949B194D00(11,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl index dedca7126b1..17f1ccbcc50 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -41,7 +41,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002386C79F290(5,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002386C79F290(8,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002386C79F290(11,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000015FA1C5BAC0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000015FA1C5BAC0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000015FA1C5BAC0(11,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_private.wgsl.expected.fxc.hlsl index 4d99b40ab8a..084b1c02adb 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_private.wgsl.expected.fxc.hlsl @@ -38,3 +38,6 @@ void f() { p[0][1] = float16_t(f16tof32(((u[0].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A525FFB830(4,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_private.wgsl.expected.ir.fxc.hlsl index e79aa5cc3f3..1d3da3b4a9f 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -32,5 +32,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001218DEFF710(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000248E94E5C00(5,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_storage.wgsl.expected.fxc.hlsl index 2705e2a0f6b..7dd6db3a2ad 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_storage.wgsl.expected.fxc.hlsl @@ -44,3 +44,7 @@ void f() { s.Store(2u, float16_t(f16tof32(((u[0].z) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002D3C3D5B6F0(6,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002D3C3D5B6F0(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 0c67d901252..fab7a5fc0bd 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -38,5 +38,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EEF95FE310(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E114586680(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_workgroup.wgsl.expected.fxc.hlsl index 7412f3092fc..8d1e1f4c688 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,17 @@ SKIP: FAILED +groupshared matrix w; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + w = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[2]; }; -groupshared matrix w; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -29,10 +37,7 @@ matrix u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - w = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); uint2 ubo_load_6 = u[0].xy; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); @@ -50,3 +55,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B31D3C3B50(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index bf42dcbc8eb..56c53ecfdb3 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001939E5FFF90(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023A086E9460(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index a681d7490bc..8ccc1ccdc74 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -31,13 +31,16 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_m_i_save = i(); - const matrix l_m = m_load(0u); + int p_m_i_save = i(); + matrix l_m = m_load(0u); const uint scalar_offset_3 = ((8u * uint(p_m_i_save))) / 4; uint4 ubo_load_7 = m[scalar_offset_3 / 4]; uint2 ubo_load_6 = ((scalar_offset_3 & 2) ? ubo_load_7.zw : ubo_load_7.xy); vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); vector ubo_load_6_yw = vector(f16tof32(ubo_load_6 >> 16)); - const vector l_m_i = vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]); + vector l_m_i = vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017BE0F14A80(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 15ef107391c..f390ede051e 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -36,5 +36,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B90C8BE4F0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000123001F4670(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index 0513c7252bc..2b3e70fb574 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -31,10 +31,13 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_m = m_load(0u); + matrix l_m = m_load(0u); uint2 ubo_load_6 = m[0].zw; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); vector ubo_load_6_yw = vector(f16tof32(ubo_load_6 >> 16)); - const vector l_m_1 = vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]); + vector l_m_1 = vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000252A0916370(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 59fea5ee4c9..55c706fb67f 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -35,5 +35,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000267F605F700(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E90BBA4570(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_builtin.wgsl.expected.fxc.hlsl index 503b5870a39..279d4ced097 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -25,14 +25,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(0u)); + matrix t = transpose(u_load(0u)); uint2 ubo_load_6 = u[0].zw; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); vector ubo_load_6_yw = vector(f16tof32(ubo_load_6 >> 16)); - const float16_t l = length(vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1])); + float16_t l = length(vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1])); uint2 ubo_load_7 = u[0].xy; vector ubo_load_7_xz = vector(f16tof32(ubo_load_7 & 0xFFFF)); vector ubo_load_7_yw = vector(f16tof32(ubo_load_7 >> 16)); - const float16_t a = abs(vector(ubo_load_7_xz[0], ubo_load_7_yw[0], ubo_load_7_xz[1], ubo_load_7_yw[1]).ywxz.x); + float16_t a = abs(vector(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: +C:\src\dawn\Shader@0x000001B0E087C800(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 2249ec3654b..a4610688670 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -30,5 +30,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023A537294D0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EEC4D55D60(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.fxc.hlsl index 7a546d65b8d..aa9e6c2dd48 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.fxc.hlsl @@ -50,3 +50,8 @@ void f() { c(vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]).ywxz.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EE850450B0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EE850450B0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EE850450B0(11,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl index fc1deefab28..d5f2a8c57d7 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -41,7 +41,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020E5416E4F0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000020E5416E4F0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000020E5416E4F0(11,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000205B0618F80(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000205B0618F80(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000205B0618F80(11,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_private.wgsl.expected.fxc.hlsl index 4fe9258cd5c..a49c1c360b9 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_private.wgsl.expected.fxc.hlsl @@ -38,3 +38,6 @@ void f() { p[0][1] = float16_t(f16tof32(((u[0].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000296C8466350(4,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_private.wgsl.expected.ir.fxc.hlsl index 21d27d898be..1e1049c2fb4 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -32,5 +32,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020FA1A30E10(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002517FA95BD0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_storage.wgsl.expected.fxc.hlsl index 878e7ab849b..2f7e45b4d5e 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_storage.wgsl.expected.fxc.hlsl @@ -44,3 +44,7 @@ void f() { s.Store(2u, float16_t(f16tof32(((u[0].z) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024153ADAFE0(6,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024153ADAFE0(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl index b5370c23608..9e444305f10 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -38,5 +38,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000210413A0090(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A683419580(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_workgroup.wgsl.expected.fxc.hlsl index 4ee721363a2..55e9b39d144 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,17 @@ SKIP: FAILED +groupshared matrix w; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + w = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[2]; }; -groupshared matrix w; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -29,10 +37,7 @@ matrix u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - w = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); uint2 ubo_load_6 = u[0].xy; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); @@ -50,3 +55,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028A7C80F200(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 0799f8ca70c..efff9f462d6 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001DADEF40E70(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028EB1A44CE0(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 3115dd3462d..7e29867535a 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -24,10 +24,13 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_m_i_save = i(); - const matrix l_m = m_load(0u); + int p_m_i_save = i(); + matrix l_m = m_load(0u); const uint scalar_offset_4 = ((4u * uint(p_m_i_save))) / 4; uint ubo_load_4 = m[scalar_offset_4 / 4][scalar_offset_4 % 4]; - const vector l_m_i = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); + vector l_m_i = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000225E76B3A60(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 3567cdbc345..78cfe5a81a0 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -38,5 +38,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002491C9AE4F0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000191E7404040(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index 2b386df0d60..992e444e825 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -24,8 +24,11 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_m = m_load(0u); + matrix l_m = m_load(0u); uint ubo_load_4 = m[0].y; - const vector l_m_1 = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); + vector l_m_1 = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002BA719D0250(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index be905c27d48..a09217bfffd 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -36,5 +36,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028CFCF8E6E0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001890791CD90(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl index 610b74ce565..bf189017b9d 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -18,10 +18,13 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(0u)); + matrix t = transpose(u_load(0u)); uint ubo_load_4 = u[0].y; - const float16_t l = length(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16)))); + float16_t l = length(vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16)))); uint ubo_load_5 = u[0].x; - const float16_t a = abs(vector(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x); + float16_t a = abs(vector(float16_t(f16tof32(ubo_load_5 & 0xFFFF)), float16_t(f16tof32(ubo_load_5 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E2065593B0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index b4ffe068bf3..5795b14cd97 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000269DAE9F150(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002AAB69F3F80(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl index 74e7fec4da1..2f8f584cec0 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.fxc.hlsl @@ -37,3 +37,8 @@ void f() { c(vector(float16_t(f16tof32(ubo_load_6 & 0xFFFF)), float16_t(f16tof32(ubo_load_6 >> 16))).yx.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D5FD806330(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D5FD806330(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D5FD806330(11,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 82f185df15d..4d64d9e0984 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -42,7 +42,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DEFAF0F6F0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001DEFAF0F6F0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001DEFAF0F6F0(11,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000259FBC5D280(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000259FBC5D280(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000259FBC5D280(11,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl index 49df04441e1..acf5dbfacea 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_private.wgsl.expected.fxc.hlsl @@ -27,3 +27,6 @@ void f() { p[0][1] = float16_t(f16tof32(((u[0].y) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000015259A44C20(4,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl index 08a0898c9ab..7cd7665cff0 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -33,5 +33,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022972AAE920(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C538B6D5D0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl index 872ba3f406b..a08fd051749 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_storage.wgsl.expected.fxc.hlsl @@ -34,3 +34,7 @@ void f() { s.Store(2u, float16_t(f16tof32(((u[0].y) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C904F6A6A0(6,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C904F6A6A0(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl index 018da2f39e2..c256563134a 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -40,5 +40,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020D32C608C0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000181DCF854E0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl index c1a9b014f74..7a5b214c5c3 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,17 @@ SKIP: FAILED +groupshared matrix w; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + w = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; -groupshared matrix w; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -22,10 +30,7 @@ matrix u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - w = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); uint ubo_load_4 = u[0].x; w[1] = vector(float16_t(f16tof32(ubo_load_4 & 0xFFFF)), float16_t(f16tof32(ubo_load_4 >> 16))); @@ -39,3 +44,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018CC5176350(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 61e7784d4ea..c4b555e409e 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000010497AFFC20(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D1A2E0BC30(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 183de9543c3..ae6791bf9ae 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -36,13 +36,16 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_m_i_save = i(); - const matrix l_m = m_load(0u); + int p_m_i_save = i(); + matrix l_m = m_load(0u); const uint scalar_offset_4 = ((8u * uint(p_m_i_save))) / 4; uint4 ubo_load_9 = m[scalar_offset_4 / 4]; uint2 ubo_load_8 = ((scalar_offset_4 & 2) ? ubo_load_9.zw : ubo_load_9.xy); vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - const vector l_m_i = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); + vector l_m_i = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023CFDD913E0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index 9be7f11d550..193a940efa3 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -37,5 +37,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BBBF5BF9C0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002192AD697D0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index a36d04e8c4f..2c90356cbc4 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -36,10 +36,13 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_m = m_load(0u); + matrix l_m = m_load(0u); uint2 ubo_load_8 = m[0].zw; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - const vector l_m_1 = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); + vector l_m_1 = vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EC52A4A960(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index dcc878741e5..a2f85e042d0 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -36,5 +36,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DEC386FD20(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000245722C4420(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl index 7f5e0c29f67..757cd64ab97 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -30,14 +30,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(0u)); + matrix t = transpose(u_load(0u)); uint2 ubo_load_8 = u[0].zw; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - const float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1])); + float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1])); uint2 ubo_load_9 = u[0].xy; vector ubo_load_9_xz = vector(f16tof32(ubo_load_9 & 0xFFFF)); float16_t ubo_load_9_y = f16tof32(ubo_load_9[0] >> 16); - const float16_t a = abs(vector(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x); + float16_t a = abs(vector(ubo_load_9_xz[0], ubo_load_9_y, ubo_load_9_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001562018C020(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index e8dea0e7ce8..fb903a65c57 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D06DB30BA0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023C48104E50(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl index d7dbe581224..fc1b1347f38 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.fxc.hlsl @@ -55,3 +55,8 @@ void f() { c(vector(ubo_load_10_xz[0], ubo_load_10_y, ubo_load_10_xz[1]).zxy.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024E9E3E65A0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024E9E3E65A0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024E9E3E65A0(11,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl index 7dc67b2cb0e..c36b631b83c 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -42,7 +42,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B158120950(5,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001B158120950(8,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001B158120950(11,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002E8C5E44D00(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002E8C5E44D00(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002E8C5E44D00(11,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl index fd23fd59229..b177beb60e1 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_private.wgsl.expected.fxc.hlsl @@ -43,3 +43,6 @@ void f() { p[0][1] = float16_t(f16tof32(((u[0].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000234C08B6350(4,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl index 312a4125345..b1cb17daeb4 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -33,5 +33,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002360DCDF7F0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000015867784D70(5,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl index 01c36be188b..5469303147b 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_storage.wgsl.expected.fxc.hlsl @@ -50,3 +50,7 @@ void f() { s.Store(2u, float16_t(f16tof32(((u[0].z) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000292BF6490F0(6,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000292BF6490F0(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl index f0065416dc4..ad9ee228d70 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -40,5 +40,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017EC85A3710(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B34E2A9200(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl index 46f8c4f1233..794a40e0857 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,17 @@ SKIP: FAILED +groupshared matrix w; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + w = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[2]; }; -groupshared matrix w; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -34,10 +42,7 @@ matrix u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - w = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); uint2 ubo_load_8 = u[0].xy; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); @@ -55,3 +60,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001DF2F6DAFE0(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index df5dd2f1a16..ad603ef88fc 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001C36CE2FC40(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CF999B41B0(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl index 7191d8d31c4..984c0121118 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.fxc.hlsl @@ -36,13 +36,16 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const int p_m_i_save = i(); - const matrix l_m = m_load(0u); + int p_m_i_save = i(); + matrix l_m = m_load(0u); const uint scalar_offset_4 = ((8u * uint(p_m_i_save))) / 4; uint4 ubo_load_9 = m[scalar_offset_4 / 4]; uint2 ubo_load_8 = ((scalar_offset_4 & 2) ? ubo_load_9.zw : ubo_load_9.xy); vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); - const vector l_m_i = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); + vector l_m_i = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000292A18FA050(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl index fed76051166..1d8710e00c4 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -37,5 +37,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017025BF2A00(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001AB1F76A2A0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl index 72c8418c626..8180310ecf3 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/static_index_via_ptr.wgsl.expected.fxc.hlsl @@ -36,10 +36,13 @@ matrix m_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix l_m = m_load(0u); + matrix l_m = m_load(0u); uint2 ubo_load_8 = m[0].zw; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); - const vector l_m_1 = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); + vector l_m_1 = vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1]); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000279A58CC000(11,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl index b555c1b1fbf..b86e7caf6ce 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl @@ -36,5 +36,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002AF6D4704B0(11,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000279F0E34570(11,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl index 4ea740a2176..58ec2bea1ce 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_builtin.wgsl.expected.fxc.hlsl @@ -30,14 +30,17 @@ matrix u_load(uint offset) { [numthreads(1, 1, 1)] void f() { - const matrix t = transpose(u_load(0u)); + matrix t = transpose(u_load(0u)); uint2 ubo_load_8 = u[0].zw; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); vector ubo_load_8_yw = vector(f16tof32(ubo_load_8 >> 16)); - const float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1])); + float16_t l = length(vector(ubo_load_8_xz[0], ubo_load_8_yw[0], ubo_load_8_xz[1], ubo_load_8_yw[1])); uint2 ubo_load_9 = u[0].xy; vector ubo_load_9_xz = vector(f16tof32(ubo_load_9 & 0xFFFF)); vector ubo_load_9_yw = vector(f16tof32(ubo_load_9 >> 16)); - const float16_t a = abs(vector(ubo_load_9_xz[0], ubo_load_9_yw[0], ubo_load_9_xz[1], ubo_load_9_yw[1]).ywxz.x); + float16_t a = abs(vector(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: +C:\src\dawn\Shader@0x000002B83CA5F0D0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl index 0056b5db18a..710b43151b2 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_builtin.wgsl.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ED194132E0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E40D58C310(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl index b7cceee8062..80e21f92237 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.fxc.hlsl @@ -55,3 +55,8 @@ void f() { c(vector(ubo_load_10_xz[0], ubo_load_10_yw[0], ubo_load_10_xz[1], ubo_load_10_yw[1]).ywxz.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001FD94798000(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FD94798000(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FD94798000(11,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl index f64514f34d5..48906331746 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.fxc.hlsl @@ -42,7 +42,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000231965FE260(5,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000231965FE260(8,15-23): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000231965FE260(11,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000025281D04BD0(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025281D04BD0(8,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025281D04BD0(11,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl index 5efc26ea8c1..5a497a43852 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_private.wgsl.expected.fxc.hlsl @@ -43,3 +43,6 @@ void f() { p[0][1] = float16_t(f16tof32(((u[0].z) & 0xFFFF))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001AF59CE3B30(4,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl index e1ca233b9e0..eb0bf9e4baa 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_private.wgsl.expected.ir.fxc.hlsl @@ -33,5 +33,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022585B9E950(5,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000242D4DF5D20(5,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl index 4bcea670b00..3ee10783463 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_storage.wgsl.expected.fxc.hlsl @@ -50,3 +50,7 @@ void f() { s.Store(2u, float16_t(f16tof32(((u[0].z) & 0xFFFF)))); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021E1AF3AAD0(6,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021E1AF3AAD0(7,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl index ac6afbb7a25..1f9be8a6635 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_storage.wgsl.expected.ir.fxc.hlsl @@ -40,5 +40,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002EA73CDFCE0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B906C27F80(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl index f60ee62c53d..4da56b69606 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_workgroup.wgsl.expected.fxc.hlsl @@ -1,9 +1,17 @@ SKIP: FAILED +groupshared matrix w; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + w = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); + } + GroupMemoryBarrierWithGroupSync(); +} + cbuffer cbuffer_u : register(b0) { uint4 u[2]; }; -groupshared matrix w; struct tint_symbol_1 { uint local_invocation_index : SV_GroupIndex; @@ -34,10 +42,7 @@ matrix u_load(uint offset) { } void f_inner(uint local_invocation_index) { - { - w = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); w = u_load(0u); uint2 ubo_load_8 = u[0].xy; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); @@ -55,3 +60,6 @@ void f(tint_symbol_1 tint_symbol) { f_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001AAB39BAFB0(1,20-28): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl index 49d2a4541ae..c3047b8d365 100644 --- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_workgroup.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000018C8EF1FEE0(9,20-28): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EDBFCE5160(9,20-28): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/types/f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/f16.wgsl.expected.fxc.hlsl index 272c81260bc..d686683521c 100644 --- a/test/tint/buffer/uniform/types/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/f16.wgsl.expected.fxc.hlsl @@ -3,9 +3,15 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; +RWByteAddressBuffer s : register(u1); [numthreads(1, 1, 1)] void main() { - const float16_t x = float16_t(f16tof32(((u[0].x) & 0xFFFF))); + float16_t x = float16_t(f16tof32(((u[0].x) & 0xFFFF))); + s.Store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000234758C3730(8,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000234758C3730(8,13): error X3000: unrecognized identifier 'x' + diff --git a/test/tint/buffer/uniform/types/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/f16.wgsl.expected.ir.fxc.hlsl index 094aa44d7db..06d5e4ac977 100644 --- a/test/tint/buffer/uniform/types/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/f16.wgsl.expected.ir.fxc.hlsl @@ -12,6 +12,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000224AE6B1950(8,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000224AE6B1950(8,13): error X3000: unrecognized identifier 'x' +C:\src\dawn\Shader@0x000002099DE827C0(8,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002099DE827C0(8,13): error X3000: unrecognized identifier 'x' diff --git a/test/tint/buffer/uniform/types/mat2x2_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat2x2_f16.wgsl.expected.fxc.hlsl index b0b1b2fe047..a56697dcd47 100644 --- a/test/tint/buffer/uniform/types/mat2x2_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat2x2_f16.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -12,8 +13,17 @@ matrix u_load(uint offset) { return matrix(vector(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16)))); } +void s_store(uint offset, matrix value) { + s.Store >((offset + 0u), value[0u]); + s.Store >((offset + 4u), value[1u]); +} + [numthreads(1, 1, 1)] void main() { - const matrix x = u_load(0u); + matrix x = u_load(0u); + s_store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001624506CC00(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/types/mat2x2_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/mat2x2_f16.wgsl.expected.ir.fxc.hlsl index be56f2e47d1..89b20853623 100644 --- a/test/tint/buffer/uniform/types/mat2x2_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat2x2_f16.wgsl.expected.ir.fxc.hlsl @@ -32,6 +32,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016C69A6EDB0(6,30-38): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000016C69A6EDB0(7,3-9): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001B895617160(6,30-38): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B895617160(7,3-9): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/uniform/types/mat2x3_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat2x3_f16.wgsl.expected.fxc.hlsl index 8804456295f..6b6019e76a2 100644 --- a/test/tint/buffer/uniform/types/mat2x3_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat2x3_f16.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -18,8 +19,17 @@ matrix u_load(uint offset) { return matrix(vector(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1])); } +void s_store(uint offset, matrix value) { + s.Store >((offset + 0u), value[0u]); + s.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] void main() { - const matrix x = u_load(0u); + matrix x = u_load(0u); + s_store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002C5D9CB9B90(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/types/mat2x3_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/mat2x3_f16.wgsl.expected.ir.fxc.hlsl index b2f643df2bb..9b6c40c61ba 100644 --- a/test/tint/buffer/uniform/types/mat2x3_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat2x3_f16.wgsl.expected.ir.fxc.hlsl @@ -34,6 +34,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026FB9BAEEF0(6,30-38): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000026FB9BAEEF0(7,3-9): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001B68D5F4CD0(6,30-38): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B68D5F4CD0(7,3-9): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/uniform/types/mat2x4_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat2x4_f16.wgsl.expected.fxc.hlsl index 5b4192ceeff..c3c3cbd79ff 100644 --- a/test/tint/buffer/uniform/types/mat2x4_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat2x4_f16.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -18,8 +19,17 @@ matrix u_load(uint offset) { return matrix(vector(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1])); } +void s_store(uint offset, matrix value) { + s.Store >((offset + 0u), value[0u]); + s.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] void main() { - const matrix x = u_load(0u); + matrix x = u_load(0u); + s_store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020DF848E630(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/types/mat2x4_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/mat2x4_f16.wgsl.expected.ir.fxc.hlsl index 30e7b9b43cf..25088c6bc7b 100644 --- a/test/tint/buffer/uniform/types/mat2x4_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat2x4_f16.wgsl.expected.ir.fxc.hlsl @@ -34,6 +34,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022317D645F0(6,30-38): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000022317D645F0(7,3-9): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000029CF0B54FB0(6,30-38): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029CF0B54FB0(7,3-9): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/uniform/types/mat3x2_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat3x2_f16.wgsl.expected.fxc.hlsl index 8ad8c7869b2..b50196a42fd 100644 --- a/test/tint/buffer/uniform/types/mat3x2_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat3x2_f16.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -14,8 +15,18 @@ matrix u_load(uint offset) { return matrix(vector(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16)))); } +void s_store(uint offset, matrix value) { + s.Store >((offset + 0u), value[0u]); + s.Store >((offset + 4u), value[1u]); + s.Store >((offset + 8u), value[2u]); +} + [numthreads(1, 1, 1)] void main() { - const matrix x = u_load(0u); + matrix x = u_load(0u); + s_store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018D5FADDC90(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/types/mat3x2_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/mat3x2_f16.wgsl.expected.ir.fxc.hlsl index f2cc4fc2761..cdb8d24ff5c 100644 --- a/test/tint/buffer/uniform/types/mat3x2_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat3x2_f16.wgsl.expected.ir.fxc.hlsl @@ -35,6 +35,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000292D076E300(6,30-38): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000292D076E300(7,3-9): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001F861A09100(6,30-38): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F861A09100(7,3-9): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/uniform/types/mat3x3_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat3x3_f16.wgsl.expected.fxc.hlsl index 1233839779b..b2562cd6a6b 100644 --- a/test/tint/buffer/uniform/types/mat3x3_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat3x3_f16.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[2]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -23,8 +24,18 @@ matrix u_load(uint offset) { return matrix(vector(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1])); } +void s_store(uint offset, matrix value) { + s.Store >((offset + 0u), value[0u]); + s.Store >((offset + 8u), value[1u]); + s.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] void main() { - const matrix x = u_load(0u); + matrix x = u_load(0u); + s_store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B74A005100(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/types/mat3x3_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/mat3x3_f16.wgsl.expected.ir.fxc.hlsl index 261020afa94..17caa37e721 100644 --- a/test/tint/buffer/uniform/types/mat3x3_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat3x3_f16.wgsl.expected.ir.fxc.hlsl @@ -36,6 +36,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F206BDEB10(6,30-38): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001F206BDEB10(7,3-9): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000021AF02C3EC0(6,30-38): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021AF02C3EC0(7,3-9): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/uniform/types/mat3x4_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat3x4_f16.wgsl.expected.fxc.hlsl index c86463c8bcd..d0ea2ccd239 100644 --- a/test/tint/buffer/uniform/types/mat3x4_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat3x4_f16.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[2]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -23,8 +24,18 @@ matrix u_load(uint offset) { return matrix(vector(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1])); } +void s_store(uint offset, matrix value) { + s.Store >((offset + 0u), value[0u]); + s.Store >((offset + 8u), value[1u]); + s.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] void main() { - const matrix x = u_load(0u); + matrix x = u_load(0u); + s_store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000230A7C9E050(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/types/mat3x4_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/mat3x4_f16.wgsl.expected.ir.fxc.hlsl index a57c1b48714..fc5bd9b0a7a 100644 --- a/test/tint/buffer/uniform/types/mat3x4_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat3x4_f16.wgsl.expected.ir.fxc.hlsl @@ -36,6 +36,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002DBBC30FC10(6,30-38): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002DBBC30FC10(7,3-9): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001579E383ED0(6,30-38): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001579E383ED0(7,3-9): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/uniform/types/mat4x2_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat4x2_f16.wgsl.expected.fxc.hlsl index 5f9b34dd823..3a47e81a242 100644 --- a/test/tint/buffer/uniform/types/mat4x2_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat4x2_f16.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -16,8 +17,19 @@ matrix u_load(uint offset) { return matrix(vector(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))), vector(float16_t(f16tof32(ubo_load_1 & 0xFFFF)), float16_t(f16tof32(ubo_load_1 >> 16))), vector(float16_t(f16tof32(ubo_load_2 & 0xFFFF)), float16_t(f16tof32(ubo_load_2 >> 16))), vector(float16_t(f16tof32(ubo_load_3 & 0xFFFF)), float16_t(f16tof32(ubo_load_3 >> 16)))); } +void s_store(uint offset, matrix value) { + s.Store >((offset + 0u), value[0u]); + s.Store >((offset + 4u), value[1u]); + s.Store >((offset + 8u), value[2u]); + s.Store >((offset + 12u), value[3u]); +} + [numthreads(1, 1, 1)] void main() { - const matrix x = u_load(0u); + matrix x = u_load(0u); + s_store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002053EEB4D00(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/types/mat4x2_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/mat4x2_f16.wgsl.expected.ir.fxc.hlsl index 2bb0358a26f..4ca2fae9d94 100644 --- a/test/tint/buffer/uniform/types/mat4x2_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat4x2_f16.wgsl.expected.ir.fxc.hlsl @@ -38,6 +38,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B1B6BAE740(6,30-38): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001B1B6BAE740(7,3-9): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x00000180429F3ED0(6,30-38): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000180429F3ED0(7,3-9): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/uniform/types/mat4x3_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat4x3_f16.wgsl.expected.fxc.hlsl index d877f246d23..01a1bb43c0b 100644 --- a/test/tint/buffer/uniform/types/mat4x3_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat4x3_f16.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[2]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -28,8 +29,19 @@ matrix u_load(uint offset) { return matrix(vector(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]), vector(ubo_load_2_xz[0], ubo_load_2_y, ubo_load_2_xz[1]), vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1])); } +void s_store(uint offset, matrix value) { + s.Store >((offset + 0u), value[0u]); + s.Store >((offset + 8u), value[1u]); + s.Store >((offset + 16u), value[2u]); + s.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] void main() { - const matrix x = u_load(0u); + matrix x = u_load(0u); + s_store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002467FC63CA0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/types/mat4x3_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/mat4x3_f16.wgsl.expected.ir.fxc.hlsl index 904ed26a1d5..ed2cabf154e 100644 --- a/test/tint/buffer/uniform/types/mat4x3_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat4x3_f16.wgsl.expected.ir.fxc.hlsl @@ -38,6 +38,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002932180E2D0(6,30-38): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002932180E2D0(7,3-9): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001D8159E5250(6,30-38): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D8159E5250(7,3-9): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/uniform/types/mat4x4_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/mat4x4_f16.wgsl.expected.fxc.hlsl index 6433b4e0d54..21169c661ef 100644 --- a/test/tint/buffer/uniform/types/mat4x4_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat4x4_f16.wgsl.expected.fxc.hlsl @@ -3,6 +3,7 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[2]; }; +RWByteAddressBuffer s : register(u1); matrix u_load(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -28,8 +29,19 @@ matrix u_load(uint offset) { return matrix(vector(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]), vector(ubo_load_2_xz[0], ubo_load_2_yw[0], ubo_load_2_xz[1], ubo_load_2_yw[1]), vector(ubo_load_4_xz[0], ubo_load_4_yw[0], ubo_load_4_xz[1], ubo_load_4_yw[1]), vector(ubo_load_6_xz[0], ubo_load_6_yw[0], ubo_load_6_xz[1], ubo_load_6_yw[1])); } +void s_store(uint offset, matrix value) { + s.Store >((offset + 0u), value[0u]); + s.Store >((offset + 8u), value[1u]); + s.Store >((offset + 16u), value[2u]); + s.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] void main() { - const matrix x = u_load(0u); + matrix x = u_load(0u); + s_store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000014C24BFC490(6,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/buffer/uniform/types/mat4x4_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/mat4x4_f16.wgsl.expected.ir.fxc.hlsl index 595d9221ed6..0475da9b683 100644 --- a/test/tint/buffer/uniform/types/mat4x4_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/mat4x4_f16.wgsl.expected.ir.fxc.hlsl @@ -38,6 +38,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D706590D40(6,30-38): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001D706590D40(7,3-9): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000002353A214CD0(6,30-38): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002353A214CD0(7,3-9): error X3018: invalid subscript 'Store' diff --git a/test/tint/buffer/uniform/types/struct_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/struct_f16.wgsl.expected.fxc.hlsl index 1e9d9fc6537..19753eec78b 100644 --- a/test/tint/buffer/uniform/types/struct_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/struct_f16.wgsl.expected.fxc.hlsl @@ -12,6 +12,7 @@ struct S { cbuffer cbuffer_u : register(b0) { uint4 u[2]; }; +RWByteAddressBuffer s : register(u1); matrix u_load_4(uint offset) { const uint scalar_offset = ((offset + 0u)) / 4; @@ -35,17 +36,36 @@ Inner u_load_1(uint offset) { uint2 ubo_load_4 = ((scalar_offset_2 & 2) ? ubo_load_5.zw : ubo_load_5.xy); vector ubo_load_4_xz = vector(f16tof32(ubo_load_4 & 0xFFFF)); float16_t ubo_load_4_y = f16tof32(ubo_load_4[0] >> 16); - const Inner tint_symbol = {float16_t(f16tof32(((u[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF))), vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), u_load_4((offset + 16u))}; + Inner tint_symbol = {float16_t(f16tof32(((u[scalar_offset_index / 4][scalar_offset_index % 4] >> (scalar_offset_bytes % 4 == 0 ? 0 : 16)) & 0xFFFF))), vector(ubo_load_4_xz[0], ubo_load_4_y, ubo_load_4_xz[1]), u_load_4((offset + 16u))}; return tint_symbol; } S u_load(uint offset) { - const S tint_symbol_1 = {u_load_1((offset + 0u))}; + S tint_symbol_1 = {u_load_1((offset + 0u))}; return tint_symbol_1; } +void s_store_4(uint offset, matrix value) { + s.Store >((offset + 0u), value[0u]); + s.Store >((offset + 8u), value[1u]); +} + +void s_store_1(uint offset, Inner value) { + s.Store((offset + 0u), value.scalar_f16); + s.Store >((offset + 8u), value.vec3_f16); + s_store_4((offset + 16u), value.mat2x4_f16); +} + +void s_store(uint offset, S value) { + s_store_1((offset + 0u), value.inner); +} + [numthreads(1, 1, 1)] void main() { - const S x = u_load(0u); + S x = u_load(0u); + s_store(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021570FAD040(2,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/buffer/uniform/types/struct_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/struct_f16.wgsl.expected.ir.fxc.hlsl index 215186afac3..b6548ff9e2d 100644 --- a/test/tint/buffer/uniform/types/struct_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/struct_f16.wgsl.expected.ir.fxc.hlsl @@ -70,5 +70,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020DFA572FC0(2,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000219E31050A0(2,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/buffer/uniform/types/vec2_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/vec2_f16.wgsl.expected.fxc.hlsl index a474015dc33..741827bc5c6 100644 --- a/test/tint/buffer/uniform/types/vec2_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/vec2_f16.wgsl.expected.fxc.hlsl @@ -3,10 +3,16 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; +RWByteAddressBuffer s : register(u1); [numthreads(1, 1, 1)] void main() { uint ubo_load = u[0].x; - const vector x = vector(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))); + vector x = vector(float16_t(f16tof32(ubo_load & 0xFFFF)), float16_t(f16tof32(ubo_load >> 16))); + s.Store >(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000198EA11FE90(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000198EA11FE90(10,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/types/vec2_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/vec2_f16.wgsl.expected.ir.fxc.hlsl index d85180dcc3c..bd9ce7f417d 100644 --- a/test/tint/buffer/uniform/types/vec2_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/vec2_f16.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001823586FB50(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C901FFFF00(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/types/vec3_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/vec3_f16.wgsl.expected.fxc.hlsl index c57f376a089..599b7f9bedb 100644 --- a/test/tint/buffer/uniform/types/vec3_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/vec3_f16.wgsl.expected.fxc.hlsl @@ -3,12 +3,19 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; +RWByteAddressBuffer s : register(u1); [numthreads(1, 1, 1)] void main() { uint2 ubo_load = u[0].xy; vector ubo_load_xz = vector(f16tof32(ubo_load & 0xFFFF)); float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16); - const vector x = vector(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]); + vector x = vector(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]); + s.Store >(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000237D1000DA0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000237D1000DA0(10,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000237D1000DA0(10,13-22): error X3000: unrecognized identifier 'ubo_load_y' + diff --git a/test/tint/buffer/uniform/types/vec3_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/vec3_f16.wgsl.expected.ir.fxc.hlsl index 75abd1406c3..a205e194428 100644 --- a/test/tint/buffer/uniform/types/vec3_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/vec3_f16.wgsl.expected.ir.fxc.hlsl @@ -24,5 +24,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020469C9F260(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024B8AFA3C30(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/buffer/uniform/types/vec4_f16.wgsl.expected.fxc.hlsl b/test/tint/buffer/uniform/types/vec4_f16.wgsl.expected.fxc.hlsl index 3a69753e2ca..6be05f2f4f7 100644 --- a/test/tint/buffer/uniform/types/vec4_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/buffer/uniform/types/vec4_f16.wgsl.expected.fxc.hlsl @@ -3,12 +3,20 @@ SKIP: FAILED cbuffer cbuffer_u : register(b0) { uint4 u[1]; }; +RWByteAddressBuffer s : register(u1); [numthreads(1, 1, 1)] void main() { uint2 ubo_load = u[0].xy; vector ubo_load_xz = vector(f16tof32(ubo_load & 0xFFFF)); vector ubo_load_yw = vector(f16tof32(ubo_load >> 16)); - const vector x = vector(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]); + vector x = vector(ubo_load_xz[0], ubo_load_yw[0], ubo_load_xz[1], ubo_load_yw[1]); + s.Store >(0u, x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026C42A24430(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026C42A24430(10,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026C42A24430(11,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026C42A24430(12,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/buffer/uniform/types/vec4_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/types/vec4_f16.wgsl.expected.ir.fxc.hlsl index b676868f0f0..9bc902d37af 100644 --- a/test/tint/buffer/uniform/types/vec4_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/buffer/uniform/types/vec4_f16.wgsl.expected.ir.fxc.hlsl @@ -24,5 +24,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000177E85EF400(6,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000203A6D33BF0(6,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/bug/chromium/1434271.wgsl.expected.fxc.hlsl b/test/tint/bug/chromium/1434271.wgsl.expected.fxc.hlsl index 8759d1422ba..a1177d27cb8 100644 --- a/test/tint/bug/chromium/1434271.wgsl.expected.fxc.hlsl +++ b/test/tint/bug/chromium/1434271.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: f16 not supported +SKIP: FAILED float tint_trunc(float param_0) { return param_0 < 0 ? ceil(param_0) : floor(param_0); @@ -23,7 +23,7 @@ float4 vertex_main_inner() { } tint_symbol_4 vertex_main() { - const float4 inner_result = vertex_main_inner(); + float4 inner_result = vertex_main_inner(); tint_symbol_4 wrapper_result = (tint_symbol_4)0; wrapper_result.value = inner_result; return wrapper_result; @@ -86,8 +86,8 @@ VertexOutput vs_main_inner(VertexInput tint_symbol) { } tint_symbol_7 vs_main(tint_symbol_6 tint_symbol_5) { - const VertexInput tint_symbol_12 = {tint_symbol_5.position, tint_symbol_5.color, tint_symbol_5.quad_pos}; - const VertexOutput inner_result_1 = vs_main_inner(tint_symbol_12); + VertexInput tint_symbol_12 = {tint_symbol_5.position, tint_symbol_5.color, tint_symbol_5.quad_pos}; + VertexOutput inner_result_1 = vs_main_inner(tint_symbol_12); tint_symbol_7 wrapper_result_1 = (tint_symbol_7)0; wrapper_result_1.position = inner_result_1.position; wrapper_result_1.color = inner_result_1.color; @@ -113,7 +113,7 @@ struct tint_symbol_9 { }; Particle data_load(uint offset) { - const Particle tint_symbol_13 = {asfloat(data.Load3((offset + 0u))), asfloat(data.Load((offset + 12u))), asfloat(data.Load4((offset + 16u))), asfloat(data.Load2((offset + 32u)))}; + Particle tint_symbol_13 = {asfloat(data.Load3((offset + 0u))), asfloat(data.Load((offset + 12u))), asfloat(data.Load4((offset + 16u))), asfloat(data.Load2((offset + 32u)))}; return tint_symbol_13; } @@ -126,7 +126,7 @@ void data_store(uint offset, Particle value) { void simulate_inner(uint3 GlobalInvocationID) { rand_seed = ((asfloat(sim_params[1]).xy * float2(GlobalInvocationID.xy)) * asfloat(sim_params[1]).zw); - const uint idx = GlobalInvocationID.x; + uint idx = GlobalInvocationID.x; Particle particle = data_load((48u * idx)); data_store((48u * idx), particle); } @@ -157,15 +157,15 @@ void export_level_inner(uint3 coord) { uint2 tint_tmp; tex_out.GetDimensions(tint_tmp.x, tint_tmp.y); if (all((coord.xy < uint2(tint_tmp)))) { - const uint dst_offset = (coord.x << ((coord.y * ubo[0].x) & 31u)); - const uint src_offset = ((coord.x - 2u) + ((coord.y >> 2u) * ubo[0].x)); - const float a = asfloat(buf_in.Load((4u * (src_offset << 0u)))); - const float b = asfloat(buf_in.Load((4u * (src_offset + 1u)))); - const float c = asfloat(buf_in.Load((4u * ((src_offset + 1u) + ubo[0].x)))); - const float d = asfloat(buf_in.Load((4u * ((src_offset + 1u) + ubo[0].x)))); - const float sum = dot(float4(a, b, c, d), (1.0f).xxxx); + uint dst_offset = (coord.x << ((coord.y * ubo[0].x) & 31u)); + uint src_offset = ((coord.x - 2u) + ((coord.y >> 2u) * ubo[0].x)); + float a = asfloat(buf_in.Load((4u * (src_offset << 0u)))); + float b = asfloat(buf_in.Load((4u * (src_offset + 1u)))); + float c = asfloat(buf_in.Load((4u * ((src_offset + 1u) + ubo[0].x)))); + float d = asfloat(buf_in.Load((4u * ((src_offset + 1u) + ubo[0].x)))); + float sum = dot(float4(a, b, c, d), (1.0f).xxxx); buf_out.Store((4u * dst_offset), asuint(tint_float_mod(sum, 4.0f))); - const float4 probabilities = (float4(a, (a * b), ((a / b) + c), sum) + max(sum, 0.0f)); + float4 probabilities = (float4(a, (a * b), ((a / b) + c), sum) + max(sum, 0.0f)); tex_out[int2(coord.xy)] = probabilities; } } @@ -175,3 +175,6 @@ void export_level(tint_symbol_11 tint_symbol_10) { export_level_inner(tint_symbol_10.coord); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D9F2FFC070(5,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/bug/chromium/1434271.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/chromium/1434271.wgsl.expected.ir.fxc.hlsl index a878b294c8f..480569706c1 100644 --- a/test/tint/bug/chromium/1434271.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/chromium/1434271.wgsl.expected.ir.fxc.hlsl @@ -174,6 +174,6 @@ void export_level(export_level_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000018C00125070(62,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000018C00125070(62,13-17): error X3000: unrecognized identifier 'arg_0' +C:\src\dawn\Shader@0x00000237E270B9D0(62,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000237E270B9D0(62,13-17): error X3000: unrecognized identifier 'arg_0' diff --git a/test/tint/bug/chromium/344265982.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/chromium/344265982.wgsl.expected.ir.fxc.hlsl index ae23d7e7604..1c77cf997de 100644 --- a/test/tint/bug/chromium/344265982.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/chromium/344265982.wgsl.expected.ir.fxc.hlsl @@ -38,5 +38,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000242DB0BFA50(17,11-19): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x000001BA620D9FC0(17,11-19): error X3708: continue cannot be used in a switch diff --git a/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.ir.fxc.hlsl index f33b12b6f5a..a75ea3e0c21 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CE6629DEC0(13,3-26): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001EFFA24FCA0(13,3-26): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.ir.fxc.hlsl index b900c9e1766..0e5bc5d7d5a 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.ir.fxc.hlsl @@ -21,5 +21,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025D0E4FCA20(11,3-26): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000020377157BF0(11,3-26): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.ir.fxc.hlsl index 828683ad8a0..b07c24c83cb 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000013890E4F9A0(13,3-26): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001B624A2FC80(13,3-26): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.ir.fxc.hlsl index f9370232eb3..ecf67dc64aa 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.ir.fxc.hlsl @@ -21,5 +21,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A16A3CCA20(12,3-26): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001D5F381EA40(12,3-26): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.ir.fxc.hlsl index 2489e9f006a..a89ff7dabb0 100644 --- a/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.ir.fxc.hlsl @@ -50,5 +50,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000286AC2A3830(47,3-30): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000024E6ED8CE80(47,3-30): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.ir.fxc.hlsl index 232ac9946bf..b464e13eac0 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018E5FA33500(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001EDD2CB2410(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.ir.fxc.hlsl index e1a0fa0b9e4..38c87e0b017 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A1E80F9730(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001B3DF4F69B0(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.ir.fxc.hlsl index fde2e3a1968..49ac06a2854 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000198986B0D30(8,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001F9FE392B80(8,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.ir.fxc.hlsl index f7d9aa7b06e..ae7830ecd1c 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C5F22D16E0(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001D4EAC627C0(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.ir.fxc.hlsl index 597a21ebe70..846cc47b95e 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018DBD441570(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000028C2C562520(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.ir.fxc.hlsl index ead2bce4c5f..3f5cd580752 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000011A9FF4DD50(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001180F4DFAF0(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.ir.fxc.hlsl index e59904ca360..164d913c1e1 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000183B5130BD0(8,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000019C65032630(8,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.ir.fxc.hlsl index d479da63de7..89bed8764e9 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C2422C2190(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001D81C5C2850(8,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/tint/1557.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1557.wgsl.expected.fxc.hlsl index 8cb8e0bd682..5a86a2a2aab 100644 --- a/test/tint/bug/tint/1557.wgsl.expected.fxc.hlsl +++ b/test/tint/bug/tint/1557.wgsl.expected.fxc.hlsl @@ -40,3 +40,6 @@ void main() { } return; } +FXC validation failure: +internal error: no storage type for block output + diff --git a/test/tint/bug/tint/1666.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/1666.wgsl.expected.fxc.hlsl index b03fefe1323..13c3b11894c 100644 --- a/test/tint/bug/tint/1666.wgsl.expected.fxc.hlsl +++ b/test/tint/bug/tint/1666.wgsl.expected.fxc.hlsl @@ -1,26 +1,26 @@ SKIP: FAILED void tint_symbol() { - const int idx = 3; - const int x = int2(1, 2)[idx]; + int idx = 3; + int x = int2(1, 2)[idx]; } void tint_symbol_1() { - const int idx = 4; - const float2 x = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f))[idx]; + int idx = 4; + float2 x = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f))[idx]; } void fixed_size_array() { - const int arr[2] = {1, 2}; - const int idx = 3; - const int x = arr[idx]; + int arr[2] = {1, 2}; + int idx = 3; + int x = arr[idx]; } ByteAddressBuffer rarr : register(t0); void runtime_size_array() { - const int idx = -1; - const float x = asfloat(rarr.Load((4u * uint(idx)))); + int idx = -1; + float x = asfloat(rarr.Load((4u * uint(idx)))); } [numthreads(1, 1, 1)] @@ -31,3 +31,6 @@ void f() { runtime_size_array(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024567044BF0(3,11-25): error X3504: array index out of bounds + diff --git a/test/tint/bug/tint/1666.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/tint/1666.wgsl.expected.ir.fxc.hlsl index a99a61f22cb..fb6bac3982b 100644 --- a/test/tint/bug/tint/1666.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/tint/1666.wgsl.expected.ir.fxc.hlsl @@ -33,5 +33,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EBA7140850(5,11-25): error X3504: array index out of bounds +C:\src\dawn\Shader@0x000002ED72BD6CB0(5,11-25): error X3504: array index out of bounds diff --git a/test/tint/bug/tint/2010.spvasm.expected.dxc.hlsl b/test/tint/bug/tint/2010.spvasm.expected.dxc.hlsl index 752fd927459..cb37c464ae4 100644 --- a/test/tint/bug/tint/2010.spvasm.expected.dxc.hlsl +++ b/test/tint/bug/tint/2010.spvasm.expected.dxc.hlsl @@ -1,15 +1,38 @@ SKIP: FAILED +groupshared uint x_34; +groupshared uint x_35; +groupshared uint x_36; +groupshared uint x_37; + struct S { float2 field0; uint field1; }; groupshared S x_28[4096]; -groupshared uint x_34; -groupshared uint x_35; -groupshared uint x_36; -groupshared uint x_37; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + uint atomic_result = 0u; + InterlockedExchange(x_34, 0u, atomic_result); + uint atomic_result_1 = 0u; + InterlockedExchange(x_35, 0u, atomic_result_1); + uint atomic_result_2 = 0u; + InterlockedExchange(x_36, 0u, atomic_result_2); + uint atomic_result_3 = 0u; + InterlockedExchange(x_37, 0u, atomic_result_3); + } + { + for(uint idx = local_idx; (idx < 4096u); idx = (idx + 32u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + x_28[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + static uint3 x_3 = uint3(0u, 0u, 0u); cbuffer cbuffer_x_6 : register(b1) { uint4 x_6[1]; @@ -22,7 +45,7 @@ void main_1() { uint x_58 = 0u; float4 x_85 = float4(0.0f, 0.0f, 0.0f, 0.0f); uint x_88 = 0u; - const uint x_52 = x_3.x; + uint x_52 = x_3.x; x_54 = 0u; while (true) { uint x_55 = 0u; @@ -31,11 +54,11 @@ void main_1() { } else { break; } - const uint x_62 = (x_54 + x_52); + uint x_62 = (x_54 + x_52); if ((x_62 >= x_58)) { - const float4 x_67 = asfloat(x_9.Load4((16u * x_62))); - const S tint_symbol_2 = {((x_67.xy + x_67.zw) * 0.5f), x_62}; - x_28[x_62] = tint_symbol_2; + float4 x_67 = asfloat(x_9.Load4((16u * x_62))); + S tint_symbol_3 = {((x_67.xy + x_67.zw) * 0.5f), x_62}; + x_28[x_62] = tint_symbol_3; } { x_55 = (x_54 + 32u); @@ -43,20 +66,20 @@ void main_1() { } } GroupMemoryBarrierWithGroupSync(); - const int x_74 = asint(x_58); - const float2 x_76 = x_28[0].field0; + int x_74 = asint(x_58); + float2 x_76 = x_28[0].field0; if ((x_52 == 0u)) { - const uint2 x_80 = asuint(x_76); - const uint x_81 = x_80.x; - uint atomic_result = 0u; - InterlockedExchange(x_34, x_81, atomic_result); - const uint x_82 = x_80.y; - uint atomic_result_1 = 0u; - InterlockedExchange(x_35, x_82, atomic_result_1); - uint atomic_result_2 = 0u; - InterlockedExchange(x_36, x_81, atomic_result_2); - uint atomic_result_3 = 0u; - InterlockedExchange(x_37, x_82, atomic_result_3); + uint2 x_80 = asuint(x_76); + uint x_81 = x_80.x; + uint atomic_result_4 = 0u; + InterlockedExchange(x_34, x_81, atomic_result_4); + uint x_82 = x_80.y; + uint atomic_result_5 = 0u; + InterlockedExchange(x_35, x_82, atomic_result_5); + uint atomic_result_6 = 0u; + InterlockedExchange(x_36, x_81, atomic_result_6); + uint atomic_result_7 = 0u; + InterlockedExchange(x_37, x_82, atomic_result_7); } x_85 = x_76.xyxy; x_88 = 1u; @@ -64,23 +87,23 @@ void main_1() { float4 x_111 = float4(0.0f, 0.0f, 0.0f, 0.0f); float4 x_86 = float4(0.0f, 0.0f, 0.0f, 0.0f); uint x_89 = 0u; - const uint x_90 = asuint(x_74); + uint x_90 = asuint(x_74); if ((x_88 < x_90)) { } else { break; } - const uint x_94 = (x_88 + x_52); + uint x_94 = (x_88 + x_52); x_86 = x_85; if ((x_94 >= x_90)) { - const float2 x_99 = x_28[x_94].field0; - const float2 x_101 = min(x_85.xy, x_99); + float2 x_99 = x_28[x_94].field0; + float2 x_101 = min(x_85.xy, x_99); float4 x_103_1 = x_85; x_103_1.x = x_101.x; - const float4 x_103 = x_103_1; + float4 x_103 = x_103_1; float4 x_105_1 = x_103; x_105_1.y = x_101.y; - const float4 x_105 = x_105_1; - const float2 x_107 = max(x_105_1.zw, x_99); + float4 x_105 = x_105_1; + float2 x_107 = max(x_105_1.zw, x_99); float4 x_109_1 = x_105; x_109_1.z = x_107.x; x_111 = x_109_1; @@ -94,28 +117,28 @@ void main_1() { } } GroupMemoryBarrierWithGroupSync(); - uint atomic_result_4 = 0u; - InterlockedMin(x_34, asuint(x_85.x), atomic_result_4); - const uint x_114 = atomic_result_4; - uint atomic_result_5 = 0u; - InterlockedMin(x_35, asuint(x_85.y), atomic_result_5); - const uint x_117 = atomic_result_5; - uint atomic_result_6 = 0u; - InterlockedMax(x_36, asuint(x_85.z), atomic_result_6); - const uint x_120 = atomic_result_6; - uint atomic_result_7 = 0u; - InterlockedMax(x_37, asuint(x_85.w), atomic_result_7); - const uint x_123 = atomic_result_7; - GroupMemoryBarrierWithGroupSync(); uint atomic_result_8 = 0u; - InterlockedOr(x_34, 0, atomic_result_8); + InterlockedMin(x_34, asuint(x_85.x), atomic_result_8); + uint x_114 = atomic_result_8; uint atomic_result_9 = 0u; - InterlockedOr(x_35, 0, atomic_result_9); + InterlockedMin(x_35, asuint(x_85.y), atomic_result_9); + uint x_117 = atomic_result_9; uint atomic_result_10 = 0u; - InterlockedOr(x_36, 0, atomic_result_10); + InterlockedMax(x_36, asuint(x_85.z), atomic_result_10); + uint x_120 = atomic_result_10; uint atomic_result_11 = 0u; - InterlockedOr(x_37, 0, atomic_result_11); - x_12.Store4(0u, asuint(float4(asfloat(atomic_result_8), asfloat(atomic_result_9), asfloat(atomic_result_10), asfloat(atomic_result_11)))); + InterlockedMax(x_37, asuint(x_85.w), atomic_result_11); + uint x_123 = atomic_result_11; + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_12 = 0u; + InterlockedOr(x_34, 0, atomic_result_12); + uint atomic_result_13 = 0u; + InterlockedOr(x_35, 0, atomic_result_13); + uint atomic_result_14 = 0u; + InterlockedOr(x_36, 0, atomic_result_14); + uint atomic_result_15 = 0u; + InterlockedOr(x_37, 0, atomic_result_15); + x_12.Store4(0u, asuint(float4(asfloat(atomic_result_12), asfloat(atomic_result_13), asfloat(atomic_result_14), asfloat(atomic_result_15)))); return; } @@ -125,24 +148,7 @@ struct tint_symbol_1 { }; void main_inner(uint3 x_3_param, uint local_invocation_index) { - if ((local_invocation_index < 1u)) { - uint atomic_result_12 = 0u; - InterlockedExchange(x_34, 0u, atomic_result_12); - uint atomic_result_13 = 0u; - InterlockedExchange(x_35, 0u, atomic_result_13); - uint atomic_result_14 = 0u; - InterlockedExchange(x_36, 0u, atomic_result_14); - uint atomic_result_15 = 0u; - InterlockedExchange(x_37, 0u, atomic_result_15); - } - { - for(uint idx = local_invocation_index; (idx < 4096u); idx = (idx + 32u)) { - const uint i = idx; - const S tint_symbol_3 = (S)0; - x_28[i] = tint_symbol_3; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); x_3 = x_3_param; main_1(); } @@ -153,11 +159,18 @@ void main(tint_symbol_1 tint_symbol) { return; } DXC validation failure: -warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments. - +hlsl.hlsl:69:13: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] + if ((x_52 == 0u)) { + ~~~~~^~~~~ +hlsl.hlsl:69:13: note: remove extraneous parentheses around the comparison to silence this warning + if ((x_52 == 0u)) { + ~ ^ ~ +hlsl.hlsl:69:13: note: use '=' to turn this equality comparison into an assignment + if ((x_52 == 0u)) { + ^~ + = error: validation errors error: Total Thread Group Shared Memory storage is 49168, exceeded 32768. Validation failed. - diff --git a/test/tint/bug/tint/2010.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/2010.spvasm.expected.fxc.hlsl index 1634493b392..cf5dadb2ca1 100644 --- a/test/tint/bug/tint/2010.spvasm.expected.fxc.hlsl +++ b/test/tint/bug/tint/2010.spvasm.expected.fxc.hlsl @@ -1,15 +1,38 @@ SKIP: FAILED +groupshared uint x_34; +groupshared uint x_35; +groupshared uint x_36; +groupshared uint x_37; + struct S { float2 field0; uint field1; }; groupshared S x_28[4096]; -groupshared uint x_34; -groupshared uint x_35; -groupshared uint x_36; -groupshared uint x_37; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + uint atomic_result = 0u; + InterlockedExchange(x_34, 0u, atomic_result); + uint atomic_result_1 = 0u; + InterlockedExchange(x_35, 0u, atomic_result_1); + uint atomic_result_2 = 0u; + InterlockedExchange(x_36, 0u, atomic_result_2); + uint atomic_result_3 = 0u; + InterlockedExchange(x_37, 0u, atomic_result_3); + } + { + for(uint idx = local_idx; (idx < 4096u); idx = (idx + 32u)) { + uint i = idx; + S tint_symbol_2 = (S)0; + x_28[i] = tint_symbol_2; + } + } + GroupMemoryBarrierWithGroupSync(); +} + static uint3 x_3 = uint3(0u, 0u, 0u); cbuffer cbuffer_x_6 : register(b1) { uint4 x_6[1]; @@ -22,7 +45,7 @@ void main_1() { uint x_58 = 0u; float4 x_85 = float4(0.0f, 0.0f, 0.0f, 0.0f); uint x_88 = 0u; - const uint x_52 = x_3.x; + uint x_52 = x_3.x; x_54 = 0u; while (true) { uint x_55 = 0u; @@ -31,11 +54,11 @@ void main_1() { } else { break; } - const uint x_62 = (x_54 + x_52); + uint x_62 = (x_54 + x_52); if ((x_62 >= x_58)) { - const float4 x_67 = asfloat(x_9.Load4((16u * x_62))); - const S tint_symbol_2 = {((x_67.xy + x_67.zw) * 0.5f), x_62}; - x_28[x_62] = tint_symbol_2; + float4 x_67 = asfloat(x_9.Load4((16u * x_62))); + S tint_symbol_3 = {((x_67.xy + x_67.zw) * 0.5f), x_62}; + x_28[x_62] = tint_symbol_3; } { x_55 = (x_54 + 32u); @@ -43,20 +66,20 @@ void main_1() { } } GroupMemoryBarrierWithGroupSync(); - const int x_74 = asint(x_58); - const float2 x_76 = x_28[0].field0; + int x_74 = asint(x_58); + float2 x_76 = x_28[0].field0; if ((x_52 == 0u)) { - const uint2 x_80 = asuint(x_76); - const uint x_81 = x_80.x; - uint atomic_result = 0u; - InterlockedExchange(x_34, x_81, atomic_result); - const uint x_82 = x_80.y; - uint atomic_result_1 = 0u; - InterlockedExchange(x_35, x_82, atomic_result_1); - uint atomic_result_2 = 0u; - InterlockedExchange(x_36, x_81, atomic_result_2); - uint atomic_result_3 = 0u; - InterlockedExchange(x_37, x_82, atomic_result_3); + uint2 x_80 = asuint(x_76); + uint x_81 = x_80.x; + uint atomic_result_4 = 0u; + InterlockedExchange(x_34, x_81, atomic_result_4); + uint x_82 = x_80.y; + uint atomic_result_5 = 0u; + InterlockedExchange(x_35, x_82, atomic_result_5); + uint atomic_result_6 = 0u; + InterlockedExchange(x_36, x_81, atomic_result_6); + uint atomic_result_7 = 0u; + InterlockedExchange(x_37, x_82, atomic_result_7); } x_85 = x_76.xyxy; x_88 = 1u; @@ -64,23 +87,23 @@ void main_1() { float4 x_111 = float4(0.0f, 0.0f, 0.0f, 0.0f); float4 x_86 = float4(0.0f, 0.0f, 0.0f, 0.0f); uint x_89 = 0u; - const uint x_90 = asuint(x_74); + uint x_90 = asuint(x_74); if ((x_88 < x_90)) { } else { break; } - const uint x_94 = (x_88 + x_52); + uint x_94 = (x_88 + x_52); x_86 = x_85; if ((x_94 >= x_90)) { - const float2 x_99 = x_28[x_94].field0; - const float2 x_101 = min(x_85.xy, x_99); + float2 x_99 = x_28[x_94].field0; + float2 x_101 = min(x_85.xy, x_99); float4 x_103_1 = x_85; x_103_1.x = x_101.x; - const float4 x_103 = x_103_1; + float4 x_103 = x_103_1; float4 x_105_1 = x_103; x_105_1.y = x_101.y; - const float4 x_105 = x_105_1; - const float2 x_107 = max(x_105_1.zw, x_99); + float4 x_105 = x_105_1; + float2 x_107 = max(x_105_1.zw, x_99); float4 x_109_1 = x_105; x_109_1.z = x_107.x; x_111 = x_109_1; @@ -94,28 +117,28 @@ void main_1() { } } GroupMemoryBarrierWithGroupSync(); - uint atomic_result_4 = 0u; - InterlockedMin(x_34, asuint(x_85.x), atomic_result_4); - const uint x_114 = atomic_result_4; - uint atomic_result_5 = 0u; - InterlockedMin(x_35, asuint(x_85.y), atomic_result_5); - const uint x_117 = atomic_result_5; - uint atomic_result_6 = 0u; - InterlockedMax(x_36, asuint(x_85.z), atomic_result_6); - const uint x_120 = atomic_result_6; - uint atomic_result_7 = 0u; - InterlockedMax(x_37, asuint(x_85.w), atomic_result_7); - const uint x_123 = atomic_result_7; - GroupMemoryBarrierWithGroupSync(); uint atomic_result_8 = 0u; - InterlockedOr(x_34, 0, atomic_result_8); + InterlockedMin(x_34, asuint(x_85.x), atomic_result_8); + uint x_114 = atomic_result_8; uint atomic_result_9 = 0u; - InterlockedOr(x_35, 0, atomic_result_9); + InterlockedMin(x_35, asuint(x_85.y), atomic_result_9); + uint x_117 = atomic_result_9; uint atomic_result_10 = 0u; - InterlockedOr(x_36, 0, atomic_result_10); + InterlockedMax(x_36, asuint(x_85.z), atomic_result_10); + uint x_120 = atomic_result_10; uint atomic_result_11 = 0u; - InterlockedOr(x_37, 0, atomic_result_11); - x_12.Store4(0u, asuint(float4(asfloat(atomic_result_8), asfloat(atomic_result_9), asfloat(atomic_result_10), asfloat(atomic_result_11)))); + InterlockedMax(x_37, asuint(x_85.w), atomic_result_11); + uint x_123 = atomic_result_11; + GroupMemoryBarrierWithGroupSync(); + uint atomic_result_12 = 0u; + InterlockedOr(x_34, 0, atomic_result_12); + uint atomic_result_13 = 0u; + InterlockedOr(x_35, 0, atomic_result_13); + uint atomic_result_14 = 0u; + InterlockedOr(x_36, 0, atomic_result_14); + uint atomic_result_15 = 0u; + InterlockedOr(x_37, 0, atomic_result_15); + x_12.Store4(0u, asuint(float4(asfloat(atomic_result_12), asfloat(atomic_result_13), asfloat(atomic_result_14), asfloat(atomic_result_15)))); return; } @@ -125,24 +148,7 @@ struct tint_symbol_1 { }; void main_inner(uint3 x_3_param, uint local_invocation_index) { - if ((local_invocation_index < 1u)) { - uint atomic_result_12 = 0u; - InterlockedExchange(x_34, 0u, atomic_result_12); - uint atomic_result_13 = 0u; - InterlockedExchange(x_35, 0u, atomic_result_13); - uint atomic_result_14 = 0u; - InterlockedExchange(x_36, 0u, atomic_result_14); - uint atomic_result_15 = 0u; - InterlockedExchange(x_37, 0u, atomic_result_15); - } - { - for(uint idx = local_invocation_index; (idx < 4096u); idx = (idx + 32u)) { - const uint i = idx; - const S tint_symbol_3 = (S)0; - x_28[i] = tint_symbol_3; - } - } - GroupMemoryBarrierWithGroupSync(); + tint_zero_workgroup_memory(local_invocation_index); x_3 = x_3_param; main_1(); } @@ -152,8 +158,8 @@ void main(tint_symbol_1 tint_symbol) { main_inner(tint_symbol.x_3_param, tint_symbol.local_invocation_index); return; } - FXC validation failure: - T:\tmp\dawn-temp\dawn-src\test\tint\Shader@0x00000239714DEA80(116,3-139): error X3694: race condition writing to shared resource detected, consider making this write conditional. - T:\tmp\dawn-temp\dawn-src\test\tint\Shader@0x00000239714DEA80(145,3-10): error X3694: error location reached from this location - T:\tmp\dawn-temp\dawn-src\test\tint\Shader@0x00000239714DEA80(150,3-71): error X3694: error location reached from this location +C:\src\dawn\Shader@0x000001ED855A6FD0(139,3-141): error X3694: race condition writing to shared resource detected, consider making this write conditional. +C:\src\dawn\Shader@0x000001ED855A6FD0(151,3-10): error X3694: error location reached from this location +C:\src\dawn\Shader@0x000001ED855A6FD0(156,3-71): error X3694: error location reached from this location + diff --git a/test/tint/bug/tint/2010.spvasm.expected.ir.fxc.hlsl b/test/tint/bug/tint/2010.spvasm.expected.ir.fxc.hlsl index 93c1fad9e6f..1449ddcd1ef 100644 --- a/test/tint/bug/tint/2010.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/bug/tint/2010.spvasm.expected.ir.fxc.hlsl @@ -170,7 +170,7 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001A65ED6E110(130,3-66): error X3694: race condition writing to shared resource detected, consider making this write conditional. -C:\src\dawn\Shader@0x000001A65ED6E110(162,3-10): error X3694: error location reached from this location -C:\src\dawn\Shader@0x000001A65ED6E110(167,3-55): error X3694: error location reached from this location +C:\src\dawn\Shader@0x000001EE6B0D1460(130,3-66): error X3694: race condition writing to shared resource detected, consider making this write conditional. +C:\src\dawn\Shader@0x000001EE6B0D1460(162,3-10): error X3694: error location reached from this location +C:\src\dawn\Shader@0x000001EE6B0D1460(167,3-55): error X3694: error location reached from this location diff --git a/test/tint/bug/tint/2146.wgsl.expected.fxc.hlsl b/test/tint/bug/tint/2146.wgsl.expected.fxc.hlsl index 0438709f50b..86eb6aa512c 100644 --- a/test/tint/bug/tint/2146.wgsl.expected.fxc.hlsl +++ b/test/tint/bug/tint/2146.wgsl.expected.fxc.hlsl @@ -17,12 +17,12 @@ uint globalId2Index() { [numthreads(1, 1, 1)] void main() { vector a = (float16_t(0.0h)).xxxx; - const float16_t b = float16_t(1.0h); - const int tint_symbol_1 = 0; + float16_t b = float16_t(1.0h); + int tint_symbol_1 = 0; set_vector_element(a, tint_symbol_1, (a[tint_symbol_1] + b)); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001DC942B5A50(1,38-46): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001DC942B5A50(2,3-5): error X3004: undeclared identifier 'vec' +C:\src\dawn\Shader@0x0000019081F238D0(1,38-46): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019081F238D0(2,3-5): error X3004: undeclared identifier 'vec' diff --git a/test/tint/bug/tint/2146.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/tint/2146.wgsl.expected.ir.fxc.hlsl index 35ca69c17ad..019568bb9e8 100644 --- a/test/tint/bug/tint/2146.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/tint/2146.wgsl.expected.ir.fxc.hlsl @@ -18,7 +18,7 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AAA696DD10(13,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001AAA696DD10(14,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001AAA696DD10(14,13): error X3000: unrecognized identifier 'b' +C:\src\dawn\Shader@0x00000238C9323FD0(13,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000238C9323FD0(14,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000238C9323FD0(14,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/bug/tint/534.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/tint/534.wgsl.expected.ir.fxc.hlsl index 9fd540c7c7b..8ecba7d57a0 100644 --- a/test/tint/bug/tint/534.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/tint/534.wgsl.expected.ir.fxc.hlsl @@ -73,5 +73,5 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000247B56E0D10(40,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000023250B37BB0(40,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/bug/tint/749.spvasm.expected.dxc.hlsl b/test/tint/bug/tint/749.spvasm.expected.dxc.hlsl index 2c170a68168..49ff2ddaf7a 100644 --- a/test/tint/bug/tint/749.spvasm.expected.dxc.hlsl +++ b/test/tint/bug/tint/749.spvasm.expected.dxc.hlsl @@ -1,1495 +1,7 @@ SKIP: FAILED +error: line:256: ID '172' decorated with NoContraction multiple times is not allowed. + %172 = OpIMul %int %168 %171 -struct QuicksortObject { - numbers : array, -} -struct buf0 { - /* @offset(0) */ - resolution : vec2, -} -var obj : QuicksortObject; - -var gl_FragCoord : vec4; - -@group(0) @binding(0) var x_188 : buf0; - -var x_GLF_color : vec4; - -fn swap_i1_i1_(i : ptr, j : ptr) { - var temp : i32; - let x_932 : i32 = temp; - temp = 0i; - temp = x_932; - let x_523 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).z, vec3(1.0f, 2.0f, 3.0f).y, vec3(1.0f, 2.0f, 3.0f).z); - let x_933 : i32 = *(i); - *(i) = 0i; - *(i) = x_933; - let x_28 : i32 = *(i); - let x_934 : i32 = *(j); - *(j) = 0i; - *(j) = x_934; - let x_524 : vec3 = vec3(x_523.y, x_523.x, x_523.y); - let x_935 : i32 = temp; - temp = 0i; - temp = x_935; - let x_30 : ptr = &(obj.numbers[x_28]); - let x_936 : i32 = *(x_30); - *(x_30) = 0i; - *(x_30) = x_936; - let x_31 : i32 = *(x_30); - let x_937 : i32 = temp; - temp = 0i; - temp = x_937; - temp = x_31; - let x_938 : i32 = *(j); - *(j) = 0i; - *(j) = x_938; - let x_525 : vec3 = vec3(x_523.z, vec3(1.0f, 2.0f, 3.0f).x, x_523.y); - let x_939 : i32 = *(i); - *(i) = 0i; - *(i) = x_939; - let x_32 : i32 = *(i); - let x_940 : i32 = *(x_30); - *(x_30) = 0i; - *(x_30) = x_940; - let x_33 : i32 = *(j); - let x_941 : i32 = *(i); - *(i) = 0i; - *(i) = x_941; - let x_526 : vec3 = vec3(x_525.x, x_525.z, x_525.z); - let x_942 : i32 = *(x_30); - *(x_30) = 0i; - *(x_30) = x_942; - let x_34 : ptr = &(obj.numbers[x_33]); - let x_35 : i32 = *(x_34); - let x_943 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_943; - let x_527 : vec2 = vec2(x_526.x, x_526.x); - let x_36 : ptr = &(obj.numbers[x_32]); - let x_528 : vec3 = vec3(x_524.x, x_524.z, x_524.x); - *(x_36) = x_35; - let x_944 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_944; - let x_529 : vec3 = vec3(x_526.y, x_526.z, x_526.x); - let x_945 : i32 = *(i); - *(i) = 0i; - *(i) = x_945; - let x_37 : i32 = *(j); - let x_946 : i32 = temp; - temp = 0i; - temp = x_946; - let x_530 : vec2 = vec2(x_529.z, x_529.y); - let x_947 : i32 = *(x_34); - *(x_34) = 0i; - *(x_34) = x_947; - let x_38 : i32 = temp; - let x_948 : i32 = *(j); - *(j) = 0i; - *(j) = x_948; - let x_531 : vec3 = vec3(x_527.x, x_526.y, x_526.x); - let x_949 : i32 = *(x_36); - *(x_36) = 0i; - *(x_36) = x_949; - let x_950 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_950; - let x_532 : vec3 = vec3(x_528.x, x_528.y, x_528.x); - let x_951 : i32 = *(x_34); - *(x_34) = 0i; - *(x_34) = x_951; - obj.numbers[x_37] = x_38; - return; -} - -fn performPartition_i1_i1_(l : ptr, h : ptr) -> i32 { - var param_3 : i32; - var i_1 : i32; - var j_1 : i32; - var param_2 : i32; - var param_1 : i32; - var param : i32; - var pivot : i32; - var x_537 : vec2; - var x_538 : vec3; - let x_952 : i32 = *(h); - *(h) = 0i; - *(h) = x_952; - let x_41 : i32 = *(h); - let x_953 : i32 = *(l); - *(l) = 0i; - *(l) = x_953; - let x_42 : ptr = &(obj.numbers[x_41]); - let x_954 : i32 = *(x_42); - *(x_42) = 0i; - *(x_42) = x_954; - let x_43 : i32 = *(x_42); - let x_955 : i32 = param_3; - param_3 = 0i; - param_3 = x_955; - let x_534 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).z, vec3(1.0f, 2.0f, 3.0f).x, vec3(1.0f, 2.0f, 3.0f).z); - let x_956 : i32 = param_1; - param_1 = 0i; - param_1 = x_956; - pivot = x_43; - let x_45 : i32 = *(l); - let x_957 : i32 = *(h); - *(h) = 0i; - *(h) = x_957; - let x_958 : i32 = j_1; - j_1 = 0i; - j_1 = x_958; - let x_535 : vec3 = vec3(x_534.y, x_534.z, x_534.y); - let x_959 : i32 = *(l); - *(l) = 0i; - *(l) = x_959; - i_1 = (x_45 - bitcast(1u)); - let x_49 : i32 = *(l); - let x_536 : vec3 = vec3(x_534.x, x_534.z, x_535.x); - j_1 = 10i; - let x_960 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_960; - loop { - var x_61 : ptr; - var x_539 : vec3; - var x_541 : vec3; - let x_961 : i32 = pivot; - pivot = 0i; - pivot = x_961; - let x_962 : i32 = param_1; - param_1 = 0i; - param_1 = x_962; - let x_55 : i32 = j_1; - let x_963 : i32 = pivot; - pivot = 0i; - pivot = x_963; - x_537 = vec2(vec3(1.0f, 2.0f, 3.0f).y, vec3(1.0f, 2.0f, 3.0f).z); - let x_964 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_964; - let x_56 : i32 = *(h); - let x_965 : i32 = *(h); - *(h) = 0i; - *(h) = x_965; - let x_966 : i32 = param; - param = 0i; - param = x_966; - let x_967 : i32 = j_1; - j_1 = 0i; - j_1 = x_967; - x_538 = vec3(x_534.x, x_537.y, x_534.z); - let x_968 : i32 = param; - param = 0i; - param = x_968; - if ((x_55 <= (x_56 - bitcast(1u)))) { - } else { - break; - } - let x_60 : i32 = j_1; - let x_969 : i32 = *(x_42); - *(x_42) = 0i; - *(x_42) = x_969; - x_61 = obj.numbers[x_60]; - let x_970 : i32 = *(h); - *(h) = 0i; - *(h) = x_970; - x_539 = vec3(x_537.x, x_535.z, x_537.x); - let x_971 : i32 = param_1; - param_1 = 0i; - param_1 = x_971; - let x_62 : ptr = x_61; - let x_972 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_972; - let x_63 : i32 = pivot; - let x_540 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).y, x_534.z); - let x_973 : i32 = i_1; - i_1 = 0i; - i_1 = x_973; - let x_974 : i32 = *(l); - *(l) = 0i; - *(l) = x_974; - x_541 = vec3(x_534.y, x_534.x, x_534.y); - let x_975 : i32 = pivot; - pivot = 0i; - pivot = x_975; - if ((x_62 <= x_63)) { - let x_542 : vec3 = vec3(x_541.z, x_541.x, x_541.x); - let x_976 : i32 = param_3; - param_3 = 0i; - param_3 = x_976; - let x_67 : i32 = i_1; - let x_977 : i32 = pivot; - pivot = 0i; - pivot = x_977; - let x_543 : vec2 = vec2(x_539.x, x_541.y); - let x_978 : i32 = i_1; - i_1 = 0i; - i_1 = x_978; - let x_979 : i32 = param; - param = 0i; - param = x_979; - i_1 = (x_67 + bitcast(1u)); - let x_980 : i32 = *(l); - *(l) = 0i; - *(l) = x_980; - let x_544 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).z, vec3(1.0f, 2.0f, 3.0f).y, x_540.x); - let x_70 : i32 = i_1; - let x_545 : vec2 = vec2(x_537.y, x_538.x); - let x_981 : i32 = param; - param = 0i; - param = x_981; - param = x_70; - let x_982 : i32 = param; - param = 0i; - param = x_982; - let x_546 : vec2 = vec2(x_545.x, x_545.x); - let x_983 : i32 = i_1; - i_1 = 0i; - i_1 = x_983; - let x_72 : i32 = j_1; - param_1 = x_72; - let x_984 : i32 = param_3; - param_3 = 0i; - param_3 = x_984; - swap_i1_i1_(&(param), &(param_1)); - let x_985 : i32 = param_1; - param_1 = 0i; - param_1 = x_985; - } - let x_986 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_986; - - continuing { - let x_987 : i32 = *(h); - *(h) = 0i; - *(h) = x_987; - let x_74 : i32 = j_1; - let x_988 : i32 = *(h); - *(h) = 0i; - *(h) = x_988; - let x_547 : vec3 = vec3(x_539.x, x_541.z, x_541.z); - let x_989 : ptr = x_61; - x_61 = 0i; - x_61 = x_989; - let x_990 : i32 = param; - param = 0i; - param = x_990; - j_1 = (1i + x_74); - let x_991 : i32 = param_1; - param_1 = 0i; - param_1 = x_991; - let x_548 : vec3 = vec3(x_541.y, x_541.z, x_541.x); - let x_992 : ptr = x_61; - x_61 = 0i; - x_61 = x_992; - } - } - let x_76 : i32 = i_1; - let x_993 : i32 = *(x_42); - *(x_42) = 0i; - *(x_42) = x_993; - let x_549 : vec2 = vec2(x_534.x, x_534.y); - let x_994 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_994; - let x_995 : i32 = *(h); - *(h) = 0i; - *(h) = x_995; - i_1 = (1i + x_76); - let x_996 : i32 = param_1; - param_1 = 0i; - param_1 = x_996; - let x_79 : i32 = i_1; - let x_997 : i32 = j_1; - j_1 = 0i; - j_1 = x_997; - let x_550 : vec2 = vec2(x_534.x, x_534.x); - let x_998 : i32 = param_1; - param_1 = 0i; - param_1 = x_998; - param_2 = x_79; - let x_551 : vec2 = vec2(x_534.y, x_536.x); - let x_999 : i32 = pivot; - pivot = 0i; - pivot = x_999; - let x_81 : i32 = *(h); - let x_552 : vec2 = vec2(x_550.x, x_549.y); - let x_1000 : i32 = *(h); - *(h) = 0i; - *(h) = x_1000; - param_3 = x_81; - let x_1001 : i32 = i_1; - i_1 = 0i; - i_1 = x_1001; - let x_553 : vec2 = vec2(x_549.y, x_552.x); - let x_1002 : i32 = *(h); - *(h) = 0i; - *(h) = x_1002; - swap_i1_i1_(&(param_2), &(param_3)); - let x_1003 : i32 = *(l); - *(l) = 0i; - *(l) = x_1003; - let x_554 : vec2 = vec2(x_536.z, vec3(1.0f, 2.0f, 3.0f).y); - let x_1004 : i32 = param_1; - param_1 = 0i; - param_1 = x_1004; - let x_83 : i32 = i_1; - let x_1005 : i32 = param; - param = 0i; - param = x_1005; - let x_555 : vec2 = vec2(x_534.y, x_534.x); - let x_1006 : i32 = j_1; - j_1 = 0i; - j_1 = x_1006; - return x_83; -} - -fn quicksort_() { - var param_4 : i32; - var h_1 : i32; - var p : i32; - var l_1 : i32; - var top : i32; - var stack : array; - var param_5 : i32; - l_1 = 0i; - let x_1007 : i32 = param_5; - param_5 = 0i; - param_5 = x_1007; - h_1 = 9i; - let x_1008 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1008; - let x_556 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).y, vec3(1.0f, 2.0f, 3.0f).y); - let x_1009 : i32 = param_5; - param_5 = 0i; - param_5 = x_1009; - top = -1i; - let x_1010 : i32 = p; - p = 0i; - p = x_1010; - let x_93 : i32 = top; - let x_557 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).x, vec3(1.0f, 2.0f, 3.0f).x); - let x_1011 : i32 = p; - p = 0i; - p = x_1011; - let x_94 : i32 = (x_93 + bitcast(1u)); - let x_1012 : i32 = top; - top = 0i; - top = x_1012; - let x_558 : vec2 = vec2(x_556.y, x_557.y); - let x_1013 : i32 = param_4; - param_4 = 0i; - param_4 = x_1013; - top = x_94; - let x_1014 : i32 = h_1; - h_1 = 0i; - h_1 = x_1014; - let x_559 : vec3 = vec3(x_557.y, x_557.x, x_557.x); - let x_1015 : i32 = param_4; - param_4 = 0i; - param_4 = x_1015; - let x_95 : i32 = l_1; - let x_1016 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_1016; - let x_560 : vec3 = vec3(x_559.y, x_559.x, x_557.x); - let x_96 : ptr = &(stack[x_94]); - let x_1017 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1017; - let x_561 : vec3 = vec3(x_556.y, x_556.y, x_556.y); - let x_1018 : i32 = l_1; - l_1 = 0i; - l_1 = 0i; - *(x_96) = x_95; - let x_1019 : i32 = param_5; - param_5 = 0i; - param_5 = x_1019; - let x_97 : i32 = top; - let x_1020 : i32 = param_4; - param_4 = 0i; - param_4 = x_1020; - let x_562 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).z, x_558.y, vec3(1.0f, 2.0f, 3.0f).y); - let x_1021 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1021; - let x_98 : i32 = (x_97 + 1i); - let x_1022 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1022; - let x_563 : vec3 = vec3(x_559.x, x_559.z, x_556.y); - top = x_98; - let x_1023 : i32 = param_4; - param_4 = 0i; - param_4 = x_1023; - let x_99 : i32 = h_1; - let x_1024 : i32 = param_4; - param_4 = 0i; - param_4 = x_1024; - let x_564 : vec3 = vec3(x_558.x, x_561.x, x_558.y); - let x_1025 : i32 = l_1; - l_1 = 0i; - l_1 = x_1025; - let x_100 : ptr = &(stack[x_98]); - let x_1026 : i32 = param_5; - param_5 = 0i; - param_5 = x_1026; - let x_565 : vec2 = vec2(x_564.z, x_564.z); - let x_1027 : i32 = p; - p = 0i; - p = x_1027; - *(x_100) = x_99; - loop { - let x_566 : vec3 = vec3(x_563.x, x_563.x, x_563.x); - let x_1028 : i32 = h_1; - h_1 = 0i; - h_1 = x_1028; - let x_1029 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1029; - let x_106 : i32 = top; - let x_1030 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1030; - let x_567 : vec2 = vec2(x_558.x, x_564.z); - let x_1031 : i32 = param_4; - param_4 = 0i; - param_4 = x_1031; - if ((x_106 >= bitcast(0u))) { - } else { - break; - } - let x_1032 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_1032; - let x_568 : vec3 = vec3(x_559.y, x_559.x, x_563.y); - let x_1033 : i32 = param_4; - param_4 = 0i; - param_4 = x_1033; - let x_108 : i32 = top; - let x_569 : vec3 = vec3(x_565.x, x_567.y, x_565.x); - let x_1034 : i32 = h_1; - h_1 = 0i; - h_1 = x_1034; - let x_570 : vec2 = vec2(x_556.x, x_556.x); - let x_1035 : i32 = p; - p = 0i; - p = x_1035; - top = (x_108 - bitcast(1u)); - let x_1036 : i32 = p; - p = 0i; - p = x_1036; - let x_110 : ptr = &(stack[x_108]); - let x_1037 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1037; - let x_111 : i32 = *(x_110); - let x_1038 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1038; - let x_571 : vec3 = vec3(x_559.y, x_559.x, x_564.y); - let x_1039 : i32 = l_1; - l_1 = 0i; - l_1 = x_1039; - h_1 = x_111; - let x_1040 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1040; - let x_572 : vec2 = vec2(x_562.y, x_561.y); - let x_1041 : i32 = p; - p = 0i; - p = x_1041; - let x_112 : i32 = top; - let x_1042 : i32 = param_4; - param_4 = 0i; - param_4 = x_1042; - let x_1043 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1043; - let x_573 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).y, vec3(1.0f, 2.0f, 3.0f).z); - top = (x_112 - 1i); - let x_1044 : i32 = param_5; - param_5 = 0i; - param_5 = x_1044; - let x_574 : vec3 = vec3(x_570.y, x_565.x, x_570.y); - let x_1045 : i32 = h_1; - h_1 = 0i; - h_1 = x_1045; - let x_114 : ptr = &(stack[x_112]); - let x_575 : vec2 = vec2(x_564.y, x_564.z); - let x_1046 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1046; - let x_115 : i32 = *(x_114); - let x_1047 : i32 = p; - p = 0i; - p = x_1047; - let x_576 : vec3 = vec3(x_573.y, x_573.y, x_565.x); - let x_1048 : i32 = param_5; - param_5 = 0i; - param_5 = x_1048; - l_1 = x_115; - let x_1049 : i32 = top; - top = 0i; - top = x_1049; - let x_118 : i32 = l_1; - param_4 = x_118; - let x_1050 : i32 = *(x_110); - *(x_110) = 0i; - *(x_110) = x_1050; - let x_577 : vec2 = vec2(x_569.y, x_569.z); - let x_120 : i32 = h_1; - let x_578 : vec2 = vec2(x_558.x, vec3(1.0f, 2.0f, 3.0f).y); - param_5 = x_120; - let x_1051 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1051; - let x_121 : i32 = performPartition_i1_i1_(&(param_4), &(param_5)); - let x_579 : vec2 = vec2(x_567.x, x_568.x); - let x_1052 : i32 = param_5; - param_5 = 0i; - param_5 = x_1052; - p = x_121; - let x_1053 : i32 = param_4; - param_4 = 0i; - param_4 = x_1053; - let x_122 : i32 = p; - let x_1054 : i32 = h_1; - h_1 = 0i; - h_1 = x_1054; - let x_580 : vec2 = vec2(x_568.y, x_568.y); - let x_1055 : i32 = l_1; - l_1 = 0i; - l_1 = x_1055; - let x_1056 : i32 = h_1; - h_1 = 0i; - h_1 = x_1056; - let x_124 : i32 = l_1; - let x_1057 : i32 = *(x_110); - *(x_110) = 0i; - *(x_110) = x_1057; - let x_1058 : i32 = h_1; - h_1 = 0i; - h_1 = x_1058; - let x_582 : vec2 = vec2(x_567.y, x_573.x); - let x_1059 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1059; - if (((x_122 - bitcast(1u)) > x_124)) { - let x_1060 : i32 = param_4; - param_4 = 0i; - param_4 = x_1060; - let x_128 : i32 = top; - let x_583 : vec2 = vec2(x_571.y, x_556.y); - let x_1061 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1061; - let x_1062 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1062; - let x_584 : vec2 = vec2(x_569.z, x_569.y); - let x_585 : vec3 = vec3(x_580.y, x_577.x, x_577.x); - let x_130 : i32 = l_1; - let x_1063 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1063; - let x_586 : vec2 = vec2(x_564.x, x_585.x); - let x_1064 : i32 = param_5; - param_5 = 0i; - param_5 = x_1064; - let x_131 : ptr = &(stack[(1i + x_128)]); - let x_1065 : i32 = *(x_110); - *(x_110) = 0i; - *(x_110) = x_1065; - let x_587 : vec3 = vec3(x_566.y, x_566.y, x_563.x); - let x_1066 : i32 = param_5; - param_5 = 0i; - param_5 = x_1066; - *(x_131) = x_130; - let x_132 : i32 = top; - let x_1067 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1067; - let x_588 : vec2 = vec2(x_575.y, x_575.x); - let x_1068 : i32 = *(x_131); - *(x_131) = 0i; - *(x_131) = x_1068; - let x_133 : i32 = bitcast((1u + bitcast(x_132))); - let x_1069 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1069; - let x_589 : vec3 = vec3(x_576.z, x_588.y, x_576.z); - let x_1070 : i32 = h_1; - h_1 = 0i; - h_1 = x_1070; - top = x_133; - let x_1071 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1071; - let x_134 : i32 = p; - let x_590 : vec2 = vec2(x_576.x, x_573.y); - let x_1072 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1072; - let x_136 : ptr = &(stack[x_133]); - let x_1073 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1073; - *(x_136) = (x_134 - bitcast(1u)); - let x_1074 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1074; - let x_591 : vec2 = vec2(x_569.z, x_569.y); - let x_1075 : i32 = *(x_136); - *(x_136) = 0i; - *(x_136) = x_1075; - } - let x_1076 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1076; - let x_592 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).x, vec3(1.0f, 2.0f, 3.0f).y); - let x_1077 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_1077; - let x_137 : i32 = p; - let x_1078 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1078; - let x_593 : vec3 = vec3(x_571.z, x_556.x, x_556.y); - let x_1079 : i32 = p; - p = 0i; - p = x_1079; - let x_594 : vec3 = vec3(x_563.z, x_563.x, x_575.x); - let x_1080 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1080; - let x_139 : i32 = h_1; - let x_1081 : i32 = top; - top = 0i; - top = x_1081; - let x_595 : vec3 = vec3(x_560.z, x_568.x, x_560.x); - let x_1082 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1082; - let x_1083 : i32 = p; - p = 0i; - p = x_1083; - if ((bitcast((1u + bitcast(x_137))) < x_139)) { - let x_1084 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1084; - let x_596 : vec2 = vec2(x_592.y, x_582.x); - let x_1085 : i32 = l_1; - l_1 = 0i; - l_1 = x_1085; - let x_143 : i32 = top; - let x_1086 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1086; - let x_597 : vec3 = vec3(x_562.y, x_560.y, x_560.y); - let x_144 : i32 = (x_143 + 1i); - let x_1087 : i32 = param_5; - param_5 = 0i; - param_5 = x_1087; - top = x_144; - let x_1088 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1088; - let x_145 : i32 = p; - let x_1089 : i32 = param_5; - param_5 = 0i; - param_5 = x_1089; - let x_599 : vec3 = vec3(x_560.z, x_560.x, x_568.x); - let x_1090 : i32 = p; - p = 0i; - p = x_1090; - let x_600 : vec3 = vec3(x_556.x, x_580.x, x_580.x); - let x_1091 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1091; - let x_147 : ptr = &(stack[x_144]); - let x_1092 : i32 = *(x_110); - *(x_110) = 0i; - *(x_110) = x_1092; - let x_601 : vec2 = vec2(x_563.x, x_563.y); - *(x_147) = bitcast((1u + bitcast(x_145))); - let x_1093 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1093; - let x_148 : i32 = top; - let x_1094 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1094; - let x_602 : vec2 = vec2(x_565.y, x_599.y); - let x_1095 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1095; - let x_149 : i32 = (x_148 + bitcast(1u)); - let x_1096 : i32 = *(x_147); - *(x_147) = 0i; - *(x_147) = x_1096; - top = x_149; - let x_1097 : i32 = param_4; - param_4 = 0i; - param_4 = x_1097; - let x_150 : i32 = h_1; - let x_1098 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1098; - let x_1099 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1099; - stack[x_149] = x_150; - let x_1100 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1100; - let x_603 : vec3 = vec3(x_568.y, x_564.x, x_564.x); - let x_1101 : i32 = l_1; - l_1 = 0i; - l_1 = x_1101; - } - let x_1102 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1102; - - continuing { - let x_1103 : i32 = l_1; - l_1 = 0i; - l_1 = x_1103; - let x_604 : vec2 = vec2(x_563.z, x_564.x); - let x_1104 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_1104; - } - } - let x_1105 : i32 = h_1; - h_1 = 0i; - h_1 = x_1105; - return; -} - -fn main_1() { - var color : vec3; - var i_2 : i32; - var uv : vec2; - let x_717 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_717; - i_2 = 0i; - let x_721 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_721; - if (true) { - let x_722 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_722; - let x_431 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).x, vec3(1.0f, 2.0f, 3.0f).x); - let x_158 : i32 = i_2; - let x_723 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_723; - let x_725 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_725; - let x_432 : vec2 = vec2(x_431.y, x_431.y); - let x_726 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_726; - } - let x_756 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_756; - let x_446 : vec2 = vec2(vec2().x, vec2().x); - let x_757 : i32 = i_2; - i_2 = 0i; - i_2 = x_757; - quicksort_(); - let x_758 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_758; - let x_184 : vec4 = gl_FragCoord; - let x_759 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_759; - let x_447 : vec2 = vec2(vec2().y, vec2().y); - let x_760 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_760; - let x_185 : vec2 = vec2(x_184.x, x_184.y); - let x_448 : vec3 = vec3(x_185.y, x_446.y, x_446.y); - let x_761 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_761; - let x_762 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_762; - let x_191 : vec2 = x_188.resolution; - let x_763 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_763; - let x_449 : vec3 = vec3(x_184.y, vec3(1.0f, 2.0f, 3.0f).z, x_184.w); - let x_764 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_764; - let x_192 : vec2 = (x_185 / x_191); - let x_765 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_765; - let x_450 : vec2 = vec2(x_447.x, x_185.y); - let x_766 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - let x_767 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_767; - color = x_766; - uv = x_192; - color = vec3(1.0f, 2.0f, 3.0f); - let x_768 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_768; - let x_451 : vec3 = vec3(x_185.x, x_185.y, x_446.y); - let x_769 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_769; - let x_200 : ptr = &(obj.numbers[0u]); - let x_770 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_770; - let x_201 : i32 = *(x_200); - let x_771 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_771; - let x_772 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_772; - let x_206 : f32 = color.x; - let x_773 : f32 = color.x; - color.x = 0.0f; - color.x = x_773; - let x_452 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).z, vec3(1.0f, 2.0f, 3.0f).y); - let x_774 : i32 = i_2; - i_2 = 0i; - i_2 = x_774; - let x_775 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_775; - let x_453 : vec3 = vec3(x_451.x, x_450.x, x_450.y); - color.x = (x_206 + f32(x_201)); - let x_776 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_776; - let x_777 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_777; - let x_454 : vec2 = vec2(x_184.y, x_184.y); - let x_210 : f32 = uv.x; - let x_455 : vec2 = vec2(x_192.y, x_192.x); - let x_778 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_778; - let x_779 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_779; - if ((x_210 > 0.25f)) { - let x_780 : i32 = i_2; - i_2 = 0i; - i_2 = x_780; - let x_781 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_781; - let x_456 : vec3 = vec3(vec2().y, x_448.y, x_448.y); - let x_782 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_782; - let x_216 : i32 = obj.numbers[1i]; - let x_783 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_783; - let x_457 : vec2 = vec2(x_454.x, x_454.x); - let x_784 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_784; - let x_785 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_785; - let x_458 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).z, vec2().y); - let x_786 : i32 = i_2; - i_2 = 0i; - i_2 = x_786; - let x_219 : f32 = color[0i]; - let x_787 : f32 = color[0i]; - color[0i] = 0.0f; - color[0i] = x_787; - let x_788 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_788; - let x_789 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_789; - let x_459 : vec3 = vec3(x_454.y, x_454.y, x_447.y); - let x_790 : f32 = color[0i]; - color[0i] = 0.0f; - color[0i] = x_790; - color.x = (f32(x_216) + x_219); - let x_791 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_791; - } - let x_792 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_792; - let x_793 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_793; - let x_223 : f32 = uv.x; - let x_794 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_794; - let x_460 : vec3 = vec3(x_453.z, x_453.y, x_453.y); - let x_795 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_795; - let x_796 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_796; - let x_461 : vec2 = vec2(vec2().y, vec2().y); - let x_797 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_797; - if ((x_223 > 0.5f)) { - let x_798 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_798; - let x_462 : vec2 = vec2(x_446.x, x_446.x); - let x_799 : f32 = color.x; - color.x = 0.0f; - color.x = x_799; - let x_229 : ptr = &(obj.numbers[2u]); - let x_800 : f32 = color.x; - color.x = 0.0f; - color.x = x_800; - let x_463 : vec3 = vec3(x_453.x, x_453.z, x_461.y); - let x_801 : f32 = color.x; - color.x = 0.0f; - color.x = x_801; - let x_230 : i32 = *(x_229); - let x_802 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_802; - let x_803 : f32 = color.x; - color.x = 0.0f; - color.x = x_803; - let x_804 : i32 = *(x_229); - *(x_229) = 0i; - *(x_229) = x_804; - let x_464 : vec2 = vec2(x_450.y, x_191.x); - let x_805 : f32 = color.y; - color.y = 0.0f; - color.y = x_805; - let x_234 : f32 = color.y; - let x_806 : i32 = *(x_229); - *(x_229) = 0i; - *(x_229) = x_806; - let x_465 : vec2 = vec2(x_463.x, x_185.x); - let x_807 : f32 = color.x; - color.x = 0.0f; - color.x = x_807; - let x_808 : i32 = i_2; - i_2 = 0i; - i_2 = x_808; - let x_466 : vec2 = vec2(x_455.y, vec2().y); - let x_809 : i32 = i_2; - i_2 = 0i; - i_2 = x_809; - color.y = (f32(x_230) + x_234); - let x_810 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_810; - } - let x_811 : i32 = i_2; - i_2 = 0i; - i_2 = x_811; - let x_467 : vec2 = vec2(x_191.x, x_191.x); - let x_812 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_812; - let x_238 : f32 = uv[0i]; - let x_813 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_813; - let x_814 : f32 = color.x; - color.x = 0.0f; - color.x = x_814; - if ((x_238 > 0.75f)) { - let x_815 : f32 = color.x; - color.x = 0.0f; - color.x = x_815; - let x_245 : i32 = obj.numbers[3i]; - let x_816 : f32 = color.x; - color.x = 0.0f; - color.x = x_816; - let x_817 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_817; - let x_468 : vec3 = vec3(x_467.x, x_467.x, x_467.x); - let x_818 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_818; - let x_819 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_819; - let x_249 : f32 = color.z; - let x_820 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_820; - let x_469 : vec3 = vec3(x_467.x, x_191.y, x_467.y); - let x_821 : f32 = color.z; - color.z = 0.0f; - color.z = x_821; - let x_822 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_822; - let x_470 : vec2 = vec2(vec2().x, vec2().y); - let x_823 : f32 = color.z; - color.z = 0.0f; - color.z = x_823; - color.z = (x_249 + f32(x_245)); - let x_824 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_824; - let x_471 : vec2 = vec2(x_470.y, x_470.y); - } - let x_825 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_825; - let x_472 : vec3 = vec3(x_454.x, x_454.y, x_454.y); - let x_253 : ptr = &(obj.numbers[4i]); - let x_254 : i32 = *(x_253); - let x_826 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_826; - let x_827 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_827; - let x_473 : vec3 = vec3(x_446.y, x_453.x, x_453.x); - let x_828 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_828; - let x_474 : vec2 = vec2(x_191.x, x_184.z); - let x_829 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_829; - let x_257 : f32 = color.y; - let x_830 : f32 = color.y; - color.y = 0.0f; - color.y = x_830; - let x_475 : vec2 = vec2(x_467.x, x_450.x); - let x_831 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_831; - let x_832 : f32 = color.x; - color.x = 0.0f; - color.x = x_832; - let x_476 : vec2 = vec2(x_451.z, x_460.y); - color.y = (x_257 + f32(x_254)); - let x_477 : vec3 = vec3(vec2().x, x_472.x, vec2().y); - let x_833 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_833; - let x_834 : f32 = color.x; - color.x = 0.0f; - color.x = x_834; - let x_478 : vec2 = vec2(x_472.x, x_472.y); - let x_835 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_835; - let x_261 : f32 = uv.y; - let x_836 : i32 = i_2; - i_2 = 0i; - i_2 = x_836; - let x_479 : vec3 = vec3(vec2().y, x_454.y, vec2().x); - let x_837 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_837; - let x_838 : f32 = color.y; - color.y = 0.0f; - color.y = x_838; - let x_480 : vec3 = vec3(x_446.x, x_446.x, vec2().y); - let x_839 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_839; - if ((x_261 > 0.25f)) { - let x_481 : vec2 = vec2(x_447.x, x_480.z); - let x_840 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_840; - let x_267 : i32 = obj.numbers[5u]; - let x_841 : f32 = color.x; - color.x = 0.0f; - color.x = x_841; - let x_842 : i32 = i_2; - i_2 = 0i; - i_2 = x_842; - let x_843 : i32 = i_2; - i_2 = 0i; - i_2 = x_843; - let x_270 : f32 = color.x; - let x_844 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_844; - let x_482 : vec3 = vec3(x_455.x, x_475.y, x_455.y); - let x_845 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_845; - let x_846 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_846; - let x_847 : i32 = i_2; - i_2 = 0i; - i_2 = x_847; - let x_483 : vec3 = vec3(x_184.w, x_184.w, x_192.x); - let x_848 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_848; - color.x = (f32(x_267) + x_270); - let x_484 : vec3 = vec3(x_454.y, x_450.x, x_454.y); - let x_849 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_849; - } - let x_850 : f32 = color.x; - color.x = 0.0f; - color.x = x_850; - let x_485 : vec3 = vec3(x_467.x, x_450.y, x_450.x); - let x_851 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_851; - let x_852 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_852; - let x_274 : f32 = uv.y; - let x_853 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_853; - if ((x_274 > 0.5f)) { - let x_854 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_854; - let x_486 : vec2 = vec2(x_480.y, x_455.y); - let x_279 : ptr = &(obj.numbers[6u]); - let x_855 : f32 = color.y; - color.y = 0.0f; - color.y = x_855; - let x_487 : vec2 = vec2(x_449.z, x_449.y); - let x_856 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_856; - let x_280 : i32 = *(x_279); - let x_857 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_857; - let x_858 : i32 = i_2; - i_2 = 0i; - i_2 = x_858; - let x_859 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_859; - let x_488 : vec2 = vec2(x_473.z, x_473.y); - let x_283 : f32 = color.y; - let x_860 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_860; - let x_861 : f32 = color.x; - color.x = 0.0f; - color.x = x_861; - let x_489 : vec2 = vec2(x_475.y, x_475.x); - let x_862 : i32 = *(x_279); - *(x_279) = 0i; - *(x_279) = x_862; - let x_863 : i32 = *(x_279); - *(x_279) = 0i; - *(x_279) = x_863; - let x_490 : vec2 = vec2(x_480.z, x_480.z); - let x_864 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_864; - color.y = (f32(x_280) + x_283); - let x_865 : f32 = color.x; - color.x = 0.0f; - color.x = x_865; - let x_491 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).y, x_454.x); - let x_866 : f32 = color.y; - color.y = 0.0f; - color.y = x_866; - } - let x_492 : vec2 = vec2(x_455.y, x_455.y); - let x_867 : f32 = color.x; - color.x = 0.0f; - color.x = x_867; - let x_287 : f32 = uv.y; - let x_868 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_868; - let x_493 : vec2 = vec2(x_475.x, x_475.y); - let x_869 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_869; - let x_870 : f32 = color.y; - color.y = 0.0f; - color.y = x_870; - let x_494 : vec3 = vec3(x_191.x, x_191.y, x_191.y); - let x_871 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_871; - if ((x_287 > 0.75f)) { - let x_872 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_872; - let x_873 : f32 = color.x; - color.x = 0.0f; - color.x = x_873; - let x_495 : vec3 = vec3(x_192.y, x_192.x, x_192.y); - let x_874 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_874; - let x_293 : i32 = obj.numbers[7i]; - let x_875 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_875; - let x_496 : vec3 = vec3(x_475.x, x_467.y, x_467.x); - let x_876 : f32 = color.y; - color.y = 0.0f; - color.y = x_876; - let x_497 : vec2 = vec2(x_477.x, x_461.y); - let x_877 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_877; - let x_878 : f32 = color.y; - color.y = 0.0f; - color.y = x_878; - let x_498 : vec3 = vec3(x_478.x, x_478.y, x_478.x); - let x_879 : f32 = color.x; - color.x = 0.0f; - color.x = x_879; - let x_296 : f32 = color.z; - let x_880 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_880; - let x_499 : vec2 = vec2(x_184.x, x_184.y); - let x_881 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_881; - let x_882 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_882; - let x_883 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_883; - let x_500 : vec3 = vec3(x_499.y, x_499.y, x_494.z); - let x_884 : f32 = color.z; - color.z = 0.0f; - color.z = x_884; - color.z = (f32(x_293) + x_296); - let x_885 : f32 = color.y; - color.y = 0.0f; - color.y = x_885; - let x_501 : vec2 = vec2(x_453.x, x_453.z); - let x_886 : f32 = color.x; - color.x = 0.0f; - color.x = x_886; - } - let x_887 : i32 = i_2; - i_2 = 0i; - i_2 = x_887; - let x_502 : vec2 = vec2(x_451.y, x_192.y); - let x_888 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_888; - let x_300 : ptr = &(obj.numbers[8i]); - let x_301 : i32 = *(x_300); - let x_889 : i32 = i_2; - i_2 = 0i; - i_2 = x_889; - let x_503 : vec2 = vec2(x_185.x, x_451.z); - let x_890 : i32 = *(x_300); - *(x_300) = 0i; - *(x_300) = x_890; - let x_891 : f32 = color.y; - color.y = 0.0f; - color.y = x_891; - let x_504 : vec2 = vec2(x_453.y, vec2().x); - let x_892 : f32 = color.x; - color.x = 0.0f; - color.x = x_892; - let x_505 : vec3 = vec3(x_504.x, x_504.y, x_504.x); - let x_893 : f32 = color.z; - color.z = 0.0f; - color.z = x_893; - let x_304 : f32 = color.z; - let x_894 : f32 = color.x; - color.x = 0.0f; - color.x = x_894; - let x_506 : vec2 = vec2(x_493.x, x_492.x); - let x_895 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_895; - let x_896 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_896; - let x_507 : vec2 = vec2(x_461.x, x_447.x); - let x_897 : f32 = color.y; - color.y = 0.0f; - color.y = x_897; - color.z = (x_304 + f32(x_301)); - let x_898 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_898; - let x_899 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_899; - let x_508 : vec3 = vec3(x_461.y, x_461.x, x_506.y); - let x_900 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_900; - let x_308 : f32 = uv.x; - let x_901 : f32 = color.y; - color.y = 0.0f; - color.y = x_901; - let x_509 : vec3 = vec3(x_503.y, x_503.x, x_448.z); - let x_902 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_902; - let x_310 : f32 = uv.y; - let x_903 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_903; - let x_904 : f32 = color.z; - color.z = 0.0f; - color.z = x_904; - let x_510 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).y, x_485.y, x_485.z); - let x_905 : f32 = color.z; - color.z = 0.0f; - color.z = x_905; - let x_906 : i32 = i_2; - i_2 = 0i; - i_2 = x_906; - let x_511 : vec2 = vec2(x_485.z, x_485.y); - let x_907 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_907; - let x_908 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_908; - let x_512 : vec3 = vec3(x_455.y, x_455.y, x_455.y); - let x_909 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_909; - if ((abs((x_308 - x_310)) < 0.25f)) { - let x_910 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_910; - let x_911 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_911; - let x_513 : vec3 = vec3(x_505.z, x_505.x, x_448.x); - let x_912 : i32 = *(x_300); - *(x_300) = 0i; - *(x_300) = x_912; - let x_317 : i32 = obj.numbers[9u]; - let x_514 : vec3 = vec3(x_474.y, x_474.y, x_474.y); - let x_913 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_913; - let x_320 : f32 = color.x; - let x_914 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_914; - let x_515 : vec2 = vec2(x_502.x, x_502.y); - let x_915 : f32 = color.x; - color.x = 0.0f; - color.x = x_915; - let x_916 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_916; - let x_516 : vec2 = vec2(x_452.x, x_452.x); - let x_917 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_917; - let x_918 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_918; - let x_517 : vec3 = vec3(vec2().x, vec2().x, vec2().y); - color.x = (f32(x_317) + x_320); - let x_919 : f32 = color.x; - color.x = 0.0f; - color.x = x_919; - let x_518 : vec3 = vec3(x_480.y, x_508.x, x_480.x); - let x_920 : f32 = color.x; - color.x = 0.0f; - color.x = x_920; - } - let x_921 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_921; - let x_325 : vec3 = color; - let x_922 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_922; - let x_519 : vec3 = vec3(x_447.x, x_446.x, x_446.y); - let x_326 : vec3 = normalize(x_325); - let x_923 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_923; - let x_924 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_924; - let x_925 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_925; - let x_926 : f32 = color.y; - color.y = 0.0f; - color.y = x_926; - let x_520 : vec2 = vec2(x_506.y, x_519.y); - let x_927 : f32 = color.y; - color.y = 0.0f; - color.y = x_927; - let x_330 : vec4 = vec4(x_326.x, x_326.y, x_326.z, 1.0f); - let x_928 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_928; - let x_521 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).y, vec3(1.0f, 2.0f, 3.0f).y, x_520.y); - let x_929 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_929; - x_GLF_color = x_330; - let x_930 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_930; - let x_522 : vec3 = vec3(x_330.w, x_330.y, x_493.x); - let x_931 : f32 = color.x; - color.x = 0.0f; - color.x = x_931; - return; -} - -struct main_out { - @location(0) - x_GLF_color_1 : vec4, -} - -@fragment -fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { - gl_FragCoord = gl_FragCoord_param; - main_1(); - return main_out(x_GLF_color); -} - -error: function-scope 'var' must have a constructible type diff --git a/test/tint/bug/tint/749.spvasm.expected.fxc.hlsl b/test/tint/bug/tint/749.spvasm.expected.fxc.hlsl index 2c170a68168..49ff2ddaf7a 100644 --- a/test/tint/bug/tint/749.spvasm.expected.fxc.hlsl +++ b/test/tint/bug/tint/749.spvasm.expected.fxc.hlsl @@ -1,1495 +1,7 @@ SKIP: FAILED +error: line:256: ID '172' decorated with NoContraction multiple times is not allowed. + %172 = OpIMul %int %168 %171 -struct QuicksortObject { - numbers : array, -} -struct buf0 { - /* @offset(0) */ - resolution : vec2, -} -var obj : QuicksortObject; - -var gl_FragCoord : vec4; - -@group(0) @binding(0) var x_188 : buf0; - -var x_GLF_color : vec4; - -fn swap_i1_i1_(i : ptr, j : ptr) { - var temp : i32; - let x_932 : i32 = temp; - temp = 0i; - temp = x_932; - let x_523 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).z, vec3(1.0f, 2.0f, 3.0f).y, vec3(1.0f, 2.0f, 3.0f).z); - let x_933 : i32 = *(i); - *(i) = 0i; - *(i) = x_933; - let x_28 : i32 = *(i); - let x_934 : i32 = *(j); - *(j) = 0i; - *(j) = x_934; - let x_524 : vec3 = vec3(x_523.y, x_523.x, x_523.y); - let x_935 : i32 = temp; - temp = 0i; - temp = x_935; - let x_30 : ptr = &(obj.numbers[x_28]); - let x_936 : i32 = *(x_30); - *(x_30) = 0i; - *(x_30) = x_936; - let x_31 : i32 = *(x_30); - let x_937 : i32 = temp; - temp = 0i; - temp = x_937; - temp = x_31; - let x_938 : i32 = *(j); - *(j) = 0i; - *(j) = x_938; - let x_525 : vec3 = vec3(x_523.z, vec3(1.0f, 2.0f, 3.0f).x, x_523.y); - let x_939 : i32 = *(i); - *(i) = 0i; - *(i) = x_939; - let x_32 : i32 = *(i); - let x_940 : i32 = *(x_30); - *(x_30) = 0i; - *(x_30) = x_940; - let x_33 : i32 = *(j); - let x_941 : i32 = *(i); - *(i) = 0i; - *(i) = x_941; - let x_526 : vec3 = vec3(x_525.x, x_525.z, x_525.z); - let x_942 : i32 = *(x_30); - *(x_30) = 0i; - *(x_30) = x_942; - let x_34 : ptr = &(obj.numbers[x_33]); - let x_35 : i32 = *(x_34); - let x_943 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_943; - let x_527 : vec2 = vec2(x_526.x, x_526.x); - let x_36 : ptr = &(obj.numbers[x_32]); - let x_528 : vec3 = vec3(x_524.x, x_524.z, x_524.x); - *(x_36) = x_35; - let x_944 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_944; - let x_529 : vec3 = vec3(x_526.y, x_526.z, x_526.x); - let x_945 : i32 = *(i); - *(i) = 0i; - *(i) = x_945; - let x_37 : i32 = *(j); - let x_946 : i32 = temp; - temp = 0i; - temp = x_946; - let x_530 : vec2 = vec2(x_529.z, x_529.y); - let x_947 : i32 = *(x_34); - *(x_34) = 0i; - *(x_34) = x_947; - let x_38 : i32 = temp; - let x_948 : i32 = *(j); - *(j) = 0i; - *(j) = x_948; - let x_531 : vec3 = vec3(x_527.x, x_526.y, x_526.x); - let x_949 : i32 = *(x_36); - *(x_36) = 0i; - *(x_36) = x_949; - let x_950 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_950; - let x_532 : vec3 = vec3(x_528.x, x_528.y, x_528.x); - let x_951 : i32 = *(x_34); - *(x_34) = 0i; - *(x_34) = x_951; - obj.numbers[x_37] = x_38; - return; -} - -fn performPartition_i1_i1_(l : ptr, h : ptr) -> i32 { - var param_3 : i32; - var i_1 : i32; - var j_1 : i32; - var param_2 : i32; - var param_1 : i32; - var param : i32; - var pivot : i32; - var x_537 : vec2; - var x_538 : vec3; - let x_952 : i32 = *(h); - *(h) = 0i; - *(h) = x_952; - let x_41 : i32 = *(h); - let x_953 : i32 = *(l); - *(l) = 0i; - *(l) = x_953; - let x_42 : ptr = &(obj.numbers[x_41]); - let x_954 : i32 = *(x_42); - *(x_42) = 0i; - *(x_42) = x_954; - let x_43 : i32 = *(x_42); - let x_955 : i32 = param_3; - param_3 = 0i; - param_3 = x_955; - let x_534 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).z, vec3(1.0f, 2.0f, 3.0f).x, vec3(1.0f, 2.0f, 3.0f).z); - let x_956 : i32 = param_1; - param_1 = 0i; - param_1 = x_956; - pivot = x_43; - let x_45 : i32 = *(l); - let x_957 : i32 = *(h); - *(h) = 0i; - *(h) = x_957; - let x_958 : i32 = j_1; - j_1 = 0i; - j_1 = x_958; - let x_535 : vec3 = vec3(x_534.y, x_534.z, x_534.y); - let x_959 : i32 = *(l); - *(l) = 0i; - *(l) = x_959; - i_1 = (x_45 - bitcast(1u)); - let x_49 : i32 = *(l); - let x_536 : vec3 = vec3(x_534.x, x_534.z, x_535.x); - j_1 = 10i; - let x_960 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_960; - loop { - var x_61 : ptr; - var x_539 : vec3; - var x_541 : vec3; - let x_961 : i32 = pivot; - pivot = 0i; - pivot = x_961; - let x_962 : i32 = param_1; - param_1 = 0i; - param_1 = x_962; - let x_55 : i32 = j_1; - let x_963 : i32 = pivot; - pivot = 0i; - pivot = x_963; - x_537 = vec2(vec3(1.0f, 2.0f, 3.0f).y, vec3(1.0f, 2.0f, 3.0f).z); - let x_964 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_964; - let x_56 : i32 = *(h); - let x_965 : i32 = *(h); - *(h) = 0i; - *(h) = x_965; - let x_966 : i32 = param; - param = 0i; - param = x_966; - let x_967 : i32 = j_1; - j_1 = 0i; - j_1 = x_967; - x_538 = vec3(x_534.x, x_537.y, x_534.z); - let x_968 : i32 = param; - param = 0i; - param = x_968; - if ((x_55 <= (x_56 - bitcast(1u)))) { - } else { - break; - } - let x_60 : i32 = j_1; - let x_969 : i32 = *(x_42); - *(x_42) = 0i; - *(x_42) = x_969; - x_61 = obj.numbers[x_60]; - let x_970 : i32 = *(h); - *(h) = 0i; - *(h) = x_970; - x_539 = vec3(x_537.x, x_535.z, x_537.x); - let x_971 : i32 = param_1; - param_1 = 0i; - param_1 = x_971; - let x_62 : ptr = x_61; - let x_972 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_972; - let x_63 : i32 = pivot; - let x_540 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).y, x_534.z); - let x_973 : i32 = i_1; - i_1 = 0i; - i_1 = x_973; - let x_974 : i32 = *(l); - *(l) = 0i; - *(l) = x_974; - x_541 = vec3(x_534.y, x_534.x, x_534.y); - let x_975 : i32 = pivot; - pivot = 0i; - pivot = x_975; - if ((x_62 <= x_63)) { - let x_542 : vec3 = vec3(x_541.z, x_541.x, x_541.x); - let x_976 : i32 = param_3; - param_3 = 0i; - param_3 = x_976; - let x_67 : i32 = i_1; - let x_977 : i32 = pivot; - pivot = 0i; - pivot = x_977; - let x_543 : vec2 = vec2(x_539.x, x_541.y); - let x_978 : i32 = i_1; - i_1 = 0i; - i_1 = x_978; - let x_979 : i32 = param; - param = 0i; - param = x_979; - i_1 = (x_67 + bitcast(1u)); - let x_980 : i32 = *(l); - *(l) = 0i; - *(l) = x_980; - let x_544 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).z, vec3(1.0f, 2.0f, 3.0f).y, x_540.x); - let x_70 : i32 = i_1; - let x_545 : vec2 = vec2(x_537.y, x_538.x); - let x_981 : i32 = param; - param = 0i; - param = x_981; - param = x_70; - let x_982 : i32 = param; - param = 0i; - param = x_982; - let x_546 : vec2 = vec2(x_545.x, x_545.x); - let x_983 : i32 = i_1; - i_1 = 0i; - i_1 = x_983; - let x_72 : i32 = j_1; - param_1 = x_72; - let x_984 : i32 = param_3; - param_3 = 0i; - param_3 = x_984; - swap_i1_i1_(&(param), &(param_1)); - let x_985 : i32 = param_1; - param_1 = 0i; - param_1 = x_985; - } - let x_986 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_986; - - continuing { - let x_987 : i32 = *(h); - *(h) = 0i; - *(h) = x_987; - let x_74 : i32 = j_1; - let x_988 : i32 = *(h); - *(h) = 0i; - *(h) = x_988; - let x_547 : vec3 = vec3(x_539.x, x_541.z, x_541.z); - let x_989 : ptr = x_61; - x_61 = 0i; - x_61 = x_989; - let x_990 : i32 = param; - param = 0i; - param = x_990; - j_1 = (1i + x_74); - let x_991 : i32 = param_1; - param_1 = 0i; - param_1 = x_991; - let x_548 : vec3 = vec3(x_541.y, x_541.z, x_541.x); - let x_992 : ptr = x_61; - x_61 = 0i; - x_61 = x_992; - } - } - let x_76 : i32 = i_1; - let x_993 : i32 = *(x_42); - *(x_42) = 0i; - *(x_42) = x_993; - let x_549 : vec2 = vec2(x_534.x, x_534.y); - let x_994 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_994; - let x_995 : i32 = *(h); - *(h) = 0i; - *(h) = x_995; - i_1 = (1i + x_76); - let x_996 : i32 = param_1; - param_1 = 0i; - param_1 = x_996; - let x_79 : i32 = i_1; - let x_997 : i32 = j_1; - j_1 = 0i; - j_1 = x_997; - let x_550 : vec2 = vec2(x_534.x, x_534.x); - let x_998 : i32 = param_1; - param_1 = 0i; - param_1 = x_998; - param_2 = x_79; - let x_551 : vec2 = vec2(x_534.y, x_536.x); - let x_999 : i32 = pivot; - pivot = 0i; - pivot = x_999; - let x_81 : i32 = *(h); - let x_552 : vec2 = vec2(x_550.x, x_549.y); - let x_1000 : i32 = *(h); - *(h) = 0i; - *(h) = x_1000; - param_3 = x_81; - let x_1001 : i32 = i_1; - i_1 = 0i; - i_1 = x_1001; - let x_553 : vec2 = vec2(x_549.y, x_552.x); - let x_1002 : i32 = *(h); - *(h) = 0i; - *(h) = x_1002; - swap_i1_i1_(&(param_2), &(param_3)); - let x_1003 : i32 = *(l); - *(l) = 0i; - *(l) = x_1003; - let x_554 : vec2 = vec2(x_536.z, vec3(1.0f, 2.0f, 3.0f).y); - let x_1004 : i32 = param_1; - param_1 = 0i; - param_1 = x_1004; - let x_83 : i32 = i_1; - let x_1005 : i32 = param; - param = 0i; - param = x_1005; - let x_555 : vec2 = vec2(x_534.y, x_534.x); - let x_1006 : i32 = j_1; - j_1 = 0i; - j_1 = x_1006; - return x_83; -} - -fn quicksort_() { - var param_4 : i32; - var h_1 : i32; - var p : i32; - var l_1 : i32; - var top : i32; - var stack : array; - var param_5 : i32; - l_1 = 0i; - let x_1007 : i32 = param_5; - param_5 = 0i; - param_5 = x_1007; - h_1 = 9i; - let x_1008 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1008; - let x_556 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).y, vec3(1.0f, 2.0f, 3.0f).y); - let x_1009 : i32 = param_5; - param_5 = 0i; - param_5 = x_1009; - top = -1i; - let x_1010 : i32 = p; - p = 0i; - p = x_1010; - let x_93 : i32 = top; - let x_557 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).x, vec3(1.0f, 2.0f, 3.0f).x); - let x_1011 : i32 = p; - p = 0i; - p = x_1011; - let x_94 : i32 = (x_93 + bitcast(1u)); - let x_1012 : i32 = top; - top = 0i; - top = x_1012; - let x_558 : vec2 = vec2(x_556.y, x_557.y); - let x_1013 : i32 = param_4; - param_4 = 0i; - param_4 = x_1013; - top = x_94; - let x_1014 : i32 = h_1; - h_1 = 0i; - h_1 = x_1014; - let x_559 : vec3 = vec3(x_557.y, x_557.x, x_557.x); - let x_1015 : i32 = param_4; - param_4 = 0i; - param_4 = x_1015; - let x_95 : i32 = l_1; - let x_1016 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_1016; - let x_560 : vec3 = vec3(x_559.y, x_559.x, x_557.x); - let x_96 : ptr = &(stack[x_94]); - let x_1017 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1017; - let x_561 : vec3 = vec3(x_556.y, x_556.y, x_556.y); - let x_1018 : i32 = l_1; - l_1 = 0i; - l_1 = 0i; - *(x_96) = x_95; - let x_1019 : i32 = param_5; - param_5 = 0i; - param_5 = x_1019; - let x_97 : i32 = top; - let x_1020 : i32 = param_4; - param_4 = 0i; - param_4 = x_1020; - let x_562 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).z, x_558.y, vec3(1.0f, 2.0f, 3.0f).y); - let x_1021 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1021; - let x_98 : i32 = (x_97 + 1i); - let x_1022 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1022; - let x_563 : vec3 = vec3(x_559.x, x_559.z, x_556.y); - top = x_98; - let x_1023 : i32 = param_4; - param_4 = 0i; - param_4 = x_1023; - let x_99 : i32 = h_1; - let x_1024 : i32 = param_4; - param_4 = 0i; - param_4 = x_1024; - let x_564 : vec3 = vec3(x_558.x, x_561.x, x_558.y); - let x_1025 : i32 = l_1; - l_1 = 0i; - l_1 = x_1025; - let x_100 : ptr = &(stack[x_98]); - let x_1026 : i32 = param_5; - param_5 = 0i; - param_5 = x_1026; - let x_565 : vec2 = vec2(x_564.z, x_564.z); - let x_1027 : i32 = p; - p = 0i; - p = x_1027; - *(x_100) = x_99; - loop { - let x_566 : vec3 = vec3(x_563.x, x_563.x, x_563.x); - let x_1028 : i32 = h_1; - h_1 = 0i; - h_1 = x_1028; - let x_1029 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1029; - let x_106 : i32 = top; - let x_1030 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1030; - let x_567 : vec2 = vec2(x_558.x, x_564.z); - let x_1031 : i32 = param_4; - param_4 = 0i; - param_4 = x_1031; - if ((x_106 >= bitcast(0u))) { - } else { - break; - } - let x_1032 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_1032; - let x_568 : vec3 = vec3(x_559.y, x_559.x, x_563.y); - let x_1033 : i32 = param_4; - param_4 = 0i; - param_4 = x_1033; - let x_108 : i32 = top; - let x_569 : vec3 = vec3(x_565.x, x_567.y, x_565.x); - let x_1034 : i32 = h_1; - h_1 = 0i; - h_1 = x_1034; - let x_570 : vec2 = vec2(x_556.x, x_556.x); - let x_1035 : i32 = p; - p = 0i; - p = x_1035; - top = (x_108 - bitcast(1u)); - let x_1036 : i32 = p; - p = 0i; - p = x_1036; - let x_110 : ptr = &(stack[x_108]); - let x_1037 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1037; - let x_111 : i32 = *(x_110); - let x_1038 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1038; - let x_571 : vec3 = vec3(x_559.y, x_559.x, x_564.y); - let x_1039 : i32 = l_1; - l_1 = 0i; - l_1 = x_1039; - h_1 = x_111; - let x_1040 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1040; - let x_572 : vec2 = vec2(x_562.y, x_561.y); - let x_1041 : i32 = p; - p = 0i; - p = x_1041; - let x_112 : i32 = top; - let x_1042 : i32 = param_4; - param_4 = 0i; - param_4 = x_1042; - let x_1043 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1043; - let x_573 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).y, vec3(1.0f, 2.0f, 3.0f).z); - top = (x_112 - 1i); - let x_1044 : i32 = param_5; - param_5 = 0i; - param_5 = x_1044; - let x_574 : vec3 = vec3(x_570.y, x_565.x, x_570.y); - let x_1045 : i32 = h_1; - h_1 = 0i; - h_1 = x_1045; - let x_114 : ptr = &(stack[x_112]); - let x_575 : vec2 = vec2(x_564.y, x_564.z); - let x_1046 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1046; - let x_115 : i32 = *(x_114); - let x_1047 : i32 = p; - p = 0i; - p = x_1047; - let x_576 : vec3 = vec3(x_573.y, x_573.y, x_565.x); - let x_1048 : i32 = param_5; - param_5 = 0i; - param_5 = x_1048; - l_1 = x_115; - let x_1049 : i32 = top; - top = 0i; - top = x_1049; - let x_118 : i32 = l_1; - param_4 = x_118; - let x_1050 : i32 = *(x_110); - *(x_110) = 0i; - *(x_110) = x_1050; - let x_577 : vec2 = vec2(x_569.y, x_569.z); - let x_120 : i32 = h_1; - let x_578 : vec2 = vec2(x_558.x, vec3(1.0f, 2.0f, 3.0f).y); - param_5 = x_120; - let x_1051 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1051; - let x_121 : i32 = performPartition_i1_i1_(&(param_4), &(param_5)); - let x_579 : vec2 = vec2(x_567.x, x_568.x); - let x_1052 : i32 = param_5; - param_5 = 0i; - param_5 = x_1052; - p = x_121; - let x_1053 : i32 = param_4; - param_4 = 0i; - param_4 = x_1053; - let x_122 : i32 = p; - let x_1054 : i32 = h_1; - h_1 = 0i; - h_1 = x_1054; - let x_580 : vec2 = vec2(x_568.y, x_568.y); - let x_1055 : i32 = l_1; - l_1 = 0i; - l_1 = x_1055; - let x_1056 : i32 = h_1; - h_1 = 0i; - h_1 = x_1056; - let x_124 : i32 = l_1; - let x_1057 : i32 = *(x_110); - *(x_110) = 0i; - *(x_110) = x_1057; - let x_1058 : i32 = h_1; - h_1 = 0i; - h_1 = x_1058; - let x_582 : vec2 = vec2(x_567.y, x_573.x); - let x_1059 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1059; - if (((x_122 - bitcast(1u)) > x_124)) { - let x_1060 : i32 = param_4; - param_4 = 0i; - param_4 = x_1060; - let x_128 : i32 = top; - let x_583 : vec2 = vec2(x_571.y, x_556.y); - let x_1061 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1061; - let x_1062 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1062; - let x_584 : vec2 = vec2(x_569.z, x_569.y); - let x_585 : vec3 = vec3(x_580.y, x_577.x, x_577.x); - let x_130 : i32 = l_1; - let x_1063 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1063; - let x_586 : vec2 = vec2(x_564.x, x_585.x); - let x_1064 : i32 = param_5; - param_5 = 0i; - param_5 = x_1064; - let x_131 : ptr = &(stack[(1i + x_128)]); - let x_1065 : i32 = *(x_110); - *(x_110) = 0i; - *(x_110) = x_1065; - let x_587 : vec3 = vec3(x_566.y, x_566.y, x_563.x); - let x_1066 : i32 = param_5; - param_5 = 0i; - param_5 = x_1066; - *(x_131) = x_130; - let x_132 : i32 = top; - let x_1067 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1067; - let x_588 : vec2 = vec2(x_575.y, x_575.x); - let x_1068 : i32 = *(x_131); - *(x_131) = 0i; - *(x_131) = x_1068; - let x_133 : i32 = bitcast((1u + bitcast(x_132))); - let x_1069 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1069; - let x_589 : vec3 = vec3(x_576.z, x_588.y, x_576.z); - let x_1070 : i32 = h_1; - h_1 = 0i; - h_1 = x_1070; - top = x_133; - let x_1071 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1071; - let x_134 : i32 = p; - let x_590 : vec2 = vec2(x_576.x, x_573.y); - let x_1072 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1072; - let x_136 : ptr = &(stack[x_133]); - let x_1073 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1073; - *(x_136) = (x_134 - bitcast(1u)); - let x_1074 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1074; - let x_591 : vec2 = vec2(x_569.z, x_569.y); - let x_1075 : i32 = *(x_136); - *(x_136) = 0i; - *(x_136) = x_1075; - } - let x_1076 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1076; - let x_592 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).x, vec3(1.0f, 2.0f, 3.0f).y); - let x_1077 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_1077; - let x_137 : i32 = p; - let x_1078 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1078; - let x_593 : vec3 = vec3(x_571.z, x_556.x, x_556.y); - let x_1079 : i32 = p; - p = 0i; - p = x_1079; - let x_594 : vec3 = vec3(x_563.z, x_563.x, x_575.x); - let x_1080 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1080; - let x_139 : i32 = h_1; - let x_1081 : i32 = top; - top = 0i; - top = x_1081; - let x_595 : vec3 = vec3(x_560.z, x_568.x, x_560.x); - let x_1082 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1082; - let x_1083 : i32 = p; - p = 0i; - p = x_1083; - if ((bitcast((1u + bitcast(x_137))) < x_139)) { - let x_1084 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1084; - let x_596 : vec2 = vec2(x_592.y, x_582.x); - let x_1085 : i32 = l_1; - l_1 = 0i; - l_1 = x_1085; - let x_143 : i32 = top; - let x_1086 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1086; - let x_597 : vec3 = vec3(x_562.y, x_560.y, x_560.y); - let x_144 : i32 = (x_143 + 1i); - let x_1087 : i32 = param_5; - param_5 = 0i; - param_5 = x_1087; - top = x_144; - let x_1088 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1088; - let x_145 : i32 = p; - let x_1089 : i32 = param_5; - param_5 = 0i; - param_5 = x_1089; - let x_599 : vec3 = vec3(x_560.z, x_560.x, x_568.x); - let x_1090 : i32 = p; - p = 0i; - p = x_1090; - let x_600 : vec3 = vec3(x_556.x, x_580.x, x_580.x); - let x_1091 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1091; - let x_147 : ptr = &(stack[x_144]); - let x_1092 : i32 = *(x_110); - *(x_110) = 0i; - *(x_110) = x_1092; - let x_601 : vec2 = vec2(x_563.x, x_563.y); - *(x_147) = bitcast((1u + bitcast(x_145))); - let x_1093 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1093; - let x_148 : i32 = top; - let x_1094 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1094; - let x_602 : vec2 = vec2(x_565.y, x_599.y); - let x_1095 : array = stack; - stack = array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i); - stack = x_1095; - let x_149 : i32 = (x_148 + bitcast(1u)); - let x_1096 : i32 = *(x_147); - *(x_147) = 0i; - *(x_147) = x_1096; - top = x_149; - let x_1097 : i32 = param_4; - param_4 = 0i; - param_4 = x_1097; - let x_150 : i32 = h_1; - let x_1098 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1098; - let x_1099 : i32 = *(x_96); - *(x_96) = 0i; - *(x_96) = x_1099; - stack[x_149] = x_150; - let x_1100 : i32 = *(x_114); - *(x_114) = 0i; - *(x_114) = x_1100; - let x_603 : vec3 = vec3(x_568.y, x_564.x, x_564.x); - let x_1101 : i32 = l_1; - l_1 = 0i; - l_1 = x_1101; - } - let x_1102 : i32 = *(x_100); - *(x_100) = 0i; - *(x_100) = x_1102; - - continuing { - let x_1103 : i32 = l_1; - l_1 = 0i; - l_1 = x_1103; - let x_604 : vec2 = vec2(x_563.z, x_564.x); - let x_1104 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_1104; - } - } - let x_1105 : i32 = h_1; - h_1 = 0i; - h_1 = x_1105; - return; -} - -fn main_1() { - var color : vec3; - var i_2 : i32; - var uv : vec2; - let x_717 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_717; - i_2 = 0i; - let x_721 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_721; - if (true) { - let x_722 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_722; - let x_431 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).x, vec3(1.0f, 2.0f, 3.0f).x); - let x_158 : i32 = i_2; - let x_723 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_723; - let x_725 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_725; - let x_432 : vec2 = vec2(x_431.y, x_431.y); - let x_726 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_726; - } - let x_756 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_756; - let x_446 : vec2 = vec2(vec2().x, vec2().x); - let x_757 : i32 = i_2; - i_2 = 0i; - i_2 = x_757; - quicksort_(); - let x_758 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_758; - let x_184 : vec4 = gl_FragCoord; - let x_759 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_759; - let x_447 : vec2 = vec2(vec2().y, vec2().y); - let x_760 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_760; - let x_185 : vec2 = vec2(x_184.x, x_184.y); - let x_448 : vec3 = vec3(x_185.y, x_446.y, x_446.y); - let x_761 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_761; - let x_762 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_762; - let x_191 : vec2 = x_188.resolution; - let x_763 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_763; - let x_449 : vec3 = vec3(x_184.y, vec3(1.0f, 2.0f, 3.0f).z, x_184.w); - let x_764 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_764; - let x_192 : vec2 = (x_185 / x_191); - let x_765 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_765; - let x_450 : vec2 = vec2(x_447.x, x_185.y); - let x_766 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - let x_767 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_767; - color = x_766; - uv = x_192; - color = vec3(1.0f, 2.0f, 3.0f); - let x_768 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_768; - let x_451 : vec3 = vec3(x_185.x, x_185.y, x_446.y); - let x_769 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_769; - let x_200 : ptr = &(obj.numbers[0u]); - let x_770 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_770; - let x_201 : i32 = *(x_200); - let x_771 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_771; - let x_772 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_772; - let x_206 : f32 = color.x; - let x_773 : f32 = color.x; - color.x = 0.0f; - color.x = x_773; - let x_452 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).z, vec3(1.0f, 2.0f, 3.0f).y); - let x_774 : i32 = i_2; - i_2 = 0i; - i_2 = x_774; - let x_775 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_775; - let x_453 : vec3 = vec3(x_451.x, x_450.x, x_450.y); - color.x = (x_206 + f32(x_201)); - let x_776 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_776; - let x_777 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_777; - let x_454 : vec2 = vec2(x_184.y, x_184.y); - let x_210 : f32 = uv.x; - let x_455 : vec2 = vec2(x_192.y, x_192.x); - let x_778 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_778; - let x_779 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_779; - if ((x_210 > 0.25f)) { - let x_780 : i32 = i_2; - i_2 = 0i; - i_2 = x_780; - let x_781 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_781; - let x_456 : vec3 = vec3(vec2().y, x_448.y, x_448.y); - let x_782 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_782; - let x_216 : i32 = obj.numbers[1i]; - let x_783 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_783; - let x_457 : vec2 = vec2(x_454.x, x_454.x); - let x_784 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_784; - let x_785 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_785; - let x_458 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).z, vec2().y); - let x_786 : i32 = i_2; - i_2 = 0i; - i_2 = x_786; - let x_219 : f32 = color[0i]; - let x_787 : f32 = color[0i]; - color[0i] = 0.0f; - color[0i] = x_787; - let x_788 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_788; - let x_789 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_789; - let x_459 : vec3 = vec3(x_454.y, x_454.y, x_447.y); - let x_790 : f32 = color[0i]; - color[0i] = 0.0f; - color[0i] = x_790; - color.x = (f32(x_216) + x_219); - let x_791 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_791; - } - let x_792 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_792; - let x_793 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_793; - let x_223 : f32 = uv.x; - let x_794 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_794; - let x_460 : vec3 = vec3(x_453.z, x_453.y, x_453.y); - let x_795 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_795; - let x_796 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_796; - let x_461 : vec2 = vec2(vec2().y, vec2().y); - let x_797 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_797; - if ((x_223 > 0.5f)) { - let x_798 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_798; - let x_462 : vec2 = vec2(x_446.x, x_446.x); - let x_799 : f32 = color.x; - color.x = 0.0f; - color.x = x_799; - let x_229 : ptr = &(obj.numbers[2u]); - let x_800 : f32 = color.x; - color.x = 0.0f; - color.x = x_800; - let x_463 : vec3 = vec3(x_453.x, x_453.z, x_461.y); - let x_801 : f32 = color.x; - color.x = 0.0f; - color.x = x_801; - let x_230 : i32 = *(x_229); - let x_802 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_802; - let x_803 : f32 = color.x; - color.x = 0.0f; - color.x = x_803; - let x_804 : i32 = *(x_229); - *(x_229) = 0i; - *(x_229) = x_804; - let x_464 : vec2 = vec2(x_450.y, x_191.x); - let x_805 : f32 = color.y; - color.y = 0.0f; - color.y = x_805; - let x_234 : f32 = color.y; - let x_806 : i32 = *(x_229); - *(x_229) = 0i; - *(x_229) = x_806; - let x_465 : vec2 = vec2(x_463.x, x_185.x); - let x_807 : f32 = color.x; - color.x = 0.0f; - color.x = x_807; - let x_808 : i32 = i_2; - i_2 = 0i; - i_2 = x_808; - let x_466 : vec2 = vec2(x_455.y, vec2().y); - let x_809 : i32 = i_2; - i_2 = 0i; - i_2 = x_809; - color.y = (f32(x_230) + x_234); - let x_810 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_810; - } - let x_811 : i32 = i_2; - i_2 = 0i; - i_2 = x_811; - let x_467 : vec2 = vec2(x_191.x, x_191.x); - let x_812 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_812; - let x_238 : f32 = uv[0i]; - let x_813 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_813; - let x_814 : f32 = color.x; - color.x = 0.0f; - color.x = x_814; - if ((x_238 > 0.75f)) { - let x_815 : f32 = color.x; - color.x = 0.0f; - color.x = x_815; - let x_245 : i32 = obj.numbers[3i]; - let x_816 : f32 = color.x; - color.x = 0.0f; - color.x = x_816; - let x_817 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_817; - let x_468 : vec3 = vec3(x_467.x, x_467.x, x_467.x); - let x_818 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_818; - let x_819 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_819; - let x_249 : f32 = color.z; - let x_820 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_820; - let x_469 : vec3 = vec3(x_467.x, x_191.y, x_467.y); - let x_821 : f32 = color.z; - color.z = 0.0f; - color.z = x_821; - let x_822 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_822; - let x_470 : vec2 = vec2(vec2().x, vec2().y); - let x_823 : f32 = color.z; - color.z = 0.0f; - color.z = x_823; - color.z = (x_249 + f32(x_245)); - let x_824 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_824; - let x_471 : vec2 = vec2(x_470.y, x_470.y); - } - let x_825 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_825; - let x_472 : vec3 = vec3(x_454.x, x_454.y, x_454.y); - let x_253 : ptr = &(obj.numbers[4i]); - let x_254 : i32 = *(x_253); - let x_826 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_826; - let x_827 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_827; - let x_473 : vec3 = vec3(x_446.y, x_453.x, x_453.x); - let x_828 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_828; - let x_474 : vec2 = vec2(x_191.x, x_184.z); - let x_829 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_829; - let x_257 : f32 = color.y; - let x_830 : f32 = color.y; - color.y = 0.0f; - color.y = x_830; - let x_475 : vec2 = vec2(x_467.x, x_450.x); - let x_831 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_831; - let x_832 : f32 = color.x; - color.x = 0.0f; - color.x = x_832; - let x_476 : vec2 = vec2(x_451.z, x_460.y); - color.y = (x_257 + f32(x_254)); - let x_477 : vec3 = vec3(vec2().x, x_472.x, vec2().y); - let x_833 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_833; - let x_834 : f32 = color.x; - color.x = 0.0f; - color.x = x_834; - let x_478 : vec2 = vec2(x_472.x, x_472.y); - let x_835 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_835; - let x_261 : f32 = uv.y; - let x_836 : i32 = i_2; - i_2 = 0i; - i_2 = x_836; - let x_479 : vec3 = vec3(vec2().y, x_454.y, vec2().x); - let x_837 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_837; - let x_838 : f32 = color.y; - color.y = 0.0f; - color.y = x_838; - let x_480 : vec3 = vec3(x_446.x, x_446.x, vec2().y); - let x_839 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_839; - if ((x_261 > 0.25f)) { - let x_481 : vec2 = vec2(x_447.x, x_480.z); - let x_840 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_840; - let x_267 : i32 = obj.numbers[5u]; - let x_841 : f32 = color.x; - color.x = 0.0f; - color.x = x_841; - let x_842 : i32 = i_2; - i_2 = 0i; - i_2 = x_842; - let x_843 : i32 = i_2; - i_2 = 0i; - i_2 = x_843; - let x_270 : f32 = color.x; - let x_844 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_844; - let x_482 : vec3 = vec3(x_455.x, x_475.y, x_455.y); - let x_845 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_845; - let x_846 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_846; - let x_847 : i32 = i_2; - i_2 = 0i; - i_2 = x_847; - let x_483 : vec3 = vec3(x_184.w, x_184.w, x_192.x); - let x_848 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_848; - color.x = (f32(x_267) + x_270); - let x_484 : vec3 = vec3(x_454.y, x_450.x, x_454.y); - let x_849 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_849; - } - let x_850 : f32 = color.x; - color.x = 0.0f; - color.x = x_850; - let x_485 : vec3 = vec3(x_467.x, x_450.y, x_450.x); - let x_851 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_851; - let x_852 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_852; - let x_274 : f32 = uv.y; - let x_853 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_853; - if ((x_274 > 0.5f)) { - let x_854 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_854; - let x_486 : vec2 = vec2(x_480.y, x_455.y); - let x_279 : ptr = &(obj.numbers[6u]); - let x_855 : f32 = color.y; - color.y = 0.0f; - color.y = x_855; - let x_487 : vec2 = vec2(x_449.z, x_449.y); - let x_856 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_856; - let x_280 : i32 = *(x_279); - let x_857 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_857; - let x_858 : i32 = i_2; - i_2 = 0i; - i_2 = x_858; - let x_859 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_859; - let x_488 : vec2 = vec2(x_473.z, x_473.y); - let x_283 : f32 = color.y; - let x_860 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_860; - let x_861 : f32 = color.x; - color.x = 0.0f; - color.x = x_861; - let x_489 : vec2 = vec2(x_475.y, x_475.x); - let x_862 : i32 = *(x_279); - *(x_279) = 0i; - *(x_279) = x_862; - let x_863 : i32 = *(x_279); - *(x_279) = 0i; - *(x_279) = x_863; - let x_490 : vec2 = vec2(x_480.z, x_480.z); - let x_864 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_864; - color.y = (f32(x_280) + x_283); - let x_865 : f32 = color.x; - color.x = 0.0f; - color.x = x_865; - let x_491 : vec2 = vec2(vec3(1.0f, 2.0f, 3.0f).y, x_454.x); - let x_866 : f32 = color.y; - color.y = 0.0f; - color.y = x_866; - } - let x_492 : vec2 = vec2(x_455.y, x_455.y); - let x_867 : f32 = color.x; - color.x = 0.0f; - color.x = x_867; - let x_287 : f32 = uv.y; - let x_868 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_868; - let x_493 : vec2 = vec2(x_475.x, x_475.y); - let x_869 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_869; - let x_870 : f32 = color.y; - color.y = 0.0f; - color.y = x_870; - let x_494 : vec3 = vec3(x_191.x, x_191.y, x_191.y); - let x_871 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_871; - if ((x_287 > 0.75f)) { - let x_872 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_872; - let x_873 : f32 = color.x; - color.x = 0.0f; - color.x = x_873; - let x_495 : vec3 = vec3(x_192.y, x_192.x, x_192.y); - let x_874 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_874; - let x_293 : i32 = obj.numbers[7i]; - let x_875 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_875; - let x_496 : vec3 = vec3(x_475.x, x_467.y, x_467.x); - let x_876 : f32 = color.y; - color.y = 0.0f; - color.y = x_876; - let x_497 : vec2 = vec2(x_477.x, x_461.y); - let x_877 : i32 = *(x_200); - *(x_200) = 0i; - *(x_200) = x_877; - let x_878 : f32 = color.y; - color.y = 0.0f; - color.y = x_878; - let x_498 : vec3 = vec3(x_478.x, x_478.y, x_478.x); - let x_879 : f32 = color.x; - color.x = 0.0f; - color.x = x_879; - let x_296 : f32 = color.z; - let x_880 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_880; - let x_499 : vec2 = vec2(x_184.x, x_184.y); - let x_881 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_881; - let x_882 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_882; - let x_883 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_883; - let x_500 : vec3 = vec3(x_499.y, x_499.y, x_494.z); - let x_884 : f32 = color.z; - color.z = 0.0f; - color.z = x_884; - color.z = (f32(x_293) + x_296); - let x_885 : f32 = color.y; - color.y = 0.0f; - color.y = x_885; - let x_501 : vec2 = vec2(x_453.x, x_453.z); - let x_886 : f32 = color.x; - color.x = 0.0f; - color.x = x_886; - } - let x_887 : i32 = i_2; - i_2 = 0i; - i_2 = x_887; - let x_502 : vec2 = vec2(x_451.y, x_192.y); - let x_888 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_888; - let x_300 : ptr = &(obj.numbers[8i]); - let x_301 : i32 = *(x_300); - let x_889 : i32 = i_2; - i_2 = 0i; - i_2 = x_889; - let x_503 : vec2 = vec2(x_185.x, x_451.z); - let x_890 : i32 = *(x_300); - *(x_300) = 0i; - *(x_300) = x_890; - let x_891 : f32 = color.y; - color.y = 0.0f; - color.y = x_891; - let x_504 : vec2 = vec2(x_453.y, vec2().x); - let x_892 : f32 = color.x; - color.x = 0.0f; - color.x = x_892; - let x_505 : vec3 = vec3(x_504.x, x_504.y, x_504.x); - let x_893 : f32 = color.z; - color.z = 0.0f; - color.z = x_893; - let x_304 : f32 = color.z; - let x_894 : f32 = color.x; - color.x = 0.0f; - color.x = x_894; - let x_506 : vec2 = vec2(x_493.x, x_492.x); - let x_895 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_895; - let x_896 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_896; - let x_507 : vec2 = vec2(x_461.x, x_447.x); - let x_897 : f32 = color.y; - color.y = 0.0f; - color.y = x_897; - color.z = (x_304 + f32(x_301)); - let x_898 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_898; - let x_899 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_899; - let x_508 : vec3 = vec3(x_461.y, x_461.x, x_506.y); - let x_900 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_900; - let x_308 : f32 = uv.x; - let x_901 : f32 = color.y; - color.y = 0.0f; - color.y = x_901; - let x_509 : vec3 = vec3(x_503.y, x_503.x, x_448.z); - let x_902 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_902; - let x_310 : f32 = uv.y; - let x_903 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_903; - let x_904 : f32 = color.z; - color.z = 0.0f; - color.z = x_904; - let x_510 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).y, x_485.y, x_485.z); - let x_905 : f32 = color.z; - color.z = 0.0f; - color.z = x_905; - let x_906 : i32 = i_2; - i_2 = 0i; - i_2 = x_906; - let x_511 : vec2 = vec2(x_485.z, x_485.y); - let x_907 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_907; - let x_908 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_908; - let x_512 : vec3 = vec3(x_455.y, x_455.y, x_455.y); - let x_909 : i32 = *(x_253); - *(x_253) = 0i; - *(x_253) = x_909; - if ((abs((x_308 - x_310)) < 0.25f)) { - let x_910 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_910; - let x_911 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_911; - let x_513 : vec3 = vec3(x_505.z, x_505.x, x_448.x); - let x_912 : i32 = *(x_300); - *(x_300) = 0i; - *(x_300) = x_912; - let x_317 : i32 = obj.numbers[9u]; - let x_514 : vec3 = vec3(x_474.y, x_474.y, x_474.y); - let x_913 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_913; - let x_320 : f32 = color.x; - let x_914 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_914; - let x_515 : vec2 = vec2(x_502.x, x_502.y); - let x_915 : f32 = color.x; - color.x = 0.0f; - color.x = x_915; - let x_916 : vec3 = color; - color = vec3(0.0f, 0.0f, 0.0f); - color = x_916; - let x_516 : vec2 = vec2(x_452.x, x_452.x); - let x_917 : vec2 = uv; - uv = vec2(0.0f, 0.0f); - uv = x_917; - let x_918 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_918; - let x_517 : vec3 = vec3(vec2().x, vec2().x, vec2().y); - color.x = (f32(x_317) + x_320); - let x_919 : f32 = color.x; - color.x = 0.0f; - color.x = x_919; - let x_518 : vec3 = vec3(x_480.y, x_508.x, x_480.x); - let x_920 : f32 = color.x; - color.x = 0.0f; - color.x = x_920; - } - let x_921 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_921; - let x_325 : vec3 = color; - let x_922 : f32 = uv[0i]; - uv[0i] = 0.0f; - uv[0i] = x_922; - let x_519 : vec3 = vec3(x_447.x, x_446.x, x_446.y); - let x_326 : vec3 = normalize(x_325); - let x_923 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_923; - let x_924 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_924; - let x_925 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_925; - let x_926 : f32 = color.y; - color.y = 0.0f; - color.y = x_926; - let x_520 : vec2 = vec2(x_506.y, x_519.y); - let x_927 : f32 = color.y; - color.y = 0.0f; - color.y = x_927; - let x_330 : vec4 = vec4(x_326.x, x_326.y, x_326.z, 1.0f); - let x_928 : f32 = uv.y; - uv.y = 0.0f; - uv.y = x_928; - let x_521 : vec3 = vec3(vec3(1.0f, 2.0f, 3.0f).y, vec3(1.0f, 2.0f, 3.0f).y, x_520.y); - let x_929 : f32 = uv.x; - uv.x = 0.0f; - uv.x = x_929; - x_GLF_color = x_330; - let x_930 : QuicksortObject = obj; - obj = QuicksortObject(array(0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i, 0i)); - obj = x_930; - let x_522 : vec3 = vec3(x_330.w, x_330.y, x_493.x); - let x_931 : f32 = color.x; - color.x = 0.0f; - color.x = x_931; - return; -} - -struct main_out { - @location(0) - x_GLF_color_1 : vec4, -} - -@fragment -fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { - gl_FragCoord = gl_FragCoord_param; - main_1(); - return main_out(x_GLF_color); -} - -error: function-scope 'var' must have a constructible type diff --git a/test/tint/bug/tint/980.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/tint/980.wgsl.expected.ir.fxc.hlsl index e79647c1277..fd827502412 100644 --- a/test/tint/bug/tint/980.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/tint/980.wgsl.expected.ir.fxc.hlsl @@ -23,5 +23,5 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000025D7FC7C9C0(9,3-15): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000259A3D6F8B0(9,3-15): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/bug/tint/998.wgsl.expected.ir.fxc.hlsl b/test/tint/bug/tint/998.wgsl.expected.ir.fxc.hlsl index 3548c51e77d..891000270fb 100644 --- a/test/tint/bug/tint/998.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/bug/tint/998.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002010DA390E0(13,3-25): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000028576EA4560(13,3-25): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.ir.fxc.hlsl index 27de1da8395..eb45ae48529 100644 --- a/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.ir.fxc.hlsl @@ -32,5 +32,5 @@ void compute_main(compute_main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001EB92CEDD10(24,3-34): error X3549: interlocked targets must be groupshared or UAV elements +C:\src\dawn\Shader@0x00000274E7E060E0(24,3-34): error X3549: interlocked targets must be groupshared or UAV elements diff --git a/test/tint/builtins/frexp/scalar/mixed.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/frexp/scalar/mixed.wgsl.expected.ir.fxc.hlsl index 10e09e1baa7..b76879448fe 100644 --- a/test/tint/builtins/frexp/scalar/mixed.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/frexp/scalar/mixed.wgsl.expected.ir.fxc.hlsl @@ -19,7 +19,7 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018E1A4A92C0(11,24-40): error X3013: 'frexp': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x0000018E1A4A92C0(11,24-40): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x0000018E1A4A92C0(11,24-40): error X3013: frexp(float|half, out float|half exp) +C:\src\dawn\Shader@0x000001FDFD27A1A0(11,24-40): error X3013: 'frexp': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000001FDFD27A1A0(11,24-40): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000001FDFD27A1A0(11,24-40): error X3013: frexp(float|half, out float|half exp) diff --git a/test/tint/builtins/frexp/scalar/runtime.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/frexp/scalar/runtime.wgsl.expected.ir.fxc.hlsl index cfdfe7c98c2..e757528f5f5 100644 --- a/test/tint/builtins/frexp/scalar/runtime.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/frexp/scalar/runtime.wgsl.expected.ir.fxc.hlsl @@ -17,7 +17,7 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DD08D4F130(10,24-41): error X3013: 'frexp': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x000001DD08D4F130(10,24-41): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x000001DD08D4F130(10,24-41): error X3013: frexp(float|half, out float|half exp) +C:\src\dawn\Shader@0x000001EAD7A8F980(10,24-41): error X3013: 'frexp': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000001EAD7A8F980(10,24-41): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000001EAD7A8F980(10,24-41): error X3013: frexp(float|half, out float|half exp) diff --git a/test/tint/builtins/frexp/vector/mixed.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/frexp/vector/mixed.wgsl.expected.ir.fxc.hlsl index ea941c26a8a..df2bc2a4654 100644 --- a/test/tint/builtins/frexp/vector/mixed.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/frexp/vector/mixed.wgsl.expected.ir.fxc.hlsl @@ -19,7 +19,7 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000228DFC805C0(11,29-45): error X3013: 'frexp': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x00000228DFC805C0(11,29-45): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x00000228DFC805C0(11,29-45): error X3013: frexp(float|half, out float|half exp) +C:\src\dawn\Shader@0x0000019509848F10(11,29-45): error X3013: 'frexp': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x0000019509848F10(11,29-45): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x0000019509848F10(11,29-45): error X3013: frexp(float|half, out float|half exp) diff --git a/test/tint/builtins/frexp/vector/runtime.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/frexp/vector/runtime.wgsl.expected.ir.fxc.hlsl index 7d5885d7537..2dd6a552b33 100644 --- a/test/tint/builtins/frexp/vector/runtime.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/frexp/vector/runtime.wgsl.expected.ir.fxc.hlsl @@ -17,7 +17,7 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D24A082DE0(10,29-46): error X3013: 'frexp': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x000001D24A082DE0(10,29-46): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x000001D24A082DE0(10,29-46): error X3013: frexp(float|half, out float|half exp) +C:\src\dawn\Shader@0x0000027F6B32FC90(10,29-46): error X3013: 'frexp': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x0000027F6B32FC90(10,29-46): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x0000027F6B32FC90(10,29-46): error X3013: frexp(float|half, out float|half exp) diff --git a/test/tint/builtins/gen/literal/abs/421ca3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/421ca3.wgsl.expected.fxc.hlsl index fe59c1ec6d6..437776106dd 100644 --- a/test/tint/builtins/gen/literal/abs/421ca3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/abs/421ca3.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void abs_421ca3() { +vector abs_421ca3() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - abs_421ca3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - abs_421ca3(); + prevent_dce.Store >(0u, abs_421ca3()); return; } [numthreads(1, 1, 1)] void compute_main() { - abs_421ca3(); + prevent_dce.Store >(0u, abs_421ca3()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = abs_421ca3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A4CEDC64A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/abs/421ca3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/abs/421ca3.wgsl.expected.ir.fxc.hlsl index a2fbe0d8951..47a2e53a5bc 100644 --- a/test/tint/builtins/gen/literal/abs/421ca3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/abs/421ca3.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028FB566F9C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001553C4864C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/abs/538d29.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/538d29.wgsl.expected.fxc.hlsl index 0ceeaa792fe..205100ee575 100644 --- a/test/tint/builtins/gen/literal/abs/538d29.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/abs/538d29.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void abs_538d29() { +vector abs_538d29() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - abs_538d29(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - abs_538d29(); + prevent_dce.Store >(0u, abs_538d29()); return; } [numthreads(1, 1, 1)] void compute_main() { - abs_538d29(); + prevent_dce.Store >(0u, abs_538d29()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = abs_538d29(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021534C77F80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/abs/538d29.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/abs/538d29.wgsl.expected.ir.fxc.hlsl index f5d60484bff..26e867a40c0 100644 --- a/test/tint/builtins/gen/literal/abs/538d29.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/abs/538d29.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CF1DE102E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018104947670(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/abs/5ae4fe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/5ae4fe.wgsl.expected.fxc.hlsl index 5d752b7fa89..fdee92d9d89 100644 --- a/test/tint/builtins/gen/literal/abs/5ae4fe.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/abs/5ae4fe.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void abs_5ae4fe() { +vector abs_5ae4fe() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - abs_5ae4fe(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - abs_5ae4fe(); + prevent_dce.Store >(0u, abs_5ae4fe()); return; } [numthreads(1, 1, 1)] void compute_main() { - abs_5ae4fe(); + prevent_dce.Store >(0u, abs_5ae4fe()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = abs_5ae4fe(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F72B19C180(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/abs/5ae4fe.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/abs/5ae4fe.wgsl.expected.ir.fxc.hlsl index 302b32ac69f..4f7978ed3b4 100644 --- a/test/tint/builtins/gen/literal/abs/5ae4fe.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/abs/5ae4fe.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002400E25EB90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014D8546B6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/abs/fd247f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/abs/fd247f.wgsl.expected.fxc.hlsl index 630f5445744..15a587e658a 100644 --- a/test/tint/builtins/gen/literal/abs/fd247f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/abs/fd247f.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void abs_fd247f() { +float16_t abs_fd247f() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - abs_fd247f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - abs_fd247f(); + prevent_dce.Store(0u, abs_fd247f()); return; } [numthreads(1, 1, 1)] void compute_main() { - abs_fd247f(); + prevent_dce.Store(0u, abs_fd247f()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = abs_fd247f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000014FF2EE6C70(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/abs/fd247f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/abs/fd247f.wgsl.expected.ir.fxc.hlsl index ca6a7d1c000..39960fd2fd0 100644 --- a/test/tint/builtins/gen/literal/abs/fd247f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/abs/fd247f.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E91900DB30(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002360AD76220(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.fxc.hlsl index 203f8a6a3a0..7f2cc259ce8 100644 --- a/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acos_004aff() { +vector acos_004aff() { vector res = (float16_t(0.25048828125h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acos_004aff(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acos_004aff(); + prevent_dce.Store >(0u, acos_004aff()); return; } [numthreads(1, 1, 1)] void compute_main() { - acos_004aff(); + prevent_dce.Store >(0u, acos_004aff()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acos_004aff(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001849ADFD4D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.ir.fxc.hlsl index 6408ffe1510..254a138c6f2 100644 --- a/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acos/004aff.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021F4D6A5340(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CEC7D55C80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.fxc.hlsl index 310a82bcf3f..42dcbcc797b 100644 --- a/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acos_203628() { +vector acos_203628() { vector res = (float16_t(0.25048828125h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acos_203628(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acos_203628(); + prevent_dce.Store >(0u, acos_203628()); return; } [numthreads(1, 1, 1)] void compute_main() { - acos_203628(); + prevent_dce.Store >(0u, acos_203628()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acos_203628(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001BBC4124CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.ir.fxc.hlsl index 05cf9cf5df3..d74738d068a 100644 --- a/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acos/203628.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002F366AEF570(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000275411298D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.fxc.hlsl index fec3a8c914e..9bb00c6395c 100644 --- a/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acos_303e3d() { +float16_t acos_303e3d() { float16_t res = float16_t(0.25048828125h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acos_303e3d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acos_303e3d(); + prevent_dce.Store(0u, acos_303e3d()); return; } [numthreads(1, 1, 1)] void compute_main() { - acos_303e3d(); + prevent_dce.Store(0u, acos_303e3d()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acos_303e3d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001CD92D73CF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.ir.fxc.hlsl index e740b599dc3..49abe6144f7 100644 --- a/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acos/303e3d.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025DDFD6F280(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002A3ACEEAD40(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.fxc.hlsl index e9fe85ca08f..26322966ade 100644 --- a/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acos_f47057() { +vector acos_f47057() { vector res = (float16_t(0.25048828125h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acos_f47057(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acos_f47057(); + prevent_dce.Store >(0u, acos_f47057()); return; } [numthreads(1, 1, 1)] void compute_main() { - acos_f47057(); + prevent_dce.Store >(0u, acos_f47057()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acos_f47057(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000017771A64CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.ir.fxc.hlsl index fe43c854a7a..7fb8aca87be 100644 --- a/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acos/f47057.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028868EA9180(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DB953A6E40(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/acosh/5f49d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/5f49d8.wgsl.expected.fxc.hlsl index 9f12e13f1dd..9544f5b0715 100644 --- a/test/tint/builtins/gen/literal/acosh/5f49d8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acosh/5f49d8.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acosh_5f49d8() { +vector acosh_5f49d8() { vector res = (float16_t(0.99951171875h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acosh_5f49d8(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acosh_5f49d8(); + prevent_dce.Store >(0u, acosh_5f49d8()); return; } [numthreads(1, 1, 1)] void compute_main() { - acosh_5f49d8(); + prevent_dce.Store >(0u, acosh_5f49d8()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acosh_5f49d8(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001FA25B54670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/acosh/5f49d8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/5f49d8.wgsl.expected.ir.fxc.hlsl index 1731245bfce..d070a882f63 100644 --- a/test/tint/builtins/gen/literal/acosh/5f49d8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acosh/5f49d8.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BCFE36FF90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D223DE9030(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/acosh/a37dfe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/a37dfe.wgsl.expected.fxc.hlsl index d72fef1bc46..8bc6829e116 100644 --- a/test/tint/builtins/gen/literal/acosh/a37dfe.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acosh/a37dfe.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acosh_a37dfe() { +float16_t acosh_a37dfe() { float16_t res = float16_t(0.99951171875h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acosh_a37dfe(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acosh_a37dfe(); + prevent_dce.Store(0u, acosh_a37dfe()); return; } [numthreads(1, 1, 1)] void compute_main() { - acosh_a37dfe(); + prevent_dce.Store(0u, acosh_a37dfe()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acosh_a37dfe(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B6EAF14290(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/acosh/a37dfe.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/a37dfe.wgsl.expected.ir.fxc.hlsl index f9a8efbce86..a985a1c55c4 100644 --- a/test/tint/builtins/gen/literal/acosh/a37dfe.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acosh/a37dfe.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F2F3FCE2E0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002E28C7E82C0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/acosh/de60d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/de60d8.wgsl.expected.fxc.hlsl index b45d0ca8dd0..08996b7d1d9 100644 --- a/test/tint/builtins/gen/literal/acosh/de60d8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acosh/de60d8.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acosh_de60d8() { +vector acosh_de60d8() { vector res = (float16_t(0.99951171875h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acosh_de60d8(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acosh_de60d8(); + prevent_dce.Store >(0u, acosh_de60d8()); return; } [numthreads(1, 1, 1)] void compute_main() { - acosh_de60d8(); + prevent_dce.Store >(0u, acosh_de60d8()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acosh_de60d8(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000019D1F52C520(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/acosh/de60d8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/de60d8.wgsl.expected.ir.fxc.hlsl index 162ab2351d7..f6f2aaa60f6 100644 --- a/test/tint/builtins/gen/literal/acosh/de60d8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acosh/de60d8.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002515F0FEF50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000235BC2038C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/acosh/f56574.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/f56574.wgsl.expected.fxc.hlsl index e144fd34929..bdfb69e0ac1 100644 --- a/test/tint/builtins/gen/literal/acosh/f56574.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acosh/f56574.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acosh_f56574() { +vector acosh_f56574() { vector res = (float16_t(0.99951171875h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acosh_f56574(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acosh_f56574(); + prevent_dce.Store >(0u, acosh_f56574()); return; } [numthreads(1, 1, 1)] void compute_main() { - acosh_f56574(); + prevent_dce.Store >(0u, acosh_f56574()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acosh_f56574(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002A9F9B8D2F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/acosh/f56574.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/acosh/f56574.wgsl.expected.ir.fxc.hlsl index f25c82a9524..04047794df5 100644 --- a/test/tint/builtins/gen/literal/acosh/f56574.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/acosh/f56574.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020BC10E5430(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002437B3787F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/asin/11dfda.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asin/11dfda.wgsl.expected.fxc.hlsl index 2e96ff935b6..8394b91961d 100644 --- a/test/tint/builtins/gen/literal/asin/11dfda.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asin/11dfda.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asin_11dfda() { +float16_t asin_11dfda() { float16_t res = float16_t(0.499755859375h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asin_11dfda(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asin_11dfda(); + prevent_dce.Store(0u, asin_11dfda()); return; } [numthreads(1, 1, 1)] void compute_main() { - asin_11dfda(); + prevent_dce.Store(0u, asin_11dfda()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asin_11dfda(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D23BF1E0A0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/asin/11dfda.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/asin/11dfda.wgsl.expected.ir.fxc.hlsl index cc41b40c088..835b077926e 100644 --- a/test/tint/builtins/gen/literal/asin/11dfda.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asin/11dfda.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023CC196E730(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000020ACD65BEF0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/asin/2d8e29.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asin/2d8e29.wgsl.expected.fxc.hlsl index 3284b7169f9..545db87e0de 100644 --- a/test/tint/builtins/gen/literal/asin/2d8e29.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asin/2d8e29.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asin_2d8e29() { +vector asin_2d8e29() { vector res = (float16_t(0.499755859375h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asin_2d8e29(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asin_2d8e29(); + prevent_dce.Store >(0u, asin_2d8e29()); return; } [numthreads(1, 1, 1)] void compute_main() { - asin_2d8e29(); + prevent_dce.Store >(0u, asin_2d8e29()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asin_2d8e29(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A5F3DCBA70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/asin/2d8e29.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/asin/2d8e29.wgsl.expected.ir.fxc.hlsl index 8909fd65ee7..c9b870c9f33 100644 --- a/test/tint/builtins/gen/literal/asin/2d8e29.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asin/2d8e29.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026D4FA0FB50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023C2AAC8FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/asin/3cfbd4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asin/3cfbd4.wgsl.expected.fxc.hlsl index 511f17d597a..71a9d4e028f 100644 --- a/test/tint/builtins/gen/literal/asin/3cfbd4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asin/3cfbd4.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asin_3cfbd4() { +vector asin_3cfbd4() { vector res = (float16_t(0.499755859375h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asin_3cfbd4(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asin_3cfbd4(); + prevent_dce.Store >(0u, asin_3cfbd4()); return; } [numthreads(1, 1, 1)] void compute_main() { - asin_3cfbd4(); + prevent_dce.Store >(0u, asin_3cfbd4()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asin_3cfbd4(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001DDBA2AA0E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/asin/3cfbd4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/asin/3cfbd4.wgsl.expected.ir.fxc.hlsl index 8d2b400a0d6..81575d653a8 100644 --- a/test/tint/builtins/gen/literal/asin/3cfbd4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asin/3cfbd4.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000229C506FE70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000228489B50C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/asin/b4aced.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asin/b4aced.wgsl.expected.fxc.hlsl index c4067cfa9a5..07f0e91f284 100644 --- a/test/tint/builtins/gen/literal/asin/b4aced.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asin/b4aced.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asin_b4aced() { +vector asin_b4aced() { vector res = (float16_t(0.499755859375h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asin_b4aced(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asin_b4aced(); + prevent_dce.Store >(0u, asin_b4aced()); return; } [numthreads(1, 1, 1)] void compute_main() { - asin_b4aced(); + prevent_dce.Store >(0u, asin_b4aced()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asin_b4aced(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000217E43565D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/asin/b4aced.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/asin/b4aced.wgsl.expected.ir.fxc.hlsl index 29c7dd01862..3db97d43913 100644 --- a/test/tint/builtins/gen/literal/asin/b4aced.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asin/b4aced.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000228D717FB90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000226243FBE50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/asinh/468a48.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/468a48.wgsl.expected.fxc.hlsl index 2ec3e2ec5a0..9cedd0aa6c2 100644 --- a/test/tint/builtins/gen/literal/asinh/468a48.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asinh/468a48.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asinh_468a48() { +float16_t asinh_468a48() { float16_t res = float16_t(0.88134765625h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asinh_468a48(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asinh_468a48(); + prevent_dce.Store(0u, asinh_468a48()); return; } [numthreads(1, 1, 1)] void compute_main() { - asinh_468a48(); + prevent_dce.Store(0u, asinh_468a48()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asinh_468a48(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001DC9B30AD80(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/asinh/468a48.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/468a48.wgsl.expected.ir.fxc.hlsl index 78aa5422f5b..a43732873fd 100644 --- a/test/tint/builtins/gen/literal/asinh/468a48.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asinh/468a48.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022AE263F280(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001A9A15364F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/asinh/95ab2b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/95ab2b.wgsl.expected.fxc.hlsl index 34fb4b99d5a..bce6dffe9e1 100644 --- a/test/tint/builtins/gen/literal/asinh/95ab2b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asinh/95ab2b.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asinh_95ab2b() { +vector asinh_95ab2b() { vector res = (float16_t(0.88134765625h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asinh_95ab2b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asinh_95ab2b(); + prevent_dce.Store >(0u, asinh_95ab2b()); return; } [numthreads(1, 1, 1)] void compute_main() { - asinh_95ab2b(); + prevent_dce.Store >(0u, asinh_95ab2b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asinh_95ab2b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A3A068A6C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/asinh/95ab2b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/95ab2b.wgsl.expected.ir.fxc.hlsl index b5e14da2bea..2484882a867 100644 --- a/test/tint/builtins/gen/literal/asinh/95ab2b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asinh/95ab2b.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021293F20190(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E842FC50C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/asinh/ad8f8b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/ad8f8b.wgsl.expected.fxc.hlsl index b85e875d76e..5523dcca663 100644 --- a/test/tint/builtins/gen/literal/asinh/ad8f8b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asinh/ad8f8b.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asinh_ad8f8b() { +vector asinh_ad8f8b() { vector res = (float16_t(0.88134765625h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asinh_ad8f8b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asinh_ad8f8b(); + prevent_dce.Store >(0u, asinh_ad8f8b()); return; } [numthreads(1, 1, 1)] void compute_main() { - asinh_ad8f8b(); + prevent_dce.Store >(0u, asinh_ad8f8b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asinh_ad8f8b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001ED438F3C90(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/asinh/ad8f8b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/ad8f8b.wgsl.expected.ir.fxc.hlsl index dea137f54cb..3613426495c 100644 --- a/test/tint/builtins/gen/literal/asinh/ad8f8b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asinh/ad8f8b.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002436B8DFF90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024AD96E9F20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/asinh/fb5e8c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/fb5e8c.wgsl.expected.fxc.hlsl index 4f79cdcd30b..23bf97c8c69 100644 --- a/test/tint/builtins/gen/literal/asinh/fb5e8c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asinh/fb5e8c.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asinh_fb5e8c() { +vector asinh_fb5e8c() { vector res = (float16_t(0.88134765625h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asinh_fb5e8c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asinh_fb5e8c(); + prevent_dce.Store >(0u, asinh_fb5e8c()); return; } [numthreads(1, 1, 1)] void compute_main() { - asinh_fb5e8c(); + prevent_dce.Store >(0u, asinh_fb5e8c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asinh_fb5e8c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002288C8C4CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/asinh/fb5e8c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/asinh/fb5e8c.wgsl.expected.ir.fxc.hlsl index 143a324c16b..d635726846a 100644 --- a/test/tint/builtins/gen/literal/asinh/fb5e8c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/asinh/fb5e8c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ACEC17FB80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B1283A5440(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/atan/19faea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan/19faea.wgsl.expected.fxc.hlsl index 21f7f00d5f2..015b0af063b 100644 --- a/test/tint/builtins/gen/literal/atan/19faea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan/19faea.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan_19faea() { +vector atan_19faea() { vector res = (float16_t(0.78515625h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan_19faea(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan_19faea(); + prevent_dce.Store >(0u, atan_19faea()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan_19faea(); + prevent_dce.Store >(0u, atan_19faea()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan_19faea(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002C24CB0BC70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atan/19faea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atan/19faea.wgsl.expected.ir.fxc.hlsl index 5ae16bc2595..223ddb54bd3 100644 --- a/test/tint/builtins/gen/literal/atan/19faea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan/19faea.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002320B53FA50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022FA16B64C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/atan/1e1764.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan/1e1764.wgsl.expected.fxc.hlsl index 547e6b764c0..650e65a9ad4 100644 --- a/test/tint/builtins/gen/literal/atan/1e1764.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan/1e1764.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan_1e1764() { +vector atan_1e1764() { vector res = (float16_t(0.78515625h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan_1e1764(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan_1e1764(); + prevent_dce.Store >(0u, atan_1e1764()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan_1e1764(); + prevent_dce.Store >(0u, atan_1e1764()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan_1e1764(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001AC0BEB4670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atan/1e1764.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atan/1e1764.wgsl.expected.ir.fxc.hlsl index 55e7f652b2d..0fe0e9c94cd 100644 --- a/test/tint/builtins/gen/literal/atan/1e1764.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan/1e1764.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000219669F80C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021059828F80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/atan/a5f421.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan/a5f421.wgsl.expected.fxc.hlsl index 072a52f14ee..63fbd8294a9 100644 --- a/test/tint/builtins/gen/literal/atan/a5f421.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan/a5f421.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan_a5f421() { +vector atan_a5f421() { vector res = (float16_t(0.78515625h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan_a5f421(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan_a5f421(); + prevent_dce.Store >(0u, atan_a5f421()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan_a5f421(); + prevent_dce.Store >(0u, atan_a5f421()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan_a5f421(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020C83814670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atan/a5f421.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atan/a5f421.wgsl.expected.ir.fxc.hlsl index 566f8df59d4..1f7716ed3d6 100644 --- a/test/tint/builtins/gen/literal/atan/a5f421.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan/a5f421.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002AC7851EEE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020A13AA9650(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/atan/a7ba61.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan/a7ba61.wgsl.expected.fxc.hlsl index 9df345b9c1a..a5c51ef691e 100644 --- a/test/tint/builtins/gen/literal/atan/a7ba61.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan/a7ba61.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan_a7ba61() { +float16_t atan_a7ba61() { float16_t res = float16_t(0.78515625h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan_a7ba61(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan_a7ba61(); + prevent_dce.Store(0u, atan_a7ba61()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan_a7ba61(); + prevent_dce.Store(0u, atan_a7ba61()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan_a7ba61(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000166DA93A6E0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atan/a7ba61.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atan/a7ba61.wgsl.expected.ir.fxc.hlsl index 2bcbac92b5d..4043d257281 100644 --- a/test/tint/builtins/gen/literal/atan/a7ba61.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan/a7ba61.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017F49FE1660(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001BD93C799A0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/atan2/21dfea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/21dfea.wgsl.expected.fxc.hlsl index 4079fd92431..2fdb7e17297 100644 --- a/test/tint/builtins/gen/literal/atan2/21dfea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan2/21dfea.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan2_21dfea() { +vector atan2_21dfea() { vector res = (float16_t(0.78515625h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan2_21dfea(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan2_21dfea(); + prevent_dce.Store >(0u, atan2_21dfea()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan2_21dfea(); + prevent_dce.Store >(0u, atan2_21dfea()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan2_21dfea(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B731BB4F20(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atan2/21dfea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/21dfea.wgsl.expected.ir.fxc.hlsl index cd592229280..c753e0ccb4d 100644 --- a/test/tint/builtins/gen/literal/atan2/21dfea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan2/21dfea.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002BAE3165290(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000220633493A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/atan2/93febc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/93febc.wgsl.expected.fxc.hlsl index 36ef2c73100..8ee0145de94 100644 --- a/test/tint/builtins/gen/literal/atan2/93febc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan2/93febc.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan2_93febc() { +vector atan2_93febc() { vector res = (float16_t(0.78515625h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan2_93febc(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan2_93febc(); + prevent_dce.Store >(0u, atan2_93febc()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan2_93febc(); + prevent_dce.Store >(0u, atan2_93febc()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan2_93febc(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000026BFA344CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atan2/93febc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/93febc.wgsl.expected.ir.fxc.hlsl index 074db88ef61..6891e5634b0 100644 --- a/test/tint/builtins/gen/literal/atan2/93febc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan2/93febc.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AFF29F4590(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020C10D56600(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/atan2/ca698e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/ca698e.wgsl.expected.fxc.hlsl index cddfc871a3c..652ce8fdb8e 100644 --- a/test/tint/builtins/gen/literal/atan2/ca698e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan2/ca698e.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan2_ca698e() { +float16_t atan2_ca698e() { float16_t res = float16_t(0.78515625h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan2_ca698e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan2_ca698e(); + prevent_dce.Store(0u, atan2_ca698e()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan2_ca698e(); + prevent_dce.Store(0u, atan2_ca698e()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan2_ca698e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001FC47873CC0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atan2/ca698e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/ca698e.wgsl.expected.ir.fxc.hlsl index ad4dd1f8ef3..66945ce9791 100644 --- a/test/tint/builtins/gen/literal/atan2/ca698e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan2/ca698e.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002402874EE40(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000017667566220(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/atan2/d983ab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/d983ab.wgsl.expected.fxc.hlsl index 7000a076e20..400e192c4b3 100644 --- a/test/tint/builtins/gen/literal/atan2/d983ab.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan2/d983ab.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan2_d983ab() { +vector atan2_d983ab() { vector res = (float16_t(0.78515625h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan2_d983ab(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan2_d983ab(); + prevent_dce.Store >(0u, atan2_d983ab()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan2_d983ab(); + prevent_dce.Store >(0u, atan2_d983ab()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan2_d983ab(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000235F63166B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atan2/d983ab.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atan2/d983ab.wgsl.expected.ir.fxc.hlsl index 625f6396056..45f966c9d2a 100644 --- a/test/tint/builtins/gen/literal/atan2/d983ab.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atan2/d983ab.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B91DD4EEA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D1CF5D6220(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/atanh/5bf88d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/5bf88d.wgsl.expected.fxc.hlsl index 25d33440ffe..81b5bf20742 100644 --- a/test/tint/builtins/gen/literal/atanh/5bf88d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atanh/5bf88d.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atanh_5bf88d() { +vector atanh_5bf88d() { vector res = (float16_t(0.548828125h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atanh_5bf88d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atanh_5bf88d(); + prevent_dce.Store >(0u, atanh_5bf88d()); return; } [numthreads(1, 1, 1)] void compute_main() { - atanh_5bf88d(); + prevent_dce.Store >(0u, atanh_5bf88d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atanh_5bf88d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000013988F24670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atanh/5bf88d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/5bf88d.wgsl.expected.ir.fxc.hlsl index aab0a7b3bd0..4646e06d329 100644 --- a/test/tint/builtins/gen/literal/atanh/5bf88d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atanh/5bf88d.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021C7301FFC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000143F9435150(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/atanh/d2d8cd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/d2d8cd.wgsl.expected.fxc.hlsl index a114fdcfbf3..e1058856747 100644 --- a/test/tint/builtins/gen/literal/atanh/d2d8cd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atanh/d2d8cd.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atanh_d2d8cd() { +float16_t atanh_d2d8cd() { float16_t res = float16_t(0.548828125h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atanh_d2d8cd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atanh_d2d8cd(); + prevent_dce.Store(0u, atanh_d2d8cd()); return; } [numthreads(1, 1, 1)] void compute_main() { - atanh_d2d8cd(); + prevent_dce.Store(0u, atanh_d2d8cd()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atanh_d2d8cd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000196AFF76D50(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atanh/d2d8cd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/d2d8cd.wgsl.expected.ir.fxc.hlsl index c7ca3cc0402..c1f31b0f606 100644 --- a/test/tint/builtins/gen/literal/atanh/d2d8cd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atanh/d2d8cd.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021C0232F280(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001F4CD938500(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/atanh/e3b450.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/e3b450.wgsl.expected.fxc.hlsl index 798352a0710..33662d2e02c 100644 --- a/test/tint/builtins/gen/literal/atanh/e3b450.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atanh/e3b450.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atanh_e3b450() { +vector atanh_e3b450() { vector res = (float16_t(0.548828125h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atanh_e3b450(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atanh_e3b450(); + prevent_dce.Store >(0u, atanh_e3b450()); return; } [numthreads(1, 1, 1)] void compute_main() { - atanh_e3b450(); + prevent_dce.Store >(0u, atanh_e3b450()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atanh_e3b450(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001748653BC70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atanh/e3b450.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/e3b450.wgsl.expected.ir.fxc.hlsl index 8bbcfc3d223..32018102448 100644 --- a/test/tint/builtins/gen/literal/atanh/e3b450.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atanh/e3b450.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016A9221EEA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E539DE7DF0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/atanh/ec4b06.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/ec4b06.wgsl.expected.fxc.hlsl index f34da43915a..428368ded84 100644 --- a/test/tint/builtins/gen/literal/atanh/ec4b06.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atanh/ec4b06.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atanh_ec4b06() { +vector atanh_ec4b06() { vector res = (float16_t(0.548828125h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atanh_ec4b06(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atanh_ec4b06(); + prevent_dce.Store >(0u, atanh_ec4b06()); return; } [numthreads(1, 1, 1)] void compute_main() { - atanh_ec4b06(); + prevent_dce.Store >(0u, atanh_ec4b06()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atanh_ec4b06(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001CC45224690(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/atanh/ec4b06.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/atanh/ec4b06.wgsl.expected.ir.fxc.hlsl index 53a7cb2405f..2179659a27b 100644 --- a/test/tint/builtins/gen/literal/atanh/ec4b06.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/atanh/ec4b06.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DA10F3F9D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025120875230(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/1df11f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/1df11f.wgsl.expected.fxc.hlsl index 465d7815974..8cfcded8de9 100644 --- a/test/tint/builtins/gen/literal/bitcast/1df11f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/1df11f.wgsl.expected.fxc.hlsl @@ -1,39 +1,46 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_1df11f() { +vector bitcast_1df11f() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_1df11f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_1df11f(); + prevent_dce.Store >(0u, bitcast_1df11f()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_1df11f(); + prevent_dce.Store >(0u, bitcast_1df11f()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_1df11f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x00000201DFD40680(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000201DFD40680(5,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000002BABC21BA30(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/1df11f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/1df11f.wgsl.expected.ir.fxc.hlsl index 6bb2965f02a..e72f33f08b3 100644 --- a/test/tint/builtins/gen/literal/bitcast/1df11f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/1df11f.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002632D2615A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026AFC8CB700(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/3e7b47.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/3e7b47.wgsl.expected.fxc.hlsl index c184271321f..9773a248372 100644 --- a/test/tint/builtins/gen/literal/bitcast/3e7b47.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/3e7b47.wgsl.expected.fxc.hlsl @@ -1,39 +1,46 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_3e7b47() { +vector bitcast_3e7b47() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_3e7b47(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_3e7b47(); + prevent_dce.Store >(0u, bitcast_3e7b47()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_3e7b47(); + prevent_dce.Store >(0u, bitcast_3e7b47()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_3e7b47(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x00000240A8E80680(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000240A8E80680(5,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x00000206DCEA65E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/3e7b47.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/3e7b47.wgsl.expected.ir.fxc.hlsl index 4d0a9cb7a63..2ac96bf7df2 100644 --- a/test/tint/builtins/gen/literal/bitcast/3e7b47.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/3e7b47.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022B9B7BE0C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017D79ED6150(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/429d64.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/429d64.wgsl.expected.fxc.hlsl index ebba1e28e77..9684f097384 100644 --- a/test/tint/builtins/gen/literal/bitcast/429d64.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/429d64.wgsl.expected.fxc.hlsl @@ -1,39 +1,46 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_429d64() { +vector bitcast_429d64() { vector res = vector(float16_t(0.0h), float16_t(1.875h), float16_t(0.0h), float16_t(1.875h)); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_429d64(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_429d64(); + prevent_dce.Store >(0u, bitcast_429d64()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_429d64(); + prevent_dce.Store >(0u, bitcast_429d64()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_429d64(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000001CFD1C618C0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001CFD1C618C0(5,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000002BAE6B365F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/429d64.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/429d64.wgsl.expected.ir.fxc.hlsl index 611be0f5064..1a5d9b43642 100644 --- a/test/tint/builtins/gen/literal/bitcast/429d64.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/429d64.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002276A98F6F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022A22AE4E70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/436211.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/436211.wgsl.expected.fxc.hlsl index 97be207a193..6a64d0add53 100644 --- a/test/tint/builtins/gen/literal/bitcast/436211.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/436211.wgsl.expected.fxc.hlsl @@ -1,39 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_436211() { +float16_t bitcast_436211() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_436211(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_436211(); + prevent_dce.Store(0u, bitcast_436211()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_436211(); + prevent_dce.Store(0u, bitcast_436211()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_436211(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000001EF47B520C0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001EF47B520C0(4,13-15): error X3000: unrecognized identifier 'res' +C:\src\dawn\Shader@0x00000120899E3CA0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/436211.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/436211.wgsl.expected.ir.fxc.hlsl index 4200149afc1..c94b075ce03 100644 --- a/test/tint/builtins/gen/literal/bitcast/436211.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/436211.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020996D1F500(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000183B8C16610(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/5081ed.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/5081ed.wgsl.expected.fxc.hlsl index cb94d1e00fd..40eed89b9f9 100644 --- a/test/tint/builtins/gen/literal/bitcast/5081ed.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/5081ed.wgsl.expected.fxc.hlsl @@ -1,39 +1,46 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_5081ed() { +vector bitcast_5081ed() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_5081ed(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_5081ed(); + prevent_dce.Store >(0u, bitcast_5081ed()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_5081ed(); + prevent_dce.Store >(0u, bitcast_5081ed()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_5081ed(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x0000029A81C50680(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000029A81C50680(5,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000024102AB6540(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/5081ed.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/5081ed.wgsl.expected.ir.fxc.hlsl index 1c1daac049c..4b0ea45bb0d 100644 --- a/test/tint/builtins/gen/literal/bitcast/5081ed.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/5081ed.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000168E6EAFAA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025E3C2A3FB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/66e93d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/66e93d.wgsl.expected.fxc.hlsl index 95754e1793f..a0e0ff35613 100644 --- a/test/tint/builtins/gen/literal/bitcast/66e93d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/66e93d.wgsl.expected.fxc.hlsl @@ -1,39 +1,46 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_66e93d() { +vector bitcast_66e93d() { vector res = vector(float16_t(0.00000005960464477539h), float16_t(0.0h)); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_66e93d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_66e93d(); + prevent_dce.Store >(0u, bitcast_66e93d()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_66e93d(); + prevent_dce.Store >(0u, bitcast_66e93d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_66e93d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x00000184E8ACFEE0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000184E8ACFEE0(5,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x00000161EB4CD440(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/66e93d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/66e93d.wgsl.expected.ir.fxc.hlsl index a6410669fb4..3a5853b9c95 100644 --- a/test/tint/builtins/gen/literal/bitcast/66e93d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/66e93d.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F0A6FAF670(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000146CDC05D10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/674557.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/674557.wgsl.expected.fxc.hlsl index 6628d9c1277..8fb14b53ace 100644 --- a/test/tint/builtins/gen/literal/bitcast/674557.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/674557.wgsl.expected.fxc.hlsl @@ -1,39 +1,46 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_674557() { +vector bitcast_674557() { vector res = vector(float16_t(0.00000005960464477539h), float16_t(0.0h)); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_674557(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_674557(); + prevent_dce.Store >(0u, bitcast_674557()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_674557(); + prevent_dce.Store >(0u, bitcast_674557()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_674557(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000001AD2A36FEE0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001AD2A36FEE0(5,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x00000276110BCD40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/674557.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/674557.wgsl.expected.ir.fxc.hlsl index 64a3cda96f4..bf671b458f4 100644 --- a/test/tint/builtins/gen/literal/bitcast/674557.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/674557.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002639B1C0910(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000244EE26F1B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/71c92a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/71c92a.wgsl.expected.fxc.hlsl index 2a2959f4375..b1138f1b39f 100644 --- a/test/tint/builtins/gen/literal/bitcast/71c92a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/71c92a.wgsl.expected.fxc.hlsl @@ -1,39 +1,46 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_71c92a() { +vector bitcast_71c92a() { vector res = vector(float16_t(0.00000005960464477539h), float16_t(0.0h), float16_t(0.00000005960464477539h), float16_t(0.0h)); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_71c92a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_71c92a(); + prevent_dce.Store >(0u, bitcast_71c92a()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_71c92a(); + prevent_dce.Store >(0u, bitcast_71c92a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_71c92a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000001CEE43D1BB0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001CEE43D1BB0(5,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000021A7BA859C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/71c92a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/71c92a.wgsl.expected.ir.fxc.hlsl index b5646b3091d..55ebd9bffbf 100644 --- a/test/tint/builtins/gen/literal/bitcast/71c92a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/71c92a.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A60FB56710(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001ADA8333CC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/9ca42c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/9ca42c.wgsl.expected.fxc.hlsl index 3652ff7672a..614081a5a13 100644 --- a/test/tint/builtins/gen/literal/bitcast/9ca42c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/9ca42c.wgsl.expected.fxc.hlsl @@ -1,39 +1,46 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_9ca42c() { +vector bitcast_9ca42c() { vector res = vector(float16_t(0.0h), float16_t(1.875h)); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_9ca42c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_9ca42c(); + prevent_dce.Store >(0u, bitcast_9ca42c()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_9ca42c(); + prevent_dce.Store >(0u, bitcast_9ca42c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_9ca42c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000001C043C7FEE0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001C043C7FEE0(5,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001FE7E1865E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/9ca42c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/9ca42c.wgsl.expected.ir.fxc.hlsl index fc9a6682b80..d7b63666b7a 100644 --- a/test/tint/builtins/gen/literal/bitcast/9ca42c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/9ca42c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000013E1483F940(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021A965D93C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/bc3994.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/bc3994.wgsl.expected.fxc.hlsl index 66ae38d4e1a..fc9b554ad6f 100644 --- a/test/tint/builtins/gen/literal/bitcast/bc3994.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/bc3994.wgsl.expected.fxc.hlsl @@ -1,39 +1,46 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_bc3994() { +vector bitcast_bc3994() { vector res = vector(float16_t(0.00000005960464477539h), float16_t(0.0h), float16_t(0.00000005960464477539h), float16_t(0.0h)); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_bc3994(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_bc3994(); + prevent_dce.Store >(0u, bitcast_bc3994()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_bc3994(); + prevent_dce.Store >(0u, bitcast_bc3994()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_bc3994(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x00000127B6F41BB0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000127B6F41BB0(5,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000025BA404D440(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/bitcast/bc3994.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/bitcast/bc3994.wgsl.expected.ir.fxc.hlsl index a8418aebb84..578c64682bd 100644 --- a/test/tint/builtins/gen/literal/bitcast/bc3994.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/bitcast/bc3994.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020AC867F500(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002555082BFC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/ceil/09bf52.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/09bf52.wgsl.expected.fxc.hlsl index 0c3b19f30f9..0356f03cd59 100644 --- a/test/tint/builtins/gen/literal/ceil/09bf52.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ceil/09bf52.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ceil_09bf52() { +vector ceil_09bf52() { vector res = (float16_t(2.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ceil_09bf52(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ceil_09bf52(); + prevent_dce.Store >(0u, ceil_09bf52()); return; } [numthreads(1, 1, 1)] void compute_main() { - ceil_09bf52(); + prevent_dce.Store >(0u, ceil_09bf52()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ceil_09bf52(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002032688D500(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ceil/09bf52.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/09bf52.wgsl.expected.ir.fxc.hlsl index 236f37fa3d8..42c608489c3 100644 --- a/test/tint/builtins/gen/literal/ceil/09bf52.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ceil/09bf52.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021E8312F2A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016CA1C865D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/ceil/18c240.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/18c240.wgsl.expected.fxc.hlsl index 91688c3eb40..eeab71f2568 100644 --- a/test/tint/builtins/gen/literal/ceil/18c240.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ceil/18c240.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ceil_18c240() { +vector ceil_18c240() { vector res = (float16_t(2.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ceil_18c240(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ceil_18c240(); + prevent_dce.Store >(0u, ceil_18c240()); return; } [numthreads(1, 1, 1)] void compute_main() { - ceil_18c240(); + prevent_dce.Store >(0u, ceil_18c240()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ceil_18c240(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001275B47AA60(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ceil/18c240.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/18c240.wgsl.expected.ir.fxc.hlsl index 44f4e7fad6a..acf67b28af9 100644 --- a/test/tint/builtins/gen/literal/ceil/18c240.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ceil/18c240.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021C5EE70450(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000219BB88D500(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/ceil/4bca2a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/4bca2a.wgsl.expected.fxc.hlsl index 6faea0a81d3..b11b9237e4c 100644 --- a/test/tint/builtins/gen/literal/ceil/4bca2a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ceil/4bca2a.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ceil_4bca2a() { +vector ceil_4bca2a() { vector res = (float16_t(2.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ceil_4bca2a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ceil_4bca2a(); + prevent_dce.Store >(0u, ceil_4bca2a()); return; } [numthreads(1, 1, 1)] void compute_main() { - ceil_4bca2a(); + prevent_dce.Store >(0u, ceil_4bca2a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ceil_4bca2a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001AE41374290(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ceil/4bca2a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/4bca2a.wgsl.expected.ir.fxc.hlsl index ecd6f8a2393..ab481419d15 100644 --- a/test/tint/builtins/gen/literal/ceil/4bca2a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ceil/4bca2a.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C04361F9D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000213217BD0B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/ceil/f3f889.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/f3f889.wgsl.expected.fxc.hlsl index 9a7d89bd1be..7583c7bf589 100644 --- a/test/tint/builtins/gen/literal/ceil/f3f889.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ceil/f3f889.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ceil_f3f889() { +float16_t ceil_f3f889() { float16_t res = float16_t(2.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ceil_f3f889(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ceil_f3f889(); + prevent_dce.Store(0u, ceil_f3f889()); return; } [numthreads(1, 1, 1)] void compute_main() { - ceil_f3f889(); + prevent_dce.Store(0u, ceil_f3f889()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ceil_f3f889(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A63F6F6210(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ceil/f3f889.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ceil/f3f889.wgsl.expected.ir.fxc.hlsl index 88d9fc16101..40aed5d783d 100644 --- a/test/tint/builtins/gen/literal/ceil/f3f889.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ceil/f3f889.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A44EC1FB80(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002791CC982D0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/clamp/235b29.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/235b29.wgsl.expected.fxc.hlsl index 5cdf0da50a9..b5ad043587c 100644 --- a/test/tint/builtins/gen/literal/clamp/235b29.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/clamp/235b29.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void clamp_235b29() { +vector clamp_235b29() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - clamp_235b29(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - clamp_235b29(); + prevent_dce.Store >(0u, clamp_235b29()); return; } [numthreads(1, 1, 1)] void compute_main() { - clamp_235b29(); + prevent_dce.Store >(0u, clamp_235b29()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = clamp_235b29(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001C417BB63F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/clamp/235b29.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/235b29.wgsl.expected.ir.fxc.hlsl index fb25b934788..429e6bd448d 100644 --- a/test/tint/builtins/gen/literal/clamp/235b29.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/clamp/235b29.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019BBA7FED10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020F8F8BF980(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/clamp/2c251b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/2c251b.wgsl.expected.fxc.hlsl index 76665c49d8f..f635dc23230 100644 --- a/test/tint/builtins/gen/literal/clamp/2c251b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/clamp/2c251b.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void clamp_2c251b() { +vector clamp_2c251b() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - clamp_2c251b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - clamp_2c251b(); + prevent_dce.Store >(0u, clamp_2c251b()); return; } [numthreads(1, 1, 1)] void compute_main() { - clamp_2c251b(); + prevent_dce.Store >(0u, clamp_2c251b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = clamp_2c251b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002E91F4861F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/clamp/2c251b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/2c251b.wgsl.expected.ir.fxc.hlsl index cbaae5dcafc..b003ccefed8 100644 --- a/test/tint/builtins/gen/literal/clamp/2c251b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/clamp/2c251b.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F711F2DC30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D4EAE98F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/clamp/553ffb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/553ffb.wgsl.expected.fxc.hlsl index b2d325d7c7e..f6179cb95fa 100644 --- a/test/tint/builtins/gen/literal/clamp/553ffb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/clamp/553ffb.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void clamp_553ffb() { +float16_t clamp_553ffb() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - clamp_553ffb(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - clamp_553ffb(); + prevent_dce.Store(0u, clamp_553ffb()); return; } [numthreads(1, 1, 1)] void compute_main() { - clamp_553ffb(); + prevent_dce.Store(0u, clamp_553ffb()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = clamp_553ffb(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001BD0B736D60(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/clamp/553ffb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/553ffb.wgsl.expected.ir.fxc.hlsl index 248f8a213d7..56796002284 100644 --- a/test/tint/builtins/gen/literal/clamp/553ffb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/clamp/553ffb.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002AD63511170(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000013556CA61F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/clamp/b195eb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/b195eb.wgsl.expected.fxc.hlsl index a142ba92e85..5ea14b6be4a 100644 --- a/test/tint/builtins/gen/literal/clamp/b195eb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/clamp/b195eb.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void clamp_b195eb() { +vector clamp_b195eb() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - clamp_b195eb(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - clamp_b195eb(); + prevent_dce.Store >(0u, clamp_b195eb()); return; } [numthreads(1, 1, 1)] void compute_main() { - clamp_b195eb(); + prevent_dce.Store >(0u, clamp_b195eb()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = clamp_b195eb(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000015EB3395960(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/clamp/b195eb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/clamp/b195eb.wgsl.expected.ir.fxc.hlsl index e430128d65f..6ceccfbb3f0 100644 --- a/test/tint/builtins/gen/literal/clamp/b195eb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/clamp/b195eb.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F78B073970(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018D634E4FF0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/cos/0835a8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cos/0835a8.wgsl.expected.fxc.hlsl index ddc8085dbc3..a1c2fadef4b 100644 --- a/test/tint/builtins/gen/literal/cos/0835a8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cos/0835a8.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cos_0835a8() { +vector cos_0835a8() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cos_0835a8(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cos_0835a8(); + prevent_dce.Store >(0u, cos_0835a8()); return; } [numthreads(1, 1, 1)] void compute_main() { - cos_0835a8(); + prevent_dce.Store >(0u, cos_0835a8()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cos_0835a8(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000026E52CAD250(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/cos/0835a8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/cos/0835a8.wgsl.expected.ir.fxc.hlsl index 17542e55253..02b4544c7da 100644 --- a/test/tint/builtins/gen/literal/cos/0835a8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cos/0835a8.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FD09BBF9D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002369C7B65F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/cos/0a89f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cos/0a89f7.wgsl.expected.fxc.hlsl index 1d55912776e..c954b05987d 100644 --- a/test/tint/builtins/gen/literal/cos/0a89f7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cos/0a89f7.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cos_0a89f7() { +vector cos_0a89f7() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cos_0a89f7(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cos_0a89f7(); + prevent_dce.Store >(0u, cos_0a89f7()); return; } [numthreads(1, 1, 1)] void compute_main() { - cos_0a89f7(); + prevent_dce.Store >(0u, cos_0a89f7()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cos_0a89f7(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000018E1E3B5850(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/cos/0a89f7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/cos/0a89f7.wgsl.expected.ir.fxc.hlsl index aa9a3398cfd..ea9808825aa 100644 --- a/test/tint/builtins/gen/literal/cos/0a89f7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cos/0a89f7.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B5E2C1F4D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002463FCC50C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/cos/5bc2c6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cos/5bc2c6.wgsl.expected.fxc.hlsl index 38a711f40ed..ab09bfeb82f 100644 --- a/test/tint/builtins/gen/literal/cos/5bc2c6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cos/5bc2c6.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cos_5bc2c6() { +vector cos_5bc2c6() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cos_5bc2c6(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cos_5bc2c6(); + prevent_dce.Store >(0u, cos_5bc2c6()); return; } [numthreads(1, 1, 1)] void compute_main() { - cos_5bc2c6(); + prevent_dce.Store >(0u, cos_5bc2c6()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cos_5bc2c6(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000016169CA6150(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/cos/5bc2c6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/cos/5bc2c6.wgsl.expected.ir.fxc.hlsl index 6a98813668c..001fc5e93ca 100644 --- a/test/tint/builtins/gen/literal/cos/5bc2c6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cos/5bc2c6.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CE1A0AFB80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002065DBBB1A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/cos/fc047d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cos/fc047d.wgsl.expected.fxc.hlsl index e15c6232dfe..6a47c8f0a17 100644 --- a/test/tint/builtins/gen/literal/cos/fc047d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cos/fc047d.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cos_fc047d() { +float16_t cos_fc047d() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cos_fc047d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cos_fc047d(); + prevent_dce.Store(0u, cos_fc047d()); return; } [numthreads(1, 1, 1)] void compute_main() { - cos_fc047d(); + prevent_dce.Store(0u, cos_fc047d()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cos_fc047d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E6E5DD6C10(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/cos/fc047d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/cos/fc047d.wgsl.expected.ir.fxc.hlsl index 9a95dbc1ea9..3f8331b47aa 100644 --- a/test/tint/builtins/gen/literal/cos/fc047d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cos/fc047d.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FC1B87EEC0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000026710A14180(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/cosh/2ed778.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/2ed778.wgsl.expected.fxc.hlsl index 6b21c5416dd..860ef5279ac 100644 --- a/test/tint/builtins/gen/literal/cosh/2ed778.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cosh/2ed778.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cosh_2ed778() { +float16_t cosh_2ed778() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cosh_2ed778(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cosh_2ed778(); + prevent_dce.Store(0u, cosh_2ed778()); return; } [numthreads(1, 1, 1)] void compute_main() { - cosh_2ed778(); + prevent_dce.Store(0u, cosh_2ed778()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cosh_2ed778(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001CE1F2FC470(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/cosh/2ed778.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/2ed778.wgsl.expected.ir.fxc.hlsl index 47b62bd74a7..5c03090058a 100644 --- a/test/tint/builtins/gen/literal/cosh/2ed778.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cosh/2ed778.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002627F15EEC0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000013AD47B61F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/cosh/3b7bbf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/3b7bbf.wgsl.expected.fxc.hlsl index 48030f0e906..c638db8f7a5 100644 --- a/test/tint/builtins/gen/literal/cosh/3b7bbf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cosh/3b7bbf.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cosh_3b7bbf() { +vector cosh_3b7bbf() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cosh_3b7bbf(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cosh_3b7bbf(); + prevent_dce.Store >(0u, cosh_3b7bbf()); return; } [numthreads(1, 1, 1)] void compute_main() { - cosh_3b7bbf(); + prevent_dce.Store >(0u, cosh_3b7bbf()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cosh_3b7bbf(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000210DA5E60B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/cosh/3b7bbf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/3b7bbf.wgsl.expected.ir.fxc.hlsl index cdb530af36e..e0e53f77243 100644 --- a/test/tint/builtins/gen/literal/cosh/3b7bbf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cosh/3b7bbf.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E7C8BFE9D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002C7F6F6BB90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/cosh/43b672.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/43b672.wgsl.expected.fxc.hlsl index 33088aacb12..8e01fe038e1 100644 --- a/test/tint/builtins/gen/literal/cosh/43b672.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cosh/43b672.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cosh_43b672() { +vector cosh_43b672() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cosh_43b672(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cosh_43b672(); + prevent_dce.Store >(0u, cosh_43b672()); return; } [numthreads(1, 1, 1)] void compute_main() { - cosh_43b672(); + prevent_dce.Store >(0u, cosh_43b672()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cosh_43b672(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020A8AB53C60(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/cosh/43b672.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/43b672.wgsl.expected.ir.fxc.hlsl index 9884f1c6ed6..fcb888c25b9 100644 --- a/test/tint/builtins/gen/literal/cosh/43b672.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cosh/43b672.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000264FFA9FB90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000266CE3F9610(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/cosh/b1b8a0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/b1b8a0.wgsl.expected.fxc.hlsl index e59daa0f5ee..d90565d447a 100644 --- a/test/tint/builtins/gen/literal/cosh/b1b8a0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cosh/b1b8a0.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cosh_b1b8a0() { +vector cosh_b1b8a0() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cosh_b1b8a0(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cosh_b1b8a0(); + prevent_dce.Store >(0u, cosh_b1b8a0()); return; } [numthreads(1, 1, 1)] void compute_main() { - cosh_b1b8a0(); + prevent_dce.Store >(0u, cosh_b1b8a0()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cosh_b1b8a0(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025C9F8D4670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/cosh/b1b8a0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/cosh/b1b8a0.wgsl.expected.ir.fxc.hlsl index 0e0e069a8bb..a0d429dfcc8 100644 --- a/test/tint/builtins/gen/literal/cosh/b1b8a0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cosh/b1b8a0.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025B48A8F940(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000125A54C64C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/cross/9857cb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/cross/9857cb.wgsl.expected.fxc.hlsl index 24782916573..a48e8064bfa 100644 --- a/test/tint/builtins/gen/literal/cross/9857cb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cross/9857cb.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cross_9857cb() { +vector cross_9857cb() { vector res = (float16_t(0.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cross_9857cb(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cross_9857cb(); + prevent_dce.Store >(0u, cross_9857cb()); return; } [numthreads(1, 1, 1)] void compute_main() { - cross_9857cb(); + prevent_dce.Store >(0u, cross_9857cb()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cross_9857cb(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002661045BA10(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/cross/9857cb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/cross/9857cb.wgsl.expected.ir.fxc.hlsl index 218142ff0f6..e7df9ac9dc5 100644 --- a/test/tint/builtins/gen/literal/cross/9857cb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/cross/9857cb.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000249849AE920(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A0C1458FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/degrees/3055d3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/3055d3.wgsl.expected.fxc.hlsl index 09e3796df94..3cb3d1f0049 100644 --- a/test/tint/builtins/gen/literal/degrees/3055d3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/degrees/3055d3.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void degrees_3055d3() { +vector degrees_3055d3() { vector res = (float16_t(57.3125h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - degrees_3055d3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - degrees_3055d3(); + prevent_dce.Store >(0u, degrees_3055d3()); return; } [numthreads(1, 1, 1)] void compute_main() { - degrees_3055d3(); + prevent_dce.Store >(0u, degrees_3055d3()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = degrees_3055d3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D75F1C6D80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/degrees/3055d3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/3055d3.wgsl.expected.ir.fxc.hlsl index ccafb2d21ff..7e0fbe76237 100644 --- a/test/tint/builtins/gen/literal/degrees/3055d3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/degrees/3055d3.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002715BFBE9C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000171BFBD50C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/degrees/5e9805.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/5e9805.wgsl.expected.fxc.hlsl index 909d86f4806..6fd05757856 100644 --- a/test/tint/builtins/gen/literal/degrees/5e9805.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/degrees/5e9805.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void degrees_5e9805() { +float16_t degrees_5e9805() { float16_t res = float16_t(57.3125h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - degrees_5e9805(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - degrees_5e9805(); + prevent_dce.Store(0u, degrees_5e9805()); return; } [numthreads(1, 1, 1)] void compute_main() { - degrees_5e9805(); + prevent_dce.Store(0u, degrees_5e9805()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = degrees_5e9805(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002317F4461E0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/degrees/5e9805.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/5e9805.wgsl.expected.ir.fxc.hlsl index bf2e0b42240..984328c9fe4 100644 --- a/test/tint/builtins/gen/literal/degrees/5e9805.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/degrees/5e9805.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A6E8911500(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000019DD42668B0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/degrees/dfe8f4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/dfe8f4.wgsl.expected.fxc.hlsl index f09b6f2a89f..2a0ba60237a 100644 --- a/test/tint/builtins/gen/literal/degrees/dfe8f4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/degrees/dfe8f4.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void degrees_dfe8f4() { +vector degrees_dfe8f4() { vector res = (float16_t(57.3125h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - degrees_dfe8f4(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - degrees_dfe8f4(); + prevent_dce.Store >(0u, degrees_dfe8f4()); return; } [numthreads(1, 1, 1)] void compute_main() { - degrees_dfe8f4(); + prevent_dce.Store >(0u, degrees_dfe8f4()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = degrees_dfe8f4(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002285AC0C1A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/degrees/dfe8f4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/dfe8f4.wgsl.expected.ir.fxc.hlsl index 63b07f6a5a1..915fa5fd1af 100644 --- a/test/tint/builtins/gen/literal/degrees/dfe8f4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/degrees/dfe8f4.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024E496EFB90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017D5CDF3A30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/degrees/f59715.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/f59715.wgsl.expected.fxc.hlsl index 092a964e041..30ea4b40785 100644 --- a/test/tint/builtins/gen/literal/degrees/f59715.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/degrees/f59715.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void degrees_f59715() { +vector degrees_f59715() { vector res = (float16_t(57.3125h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - degrees_f59715(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - degrees_f59715(); + prevent_dce.Store >(0u, degrees_f59715()); return; } [numthreads(1, 1, 1)] void compute_main() { - degrees_f59715(); + prevent_dce.Store >(0u, degrees_f59715()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = degrees_f59715(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000019708CA65D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/degrees/f59715.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/degrees/f59715.wgsl.expected.ir.fxc.hlsl index ffd3cf4b48e..bf08ca7d330 100644 --- a/test/tint/builtins/gen/literal/degrees/f59715.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/degrees/f59715.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027B6233F140(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000210B610AFC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/determinant/32bfde.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/determinant/32bfde.wgsl.expected.fxc.hlsl index a9663db9a21..3805796bc7a 100644 --- a/test/tint/builtins/gen/literal/determinant/32bfde.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/determinant/32bfde.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void determinant_32bfde() { +float16_t determinant_32bfde() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - determinant_32bfde(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - determinant_32bfde(); + prevent_dce.Store(0u, determinant_32bfde()); return; } [numthreads(1, 1, 1)] void compute_main() { - determinant_32bfde(); + prevent_dce.Store(0u, determinant_32bfde()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = determinant_32bfde(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000016F361E6600(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/determinant/32bfde.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/determinant/32bfde.wgsl.expected.ir.fxc.hlsl index 593fb785937..b85e3035013 100644 --- a/test/tint/builtins/gen/literal/determinant/32bfde.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/determinant/32bfde.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017A17060ED0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022C34112B00(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/determinant/d7c86f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/determinant/d7c86f.wgsl.expected.fxc.hlsl index c3f37ef1870..674949d573d 100644 --- a/test/tint/builtins/gen/literal/determinant/d7c86f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/determinant/d7c86f.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void determinant_d7c86f() { +float16_t determinant_d7c86f() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - determinant_d7c86f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - determinant_d7c86f(); + prevent_dce.Store(0u, determinant_d7c86f()); return; } [numthreads(1, 1, 1)] void compute_main() { - determinant_d7c86f(); + prevent_dce.Store(0u, determinant_d7c86f()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = determinant_d7c86f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000026D01725520(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/determinant/d7c86f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/determinant/d7c86f.wgsl.expected.ir.fxc.hlsl index 631a5ed9d05..f5e802cbb8e 100644 --- a/test/tint/builtins/gen/literal/determinant/d7c86f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/determinant/d7c86f.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E88DD8F7D0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C984DED560(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl.expected.fxc.hlsl index 9db0c8dde5d..e7bf93a08f0 100644 --- a/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void determinant_fc12a5() { +float16_t determinant_fc12a5() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - determinant_fc12a5(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - determinant_fc12a5(); + prevent_dce.Store(0u, determinant_fc12a5()); return; } [numthreads(1, 1, 1)] void compute_main() { - determinant_fc12a5(); + prevent_dce.Store(0u, determinant_fc12a5()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = determinant_fc12a5(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001449434D460(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl.expected.ir.fxc.hlsl index c652c7d1124..efaa3051a10 100644 --- a/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C6AA56E990(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022345C6D580(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/distance/7272f3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/distance/7272f3.wgsl.expected.fxc.hlsl index 1d88dc193d1..bc8312f3d5b 100644 --- a/test/tint/builtins/gen/literal/distance/7272f3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/distance/7272f3.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void distance_7272f3() { +float16_t distance_7272f3() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - distance_7272f3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - distance_7272f3(); + prevent_dce.Store(0u, distance_7272f3()); return; } [numthreads(1, 1, 1)] void compute_main() { - distance_7272f3(); + prevent_dce.Store(0u, distance_7272f3()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = distance_7272f3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000183A9794BF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/distance/7272f3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/distance/7272f3.wgsl.expected.ir.fxc.hlsl index 7766f6c6e4f..408f9495d20 100644 --- a/test/tint/builtins/gen/literal/distance/7272f3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/distance/7272f3.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024DC89D8000(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000204008C9B40(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/distance/7d201f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/distance/7d201f.wgsl.expected.fxc.hlsl index 29bf0f33029..335310c86ab 100644 --- a/test/tint/builtins/gen/literal/distance/7d201f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/distance/7d201f.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void distance_7d201f() { +float16_t distance_7d201f() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - distance_7d201f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - distance_7d201f(); + prevent_dce.Store(0u, distance_7d201f()); return; } [numthreads(1, 1, 1)] void compute_main() { - distance_7d201f(); + prevent_dce.Store(0u, distance_7d201f()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = distance_7d201f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020EA5143CC0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/distance/7d201f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/distance/7d201f.wgsl.expected.ir.fxc.hlsl index 372341da04f..3332e41f57f 100644 --- a/test/tint/builtins/gen/literal/distance/7d201f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/distance/7d201f.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025B9D1A0160(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001F9963B4F70(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/distance/892a5d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/distance/892a5d.wgsl.expected.fxc.hlsl index 5e74981ecdf..6e2dafb2d32 100644 --- a/test/tint/builtins/gen/literal/distance/892a5d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/distance/892a5d.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void distance_892a5d() { +float16_t distance_892a5d() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - distance_892a5d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - distance_892a5d(); + prevent_dce.Store(0u, distance_892a5d()); return; } [numthreads(1, 1, 1)] void compute_main() { - distance_892a5d(); + prevent_dce.Store(0u, distance_892a5d()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = distance_892a5d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021B442D65C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/distance/892a5d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/distance/892a5d.wgsl.expected.ir.fxc.hlsl index 4e22b8ccf05..d9255db6a46 100644 --- a/test/tint/builtins/gen/literal/distance/892a5d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/distance/892a5d.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002763DC752F0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000029051374E70(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/distance/928fa0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/distance/928fa0.wgsl.expected.fxc.hlsl index 57550056e55..60793d60cbf 100644 --- a/test/tint/builtins/gen/literal/distance/928fa0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/distance/928fa0.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void distance_928fa0() { +float16_t distance_928fa0() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - distance_928fa0(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - distance_928fa0(); + prevent_dce.Store(0u, distance_928fa0()); return; } [numthreads(1, 1, 1)] void compute_main() { - distance_928fa0(); + prevent_dce.Store(0u, distance_928fa0()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = distance_928fa0(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000022A2C0EB6E0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/distance/928fa0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/distance/928fa0.wgsl.expected.ir.fxc.hlsl index 1b35ebc43af..ac26d3670c9 100644 --- a/test/tint/builtins/gen/literal/distance/928fa0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/distance/928fa0.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000287E32214B0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000018E5E2B8B70(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/dot/8e40f1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/8e40f1.wgsl.expected.fxc.hlsl index bbe4fea77c9..d7402a89b9a 100644 --- a/test/tint/builtins/gen/literal/dot/8e40f1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/dot/8e40f1.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void dot_8e40f1() { +float16_t dot_8e40f1() { float16_t res = float16_t(3.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - dot_8e40f1(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - dot_8e40f1(); + prevent_dce.Store(0u, dot_8e40f1()); return; } [numthreads(1, 1, 1)] void compute_main() { - dot_8e40f1(); + prevent_dce.Store(0u, dot_8e40f1()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = dot_8e40f1(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D1C6387F80(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/dot/8e40f1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/dot/8e40f1.wgsl.expected.ir.fxc.hlsl index f4e2441d6c0..03eb5e861e3 100644 --- a/test/tint/builtins/gen/literal/dot/8e40f1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/dot/8e40f1.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C55AB3F790(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000020C08CCB6E0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/dot/cd5a04.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/cd5a04.wgsl.expected.fxc.hlsl index c1283eb03fd..6559cebd01c 100644 --- a/test/tint/builtins/gen/literal/dot/cd5a04.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/dot/cd5a04.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void dot_cd5a04() { +float16_t dot_cd5a04() { float16_t res = float16_t(2.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - dot_cd5a04(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - dot_cd5a04(); + prevent_dce.Store(0u, dot_cd5a04()); return; } [numthreads(1, 1, 1)] void compute_main() { - dot_cd5a04(); + prevent_dce.Store(0u, dot_cd5a04()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = dot_cd5a04(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000261CDF160C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/dot/cd5a04.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/dot/cd5a04.wgsl.expected.ir.fxc.hlsl index e0df97140fc..2ff6ab6c9f4 100644 --- a/test/tint/builtins/gen/literal/dot/cd5a04.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/dot/cd5a04.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020A4F0F5320(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E600216220(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/dot/d0d179.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/dot/d0d179.wgsl.expected.fxc.hlsl index 31b28363894..254e3902206 100644 --- a/test/tint/builtins/gen/literal/dot/d0d179.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/dot/d0d179.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void dot_d0d179() { +float16_t dot_d0d179() { float16_t res = float16_t(4.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - dot_d0d179(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - dot_d0d179(); + prevent_dce.Store(0u, dot_d0d179()); return; } [numthreads(1, 1, 1)] void compute_main() { - dot_d0d179(); + prevent_dce.Store(0u, dot_d0d179()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = dot_d0d179(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D9192360C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/dot/d0d179.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/dot/d0d179.wgsl.expected.ir.fxc.hlsl index b6fc34400f6..a663bbf3c8c 100644 --- a/test/tint/builtins/gen/literal/dot/d0d179.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/dot/d0d179.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002848126E940(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C6CD7A9AE0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/exp/13806d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp/13806d.wgsl.expected.fxc.hlsl index a5e5d72bfc3..8f464414985 100644 --- a/test/tint/builtins/gen/literal/exp/13806d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp/13806d.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp_13806d() { +vector exp_13806d() { vector res = (float16_t(2.716796875h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp_13806d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp_13806d(); + prevent_dce.Store >(0u, exp_13806d()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp_13806d(); + prevent_dce.Store >(0u, exp_13806d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp_13806d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025F646164A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/exp/13806d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/exp/13806d.wgsl.expected.ir.fxc.hlsl index 7ea58e78c72..f1c6b6fcdca 100644 --- a/test/tint/builtins/gen/literal/exp/13806d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp/13806d.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FFE68A05D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014A23DC86D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/exp/2e08e2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp/2e08e2.wgsl.expected.fxc.hlsl index 12f9da422fa..c00dd321ebf 100644 --- a/test/tint/builtins/gen/literal/exp/2e08e2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp/2e08e2.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp_2e08e2() { +vector exp_2e08e2() { vector res = (float16_t(2.716796875h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp_2e08e2(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp_2e08e2(); + prevent_dce.Store >(0u, exp_2e08e2()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp_2e08e2(); + prevent_dce.Store >(0u, exp_2e08e2()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp_2e08e2(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000187FB01C380(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/exp/2e08e2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/exp/2e08e2.wgsl.expected.ir.fxc.hlsl index 631b1a3b067..b35b4bd0b9f 100644 --- a/test/tint/builtins/gen/literal/exp/2e08e2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp/2e08e2.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E9CFB3D590(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002631F4AF9E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/exp/611a87.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp/611a87.wgsl.expected.fxc.hlsl index b2cfb0c1762..530da32fd53 100644 --- a/test/tint/builtins/gen/literal/exp/611a87.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp/611a87.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp_611a87() { +vector exp_611a87() { vector res = (float16_t(2.716796875h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp_611a87(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp_611a87(); + prevent_dce.Store >(0u, exp_611a87()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp_611a87(); + prevent_dce.Store >(0u, exp_611a87()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp_611a87(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002984DD37F80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/exp/611a87.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/exp/611a87.wgsl.expected.ir.fxc.hlsl index 7d89a833d4f..9e1dcafa703 100644 --- a/test/tint/builtins/gen/literal/exp/611a87.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp/611a87.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025602F7E9C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D511CA8500(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/exp/c18fe9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp/c18fe9.wgsl.expected.fxc.hlsl index dbee59b7344..0e31a97568c 100644 --- a/test/tint/builtins/gen/literal/exp/c18fe9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp/c18fe9.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp_c18fe9() { +float16_t exp_c18fe9() { float16_t res = float16_t(2.716796875h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp_c18fe9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp_c18fe9(); + prevent_dce.Store(0u, exp_c18fe9()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp_c18fe9(); + prevent_dce.Store(0u, exp_c18fe9()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp_c18fe9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000024820C16C10(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/exp/c18fe9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/exp/c18fe9.wgsl.expected.ir.fxc.hlsl index adf554bf3fc..90607f92893 100644 --- a/test/tint/builtins/gen/literal/exp/c18fe9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp/c18fe9.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CC6F3EFB80(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001B66AD4E810(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/exp2/151a4c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/151a4c.wgsl.expected.fxc.hlsl index db10912501c..a03e111a444 100644 --- a/test/tint/builtins/gen/literal/exp2/151a4c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp2/151a4c.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp2_151a4c() { +vector exp2_151a4c() { vector res = (float16_t(2.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp2_151a4c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp2_151a4c(); + prevent_dce.Store >(0u, exp2_151a4c()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp2_151a4c(); + prevent_dce.Store >(0u, exp2_151a4c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp2_151a4c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E5201DBA00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/exp2/151a4c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/151a4c.wgsl.expected.ir.fxc.hlsl index 174bed0ca88..6ee68b13320 100644 --- a/test/tint/builtins/gen/literal/exp2/151a4c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp2/151a4c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000232A9C7F4F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DEBF9A4FD0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/exp2/751377.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/751377.wgsl.expected.fxc.hlsl index 015bdc0937e..f831bee2ebd 100644 --- a/test/tint/builtins/gen/literal/exp2/751377.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp2/751377.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp2_751377() { +vector exp2_751377() { vector res = (float16_t(2.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp2_751377(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp2_751377(); + prevent_dce.Store >(0u, exp2_751377()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp2_751377(); + prevent_dce.Store >(0u, exp2_751377()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp2_751377(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000247F8E2BA00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/exp2/751377.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/751377.wgsl.expected.ir.fxc.hlsl index 004f2b24024..ca8d5183f45 100644 --- a/test/tint/builtins/gen/literal/exp2/751377.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp2/751377.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022837945550(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A3BB2264C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/exp2/b408e4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/b408e4.wgsl.expected.fxc.hlsl index 8053410d7b7..fe0b08b7b00 100644 --- a/test/tint/builtins/gen/literal/exp2/b408e4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp2/b408e4.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp2_b408e4() { +float16_t exp2_b408e4() { float16_t res = float16_t(2.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp2_b408e4(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp2_b408e4(); + prevent_dce.Store(0u, exp2_b408e4()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp2_b408e4(); + prevent_dce.Store(0u, exp2_b408e4()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp2_b408e4(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002537FCB3CF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/exp2/b408e4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/b408e4.wgsl.expected.ir.fxc.hlsl index 20dff2e431f..b5324d8a1db 100644 --- a/test/tint/builtins/gen/literal/exp2/b408e4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp2/b408e4.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002419379F280(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000021DC2E160B0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/exp2/ffa827.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/ffa827.wgsl.expected.fxc.hlsl index b8d120c558f..9364ea9bd3a 100644 --- a/test/tint/builtins/gen/literal/exp2/ffa827.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp2/ffa827.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp2_ffa827() { +vector exp2_ffa827() { vector res = (float16_t(2.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp2_ffa827(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp2_ffa827(); + prevent_dce.Store >(0u, exp2_ffa827()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp2_ffa827(); + prevent_dce.Store >(0u, exp2_ffa827()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp2_ffa827(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002418C0542B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/exp2/ffa827.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/exp2/ffa827.wgsl.expected.ir.fxc.hlsl index a39973e84be..20d4f221340 100644 --- a/test/tint/builtins/gen/literal/exp2/ffa827.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/exp2/ffa827.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000116BA4DE490(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020746226750(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/faceForward/524986.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/faceForward/524986.wgsl.expected.fxc.hlsl index 3c0652b1f78..4a6ad92db24 100644 --- a/test/tint/builtins/gen/literal/faceForward/524986.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/faceForward/524986.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void faceForward_524986() { +vector faceForward_524986() { vector res = (float16_t(-1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - faceForward_524986(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - faceForward_524986(); + prevent_dce.Store >(0u, faceForward_524986()); return; } [numthreads(1, 1, 1)] void compute_main() { - faceForward_524986(); + prevent_dce.Store >(0u, faceForward_524986()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = faceForward_524986(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002BC05AA6630(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/faceForward/524986.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/faceForward/524986.wgsl.expected.ir.fxc.hlsl index bfaa05e8a31..1c477e7596f 100644 --- a/test/tint/builtins/gen/literal/faceForward/524986.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/faceForward/524986.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021CAF8EE760(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D805FBF9A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/faceForward/cc63dc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/faceForward/cc63dc.wgsl.expected.fxc.hlsl index 4669b4c3a03..9617a8aad3b 100644 --- a/test/tint/builtins/gen/literal/faceForward/cc63dc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/faceForward/cc63dc.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void faceForward_cc63dc() { +vector faceForward_cc63dc() { vector res = (float16_t(-1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - faceForward_cc63dc(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - faceForward_cc63dc(); + prevent_dce.Store >(0u, faceForward_cc63dc()); return; } [numthreads(1, 1, 1)] void compute_main() { - faceForward_cc63dc(); + prevent_dce.Store >(0u, faceForward_cc63dc()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = faceForward_cc63dc(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020B663CBD20(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/faceForward/cc63dc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/faceForward/cc63dc.wgsl.expected.ir.fxc.hlsl index 5ecdcd51f8b..e658410f663 100644 --- a/test/tint/builtins/gen/literal/faceForward/cc63dc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/faceForward/cc63dc.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000295F0800A10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DBDA1F9B00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/faceForward/fb0f2e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/faceForward/fb0f2e.wgsl.expected.fxc.hlsl index f9c4ad890e3..72eb6759b37 100644 --- a/test/tint/builtins/gen/literal/faceForward/fb0f2e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/faceForward/fb0f2e.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void faceForward_fb0f2e() { +vector faceForward_fb0f2e() { vector res = (float16_t(-1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - faceForward_fb0f2e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - faceForward_fb0f2e(); + prevent_dce.Store >(0u, faceForward_fb0f2e()); return; } [numthreads(1, 1, 1)] void compute_main() { - faceForward_fb0f2e(); + prevent_dce.Store >(0u, faceForward_fb0f2e()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = faceForward_fb0f2e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021AC4380810(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/faceForward/fb0f2e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/faceForward/fb0f2e.wgsl.expected.ir.fxc.hlsl index 95cc2628fd6..7ac8c1b187c 100644 --- a/test/tint/builtins/gen/literal/faceForward/fb0f2e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/faceForward/fb0f2e.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B8A26104A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020426CC8FC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/floor/3802c0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/floor/3802c0.wgsl.expected.fxc.hlsl index 0c8e2f72072..7bb5bf6e075 100644 --- a/test/tint/builtins/gen/literal/floor/3802c0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/floor/3802c0.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void floor_3802c0() { +vector floor_3802c0() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - floor_3802c0(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - floor_3802c0(); + prevent_dce.Store >(0u, floor_3802c0()); return; } [numthreads(1, 1, 1)] void compute_main() { - floor_3802c0(); + prevent_dce.Store >(0u, floor_3802c0()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = floor_3802c0(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001C1654742B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/floor/3802c0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/floor/3802c0.wgsl.expected.ir.fxc.hlsl index 895710cb02d..4df8ce6e8c6 100644 --- a/test/tint/builtins/gen/literal/floor/3802c0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/floor/3802c0.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001445DF65550(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D8FB3C52F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/floor/84658c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/floor/84658c.wgsl.expected.fxc.hlsl index ffccb1b60b9..3dd45338c22 100644 --- a/test/tint/builtins/gen/literal/floor/84658c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/floor/84658c.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void floor_84658c() { +vector floor_84658c() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - floor_84658c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - floor_84658c(); + prevent_dce.Store >(0u, floor_84658c()); return; } [numthreads(1, 1, 1)] void compute_main() { - floor_84658c(); + prevent_dce.Store >(0u, floor_84658c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = floor_84658c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000013CE64C65C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/floor/84658c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/floor/84658c.wgsl.expected.ir.fxc.hlsl index d34ee7deaf9..503e8755a2d 100644 --- a/test/tint/builtins/gen/literal/floor/84658c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/floor/84658c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EA5AABFB90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019F5C874F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/floor/a2d31b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/floor/a2d31b.wgsl.expected.fxc.hlsl index b124d33d82b..53f6a5285ad 100644 --- a/test/tint/builtins/gen/literal/floor/a2d31b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/floor/a2d31b.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void floor_a2d31b() { +vector floor_a2d31b() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - floor_a2d31b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - floor_a2d31b(); + prevent_dce.Store >(0u, floor_a2d31b()); return; } [numthreads(1, 1, 1)] void compute_main() { - floor_a2d31b(); + prevent_dce.Store >(0u, floor_a2d31b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = floor_a2d31b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000024670D54290(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/floor/a2d31b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/floor/a2d31b.wgsl.expected.ir.fxc.hlsl index 3a10e7bc577..41143efca26 100644 --- a/test/tint/builtins/gen/literal/floor/a2d31b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/floor/a2d31b.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016BF3B0F860(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021C13086750(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/floor/b6e09c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/floor/b6e09c.wgsl.expected.fxc.hlsl index 90dbb728e34..6b5d7752fa6 100644 --- a/test/tint/builtins/gen/literal/floor/b6e09c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/floor/b6e09c.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void floor_b6e09c() { +float16_t floor_b6e09c() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - floor_b6e09c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - floor_b6e09c(); + prevent_dce.Store(0u, floor_b6e09c()); return; } [numthreads(1, 1, 1)] void compute_main() { - floor_b6e09c(); + prevent_dce.Store(0u, floor_b6e09c()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = floor_b6e09c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000016EB97F65E0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/floor/b6e09c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/floor/b6e09c.wgsl.expected.ir.fxc.hlsl index 793e869ed54..f05c00ae7f9 100644 --- a/test/tint/builtins/gen/literal/floor/b6e09c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/floor/b6e09c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000012B59C9F280(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002AE597C4E50(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/fma/ab7818.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fma/ab7818.wgsl.expected.fxc.hlsl index 39ad777b644..268712a1fa2 100644 --- a/test/tint/builtins/gen/literal/fma/ab7818.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fma/ab7818.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fma_ab7818() { +vector fma_ab7818() { vector res = (float16_t(2.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fma_ab7818(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fma_ab7818(); + prevent_dce.Store >(0u, fma_ab7818()); return; } [numthreads(1, 1, 1)] void compute_main() { - fma_ab7818(); + prevent_dce.Store >(0u, fma_ab7818()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fma_ab7818(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001DBE78D6520(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/fma/ab7818.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/fma/ab7818.wgsl.expected.ir.fxc.hlsl index cdec78d00a5..840fb5fd0d7 100644 --- a/test/tint/builtins/gen/literal/fma/ab7818.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fma/ab7818.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002735841F700(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000136CAB16220(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/fma/bf21b6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fma/bf21b6.wgsl.expected.fxc.hlsl index f8b51c4712c..486ba220578 100644 --- a/test/tint/builtins/gen/literal/fma/bf21b6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fma/bf21b6.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fma_bf21b6() { +vector fma_bf21b6() { vector res = (float16_t(2.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fma_bf21b6(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fma_bf21b6(); + prevent_dce.Store >(0u, fma_bf21b6()); return; } [numthreads(1, 1, 1)] void compute_main() { - fma_bf21b6(); + prevent_dce.Store >(0u, fma_bf21b6()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fma_bf21b6(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000023930656560(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/fma/bf21b6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/fma/bf21b6.wgsl.expected.ir.fxc.hlsl index e98a0c1e5e6..71cfcd48d8c 100644 --- a/test/tint/builtins/gen/literal/fma/bf21b6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fma/bf21b6.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000014AF9D5EBC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002AD7A0DBD80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/fma/c8abb3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fma/c8abb3.wgsl.expected.fxc.hlsl index 1592b24a228..0be77884fbe 100644 --- a/test/tint/builtins/gen/literal/fma/c8abb3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fma/c8abb3.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fma_c8abb3() { +float16_t fma_c8abb3() { float16_t res = float16_t(2.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fma_c8abb3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fma_c8abb3(); + prevent_dce.Store(0u, fma_c8abb3()); return; } [numthreads(1, 1, 1)] void compute_main() { - fma_c8abb3(); + prevent_dce.Store(0u, fma_c8abb3()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fma_c8abb3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000024DE9916C80(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/fma/c8abb3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/fma/c8abb3.wgsl.expected.ir.fxc.hlsl index e53ec89ccf7..eca1249b481 100644 --- a/test/tint/builtins/gen/literal/fma/c8abb3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fma/c8abb3.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000012A2734F220(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001FB663C61F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/fma/e7abdc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fma/e7abdc.wgsl.expected.fxc.hlsl index 217100a1dba..52fa620ef21 100644 --- a/test/tint/builtins/gen/literal/fma/e7abdc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fma/e7abdc.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fma_e7abdc() { +vector fma_e7abdc() { vector res = (float16_t(2.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fma_e7abdc(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fma_e7abdc(); + prevent_dce.Store >(0u, fma_e7abdc()); return; } [numthreads(1, 1, 1)] void compute_main() { - fma_e7abdc(); + prevent_dce.Store >(0u, fma_e7abdc()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fma_e7abdc(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000243E61E3CF0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/fma/e7abdc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/fma/e7abdc.wgsl.expected.ir.fxc.hlsl index 05594300d58..2743ed243ca 100644 --- a/test/tint/builtins/gen/literal/fma/e7abdc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fma/e7abdc.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025BFA226F60(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022AF4A58F10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/fract/181aa9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fract/181aa9.wgsl.expected.fxc.hlsl index 8675ec68c35..d0a9d0c5fe8 100644 --- a/test/tint/builtins/gen/literal/fract/181aa9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fract/181aa9.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fract_181aa9() { +vector fract_181aa9() { vector res = (float16_t(0.25h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fract_181aa9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fract_181aa9(); + prevent_dce.Store >(0u, fract_181aa9()); return; } [numthreads(1, 1, 1)] void compute_main() { - fract_181aa9(); + prevent_dce.Store >(0u, fract_181aa9()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fract_181aa9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020D75E8E690(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/fract/181aa9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/fract/181aa9.wgsl.expected.ir.fxc.hlsl index 24ae2e2224d..52077e81464 100644 --- a/test/tint/builtins/gen/literal/fract/181aa9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fract/181aa9.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002263877F2A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000229F61163C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/fract/498c77.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fract/498c77.wgsl.expected.fxc.hlsl index 218fbde9cac..bbee8b65ae8 100644 --- a/test/tint/builtins/gen/literal/fract/498c77.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fract/498c77.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fract_498c77() { +vector fract_498c77() { vector res = (float16_t(0.25h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fract_498c77(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fract_498c77(); + prevent_dce.Store >(0u, fract_498c77()); return; } [numthreads(1, 1, 1)] void compute_main() { - fract_498c77(); + prevent_dce.Store >(0u, fract_498c77()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fract_498c77(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000023B2A23BB90(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/fract/498c77.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/fract/498c77.wgsl.expected.ir.fxc.hlsl index 254569478f7..8f10c03e84c 100644 --- a/test/tint/builtins/gen/literal/fract/498c77.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fract/498c77.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000215EB3FF9D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020D026F5220(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/fract/958a1d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fract/958a1d.wgsl.expected.fxc.hlsl index ddc3b0a2acf..2ec2efa912e 100644 --- a/test/tint/builtins/gen/literal/fract/958a1d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fract/958a1d.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fract_958a1d() { +vector fract_958a1d() { vector res = (float16_t(0.25h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fract_958a1d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fract_958a1d(); + prevent_dce.Store >(0u, fract_958a1d()); return; } [numthreads(1, 1, 1)] void compute_main() { - fract_958a1d(); + prevent_dce.Store >(0u, fract_958a1d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fract_958a1d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000218AAC6DBB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/fract/958a1d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/fract/958a1d.wgsl.expected.ir.fxc.hlsl index 32404792205..ba621342cae 100644 --- a/test/tint/builtins/gen/literal/fract/958a1d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fract/958a1d.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B1F732F690(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002EF04E96240(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/fract/eb38ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/fract/eb38ce.wgsl.expected.fxc.hlsl index 569c5d46230..7553b774593 100644 --- a/test/tint/builtins/gen/literal/fract/eb38ce.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fract/eb38ce.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fract_eb38ce() { +float16_t fract_eb38ce() { float16_t res = float16_t(0.25h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fract_eb38ce(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fract_eb38ce(); + prevent_dce.Store(0u, fract_eb38ce()); return; } [numthreads(1, 1, 1)] void compute_main() { - fract_eb38ce(); + prevent_dce.Store(0u, fract_eb38ce()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fract_eb38ce(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F6750A65D0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/fract/eb38ce.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/fract/eb38ce.wgsl.expected.ir.fxc.hlsl index 86620c9b068..629d14cd9b8 100644 --- a/test/tint/builtins/gen/literal/fract/eb38ce.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/fract/eb38ce.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002227538F4C0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001DDD01961F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/frexp/3dd21e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/3dd21e.wgsl.expected.fxc.hlsl index d9902d82de5..c1fafc77dbe 100644 --- a/test/tint/builtins/gen/literal/frexp/3dd21e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/frexp/3dd21e.wgsl.expected.fxc.hlsl @@ -8,22 +8,6 @@ void frexp_3dd21e() { frexp_result_vec4_f16 res = {(float16_t(0.5h)).xxxx, (1).xxxx}; } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - frexp_3dd21e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { frexp_3dd21e(); return; @@ -34,3 +18,27 @@ void compute_main() { frexp_3dd21e(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + frexp_3dd21e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D1B79CFF20(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/frexp/3dd21e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/3dd21e.wgsl.expected.ir.fxc.hlsl index d47fb27567c..cfd9dc0f163 100644 --- a/test/tint/builtins/gen/literal/frexp/3dd21e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/frexp/3dd21e.wgsl.expected.ir.fxc.hlsl @@ -42,5 +42,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AC10F3F090(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021C484EE050(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/frexp/5257dd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/5257dd.wgsl.expected.fxc.hlsl index e57699e0aea..e797a22fa2a 100644 --- a/test/tint/builtins/gen/literal/frexp/5257dd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/frexp/5257dd.wgsl.expected.fxc.hlsl @@ -8,22 +8,6 @@ void frexp_5257dd() { frexp_result_f16 res = {float16_t(0.5h), 1}; } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - frexp_5257dd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { frexp_5257dd(); return; @@ -34,3 +18,27 @@ void compute_main() { frexp_5257dd(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + frexp_5257dd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001DEA0E35CA0(2,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/frexp/5257dd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/5257dd.wgsl.expected.ir.fxc.hlsl index fc41d10fd5a..a2c6209b25a 100644 --- a/test/tint/builtins/gen/literal/frexp/5257dd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/frexp/5257dd.wgsl.expected.ir.fxc.hlsl @@ -42,5 +42,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000224571B0170(2,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C8D21CD290(2,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/frexp/5f47bf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/5f47bf.wgsl.expected.fxc.hlsl index 084f9282261..9ae789c0f18 100644 --- a/test/tint/builtins/gen/literal/frexp/5f47bf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/frexp/5f47bf.wgsl.expected.fxc.hlsl @@ -8,22 +8,6 @@ void frexp_5f47bf() { frexp_result_vec2_f16 res = {(float16_t(0.5h)).xx, (1).xx}; } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - frexp_5f47bf(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { frexp_5f47bf(); return; @@ -34,3 +18,27 @@ void compute_main() { frexp_5f47bf(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + frexp_5f47bf(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000200C7F4AFA0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/frexp/5f47bf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/5f47bf.wgsl.expected.ir.fxc.hlsl index 45aef36c333..14f88cf41f6 100644 --- a/test/tint/builtins/gen/literal/frexp/5f47bf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/frexp/5f47bf.wgsl.expected.ir.fxc.hlsl @@ -42,5 +42,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000193C062FF10(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D76470BFC0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/frexp/ae4a66.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/ae4a66.wgsl.expected.fxc.hlsl index 4c2ca8579d3..5d5f0596154 100644 --- a/test/tint/builtins/gen/literal/frexp/ae4a66.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/frexp/ae4a66.wgsl.expected.fxc.hlsl @@ -8,22 +8,6 @@ void frexp_ae4a66() { frexp_result_vec3_f16 res = {(float16_t(0.5h)).xxx, (1).xxx}; } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - frexp_ae4a66(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { frexp_ae4a66(); return; @@ -34,3 +18,27 @@ void compute_main() { frexp_ae4a66(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + frexp_ae4a66(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002063F34D1C0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/frexp/ae4a66.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/frexp/ae4a66.wgsl.expected.ir.fxc.hlsl index fadf5e31c88..818c3ce1716 100644 --- a/test/tint/builtins/gen/literal/frexp/ae4a66.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/frexp/ae4a66.wgsl.expected.ir.fxc.hlsl @@ -42,5 +42,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BAC34EE2F0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DC32B4D310(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.dxc.hlsl index a19367c4fa5..f1b3ef04abe 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.dxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.dxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_315bf5() { +fn inputAttachmentLoad_315bf5() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_315bf5(); + prevent_dce = inputAttachmentLoad_315bf5(); } Failed to generate: /test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.fxc.hlsl index a19367c4fa5..f1b3ef04abe 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.fxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_315bf5() { +fn inputAttachmentLoad_315bf5() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_315bf5(); + prevent_dce = inputAttachmentLoad_315bf5(); } Failed to generate: /test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl index 502b482262c..3b038015874 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl index 0972091e702..3b038015874 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1051 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.dxc.hlsl index a87b27714b5..05cc907d234 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.dxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.dxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_c38b2f() { +fn inputAttachmentLoad_c38b2f() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_c38b2f(); + prevent_dce = inputAttachmentLoad_c38b2f(); } Failed to generate: /test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.fxc.hlsl index a87b27714b5..05cc907d234 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.fxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_c38b2f() { +fn inputAttachmentLoad_c38b2f() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_c38b2f(); + prevent_dce = inputAttachmentLoad_c38b2f(); } Failed to generate: /test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl index 502b482262c..3b038015874 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl index 0972091e702..3b038015874 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1051 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.dxc.hlsl index d0dc1779e6f..11d8de602e9 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.dxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.dxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_fc4d97() { +fn inputAttachmentLoad_fc4d97() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_fc4d97(); + prevent_dce = inputAttachmentLoad_fc4d97(); } Failed to generate: /test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.fxc.hlsl index d0dc1779e6f..11d8de602e9 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.fxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_fc4d97() { +fn inputAttachmentLoad_fc4d97() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_fc4d97(); + prevent_dce = inputAttachmentLoad_fc4d97(); } Failed to generate: /test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl index 502b482262c..3b038015874 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl index 0972091e702..3b038015874 100644 --- a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1051 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/literal/inverseSqrt/440300.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/440300.wgsl.expected.fxc.hlsl index 51f0585bfba..8758a98ed68 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/440300.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/440300.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void inverseSqrt_440300() { +float16_t inverseSqrt_440300() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - inverseSqrt_440300(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - inverseSqrt_440300(); + prevent_dce.Store(0u, inverseSqrt_440300()); return; } [numthreads(1, 1, 1)] void compute_main() { - inverseSqrt_440300(); + prevent_dce.Store(0u, inverseSqrt_440300()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = inverseSqrt_440300(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000026163984AB0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/inverseSqrt/440300.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/440300.wgsl.expected.ir.fxc.hlsl index ac3fd772a10..2d914615a32 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/440300.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/440300.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F8F021F260(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022B88F0B700(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/inverseSqrt/5f51f8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/5f51f8.wgsl.expected.fxc.hlsl index fb74170fb90..3a6881d8fbc 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/5f51f8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/5f51f8.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void inverseSqrt_5f51f8() { +vector inverseSqrt_5f51f8() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - inverseSqrt_5f51f8(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - inverseSqrt_5f51f8(); + prevent_dce.Store >(0u, inverseSqrt_5f51f8()); return; } [numthreads(1, 1, 1)] void compute_main() { - inverseSqrt_5f51f8(); + prevent_dce.Store >(0u, inverseSqrt_5f51f8()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = inverseSqrt_5f51f8(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B7283214A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/inverseSqrt/5f51f8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/5f51f8.wgsl.expected.ir.fxc.hlsl index 66ef1bd5a09..6e30f89b07e 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/5f51f8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/5f51f8.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F883204D30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000292F217BA80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/inverseSqrt/b85ebd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/b85ebd.wgsl.expected.fxc.hlsl index efbd3e4a002..3d2cf5bdcd1 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/b85ebd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/b85ebd.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void inverseSqrt_b85ebd() { +vector inverseSqrt_b85ebd() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - inverseSqrt_b85ebd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - inverseSqrt_b85ebd(); + prevent_dce.Store >(0u, inverseSqrt_b85ebd()); return; } [numthreads(1, 1, 1)] void compute_main() { - inverseSqrt_b85ebd(); + prevent_dce.Store >(0u, inverseSqrt_b85ebd()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = inverseSqrt_b85ebd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000026A15F559D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/inverseSqrt/b85ebd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/b85ebd.wgsl.expected.ir.fxc.hlsl index 11c3a356220..6a46f5a12a9 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/b85ebd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/b85ebd.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C8FC5A1230(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D867E08FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/inverseSqrt/cbdc70.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/cbdc70.wgsl.expected.fxc.hlsl index a8d1b422899..3c71517a14e 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/cbdc70.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/cbdc70.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void inverseSqrt_cbdc70() { +vector inverseSqrt_cbdc70() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - inverseSqrt_cbdc70(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - inverseSqrt_cbdc70(); + prevent_dce.Store >(0u, inverseSqrt_cbdc70()); return; } [numthreads(1, 1, 1)] void compute_main() { - inverseSqrt_cbdc70(); + prevent_dce.Store >(0u, inverseSqrt_cbdc70()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = inverseSqrt_cbdc70(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020E1E5AB4B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/inverseSqrt/cbdc70.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/inverseSqrt/cbdc70.wgsl.expected.ir.fxc.hlsl index d0a2cdca140..6805cb8f497 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/cbdc70.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/cbdc70.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000180C655E320(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001409CE462F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/ldexp/082c1f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/082c1f.wgsl.expected.fxc.hlsl index 78c42632dd5..eacdeaa5514 100644 --- a/test/tint/builtins/gen/literal/ldexp/082c1f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/082c1f.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_082c1f() { +float16_t ldexp_082c1f() { float16_t res = float16_t(2.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_082c1f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_082c1f(); + prevent_dce.Store(0u, ldexp_082c1f()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_082c1f(); + prevent_dce.Store(0u, ldexp_082c1f()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_082c1f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001821EF45F90(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ldexp/082c1f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/082c1f.wgsl.expected.ir.fxc.hlsl index 5eb0e0d8990..4ed26e2e1e8 100644 --- a/test/tint/builtins/gen/literal/ldexp/082c1f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/082c1f.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F685D6EE70(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002A4EC9D6150(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/ldexp/217a31.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/217a31.wgsl.expected.fxc.hlsl index 9b131f2f7ea..2df409d8b8a 100644 --- a/test/tint/builtins/gen/literal/ldexp/217a31.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/217a31.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_217a31() { +vector ldexp_217a31() { vector res = (float16_t(2.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_217a31(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_217a31(); + prevent_dce.Store >(0u, ldexp_217a31()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_217a31(); + prevent_dce.Store >(0u, ldexp_217a31()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_217a31(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002A0BBE0ADA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ldexp/217a31.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/217a31.wgsl.expected.ir.fxc.hlsl index 29f114e2323..29d856fd237 100644 --- a/test/tint/builtins/gen/literal/ldexp/217a31.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/217a31.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020C12035570(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002407B82D490(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/ldexp/3d90b4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/3d90b4.wgsl.expected.fxc.hlsl index a645898123e..ecaae7c67da 100644 --- a/test/tint/builtins/gen/literal/ldexp/3d90b4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/3d90b4.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_3d90b4() { +vector ldexp_3d90b4() { vector res = (float16_t(2.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_3d90b4(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_3d90b4(); + prevent_dce.Store >(0u, ldexp_3d90b4()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_3d90b4(); + prevent_dce.Store >(0u, ldexp_3d90b4()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_3d90b4(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020D49DE5750(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ldexp/3d90b4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/3d90b4.wgsl.expected.ir.fxc.hlsl index 253e88b4141..477de1fd3bf 100644 --- a/test/tint/builtins/gen/literal/ldexp/3d90b4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/3d90b4.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002380B09E6B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EED0848F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/ldexp/624e0c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/624e0c.wgsl.expected.fxc.hlsl index d1b524f1373..f80f0c2870a 100644 --- a/test/tint/builtins/gen/literal/ldexp/624e0c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/624e0c.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_624e0c() { +float16_t ldexp_624e0c() { float16_t res = float16_t(2.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_624e0c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_624e0c(); + prevent_dce.Store(0u, ldexp_624e0c()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_624e0c(); + prevent_dce.Store(0u, ldexp_624e0c()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_624e0c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000164F34E5060(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ldexp/624e0c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/624e0c.wgsl.expected.ir.fxc.hlsl index 822f7b828df..ca4061961ba 100644 --- a/test/tint/builtins/gen/literal/ldexp/624e0c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/624e0c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002470127F280(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000203ADF056C0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/ldexp/7485ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/7485ce.wgsl.expected.fxc.hlsl index d419d9afef2..c289f9b2a21 100644 --- a/test/tint/builtins/gen/literal/ldexp/7485ce.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/7485ce.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_7485ce() { +vector ldexp_7485ce() { vector res = (float16_t(2.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_7485ce(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_7485ce(); + prevent_dce.Store >(0u, ldexp_7485ce()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_7485ce(); + prevent_dce.Store >(0u, ldexp_7485ce()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_7485ce(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021574072410(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ldexp/7485ce.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/7485ce.wgsl.expected.ir.fxc.hlsl index f6d1ea094a6..e989046d43b 100644 --- a/test/tint/builtins/gen/literal/ldexp/7485ce.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/7485ce.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025E8915F6B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D0CFFF6560(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/ldexp/7fa13c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/7fa13c.wgsl.expected.fxc.hlsl index 8ef71b48610..4e32e5d6607 100644 --- a/test/tint/builtins/gen/literal/ldexp/7fa13c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/7fa13c.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_7fa13c() { +vector ldexp_7fa13c() { vector res = (float16_t(2.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_7fa13c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_7fa13c(); + prevent_dce.Store >(0u, ldexp_7fa13c()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_7fa13c(); + prevent_dce.Store >(0u, ldexp_7fa13c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_7fa13c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002CD8E3646C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ldexp/7fa13c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/7fa13c.wgsl.expected.ir.fxc.hlsl index 7bdc39cb8ac..7b3c6f59c4e 100644 --- a/test/tint/builtins/gen/literal/ldexp/7fa13c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/7fa13c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000223F2E6F9D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020B0BAE4830(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/ldexp/8a0c2f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/8a0c2f.wgsl.expected.fxc.hlsl index 3fcccbf21ff..d231b938d49 100644 --- a/test/tint/builtins/gen/literal/ldexp/8a0c2f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/8a0c2f.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_8a0c2f() { +vector ldexp_8a0c2f() { vector res = (float16_t(2.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_8a0c2f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_8a0c2f(); + prevent_dce.Store >(0u, ldexp_8a0c2f()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_8a0c2f(); + prevent_dce.Store >(0u, ldexp_8a0c2f()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_8a0c2f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001DD5E57BA20(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ldexp/8a0c2f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/8a0c2f.wgsl.expected.ir.fxc.hlsl index c385fab1b4a..16448e4e5c7 100644 --- a/test/tint/builtins/gen/literal/ldexp/8a0c2f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/8a0c2f.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AFBCFCE9E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E52A5074B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/ldexp/8e43e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/8e43e9.wgsl.expected.fxc.hlsl index 319bb568ac6..01461a2ba5a 100644 --- a/test/tint/builtins/gen/literal/ldexp/8e43e9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/8e43e9.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_8e43e9() { +vector ldexp_8e43e9() { vector res = (float16_t(2.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_8e43e9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_8e43e9(); + prevent_dce.Store >(0u, ldexp_8e43e9()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_8e43e9(); + prevent_dce.Store >(0u, ldexp_8e43e9()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_8e43e9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A2A4ABC500(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/ldexp/8e43e9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/ldexp/8e43e9.wgsl.expected.ir.fxc.hlsl index 47870f95380..e4c0083089a 100644 --- a/test/tint/builtins/gen/literal/ldexp/8e43e9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/ldexp/8e43e9.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002802B7E7340(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000238BEE34E90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/length/3f0e13.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/length/3f0e13.wgsl.expected.fxc.hlsl index 246a8c59bcb..eb8a3e3600b 100644 --- a/test/tint/builtins/gen/literal/length/3f0e13.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/length/3f0e13.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void length_3f0e13() { +float16_t length_3f0e13() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - length_3f0e13(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - length_3f0e13(); + prevent_dce.Store(0u, length_3f0e13()); return; } [numthreads(1, 1, 1)] void compute_main() { - length_3f0e13(); + prevent_dce.Store(0u, length_3f0e13()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = length_3f0e13(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000022A68D1B7B0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/length/3f0e13.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/length/3f0e13.wgsl.expected.ir.fxc.hlsl index e39f0447722..ef032f4f8a0 100644 --- a/test/tint/builtins/gen/literal/length/3f0e13.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/length/3f0e13.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021209ECE800(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E2E74F0AA0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/length/5b1a9b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/length/5b1a9b.wgsl.expected.fxc.hlsl index ae0a2188cc8..3505a7be47f 100644 --- a/test/tint/builtins/gen/literal/length/5b1a9b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/length/5b1a9b.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void length_5b1a9b() { +float16_t length_5b1a9b() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - length_5b1a9b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - length_5b1a9b(); + prevent_dce.Store(0u, length_5b1a9b()); return; } [numthreads(1, 1, 1)] void compute_main() { - length_5b1a9b(); + prevent_dce.Store(0u, length_5b1a9b()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = length_5b1a9b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002E1179C42B0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/length/5b1a9b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/length/5b1a9b.wgsl.expected.ir.fxc.hlsl index a0456b81178..587b4e4b0cf 100644 --- a/test/tint/builtins/gen/literal/length/5b1a9b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/length/5b1a9b.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001673E8E0890(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000012D40C052E0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/length/ba16d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/length/ba16d6.wgsl.expected.fxc.hlsl index 793829886ce..ce0558fba0b 100644 --- a/test/tint/builtins/gen/literal/length/ba16d6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/length/ba16d6.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void length_ba16d6() { +float16_t length_ba16d6() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - length_ba16d6(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - length_ba16d6(); + prevent_dce.Store(0u, length_ba16d6()); return; } [numthreads(1, 1, 1)] void compute_main() { - length_ba16d6(); + prevent_dce.Store(0u, length_ba16d6()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = length_ba16d6(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000274E4444CE0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/length/ba16d6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/length/ba16d6.wgsl.expected.ir.fxc.hlsl index 46a6bf03a6c..7f498161dcb 100644 --- a/test/tint/builtins/gen/literal/length/ba16d6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/length/ba16d6.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021344FCF7B0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000029F7B4538D0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/length/c158da.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/length/c158da.wgsl.expected.fxc.hlsl index 4170b52c05a..bfdf14f541c 100644 --- a/test/tint/builtins/gen/literal/length/c158da.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/length/c158da.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void length_c158da() { +float16_t length_c158da() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - length_c158da(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - length_c158da(); + prevent_dce.Store(0u, length_c158da()); return; } [numthreads(1, 1, 1)] void compute_main() { - length_c158da(); + prevent_dce.Store(0u, length_c158da()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = length_c158da(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000289360D4CE0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/length/c158da.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/length/c158da.wgsl.expected.ir.fxc.hlsl index 42ac2e7ce39..808675b297d 100644 --- a/test/tint/builtins/gen/literal/length/c158da.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/length/c158da.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002791B64F300(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022D6C6A5230(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/log/6ff86f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log/6ff86f.wgsl.expected.fxc.hlsl index 5e9a03e956b..5fc985133dc 100644 --- a/test/tint/builtins/gen/literal/log/6ff86f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log/6ff86f.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log_6ff86f() { +vector log_6ff86f() { vector res = (float16_t(0.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log_6ff86f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log_6ff86f(); + prevent_dce.Store >(0u, log_6ff86f()); return; } [numthreads(1, 1, 1)] void compute_main() { - log_6ff86f(); + prevent_dce.Store >(0u, log_6ff86f()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log_6ff86f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021479EA60D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/log/6ff86f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/log/6ff86f.wgsl.expected.ir.fxc.hlsl index feae90aa2ab..7942afcc91e 100644 --- a/test/tint/builtins/gen/literal/log/6ff86f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log/6ff86f.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022161DD3380(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022C76D64F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/log/8f0e32.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log/8f0e32.wgsl.expected.fxc.hlsl index ebad2a09672..177ac27d1c4 100644 --- a/test/tint/builtins/gen/literal/log/8f0e32.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log/8f0e32.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log_8f0e32() { +vector log_8f0e32() { vector res = (float16_t(0.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log_8f0e32(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log_8f0e32(); + prevent_dce.Store >(0u, log_8f0e32()); return; } [numthreads(1, 1, 1)] void compute_main() { - log_8f0e32(); + prevent_dce.Store >(0u, log_8f0e32()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log_8f0e32(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000015FCEC864B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/log/8f0e32.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/log/8f0e32.wgsl.expected.ir.fxc.hlsl index 57f10a59415..dafb1142bb5 100644 --- a/test/tint/builtins/gen/literal/log/8f0e32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log/8f0e32.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BC2A04F9D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B5957165D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/log/c9f489.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log/c9f489.wgsl.expected.fxc.hlsl index ca9e213cf19..ade13cc1ebd 100644 --- a/test/tint/builtins/gen/literal/log/c9f489.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log/c9f489.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log_c9f489() { +float16_t log_c9f489() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log_c9f489(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log_c9f489(); + prevent_dce.Store(0u, log_c9f489()); return; } [numthreads(1, 1, 1)] void compute_main() { - log_c9f489(); + prevent_dce.Store(0u, log_c9f489()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log_c9f489(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B9709AE7B0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/log/c9f489.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/log/c9f489.wgsl.expected.ir.fxc.hlsl index 30a94d07ba7..f830783b914 100644 --- a/test/tint/builtins/gen/literal/log/c9f489.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log/c9f489.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002097887E400(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001772E579AE0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/log/cdbdc1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log/cdbdc1.wgsl.expected.fxc.hlsl index 24eeafab9bc..b169505b6c0 100644 --- a/test/tint/builtins/gen/literal/log/cdbdc1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log/cdbdc1.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log_cdbdc1() { +vector log_cdbdc1() { vector res = (float16_t(0.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log_cdbdc1(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log_cdbdc1(); + prevent_dce.Store >(0u, log_cdbdc1()); return; } [numthreads(1, 1, 1)] void compute_main() { - log_cdbdc1(); + prevent_dce.Store >(0u, log_cdbdc1()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log_cdbdc1(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000157035A2730(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/log/cdbdc1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/log/cdbdc1.wgsl.expected.ir.fxc.hlsl index 15cfb3c0d7d..0248d38bbf5 100644 --- a/test/tint/builtins/gen/literal/log/cdbdc1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log/cdbdc1.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000148A85CE400(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000151E1D5BB90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/log2/38b478.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log2/38b478.wgsl.expected.fxc.hlsl index 571924e2de0..d7b6979767e 100644 --- a/test/tint/builtins/gen/literal/log2/38b478.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log2/38b478.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log2_38b478() { +vector log2_38b478() { vector res = (float16_t(0.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log2_38b478(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log2_38b478(); + prevent_dce.Store >(0u, log2_38b478()); return; } [numthreads(1, 1, 1)] void compute_main() { - log2_38b478(); + prevent_dce.Store >(0u, log2_38b478()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log2_38b478(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002AD95E04670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/log2/38b478.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/log2/38b478.wgsl.expected.ir.fxc.hlsl index 8e9f955b981..4961fafa83e 100644 --- a/test/tint/builtins/gen/literal/log2/38b478.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log2/38b478.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002678ED4FF90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020A15D809E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/log2/776088.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log2/776088.wgsl.expected.fxc.hlsl index 33b3fdb3162..706d3bc97f7 100644 --- a/test/tint/builtins/gen/literal/log2/776088.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log2/776088.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log2_776088() { +vector log2_776088() { vector res = (float16_t(0.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log2_776088(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log2_776088(); + prevent_dce.Store >(0u, log2_776088()); return; } [numthreads(1, 1, 1)] void compute_main() { - log2_776088(); + prevent_dce.Store >(0u, log2_776088()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log2_776088(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000028D4F8EB020(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/log2/776088.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/log2/776088.wgsl.expected.ir.fxc.hlsl index 9a29abd690f..7ee48d456a4 100644 --- a/test/tint/builtins/gen/literal/log2/776088.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log2/776088.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027DB892E5A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000013FF8EDB420(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/log2/8c10b3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log2/8c10b3.wgsl.expected.fxc.hlsl index 45322ac5cee..fe78fc34f97 100644 --- a/test/tint/builtins/gen/literal/log2/8c10b3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log2/8c10b3.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log2_8c10b3() { +float16_t log2_8c10b3() { float16_t res = float16_t(0.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log2_8c10b3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log2_8c10b3(); + prevent_dce.Store(0u, log2_8c10b3()); return; } [numthreads(1, 1, 1)] void compute_main() { - log2_8c10b3(); + prevent_dce.Store(0u, log2_8c10b3()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log2_8c10b3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025B99D76D10(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/log2/8c10b3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/log2/8c10b3.wgsl.expected.ir.fxc.hlsl index 180cfffc3dd..affc81a540e 100644 --- a/test/tint/builtins/gen/literal/log2/8c10b3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log2/8c10b3.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027AAB2AEB00(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022704FB9B10(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/log2/fb9f0b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/log2/fb9f0b.wgsl.expected.fxc.hlsl index 39084444950..0c6111d7c4e 100644 --- a/test/tint/builtins/gen/literal/log2/fb9f0b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log2/fb9f0b.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log2_fb9f0b() { +vector log2_fb9f0b() { vector res = (float16_t(0.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log2_fb9f0b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log2_fb9f0b(); + prevent_dce.Store >(0u, log2_fb9f0b()); return; } [numthreads(1, 1, 1)] void compute_main() { - log2_fb9f0b(); + prevent_dce.Store >(0u, log2_fb9f0b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log2_fb9f0b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000191F52F4290(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/log2/fb9f0b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/log2/fb9f0b.wgsl.expected.ir.fxc.hlsl index 2ebf89d33d3..25e13fc9a01 100644 --- a/test/tint/builtins/gen/literal/log2/fb9f0b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/log2/fb9f0b.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000248D8D14CD0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000236011F4830(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/max/111ac0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/111ac0.wgsl.expected.fxc.hlsl index 1c3fcfe6292..a3a24effe43 100644 --- a/test/tint/builtins/gen/literal/max/111ac0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/max/111ac0.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void max_111ac0() { +float16_t max_111ac0() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - max_111ac0(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - max_111ac0(); + prevent_dce.Store(0u, max_111ac0()); return; } [numthreads(1, 1, 1)] void compute_main() { - max_111ac0(); + prevent_dce.Store(0u, max_111ac0()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = max_111ac0(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000012AC19ED230(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/max/111ac0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/max/111ac0.wgsl.expected.ir.fxc.hlsl index cde3b9a3a3e..827dc6afeb9 100644 --- a/test/tint/builtins/gen/literal/max/111ac0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/max/111ac0.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E9C4672000(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000026A368C6190(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/max/34956e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/34956e.wgsl.expected.fxc.hlsl index 9ecfc3bc645..b954355d175 100644 --- a/test/tint/builtins/gen/literal/max/34956e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/max/34956e.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void max_34956e() { +vector max_34956e() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - max_34956e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - max_34956e(); + prevent_dce.Store >(0u, max_34956e()); return; } [numthreads(1, 1, 1)] void compute_main() { - max_34956e(); + prevent_dce.Store >(0u, max_34956e()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = max_34956e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000023CC37F6500(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/max/34956e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/max/34956e.wgsl.expected.ir.fxc.hlsl index 9a88a1d123e..b1bd3620981 100644 --- a/test/tint/builtins/gen/literal/max/34956e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/max/34956e.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029D114DF560(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016E8CF5B6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/max/445169.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/445169.wgsl.expected.fxc.hlsl index fe5efe602d9..b82ec19dedd 100644 --- a/test/tint/builtins/gen/literal/max/445169.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/max/445169.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void max_445169() { +vector max_445169() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - max_445169(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - max_445169(); + prevent_dce.Store >(0u, max_445169()); return; } [numthreads(1, 1, 1)] void compute_main() { - max_445169(); + prevent_dce.Store >(0u, max_445169()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = max_445169(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000019C2FBD6530(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/max/445169.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/max/445169.wgsl.expected.ir.fxc.hlsl index 6349cf17a4b..89d2f5e2e73 100644 --- a/test/tint/builtins/gen/literal/max/445169.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/max/445169.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B34D6DF680(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002030A4BB6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/max/e14f2b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/max/e14f2b.wgsl.expected.fxc.hlsl index 9d855823094..51ffef7653c 100644 --- a/test/tint/builtins/gen/literal/max/e14f2b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/max/e14f2b.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void max_e14f2b() { +vector max_e14f2b() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - max_e14f2b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - max_e14f2b(); + prevent_dce.Store >(0u, max_e14f2b()); return; } [numthreads(1, 1, 1)] void compute_main() { - max_e14f2b(); + prevent_dce.Store >(0u, max_e14f2b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = max_e14f2b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000247C939A830(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/max/e14f2b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/max/e14f2b.wgsl.expected.ir.fxc.hlsl index a2dd82d76fd..508aa2e66b2 100644 --- a/test/tint/builtins/gen/literal/max/e14f2b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/max/e14f2b.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DC90C2F5A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022BAC1138F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/min/7c710a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/7c710a.wgsl.expected.fxc.hlsl index 90e9bb971ce..0f627f8d97b 100644 --- a/test/tint/builtins/gen/literal/min/7c710a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/min/7c710a.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void min_7c710a() { +vector min_7c710a() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - min_7c710a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - min_7c710a(); + prevent_dce.Store >(0u, min_7c710a()); return; } [numthreads(1, 1, 1)] void compute_main() { - min_7c710a(); + prevent_dce.Store >(0u, min_7c710a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = min_7c710a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000204E2FB6110(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/min/7c710a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/min/7c710a.wgsl.expected.ir.fxc.hlsl index 903956d52ab..e8654081516 100644 --- a/test/tint/builtins/gen/literal/min/7c710a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/min/7c710a.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FB1435EDD0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029A6339D240(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/min/ab0acd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/ab0acd.wgsl.expected.fxc.hlsl index 813c98d2490..9f8932bdf7e 100644 --- a/test/tint/builtins/gen/literal/min/ab0acd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/min/ab0acd.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void min_ab0acd() { +vector min_ab0acd() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - min_ab0acd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - min_ab0acd(); + prevent_dce.Store >(0u, min_ab0acd()); return; } [numthreads(1, 1, 1)] void compute_main() { - min_ab0acd(); + prevent_dce.Store >(0u, min_ab0acd()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = min_ab0acd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001FADDC65AF0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/min/ab0acd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/min/ab0acd.wgsl.expected.ir.fxc.hlsl index 5f21b52f819..cd63b3f3b2d 100644 --- a/test/tint/builtins/gen/literal/min/ab0acd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/min/ab0acd.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F427EC5320(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D078488FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/min/ac84d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/ac84d6.wgsl.expected.fxc.hlsl index 94817b8ead0..590993383f0 100644 --- a/test/tint/builtins/gen/literal/min/ac84d6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/min/ac84d6.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void min_ac84d6() { +float16_t min_ac84d6() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - min_ac84d6(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - min_ac84d6(); + prevent_dce.Store(0u, min_ac84d6()); return; } [numthreads(1, 1, 1)] void compute_main() { - min_ac84d6(); + prevent_dce.Store(0u, min_ac84d6()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = min_ac84d6(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020D1A404890(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/min/ac84d6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/min/ac84d6.wgsl.expected.ir.fxc.hlsl index 9805f6307e7..ed3bdc8af3a 100644 --- a/test/tint/builtins/gen/literal/min/ac84d6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/min/ac84d6.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000013E48CCF020(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002311C1D61F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/min/e780f9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/min/e780f9.wgsl.expected.fxc.hlsl index fcd37acdad2..089627b0dd6 100644 --- a/test/tint/builtins/gen/literal/min/e780f9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/min/e780f9.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void min_e780f9() { +vector min_e780f9() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - min_e780f9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - min_e780f9(); + prevent_dce.Store >(0u, min_e780f9()); return; } [numthreads(1, 1, 1)] void compute_main() { - min_e780f9(); + prevent_dce.Store >(0u, min_e780f9()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = min_e780f9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001BB3AD664D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/min/e780f9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/min/e780f9.wgsl.expected.ir.fxc.hlsl index 362bcfe2b2c..027346e909d 100644 --- a/test/tint/builtins/gen/literal/min/e780f9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/min/e780f9.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000251EF6CEDD0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000011D255ED4E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/mix/38cbbb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/38cbbb.wgsl.expected.fxc.hlsl index ff551e2ad15..688b009ec17 100644 --- a/test/tint/builtins/gen/literal/mix/38cbbb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/38cbbb.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_38cbbb() { +float16_t mix_38cbbb() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_38cbbb(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_38cbbb(); + prevent_dce.Store(0u, mix_38cbbb()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_38cbbb(); + prevent_dce.Store(0u, mix_38cbbb()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_38cbbb(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000205AD2D6C80(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/mix/38cbbb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/mix/38cbbb.wgsl.expected.ir.fxc.hlsl index 7b51174789f..321d50a4360 100644 --- a/test/tint/builtins/gen/literal/mix/38cbbb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/38cbbb.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000237E87EFA70(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000014D2FAACA80(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/mix/63f2fd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/63f2fd.wgsl.expected.fxc.hlsl index 3159dda6818..529276a8a58 100644 --- a/test/tint/builtins/gen/literal/mix/63f2fd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/63f2fd.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_63f2fd() { +vector mix_63f2fd() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_63f2fd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_63f2fd(); + prevent_dce.Store >(0u, mix_63f2fd()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_63f2fd(); + prevent_dce.Store >(0u, mix_63f2fd()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_63f2fd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025AFE4B6510(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/mix/63f2fd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/mix/63f2fd.wgsl.expected.ir.fxc.hlsl index f0c35c0d520..0bcc0d0c2a9 100644 --- a/test/tint/builtins/gen/literal/mix/63f2fd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/63f2fd.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028AD0A2F930(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000273C9C2BFE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/mix/98ee3e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/98ee3e.wgsl.expected.fxc.hlsl index ba853756901..5016726003a 100644 --- a/test/tint/builtins/gen/literal/mix/98ee3e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/98ee3e.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_98ee3e() { +vector mix_98ee3e() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_98ee3e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_98ee3e(); + prevent_dce.Store >(0u, mix_98ee3e()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_98ee3e(); + prevent_dce.Store >(0u, mix_98ee3e()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_98ee3e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000219CE9C6560(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/mix/98ee3e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/mix/98ee3e.wgsl.expected.ir.fxc.hlsl index ad771623077..f9ea770f858 100644 --- a/test/tint/builtins/gen/literal/mix/98ee3e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/98ee3e.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000208CDF5E5B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022086328F80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/mix/c1aec6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/c1aec6.wgsl.expected.fxc.hlsl index 341b1c7bd41..2968aac5d71 100644 --- a/test/tint/builtins/gen/literal/mix/c1aec6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/c1aec6.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_c1aec6() { +vector mix_c1aec6() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_c1aec6(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_c1aec6(); + prevent_dce.Store >(0u, mix_c1aec6()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_c1aec6(); + prevent_dce.Store >(0u, mix_c1aec6()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_c1aec6(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000250AFB464D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/mix/c1aec6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/mix/c1aec6.wgsl.expected.ir.fxc.hlsl index 6b8b762e718..0267ad740c6 100644 --- a/test/tint/builtins/gen/literal/mix/c1aec6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/c1aec6.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002464F58E550(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017EBD5C3EF0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/mix/e46a83.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/e46a83.wgsl.expected.fxc.hlsl index d2771cc0113..ab67cdab088 100644 --- a/test/tint/builtins/gen/literal/mix/e46a83.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/e46a83.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_e46a83() { +vector mix_e46a83() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_e46a83(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_e46a83(); + prevent_dce.Store >(0u, mix_e46a83()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_e46a83(); + prevent_dce.Store >(0u, mix_e46a83()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_e46a83(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020622DDD2D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/mix/e46a83.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/mix/e46a83.wgsl.expected.ir.fxc.hlsl index 4e2d530b7f5..3d7a687f1f9 100644 --- a/test/tint/builtins/gen/literal/mix/e46a83.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/e46a83.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A6567B7320(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000270E9464E70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/mix/ee2468.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/ee2468.wgsl.expected.fxc.hlsl index 2fbc0911f39..26a49310999 100644 --- a/test/tint/builtins/gen/literal/mix/ee2468.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/ee2468.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_ee2468() { +vector mix_ee2468() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_ee2468(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_ee2468(); + prevent_dce.Store >(0u, mix_ee2468()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_ee2468(); + prevent_dce.Store >(0u, mix_ee2468()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_ee2468(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A89AE56D00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/mix/ee2468.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/mix/ee2468.wgsl.expected.ir.fxc.hlsl index 1e4a535a618..5f49ca2a487 100644 --- a/test/tint/builtins/gen/literal/mix/ee2468.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/ee2468.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002DF739D5070(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B0D65B5940(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/mix/f1a543.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/mix/f1a543.wgsl.expected.fxc.hlsl index bc6750741cf..447080b9573 100644 --- a/test/tint/builtins/gen/literal/mix/f1a543.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/f1a543.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_f1a543() { +vector mix_f1a543() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_f1a543(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_f1a543(); + prevent_dce.Store >(0u, mix_f1a543()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_f1a543(); + prevent_dce.Store >(0u, mix_f1a543()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_f1a543(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F26AF4B4E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/mix/f1a543.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/mix/f1a543.wgsl.expected.ir.fxc.hlsl index 09ab7a0184e..6d597d97d9f 100644 --- a/test/tint/builtins/gen/literal/mix/f1a543.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/mix/f1a543.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000227C575E0F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CB62775110(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/modf/45005f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/modf/45005f.wgsl.expected.fxc.hlsl index ab61f99e23f..56b33ea15e6 100644 --- a/test/tint/builtins/gen/literal/modf/45005f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/modf/45005f.wgsl.expected.fxc.hlsl @@ -8,22 +8,6 @@ void modf_45005f() { modf_result_vec3_f16 res = {(float16_t(-0.5h)).xxx, (float16_t(-1.0h)).xxx}; } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - modf_45005f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { modf_45005f(); return; @@ -34,3 +18,27 @@ void compute_main() { modf_45005f(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + modf_45005f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001AAC2B54290(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/modf/45005f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/modf/45005f.wgsl.expected.ir.fxc.hlsl index b4748bed794..588f96043e4 100644 --- a/test/tint/builtins/gen/literal/modf/45005f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/modf/45005f.wgsl.expected.ir.fxc.hlsl @@ -42,5 +42,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002683B5CF3F0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000231CA79CFC0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/modf/8dbbbf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/modf/8dbbbf.wgsl.expected.fxc.hlsl index 47ce05189b7..53c878f8aa9 100644 --- a/test/tint/builtins/gen/literal/modf/8dbbbf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/modf/8dbbbf.wgsl.expected.fxc.hlsl @@ -8,22 +8,6 @@ void modf_8dbbbf() { modf_result_f16 res = {float16_t(-0.5h), float16_t(-1.0h)}; } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - modf_8dbbbf(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { modf_8dbbbf(); return; @@ -34,3 +18,27 @@ void compute_main() { modf_8dbbbf(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + modf_8dbbbf(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000238945DFDA0(2,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/modf/8dbbbf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/modf/8dbbbf.wgsl.expected.ir.fxc.hlsl index f4a03e5b906..9fec151520c 100644 --- a/test/tint/builtins/gen/literal/modf/8dbbbf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/modf/8dbbbf.wgsl.expected.ir.fxc.hlsl @@ -42,5 +42,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000197250DEC90(2,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000255E3565230(2,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/modf/995934.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/modf/995934.wgsl.expected.fxc.hlsl index bce3ed9d1d8..86102fb5d4f 100644 --- a/test/tint/builtins/gen/literal/modf/995934.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/modf/995934.wgsl.expected.fxc.hlsl @@ -8,22 +8,6 @@ void modf_995934() { modf_result_vec4_f16 res = {(float16_t(-0.5h)).xxxx, (float16_t(-1.0h)).xxxx}; } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - modf_995934(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { modf_995934(); return; @@ -34,3 +18,27 @@ void compute_main() { modf_995934(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + modf_995934(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002A229194670(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/modf/995934.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/modf/995934.wgsl.expected.ir.fxc.hlsl index 558444915d7..dadc06a710b 100644 --- a/test/tint/builtins/gen/literal/modf/995934.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/modf/995934.wgsl.expected.ir.fxc.hlsl @@ -42,5 +42,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CB5D69FBC0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F73CC58B40(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/modf/a545b9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/modf/a545b9.wgsl.expected.fxc.hlsl index fe024429ffb..bfdae38b462 100644 --- a/test/tint/builtins/gen/literal/modf/a545b9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/modf/a545b9.wgsl.expected.fxc.hlsl @@ -8,22 +8,6 @@ void modf_a545b9() { modf_result_vec2_f16 res = {(float16_t(-0.5h)).xx, (float16_t(-1.0h)).xx}; } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - modf_a545b9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { modf_a545b9(); return; @@ -34,3 +18,27 @@ void compute_main() { modf_a545b9(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + modf_a545b9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E9793E62A0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/modf/a545b9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/modf/a545b9.wgsl.expected.ir.fxc.hlsl index 477096da75c..6755509d5e2 100644 --- a/test/tint/builtins/gen/literal/modf/a545b9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/modf/a545b9.wgsl.expected.ir.fxc.hlsl @@ -42,5 +42,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016CC669F3C0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022B93E0B030(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/normalize/39d5ec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/normalize/39d5ec.wgsl.expected.fxc.hlsl index 715a498e557..5dcbb25f8f4 100644 --- a/test/tint/builtins/gen/literal/normalize/39d5ec.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/normalize/39d5ec.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void normalize_39d5ec() { +vector normalize_39d5ec() { vector res = (float16_t(0.5771484375h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - normalize_39d5ec(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - normalize_39d5ec(); + prevent_dce.Store >(0u, normalize_39d5ec()); return; } [numthreads(1, 1, 1)] void compute_main() { - normalize_39d5ec(); + prevent_dce.Store >(0u, normalize_39d5ec()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = normalize_39d5ec(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000022ECA488F80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/normalize/39d5ec.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/normalize/39d5ec.wgsl.expected.ir.fxc.hlsl index ebede6b7e77..23a8080c386 100644 --- a/test/tint/builtins/gen/literal/normalize/39d5ec.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/normalize/39d5ec.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E1E25BEA80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000229070361F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/normalize/7990f3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/normalize/7990f3.wgsl.expected.fxc.hlsl index e041fac9664..a3a0e7b1118 100644 --- a/test/tint/builtins/gen/literal/normalize/7990f3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/normalize/7990f3.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void normalize_7990f3() { +vector normalize_7990f3() { vector res = (float16_t(0.70703125h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - normalize_7990f3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - normalize_7990f3(); + prevent_dce.Store >(0u, normalize_7990f3()); return; } [numthreads(1, 1, 1)] void compute_main() { - normalize_7990f3(); + prevent_dce.Store >(0u, normalize_7990f3()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = normalize_7990f3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002ED696D5DA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/normalize/7990f3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/normalize/7990f3.wgsl.expected.ir.fxc.hlsl index c193310e02b..85b49c80bcc 100644 --- a/test/tint/builtins/gen/literal/normalize/7990f3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/normalize/7990f3.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025EEB8EFF70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DC34814F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/normalize/b8cb8d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/normalize/b8cb8d.wgsl.expected.fxc.hlsl index 95f591a8f40..338382dcf20 100644 --- a/test/tint/builtins/gen/literal/normalize/b8cb8d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/normalize/b8cb8d.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void normalize_b8cb8d() { +vector normalize_b8cb8d() { vector res = (float16_t(0.5h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - normalize_b8cb8d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - normalize_b8cb8d(); + prevent_dce.Store >(0u, normalize_b8cb8d()); return; } [numthreads(1, 1, 1)] void compute_main() { - normalize_b8cb8d(); + prevent_dce.Store >(0u, normalize_b8cb8d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = normalize_b8cb8d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B0546BBBE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/normalize/b8cb8d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/normalize/b8cb8d.wgsl.expected.ir.fxc.hlsl index b0be826f17f..ed14834659d 100644 --- a/test/tint/builtins/gen/literal/normalize/b8cb8d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/normalize/b8cb8d.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002765EBDE510(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C546396220(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/pow/4f33b2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pow/4f33b2.wgsl.expected.fxc.hlsl index 9956e029eda..0e9206f1266 100644 --- a/test/tint/builtins/gen/literal/pow/4f33b2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/pow/4f33b2.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void pow_4f33b2() { +vector pow_4f33b2() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - pow_4f33b2(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - pow_4f33b2(); + prevent_dce.Store >(0u, pow_4f33b2()); return; } [numthreads(1, 1, 1)] void compute_main() { - pow_4f33b2(); + prevent_dce.Store >(0u, pow_4f33b2()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = pow_4f33b2(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000241EF498490(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/pow/4f33b2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/pow/4f33b2.wgsl.expected.ir.fxc.hlsl index 5c9665029fe..456c1dbcba6 100644 --- a/test/tint/builtins/gen/literal/pow/4f33b2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/pow/4f33b2.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D0F0C3E2E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A0750338C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/pow/ce9ef5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pow/ce9ef5.wgsl.expected.fxc.hlsl index 195f8782e37..a6a1c476ad5 100644 --- a/test/tint/builtins/gen/literal/pow/ce9ef5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/pow/ce9ef5.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void pow_ce9ef5() { +float16_t pow_ce9ef5() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - pow_ce9ef5(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - pow_ce9ef5(); + prevent_dce.Store(0u, pow_ce9ef5()); return; } [numthreads(1, 1, 1)] void compute_main() { - pow_ce9ef5(); + prevent_dce.Store(0u, pow_ce9ef5()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = pow_ce9ef5(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A015C64FC0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/pow/ce9ef5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/pow/ce9ef5.wgsl.expected.ir.fxc.hlsl index 58664018d95..addfc59ba12 100644 --- a/test/tint/builtins/gen/literal/pow/ce9ef5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/pow/ce9ef5.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FC8473F4A0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001CA4CF761F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/pow/f37b25.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pow/f37b25.wgsl.expected.fxc.hlsl index 1f0f65a95f0..28f2b60c354 100644 --- a/test/tint/builtins/gen/literal/pow/f37b25.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/pow/f37b25.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void pow_f37b25() { +vector pow_f37b25() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - pow_f37b25(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - pow_f37b25(); + prevent_dce.Store >(0u, pow_f37b25()); return; } [numthreads(1, 1, 1)] void compute_main() { - pow_f37b25(); + prevent_dce.Store >(0u, pow_f37b25()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = pow_f37b25(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001FF89BBFC90(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/pow/f37b25.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/pow/f37b25.wgsl.expected.ir.fxc.hlsl index a27c13f6ccd..e77d7f13cfc 100644 --- a/test/tint/builtins/gen/literal/pow/f37b25.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/pow/f37b25.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000299051CFBE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000165EBE5B3F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/pow/fa5429.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/pow/fa5429.wgsl.expected.fxc.hlsl index 7ec1d2a72a1..96b30a51321 100644 --- a/test/tint/builtins/gen/literal/pow/fa5429.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/pow/fa5429.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void pow_fa5429() { +vector pow_fa5429() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - pow_fa5429(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - pow_fa5429(); + prevent_dce.Store >(0u, pow_fa5429()); return; } [numthreads(1, 1, 1)] void compute_main() { - pow_fa5429(); + prevent_dce.Store >(0u, pow_fa5429()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = pow_fa5429(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001C66CEC5DC0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/pow/fa5429.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/pow/fa5429.wgsl.expected.ir.fxc.hlsl index ae28ebd6845..4e59495542d 100644 --- a/test/tint/builtins/gen/literal/pow/fa5429.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/pow/fa5429.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000223D6AF0420(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000164FDBC8410(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.fxc.hlsl index bf92834d584..23354c103da 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_0464d1()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029A91B64A90(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.ir.fxc.hlsl index 427c73a2d5c..13dab0c5213 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_0464d1()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002961FEB6DA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.fxc.hlsl index 92a251828cd..e24d4286aee 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_0639ea())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001FA88846D30(4,13-33): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.ir.fxc.hlsl index 131acfaeb16..90512ad515f 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_0639ea())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000239AB1BBC80(4,13-33): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.fxc.hlsl index 35787a14bc0..5c127ba7de7 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_0cc513())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CE1E5C5680(4,16-45): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.ir.fxc.hlsl index 0870451a9d9..dc00651e1ba 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_0cc513())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000025CBB6EAE90(4,16-45): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.fxc.hlsl index e07f66fd336..4385b758d5a 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_0e0e6e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000220459F7A70(4,14-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.ir.fxc.hlsl index 7a95b72cc3d..7c554dddd7b 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_0e0e6e())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000029D092AA420(4,14-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.fxc.hlsl index 3cd8c4ce148..069a49150d1 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_2d0b7d())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001148452DD40(4,15-43): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.ir.fxc.hlsl index 4b61ccfb5e3..aa4a79180e1 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, quadBroadcast_2d0b7d()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000296D0C5F860(4,15-43): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.fxc.hlsl index 0475ecc076b..ede4521b25c 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_355db5())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000283982F46C0(4,16-44): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.ir.fxc.hlsl index feadca42375..1b972d87098 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_355db5())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001880A2CFB80(4,16-44): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.fxc.hlsl index 8fb05f21462..31721d85ca2 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_3c3824()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D74AFD46C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.ir.fxc.hlsl index 502aa25fb5a..f1f83c164c9 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_3c3824()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000015D34708DE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.fxc.hlsl index 039118d129d..c05ff65e7f1 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_4d9898()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000261F70A4700(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.ir.fxc.hlsl index 86329d035b2..8f4255bd1c0 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_4d9898()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027ADB5946B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.fxc.hlsl index a875264b77f..4456a2bb16c 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_641316())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027583236910(4,15-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.ir.fxc.hlsl index d9375632d10..3bff9b85589 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, quadBroadcast_641316()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000022027F1FB80(4,15-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.fxc.hlsl index 21a22e5eb38..8dc19f401da 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_704803())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B8ECAF9C10(4,14-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.ir.fxc.hlsl index 6cabe82589f..756e806ff80 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_704803())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000028B3CE1D520(4,14-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.fxc.hlsl index fd86cec88aa..1da586b99d1 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_76f499())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002228DD85680(4,14-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.ir.fxc.hlsl index de1b9478452..0a30f31d954 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_76f499())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027A4F83A420(4,14-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.fxc.hlsl index c9dc3f69a69..79d3f9b9384 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_78129b()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001901D7061F0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.ir.fxc.hlsl index e943315170d..c6e1cb8b189 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_78129b()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000214151646B0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.fxc.hlsl index 77ede2a14f3..f6c4d807556 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_796753()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000223E0924700(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.ir.fxc.hlsl index 29caeee4d2c..67a8747fc6f 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_796753()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019F87C861E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.fxc.hlsl index e7ff98e6d1b..14f1fe4e1ca 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_820991())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001275D396A00(4,16-46): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.ir.fxc.hlsl index e6d76d75332..c5e72f99c63 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_820991())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019A9FC8FB80(4,16-46): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.fxc.hlsl index 7db859c097a..15662b4021a 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_960c6b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CB7B8BFED0(4,15-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.ir.fxc.hlsl index 2ccad8d7d92..bd0864a1920 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_960c6b())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027AEED3F6E0(4,15-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.fxc.hlsl index f58f282a3e3..db1e765c349 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_9d802c())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025CC04546C0(4,16-45): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.ir.fxc.hlsl index 62abb7423d4..73e4c7fb289 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_9d802c())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001AA22DEC2F0(4,16-45): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.fxc.hlsl index 04ce9a9e67c..58aa41b9e62 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_a2d2b4())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001418F19AF60(4,14-34): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.ir.fxc.hlsl index adf330d5a6d..097f362dd49 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_a2d2b4()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000131495DA8F0(4,14-34): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.fxc.hlsl index db592709d68..71520816fd6 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_ae401e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000246267DC190(4,15-42): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.ir.fxc.hlsl index 08876a1dede..6796768050a 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, quadBroadcast_ae401e()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001E3A498FB60(4,15-42): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.fxc.hlsl index 0a554121b01..aa1151b586b 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_b68331())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001422EF66A90(4,15-42): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.ir.fxc.hlsl index fe631fe075a..dd416ce4526 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, quadBroadcast_b68331()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000022034AA6550(4,15-42): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.fxc.hlsl index e45abb31a9f..480a266cd28 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_bed00b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000232144E89B0(4,14-41): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.ir.fxc.hlsl index 2c0afb79ef9..fd72b4d4e1d 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_bed00b())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000223DBE0F860(4,14-41): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.fxc.hlsl index 9c4a9c46265..55676ba156b 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_c0e704())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000271D510D0A0(4,14-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.ir.fxc.hlsl index dc4d25111e0..833c2012b66 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_c0e704())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000025BDCE2C2F0(4,14-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.fxc.hlsl index 29de5d4d460..0c169706af8 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_cd3624())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001FC5B2D9E30(4,16-44): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.ir.fxc.hlsl index 6ff0ed888d3..bb44aa299f2 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_cd3624())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000025192BAFB20(4,16-44): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.fxc.hlsl index bde346ee059..5d7645a156c 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_cebc6a()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EA4E989FF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.ir.fxc.hlsl index 4a247d42cc5..aaa4f87a204 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_cebc6a()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000250C32446D0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.fxc.hlsl index 6973830d6f3..69335a06643 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_cfbf48())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016BEA5A6A90(4,16-43): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.ir.fxc.hlsl index 8607af77e48..b1b8fd91e15 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_cfbf48())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C4830746E0(4,16-43): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.fxc.hlsl index 273502cbccb..2447c85b2be 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_e6d39d())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021FA99677A0(4,15-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.ir.fxc.hlsl index ffd0d864424..b836924fffd 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_e6d39d())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002AD55267630(4,15-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.fxc.hlsl index 25e2173991a..d813cf65499 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_e6d948())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D833ABA8A0(4,14-35): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.ir.fxc.hlsl index 3ff1e1b9b15..446749d42bb 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_e6d948()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000251EEBBBC80(4,14-35): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.fxc.hlsl index 48e1679036a..37fe153d1b5 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_e7c301()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000189767646C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.ir.fxc.hlsl index fe339cca9b6..ffa75043798 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_e7c301()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000016952B9B720(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.fxc.hlsl index c752bf814c7..79f3584b9a6 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_ef7d5d()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CE61F04700(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.ir.fxc.hlsl index 10045052cc9..9b5280d2d55 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_ef7d5d()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002AAB1B5C230(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.fxc.hlsl index 929e9fe79c9..90a31767cb3 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_f1e8ec())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A81EE087F0(4,15-41): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.ir.fxc.hlsl index 6b2de1143e4..0e723660e30 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, quadBroadcast_f1e8ec()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000261E514BE80(4,15-41): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.fxc.hlsl index aacccc9a3b2..119a0306951 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_f5f923())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026AB8EF46A0(4,14-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.ir.fxc.hlsl index 87c3166b92f..1dca707d440 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_f5f923())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000029363DEC2F0(4,14-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.fxc.hlsl index 6b2380437ef..713af2d335b 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_f60448())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025E088BD420(4,15-41): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.ir.fxc.hlsl index 7ee8efbc6ca..654d943e124 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, quadBroadcast_f60448()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000025D64CCE0F0(4,15-41): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.fxc.hlsl index bd4dc2d3243..5cc711c3c2e 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_f9d579())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002E02832FA00(4,13-32): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.ir.fxc.hlsl index cef1f256e0a..6562b8ac901 100644 --- a/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_f9d579())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000284B767F6E0(4,13-32): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.fxc.hlsl index 795f4a824a3..bf630945a08 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_15ac75()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000015C4D48BFC0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.ir.fxc.hlsl index 1ba078f98e2..acba55ed653 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_15ac75()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021B79714CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.fxc.hlsl index 5bdb0ef5f9e..a3c1eb55efa 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapDiagonal_2be5e7()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002DF595D8D50(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.ir.fxc.hlsl index 000d7993b24..6ab7480135b 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapDiagonal_2be5e7()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000239F03B4EF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.fxc.hlsl index 42e2a76acb1..acd0db4ed95 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapDiagonal_331804())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022E5E12B830(4,16-50): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.ir.fxc.hlsl index 031c4491f3e..ea58c16fe95 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapDiagonal_331804())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001B1520B8600(4,16-50): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.fxc.hlsl index 073bb0697a3..82fa55959f3 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapDiagonal_348173())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027D1D5B0230(4,15-45): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.ir.fxc.hlsl index e0935602181..a0a9d82691a 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, quadSwapDiagonal_348173()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001B91A25CE10(4,15-45): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.fxc.hlsl index 5b94f27295d..3c697e745ac 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapDiagonal_486196())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024358C15A50(4,15-42): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.ir.fxc.hlsl index 01074995052..c51a633f035 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapDiagonal_486196())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002047B7DA360(4,15-42): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.fxc.hlsl index 3b354546503..d5f47114f0b 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapDiagonal_730e40())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020B31B80850(4,14-39): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.ir.fxc.hlsl index 3a93f97d0b1..31df1882dc9 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapDiagonal_730e40()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002AC0804FEE0(4,14-39): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.fxc.hlsl index 5464fbea712..a89b8e6f022 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapDiagonal_8077c8())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CCF255FDA0(4,16-48): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.ir.fxc.hlsl index af7706b019d..7c5a85351e2 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapDiagonal_8077c8())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002BAA80946C0(4,16-48): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.fxc.hlsl index 8675ff097d5..43d4937291d 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapDiagonal_856536())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019484F476C0(4,15-46): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.ir.fxc.hlsl index fb4be268912..04d9bc8d936 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, quadSwapDiagonal_856536()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000018EBF6146B0(4,15-46): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.fxc.hlsl index b2ce2d7da46..ce6ff04c667 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapDiagonal_9ccb38())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000014278CBAFA0(4,13-37): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.ir.fxc.hlsl index 713a44dedf8..c128735f4f1 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapDiagonal_9ccb38())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001AB639FFE80(4,13-37): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.fxc.hlsl index df39dd1d04b..898b9879463 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapDiagonal_a090b0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000270DF86A410(4,14-43): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.ir.fxc.hlsl index fa4be0ad5c4..182f3c559ec 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapDiagonal_a090b0())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F47D2FFDE0(4,14-43): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.fxc.hlsl index 291275b2fe0..cbfcebbce5e 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapDiagonal_a665b1())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026F1498A5A0(4,14-45): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.ir.fxc.hlsl index c3b38698598..cef349d38a4 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapDiagonal_a665b1())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F83F5DF880(4,14-45): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.fxc.hlsl index c0d22972f80..751a7da2dc0 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapDiagonal_a82e1d())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002027A2D4690(4,14-44): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.ir.fxc.hlsl index a080bdcae96..3f916ad97d6 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapDiagonal_a82e1d())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000022B22E98600(4,14-44): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.fxc.hlsl index b75aef0837d..d1bf9082b35 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_af19a5()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000220B28346C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.ir.fxc.hlsl index 5f55a68a832..913231ca604 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_af19a5()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000020C77DE4CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.fxc.hlsl index 130fed1c345..aa9c39ca078 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapDiagonal_b905fc())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D0EA564690(4,16-49): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.ir.fxc.hlsl index 5f2bab241d8..91478ad0fe7 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapDiagonal_b905fc())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000024359268600(4,16-49): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.fxc.hlsl index ac994189cb9..6e07fd0bff8 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapDiagonal_c31636())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024A9C144690(4,15-47): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.ir.fxc.hlsl index 30e5efc5366..3bfb5ff1dd7 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, quadSwapDiagonal_c31636()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001620AD34E80(4,15-47): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.fxc.hlsl index 3692dc74649..465bc881225 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_e4bec8()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000225F43FC970(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.ir.fxc.hlsl index 2c232815c15..6195214461d 100644 --- a/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_e4bec8()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000017B83C34CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.fxc.hlsl index d0756ace9f2..16f921781cc 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_02834c()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028CCC2246D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.ir.fxc.hlsl index baec14488f3..59732c67d35 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_02834c()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001851FAB46A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.fxc.hlsl index 5098d8cdc17..70e5be28f09 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapX_053f3b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027E71A5C2D0(4,14-37): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.ir.fxc.hlsl index 5015f2596bd..0b1a9f9bc58 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapX_053f3b())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002275AAEA5B0(4,14-37): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.fxc.hlsl index 1cf6efb1fa5..15403a7a047 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapX_07f1fc())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000242057ADBC0(4,15-40): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.ir.fxc.hlsl index bc4e19cff3f..aede2de4c4f 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, quadSwapX_07f1fc()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001E5421DF850(4,15-40): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.fxc.hlsl index b718e42a9fb..782f8fe1a15 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapX_150d6f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F17CCD60E0(4,16-42): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.ir.fxc.hlsl index 1e3ee389060..b6443653ef6 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapX_150d6f())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000020DB93AFB60(4,16-42): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.fxc.hlsl index 208a298d749..812bf674dba 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapX_19f8ce())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028CB7D9D850(4,15-38): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.ir.fxc.hlsl index d331d5ac03a..ad6c6e76e17 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, quadSwapX_19f8ce()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002A70190FB80(4,15-38): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.fxc.hlsl index abc5946ede6..98678eab0bb 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapX_1e1086())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001AE57949270(4,13-30): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.ir.fxc.hlsl index 599a8531e1f..bd967dc116b 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapX_1e1086())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019960E3A4F0(4,13-30): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.fxc.hlsl index b6fb28c9460..c355a7e6f35 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapX_69af6a())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000227AB84E100(4,16-43): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.ir.fxc.hlsl index 07318390993..6bb676a7046 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapX_69af6a())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002871BB74690(4,16-43): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.fxc.hlsl index 6ed03e604db..eeaa9f5af04 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapX_8203ad())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A5EA135640(4,14-32): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.ir.fxc.hlsl index 5de71a6364e..97ea4514f78 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapX_8203ad()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F0271BA4F0(4,14-32): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.fxc.hlsl index 6e8b4f8b9c3..60935b4cd65 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapX_879738())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029E88224EC0(4,16-41): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.ir.fxc.hlsl index 7e4720a3a1c..87ab5796dec 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapX_879738())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000178E1D0FB60(4,16-41): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.fxc.hlsl index ac4a89e4db2..4e8fc20b476 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapX_9bea80())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002460DB49A60(4,15-35): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.ir.fxc.hlsl index 714787c10bd..79df9687887 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapX_9bea80())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002CA31405360(4,15-35): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.fxc.hlsl index dd0b4d569ed..a9b24055173 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapX_a4e103()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B5F57661F0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.ir.fxc.hlsl index 7ce77bac6fc..a2be2cf0b05 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapX_a4e103()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027B57C53FF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.fxc.hlsl index 6fc02101fc4..e4b4bb9e02e 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapX_b1a5fe())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B799891A10(4,14-36): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.ir.fxc.hlsl index 456db0ba22f..6e24a344939 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapX_b1a5fe())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000018A218D60F0(4,14-36): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.fxc.hlsl index aaaff4569bd..ff489a3d00b 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_bc2013()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029E86107F70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.ir.fxc.hlsl index da74984390d..2655ee53571 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_bc2013()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000160F44A5F00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.fxc.hlsl index d766eb750a8..3b4b3a2d04a 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapX_bddb9f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000206601FAFE0(4,15-39): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.ir.fxc.hlsl index c98c509d189..30ee5d6757f 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, quadSwapX_bddb9f()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000014F76880650(4,15-39): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.fxc.hlsl index b1aa6bcdb1c..4e831442e10 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_d60cec()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027950857040(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.ir.fxc.hlsl index 80d4eb720ba..06538509a72 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_d60cec()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001A11B5F4FB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.fxc.hlsl index 6fd95d72c28..e8d6353e388 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapX_edfa1f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000010B181FBCE0(4,14-38): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.ir.fxc.hlsl index 3c94ef739e2..488e7bc5f5b 100644 --- a/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapX_edfa1f())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001E4C040DC50(4,14-38): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.fxc.hlsl index 1b53fba3a4a..6d0e6acbefb 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapY_06a67c())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000212426A60E0(4,15-39): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.ir.fxc.hlsl index 72aecf6618f..0b626fbe0df 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, quadSwapY_06a67c()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002407F11F830(4,15-39): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.fxc.hlsl index dd64bada384..f89434fbe83 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapY_0c4938())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025266520890(4,14-32): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.ir.fxc.hlsl index 3fe2af47625..3c48d5f2ada 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapY_0c4938()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000154558860C0(4,14-32): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.fxc.hlsl index 04ff44bf04e..c623e1a66a7 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapY_0d05a8())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002AB235DACE0(4,14-36): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.ir.fxc.hlsl index 5ac9f134de4..d9df62a778c 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapY_0d05a8())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000023E187DF6E0(4,14-36): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.fxc.hlsl index dd80016957b..e843d75d1b9 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapY_14bb9a())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D15A056BF0(4,14-38): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.ir.fxc.hlsl index b3469ec953f..d9c33370287 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapY_14bb9a())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000029DD4E1C2D0(4,14-38): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.fxc.hlsl index 2416f7a7fa1..41ba7b11f7e 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapY_1f1a06())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000266DDE8BD90(4,16-41): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.ir.fxc.hlsl index dfde4ce216d..20f26876f91 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapY_1f1a06())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000025A4EC65CD0(4,16-41): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.fxc.hlsl index a35e5694836..ede0b95395c 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_264908()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025938AB1E50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.ir.fxc.hlsl index e9314395a9f..c73f81339e6 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_264908()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002541DB44F50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.fxc.hlsl index bbe37c43170..146d846a8c3 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_5b2e67()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002412A55F920(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.ir.fxc.hlsl index aa707db3789..b65977e7777 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_5b2e67()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001AE3DBCFE10(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.fxc.hlsl index 6af0a4576c3..bdbe66baf37 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapY_6f6bc9())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001ED55396BD0(4,15-35): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.ir.fxc.hlsl index ffb46b0ff77..d21fbb3c53c 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapY_6f6bc9())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000154828EFB60(4,15-35): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.fxc.hlsl index 6f8c2c56af1..7606dd8201f 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapY_9277e9()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002A448AB5FC0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.ir.fxc.hlsl index 4bf24e722c5..e3114098122 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapY_9277e9()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000029774C8B0C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.fxc.hlsl index eaace9772fe..c47396b4fe0 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapY_94ab6d())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021EAA0E5660(4,13-30): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.ir.fxc.hlsl index 7382420378d..cdd27ccd767 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapY_94ab6d())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000277BD745590(4,13-30): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.fxc.hlsl index dd069e9d7e7..3ebd7a8d41a 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapY_a27e1c())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001547C5AC2D0(4,15-38): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.ir.fxc.hlsl index feeb9d4ccbf..b0341472580 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, quadSwapY_a27e1c()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F6B2FCC2D0(4,15-38): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.fxc.hlsl index 799eef4bb65..e33261cbd6c 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_a50fcb()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A42213FE70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.ir.fxc.hlsl index b0bb8c939c3..5d2ef5826b3 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_a50fcb()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000241E8906EA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.fxc.hlsl index da2589159c4..271ee6d8ef2 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapY_b9d9e7())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021096454540(4,16-43): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.ir.fxc.hlsl index 0485f3942f6..efdd6f6dc37 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapY_b9d9e7())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001B5DAB05910(4,16-43): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.fxc.hlsl index 4aabf0eb7a1..4535ced0252 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapY_bb697b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000155388960E0(4,15-40): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.ir.fxc.hlsl index 1d5c49bdd5d..4213314092c 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, quadSwapY_bb697b()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001BD0911F850(4,15-40): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.fxc.hlsl index 69d7da0eb53..c05315de1c5 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapY_be4e72())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002228A0AFB20(4,14-37): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.ir.fxc.hlsl index 5567c2e73ff..9d53df366bb 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapY_be4e72())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002B4E0DD5360(4,14-37): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.fxc.hlsl index e684a877d86..3a94684c1c9 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapY_d1ab4d())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000243757EB500(4,16-42): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.ir.fxc.hlsl index b5fdea521e6..6d174aee2e7 100644 --- a/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapY_d1ab4d())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000014F1A465CD0(4,16-42): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/literal/radians/208fd9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/radians/208fd9.wgsl.expected.fxc.hlsl index 4c3e95ab3e6..cadc4400a8b 100644 --- a/test/tint/builtins/gen/literal/radians/208fd9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/radians/208fd9.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void radians_208fd9() { +float16_t radians_208fd9() { float16_t res = float16_t(0.0174407958984375h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - radians_208fd9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - radians_208fd9(); + prevent_dce.Store(0u, radians_208fd9()); return; } [numthreads(1, 1, 1)] void compute_main() { - radians_208fd9(); + prevent_dce.Store(0u, radians_208fd9()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = radians_208fd9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000236D3414FE0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/radians/208fd9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/radians/208fd9.wgsl.expected.ir.fxc.hlsl index 17996feaaa3..09d2db6ded9 100644 --- a/test/tint/builtins/gen/literal/radians/208fd9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/radians/208fd9.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026CC36CF4E0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002069F24F010(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/radians/44f20b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/radians/44f20b.wgsl.expected.fxc.hlsl index b682c5d8b4b..21ab26266e2 100644 --- a/test/tint/builtins/gen/literal/radians/44f20b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/radians/44f20b.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void radians_44f20b() { +vector radians_44f20b() { vector res = (float16_t(0.0174407958984375h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - radians_44f20b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - radians_44f20b(); + prevent_dce.Store >(0u, radians_44f20b()); return; } [numthreads(1, 1, 1)] void compute_main() { - radians_44f20b(); + prevent_dce.Store >(0u, radians_44f20b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = radians_44f20b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001BDE1014CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/radians/44f20b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/radians/44f20b.wgsl.expected.ir.fxc.hlsl index e140516825b..d2cb5acd9e3 100644 --- a/test/tint/builtins/gen/literal/radians/44f20b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/radians/44f20b.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022EB28D1420(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000234835138C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/radians/7ea4c7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/radians/7ea4c7.wgsl.expected.fxc.hlsl index 38fa5d1f7fe..b66813da34b 100644 --- a/test/tint/builtins/gen/literal/radians/7ea4c7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/radians/7ea4c7.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void radians_7ea4c7() { +vector radians_7ea4c7() { vector res = (float16_t(0.0174407958984375h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - radians_7ea4c7(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - radians_7ea4c7(); + prevent_dce.Store >(0u, radians_7ea4c7()); return; } [numthreads(1, 1, 1)] void compute_main() { - radians_7ea4c7(); + prevent_dce.Store >(0u, radians_7ea4c7()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = radians_7ea4c7(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025308D25BA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/radians/7ea4c7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/radians/7ea4c7.wgsl.expected.ir.fxc.hlsl index efeef26f96c..8b2cf3f1358 100644 --- a/test/tint/builtins/gen/literal/radians/7ea4c7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/radians/7ea4c7.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025B165EF9E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002099E963D00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/radians/fbacf0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/radians/fbacf0.wgsl.expected.fxc.hlsl index b6e13da0857..21975a9f968 100644 --- a/test/tint/builtins/gen/literal/radians/fbacf0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/radians/fbacf0.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void radians_fbacf0() { +vector radians_fbacf0() { vector res = (float16_t(0.0174407958984375h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - radians_fbacf0(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - radians_fbacf0(); + prevent_dce.Store >(0u, radians_fbacf0()); return; } [numthreads(1, 1, 1)] void compute_main() { - radians_fbacf0(); + prevent_dce.Store >(0u, radians_fbacf0()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = radians_fbacf0(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001C7F1AF9AE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/radians/fbacf0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/radians/fbacf0.wgsl.expected.ir.fxc.hlsl index f1898defdcd..3fc375c2ec2 100644 --- a/test/tint/builtins/gen/literal/radians/fbacf0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/radians/fbacf0.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CA4EF2FF90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D04D3B93B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/reflect/310de5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reflect/310de5.wgsl.expected.fxc.hlsl index 26e41723fff..944f29746e4 100644 --- a/test/tint/builtins/gen/literal/reflect/310de5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/reflect/310de5.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void reflect_310de5() { +vector reflect_310de5() { vector res = (float16_t(-7.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - reflect_310de5(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - reflect_310de5(); + prevent_dce.Store >(0u, reflect_310de5()); return; } [numthreads(1, 1, 1)] void compute_main() { - reflect_310de5(); + prevent_dce.Store >(0u, reflect_310de5()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = reflect_310de5(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000026756F6AEA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/reflect/310de5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/reflect/310de5.wgsl.expected.ir.fxc.hlsl index 8e7a441dfbd..d74256e2404 100644 --- a/test/tint/builtins/gen/literal/reflect/310de5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/reflect/310de5.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025FAD7D8200(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000252862650F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/reflect/61ca21.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reflect/61ca21.wgsl.expected.fxc.hlsl index c3077d4524f..e6f9b1e9fea 100644 --- a/test/tint/builtins/gen/literal/reflect/61ca21.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/reflect/61ca21.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void reflect_61ca21() { +vector reflect_61ca21() { vector res = (float16_t(-5.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - reflect_61ca21(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - reflect_61ca21(); + prevent_dce.Store >(0u, reflect_61ca21()); return; } [numthreads(1, 1, 1)] void compute_main() { - reflect_61ca21(); + prevent_dce.Store >(0u, reflect_61ca21()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = reflect_61ca21(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001EBA5546600(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/reflect/61ca21.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/reflect/61ca21.wgsl.expected.ir.fxc.hlsl index e171f25955f..a92819ff600 100644 --- a/test/tint/builtins/gen/literal/reflect/61ca21.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/reflect/61ca21.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E0A0797040(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016664A04BF0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/reflect/bb15ac.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/reflect/bb15ac.wgsl.expected.fxc.hlsl index 5e26a4b4f0a..eeeb49449b9 100644 --- a/test/tint/builtins/gen/literal/reflect/bb15ac.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/reflect/bb15ac.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void reflect_bb15ac() { +vector reflect_bb15ac() { vector res = (float16_t(-3.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - reflect_bb15ac(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - reflect_bb15ac(); + prevent_dce.Store >(0u, reflect_bb15ac()); return; } [numthreads(1, 1, 1)] void compute_main() { - reflect_bb15ac(); + prevent_dce.Store >(0u, reflect_bb15ac()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = reflect_bb15ac(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D2F1194920(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/reflect/bb15ac.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/reflect/bb15ac.wgsl.expected.ir.fxc.hlsl index 9c0115594e1..538b0a43b83 100644 --- a/test/tint/builtins/gen/literal/reflect/bb15ac.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/reflect/bb15ac.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ACA4EA0410(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A78AFD48E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/refract/0594ba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/refract/0594ba.wgsl.expected.fxc.hlsl index baa2d1e0827..be70572e930 100644 --- a/test/tint/builtins/gen/literal/refract/0594ba.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/refract/0594ba.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void refract_0594ba() { +vector refract_0594ba() { vector res = (float16_t(-7.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - refract_0594ba(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - refract_0594ba(); + prevent_dce.Store >(0u, refract_0594ba()); return; } [numthreads(1, 1, 1)] void compute_main() { - refract_0594ba(); + prevent_dce.Store >(0u, refract_0594ba()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = refract_0594ba(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002815E466DD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/refract/0594ba.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/refract/0594ba.wgsl.expected.ir.fxc.hlsl index 2cea07ab40b..e26a6f8d3ff 100644 --- a/test/tint/builtins/gen/literal/refract/0594ba.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/refract/0594ba.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F377BCE6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001487D4950F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/refract/570cb3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/refract/570cb3.wgsl.expected.fxc.hlsl index fc218342ccf..eaa420941c5 100644 --- a/test/tint/builtins/gen/literal/refract/570cb3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/refract/570cb3.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void refract_570cb3() { +vector refract_570cb3() { vector res = (float16_t(-3.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - refract_570cb3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - refract_570cb3(); + prevent_dce.Store >(0u, refract_570cb3()); return; } [numthreads(1, 1, 1)] void compute_main() { - refract_570cb3(); + prevent_dce.Store >(0u, refract_570cb3()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = refract_570cb3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E7BF23A300(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/refract/570cb3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/refract/570cb3.wgsl.expected.ir.fxc.hlsl index 2e62642cfa4..84e6ec3a9c6 100644 --- a/test/tint/builtins/gen/literal/refract/570cb3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/refract/570cb3.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021A3F2BF9E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F0E0D98FE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/refract/8984af.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/refract/8984af.wgsl.expected.fxc.hlsl index 386a5362480..ea1b5ca4f48 100644 --- a/test/tint/builtins/gen/literal/refract/8984af.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/refract/8984af.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void refract_8984af() { +vector refract_8984af() { vector res = (float16_t(-5.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - refract_8984af(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - refract_8984af(); + prevent_dce.Store >(0u, refract_8984af()); return; } [numthreads(1, 1, 1)] void compute_main() { - refract_8984af(); + prevent_dce.Store >(0u, refract_8984af()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = refract_8984af(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000012A4228D460(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/refract/8984af.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/refract/8984af.wgsl.expected.ir.fxc.hlsl index 47935f6e487..06ca55f3b42 100644 --- a/test/tint/builtins/gen/literal/refract/8984af.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/refract/8984af.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C546690480(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000012231D193A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/round/9078ef.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/round/9078ef.wgsl.expected.fxc.hlsl index 17721e01b33..62813068799 100644 --- a/test/tint/builtins/gen/literal/round/9078ef.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/round/9078ef.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void round_9078ef() { +float16_t round_9078ef() { float16_t res = float16_t(4.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - round_9078ef(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - round_9078ef(); + prevent_dce.Store(0u, round_9078ef()); return; } [numthreads(1, 1, 1)] void compute_main() { - round_9078ef(); + prevent_dce.Store(0u, round_9078ef()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = round_9078ef(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001DC17553CF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/round/9078ef.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/round/9078ef.wgsl.expected.ir.fxc.hlsl index f102cb6e66d..8a9918388c1 100644 --- a/test/tint/builtins/gen/literal/round/9078ef.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/round/9078ef.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FEC3ABFAF0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000215C031D220(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/round/d87e84.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/round/d87e84.wgsl.expected.fxc.hlsl index c5f329947bb..b5b21bd2ff1 100644 --- a/test/tint/builtins/gen/literal/round/d87e84.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/round/d87e84.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void round_d87e84() { +vector round_d87e84() { vector res = (float16_t(4.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - round_d87e84(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - round_d87e84(); + prevent_dce.Store >(0u, round_d87e84()); return; } [numthreads(1, 1, 1)] void compute_main() { - round_d87e84(); + prevent_dce.Store >(0u, round_d87e84()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = round_d87e84(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000198B3113CA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/round/d87e84.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/round/d87e84.wgsl.expected.ir.fxc.hlsl index c82317bf3d4..675d8e9898b 100644 --- a/test/tint/builtins/gen/literal/round/d87e84.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/round/d87e84.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022373ED5550(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027C13FB9500(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/round/e1bba2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/round/e1bba2.wgsl.expected.fxc.hlsl index 5c6e91b7368..000f3362b2a 100644 --- a/test/tint/builtins/gen/literal/round/e1bba2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/round/e1bba2.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void round_e1bba2() { +vector round_e1bba2() { vector res = (float16_t(4.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - round_e1bba2(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - round_e1bba2(); + prevent_dce.Store >(0u, round_e1bba2()); return; } [numthreads(1, 1, 1)] void compute_main() { - round_e1bba2(); + prevent_dce.Store >(0u, round_e1bba2()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = round_e1bba2(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F25203BA00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/round/e1bba2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/round/e1bba2.wgsl.expected.ir.fxc.hlsl index eb61d30c71e..d259ad82438 100644 --- a/test/tint/builtins/gen/literal/round/e1bba2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/round/e1bba2.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015EB4F03FB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A64340B720(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/round/f665b5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/round/f665b5.wgsl.expected.fxc.hlsl index cb13cd1c208..4f36be00f60 100644 --- a/test/tint/builtins/gen/literal/round/f665b5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/round/f665b5.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void round_f665b5() { +vector round_f665b5() { vector res = (float16_t(4.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - round_f665b5(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - round_f665b5(); + prevent_dce.Store >(0u, round_f665b5()); return; } [numthreads(1, 1, 1)] void compute_main() { - round_f665b5(); + prevent_dce.Store >(0u, round_f665b5()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = round_f665b5(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025F30A14590(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/round/f665b5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/round/f665b5.wgsl.expected.ir.fxc.hlsl index 9ccfed1b72b..0933e430b8e 100644 --- a/test/tint/builtins/gen/literal/round/f665b5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/round/f665b5.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000279CF62E6A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F42B9BDFA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/saturate/462535.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/saturate/462535.wgsl.expected.fxc.hlsl index 0bd15aee5ab..a0a2538cd36 100644 --- a/test/tint/builtins/gen/literal/saturate/462535.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/saturate/462535.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void saturate_462535() { +vector saturate_462535() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - saturate_462535(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - saturate_462535(); + prevent_dce.Store >(0u, saturate_462535()); return; } [numthreads(1, 1, 1)] void compute_main() { - saturate_462535(); + prevent_dce.Store >(0u, saturate_462535()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = saturate_462535(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002860A1F65C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/saturate/462535.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/saturate/462535.wgsl.expected.ir.fxc.hlsl index 6b0274acbfe..34cefe3c4ef 100644 --- a/test/tint/builtins/gen/literal/saturate/462535.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/saturate/462535.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021137B6FD60(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019BE32745B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/saturate/cd2028.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/saturate/cd2028.wgsl.expected.fxc.hlsl index c020ac9a7da..66cea899bff 100644 --- a/test/tint/builtins/gen/literal/saturate/cd2028.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/saturate/cd2028.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void saturate_cd2028() { +vector saturate_cd2028() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - saturate_cd2028(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - saturate_cd2028(); + prevent_dce.Store >(0u, saturate_cd2028()); return; } [numthreads(1, 1, 1)] void compute_main() { - saturate_cd2028(); + prevent_dce.Store >(0u, saturate_cd2028()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = saturate_cd2028(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000017CCAD1C4F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/saturate/cd2028.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/saturate/cd2028.wgsl.expected.ir.fxc.hlsl index 4a011980fa7..a974e7cca43 100644 --- a/test/tint/builtins/gen/literal/saturate/cd2028.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/saturate/cd2028.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020C47A4F960(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FEBEED93A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/saturate/dcde71.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/saturate/dcde71.wgsl.expected.fxc.hlsl index a044fab5dd5..ba182c031b1 100644 --- a/test/tint/builtins/gen/literal/saturate/dcde71.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/saturate/dcde71.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void saturate_dcde71() { +vector saturate_dcde71() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - saturate_dcde71(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - saturate_dcde71(); + prevent_dce.Store >(0u, saturate_dcde71()); return; } [numthreads(1, 1, 1)] void compute_main() { - saturate_dcde71(); + prevent_dce.Store >(0u, saturate_dcde71()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = saturate_dcde71(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002430B6E6D90(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/saturate/dcde71.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/saturate/dcde71.wgsl.expected.ir.fxc.hlsl index de2009005ae..694dcdd3002 100644 --- a/test/tint/builtins/gen/literal/saturate/dcde71.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/saturate/dcde71.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002323433EC10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000288B3F29AD0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/saturate/e8df56.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/saturate/e8df56.wgsl.expected.fxc.hlsl index 941b0abab5d..3b5d27c4c36 100644 --- a/test/tint/builtins/gen/literal/saturate/e8df56.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/saturate/e8df56.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void saturate_e8df56() { +float16_t saturate_e8df56() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - saturate_e8df56(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - saturate_e8df56(); + prevent_dce.Store(0u, saturate_e8df56()); return; } [numthreads(1, 1, 1)] void compute_main() { - saturate_e8df56(); + prevent_dce.Store(0u, saturate_e8df56()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = saturate_e8df56(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B088B34CB0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/saturate/e8df56.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/saturate/e8df56.wgsl.expected.ir.fxc.hlsl index cdc880c0baa..19726999aa3 100644 --- a/test/tint/builtins/gen/literal/saturate/e8df56.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/saturate/e8df56.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CBFA79E6E0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000121DF896220(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/select/10e73b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/10e73b.wgsl.expected.fxc.hlsl index 4539c9492d1..5d4be7b5253 100644 --- a/test/tint/builtins/gen/literal/select/10e73b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/10e73b.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_10e73b() { +float16_t select_10e73b() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_10e73b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_10e73b(); + prevent_dce.Store(0u, select_10e73b()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_10e73b(); + prevent_dce.Store(0u, select_10e73b()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_10e73b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002D19570ACC0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/select/10e73b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/select/10e73b.wgsl.expected.ir.fxc.hlsl index 12dace624d5..029c77cf79c 100644 --- a/test/tint/builtins/gen/literal/select/10e73b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/10e73b.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A5E0843D90(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000208699852D0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/select/1ada2a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/1ada2a.wgsl.expected.fxc.hlsl index 830536ea89d..6bdf365da9c 100644 --- a/test/tint/builtins/gen/literal/select/1ada2a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/1ada2a.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_1ada2a() { +vector select_1ada2a() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_1ada2a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_1ada2a(); + prevent_dce.Store >(0u, select_1ada2a()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_1ada2a(); + prevent_dce.Store >(0u, select_1ada2a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_1ada2a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000014600DF5960(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/select/1ada2a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/select/1ada2a.wgsl.expected.ir.fxc.hlsl index 35d467e3556..948463023ee 100644 --- a/test/tint/builtins/gen/literal/select/1ada2a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/1ada2a.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002496EEB7690(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018DC8873B80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/select/53d518.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/53d518.wgsl.expected.fxc.hlsl index e2e4374409f..dc876595a88 100644 --- a/test/tint/builtins/gen/literal/select/53d518.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/53d518.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_53d518() { +vector select_53d518() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_53d518(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_53d518(); + prevent_dce.Store >(0u, select_53d518()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_53d518(); + prevent_dce.Store >(0u, select_53d518()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_53d518(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001AADD72ACB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/select/53d518.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/select/53d518.wgsl.expected.ir.fxc.hlsl index 2750894ebb0..a2a7e08be44 100644 --- a/test/tint/builtins/gen/literal/select/53d518.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/53d518.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D97A5AEB50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014A2D185590(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/select/830dd9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/830dd9.wgsl.expected.fxc.hlsl index 219a6bcf278..d799d382e13 100644 --- a/test/tint/builtins/gen/literal/select/830dd9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/830dd9.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_830dd9() { +vector select_830dd9() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_830dd9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_830dd9(); + prevent_dce.Store >(0u, select_830dd9()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_830dd9(); + prevent_dce.Store >(0u, select_830dd9()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_830dd9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001808E5F45C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/select/830dd9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/select/830dd9.wgsl.expected.ir.fxc.hlsl index fd7e8ddcb87..1d32ff4eb1c 100644 --- a/test/tint/builtins/gen/literal/select/830dd9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/830dd9.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025196BE04A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000265CFE98F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/select/86f9bd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/86f9bd.wgsl.expected.fxc.hlsl index 6a5084f8dcf..eb73f2a3f17 100644 --- a/test/tint/builtins/gen/literal/select/86f9bd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/86f9bd.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_86f9bd() { +vector select_86f9bd() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_86f9bd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_86f9bd(); + prevent_dce.Store >(0u, select_86f9bd()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_86f9bd(); + prevent_dce.Store >(0u, select_86f9bd()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_86f9bd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021A1F280960(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/select/86f9bd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/select/86f9bd.wgsl.expected.ir.fxc.hlsl index d22529048df..f9e980d391f 100644 --- a/test/tint/builtins/gen/literal/select/86f9bd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/86f9bd.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015A5B52FA00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000011C99AF8FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/select/a081f1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/a081f1.wgsl.expected.fxc.hlsl index 6a0e16d59db..5e374ed3a27 100644 --- a/test/tint/builtins/gen/literal/select/a081f1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/a081f1.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_a081f1() { +vector select_a081f1() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_a081f1(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_a081f1(); + prevent_dce.Store >(0u, select_a081f1()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_a081f1(); + prevent_dce.Store >(0u, select_a081f1()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_a081f1(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000027485954290(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/select/a081f1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/select/a081f1.wgsl.expected.ir.fxc.hlsl index a82e067a962..408f7fa5cfd 100644 --- a/test/tint/builtins/gen/literal/select/a081f1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/a081f1.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001904F65F230(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000248DE949EB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/select/ed7c13.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/select/ed7c13.wgsl.expected.fxc.hlsl index fad58aa7f3b..4e360c0c704 100644 --- a/test/tint/builtins/gen/literal/select/ed7c13.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/ed7c13.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_ed7c13() { +vector select_ed7c13() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_ed7c13(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_ed7c13(); + prevent_dce.Store >(0u, select_ed7c13()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_ed7c13(); + prevent_dce.Store >(0u, select_ed7c13()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_ed7c13(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001EACA91D550(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/select/ed7c13.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/select/ed7c13.wgsl.expected.ir.fxc.hlsl index 2213961f75e..530fa29d898 100644 --- a/test/tint/builtins/gen/literal/select/ed7c13.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/select/ed7c13.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002899CBB7390(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000287BA440140(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sign/160933.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sign/160933.wgsl.expected.fxc.hlsl index e21372cc70b..85dada3245f 100644 --- a/test/tint/builtins/gen/literal/sign/160933.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sign/160933.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sign_160933() { +vector sign_160933() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sign_160933(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sign_160933(); + prevent_dce.Store >(0u, sign_160933()); return; } [numthreads(1, 1, 1)] void compute_main() { - sign_160933(); + prevent_dce.Store >(0u, sign_160933()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sign_160933(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D10459BB70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sign/160933.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sign/160933.wgsl.expected.ir.fxc.hlsl index d7da0b85b91..1efb89aa4a1 100644 --- a/test/tint/builtins/gen/literal/sign/160933.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sign/160933.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021ECE61DA60(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001757D6C38B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sign/5d283a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sign/5d283a.wgsl.expected.fxc.hlsl index e6179e33f51..162ef5562b4 100644 --- a/test/tint/builtins/gen/literal/sign/5d283a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sign/5d283a.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sign_5d283a() { +vector sign_5d283a() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sign_5d283a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sign_5d283a(); + prevent_dce.Store >(0u, sign_5d283a()); return; } [numthreads(1, 1, 1)] void compute_main() { - sign_5d283a(); + prevent_dce.Store >(0u, sign_5d283a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sign_5d283a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000015146A86670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sign/5d283a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sign/5d283a.wgsl.expected.ir.fxc.hlsl index 51d0fb04fc4..3a2b69daa3c 100644 --- a/test/tint/builtins/gen/literal/sign/5d283a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sign/5d283a.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021BC075F960(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002631C749EE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sign/7c85ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sign/7c85ea.wgsl.expected.fxc.hlsl index 350776b52fa..4a291a6f1c3 100644 --- a/test/tint/builtins/gen/literal/sign/7c85ea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sign/7c85ea.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sign_7c85ea() { +float16_t sign_7c85ea() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sign_7c85ea(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sign_7c85ea(); + prevent_dce.Store(0u, sign_7c85ea()); return; } [numthreads(1, 1, 1)] void compute_main() { - sign_7c85ea(); + prevent_dce.Store(0u, sign_7c85ea()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sign_7c85ea(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D9C167B8B0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sign/7c85ea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sign/7c85ea.wgsl.expected.ir.fxc.hlsl index c546c9eb47f..f0d28686f84 100644 --- a/test/tint/builtins/gen/literal/sign/7c85ea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sign/7c85ea.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002613C00EEA0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000267975342D0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/sign/ccdb3c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sign/ccdb3c.wgsl.expected.fxc.hlsl index cda37448707..f99c8045005 100644 --- a/test/tint/builtins/gen/literal/sign/ccdb3c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sign/ccdb3c.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sign_ccdb3c() { +vector sign_ccdb3c() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sign_ccdb3c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sign_ccdb3c(); + prevent_dce.Store >(0u, sign_ccdb3c()); return; } [numthreads(1, 1, 1)] void compute_main() { - sign_ccdb3c(); + prevent_dce.Store >(0u, sign_ccdb3c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sign_ccdb3c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002222B98E350(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sign/ccdb3c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sign/ccdb3c.wgsl.expected.ir.fxc.hlsl index aa5c067da07..cbc125fd40c 100644 --- a/test/tint/builtins/gen/literal/sign/ccdb3c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sign/ccdb3c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002156E98EB90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024C0BB2A180(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sin/2c903b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sin/2c903b.wgsl.expected.fxc.hlsl index abbd064ca9e..f39db0412d0 100644 --- a/test/tint/builtins/gen/literal/sin/2c903b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sin/2c903b.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sin_2c903b() { +vector sin_2c903b() { vector res = (float16_t(0.99951171875h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sin_2c903b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sin_2c903b(); + prevent_dce.Store >(0u, sin_2c903b()); return; } [numthreads(1, 1, 1)] void compute_main() { - sin_2c903b(); + prevent_dce.Store >(0u, sin_2c903b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sin_2c903b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000170EA6964A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sin/2c903b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sin/2c903b.wgsl.expected.ir.fxc.hlsl index f0d4fa41f80..25469144cd8 100644 --- a/test/tint/builtins/gen/literal/sin/2c903b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sin/2c903b.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C5CCC55550(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022B7B804000(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sin/3cca11.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sin/3cca11.wgsl.expected.fxc.hlsl index a811fae63a7..75c15ff1283 100644 --- a/test/tint/builtins/gen/literal/sin/3cca11.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sin/3cca11.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sin_3cca11() { +vector sin_3cca11() { vector res = (float16_t(0.99951171875h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sin_3cca11(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sin_3cca11(); + prevent_dce.Store >(0u, sin_3cca11()); return; } [numthreads(1, 1, 1)] void compute_main() { - sin_3cca11(); + prevent_dce.Store >(0u, sin_3cca11()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sin_3cca11(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000013DA2491C00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sin/3cca11.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sin/3cca11.wgsl.expected.ir.fxc.hlsl index cf1ff97ce0a..07e9f54f9da 100644 --- a/test/tint/builtins/gen/literal/sin/3cca11.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sin/3cca11.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000199B9482500(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025A4D7B0820(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sin/5c0712.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sin/5c0712.wgsl.expected.fxc.hlsl index 128cdc6faa8..2895ca13526 100644 --- a/test/tint/builtins/gen/literal/sin/5c0712.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sin/5c0712.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sin_5c0712() { +vector sin_5c0712() { vector res = (float16_t(0.99951171875h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sin_5c0712(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sin_5c0712(); + prevent_dce.Store >(0u, sin_5c0712()); return; } [numthreads(1, 1, 1)] void compute_main() { - sin_5c0712(); + prevent_dce.Store >(0u, sin_5c0712()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sin_5c0712(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001BCF51F5080(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sin/5c0712.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sin/5c0712.wgsl.expected.ir.fxc.hlsl index 634f063efc7..80e8bf92a99 100644 --- a/test/tint/builtins/gen/literal/sin/5c0712.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sin/5c0712.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002BE2FC8FDC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002201F3D38B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sin/66a59f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sin/66a59f.wgsl.expected.fxc.hlsl index 36c79c8d58d..0add1309f20 100644 --- a/test/tint/builtins/gen/literal/sin/66a59f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sin/66a59f.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sin_66a59f() { +float16_t sin_66a59f() { float16_t res = float16_t(0.99951171875h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sin_66a59f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sin_66a59f(); + prevent_dce.Store(0u, sin_66a59f()); return; } [numthreads(1, 1, 1)] void compute_main() { - sin_66a59f(); + prevent_dce.Store(0u, sin_66a59f()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sin_66a59f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D0F2DC6790(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sin/66a59f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sin/66a59f.wgsl.expected.ir.fxc.hlsl index 0bd9661a0ad..7a2b0487e44 100644 --- a/test/tint/builtins/gen/literal/sin/66a59f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sin/66a59f.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B225B1ED80(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002957A10ABA0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/sinh/0908c1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/0908c1.wgsl.expected.fxc.hlsl index 9ea2818cb48..de917e38590 100644 --- a/test/tint/builtins/gen/literal/sinh/0908c1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sinh/0908c1.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sinh_0908c1() { +vector sinh_0908c1() { vector res = (float16_t(1.1748046875h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sinh_0908c1(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sinh_0908c1(); + prevent_dce.Store >(0u, sinh_0908c1()); return; } [numthreads(1, 1, 1)] void compute_main() { - sinh_0908c1(); + prevent_dce.Store >(0u, sinh_0908c1()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sinh_0908c1(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000016D9F4B65C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sinh/0908c1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/0908c1.wgsl.expected.ir.fxc.hlsl index 3b9b23c2d07..7a3e1b4a041 100644 --- a/test/tint/builtins/gen/literal/sinh/0908c1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sinh/0908c1.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021DD58CF960(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001ECF1E75230(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sinh/69cce2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/69cce2.wgsl.expected.fxc.hlsl index 1f2048838db..070ca077352 100644 --- a/test/tint/builtins/gen/literal/sinh/69cce2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sinh/69cce2.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sinh_69cce2() { +float16_t sinh_69cce2() { float16_t res = float16_t(1.1748046875h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sinh_69cce2(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sinh_69cce2(); + prevent_dce.Store(0u, sinh_69cce2()); return; } [numthreads(1, 1, 1)] void compute_main() { - sinh_69cce2(); + prevent_dce.Store(0u, sinh_69cce2()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sinh_69cce2(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002477B585BA0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sinh/69cce2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/69cce2.wgsl.expected.ir.fxc.hlsl index 4c37ea72e3f..10b96b5e1e5 100644 --- a/test/tint/builtins/gen/literal/sinh/69cce2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sinh/69cce2.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000013BD8B20F80(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002F6EBEC56C0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/sinh/924f19.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/924f19.wgsl.expected.fxc.hlsl index 5775ba30049..32c1ed049bb 100644 --- a/test/tint/builtins/gen/literal/sinh/924f19.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sinh/924f19.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sinh_924f19() { +vector sinh_924f19() { vector res = (float16_t(1.1748046875h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sinh_924f19(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sinh_924f19(); + prevent_dce.Store >(0u, sinh_924f19()); return; } [numthreads(1, 1, 1)] void compute_main() { - sinh_924f19(); + prevent_dce.Store >(0u, sinh_924f19()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sinh_924f19(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001FD92CC4690(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sinh/924f19.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/924f19.wgsl.expected.ir.fxc.hlsl index 77b03672864..db7263d7b32 100644 --- a/test/tint/builtins/gen/literal/sinh/924f19.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sinh/924f19.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026E29FA0B00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000125801BDF60(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sinh/ba7e25.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/ba7e25.wgsl.expected.fxc.hlsl index 744c9c31f21..5aba86290e1 100644 --- a/test/tint/builtins/gen/literal/sinh/ba7e25.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sinh/ba7e25.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sinh_ba7e25() { +vector sinh_ba7e25() { vector res = (float16_t(1.1748046875h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sinh_ba7e25(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sinh_ba7e25(); + prevent_dce.Store >(0u, sinh_ba7e25()); return; } [numthreads(1, 1, 1)] void compute_main() { - sinh_ba7e25(); + prevent_dce.Store >(0u, sinh_ba7e25()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sinh_ba7e25(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001AAE7AD6620(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sinh/ba7e25.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sinh/ba7e25.wgsl.expected.ir.fxc.hlsl index 295ee8f03e3..e8228240ebe 100644 --- a/test/tint/builtins/gen/literal/sinh/ba7e25.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sinh/ba7e25.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FC68B2E9E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BFDEF450C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/smoothstep/12c031.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/12c031.wgsl.expected.fxc.hlsl index 015d3582a7f..48b42cb2cca 100644 --- a/test/tint/builtins/gen/literal/smoothstep/12c031.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/smoothstep/12c031.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void smoothstep_12c031() { +vector smoothstep_12c031() { vector res = (float16_t(0.5h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - smoothstep_12c031(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - smoothstep_12c031(); + prevent_dce.Store >(0u, smoothstep_12c031()); return; } [numthreads(1, 1, 1)] void compute_main() { - smoothstep_12c031(); + prevent_dce.Store >(0u, smoothstep_12c031()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = smoothstep_12c031(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F7180C5720(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/smoothstep/12c031.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/12c031.wgsl.expected.ir.fxc.hlsl index 91094d2726a..908ee176127 100644 --- a/test/tint/builtins/gen/literal/smoothstep/12c031.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/smoothstep/12c031.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021B1BABFFE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002984BBD8FE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/smoothstep/586e12.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/586e12.wgsl.expected.fxc.hlsl index d7b7641b5f1..6e11cb64591 100644 --- a/test/tint/builtins/gen/literal/smoothstep/586e12.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/smoothstep/586e12.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void smoothstep_586e12() { +float16_t smoothstep_586e12() { float16_t res = float16_t(0.5h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - smoothstep_586e12(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - smoothstep_586e12(); + prevent_dce.Store(0u, smoothstep_586e12()); return; } [numthreads(1, 1, 1)] void compute_main() { - smoothstep_586e12(); + prevent_dce.Store(0u, smoothstep_586e12()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = smoothstep_586e12(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021BCCB65870(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/smoothstep/586e12.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/586e12.wgsl.expected.ir.fxc.hlsl index a3f9a79afc5..b7b0037c3fc 100644 --- a/test/tint/builtins/gen/literal/smoothstep/586e12.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/smoothstep/586e12.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001853DDAEEF0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000194C963C080(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/smoothstep/6e7a74.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/6e7a74.wgsl.expected.fxc.hlsl index 2101de32946..9f9fb55af88 100644 --- a/test/tint/builtins/gen/literal/smoothstep/6e7a74.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/smoothstep/6e7a74.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void smoothstep_6e7a74() { +vector smoothstep_6e7a74() { vector res = (float16_t(0.5h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - smoothstep_6e7a74(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - smoothstep_6e7a74(); + prevent_dce.Store >(0u, smoothstep_6e7a74()); return; } [numthreads(1, 1, 1)] void compute_main() { - smoothstep_6e7a74(); + prevent_dce.Store >(0u, smoothstep_6e7a74()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = smoothstep_6e7a74(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021BC9FC6690(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/smoothstep/6e7a74.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/6e7a74.wgsl.expected.ir.fxc.hlsl index 320710891f2..776e1ff751c 100644 --- a/test/tint/builtins/gen/literal/smoothstep/6e7a74.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/smoothstep/6e7a74.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EF0DA454B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F67B1D5560(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/smoothstep/c43ebd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/c43ebd.wgsl.expected.fxc.hlsl index b40f4dcbf59..688cac8bd81 100644 --- a/test/tint/builtins/gen/literal/smoothstep/c43ebd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/smoothstep/c43ebd.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void smoothstep_c43ebd() { +vector smoothstep_c43ebd() { vector res = (float16_t(0.5h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - smoothstep_c43ebd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - smoothstep_c43ebd(); + prevent_dce.Store >(0u, smoothstep_c43ebd()); return; } [numthreads(1, 1, 1)] void compute_main() { - smoothstep_c43ebd(); + prevent_dce.Store >(0u, smoothstep_c43ebd()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = smoothstep_c43ebd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002AA6383BD40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/smoothstep/c43ebd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/smoothstep/c43ebd.wgsl.expected.ir.fxc.hlsl index a49cbb94ebf..94d739dc4a3 100644 --- a/test/tint/builtins/gen/literal/smoothstep/c43ebd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/smoothstep/c43ebd.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BC7D54FD60(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029342806220(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sqrt/803d1c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/803d1c.wgsl.expected.fxc.hlsl index 0beb17d91b3..3845a021e6a 100644 --- a/test/tint/builtins/gen/literal/sqrt/803d1c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sqrt/803d1c.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sqrt_803d1c() { +vector sqrt_803d1c() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sqrt_803d1c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sqrt_803d1c(); + prevent_dce.Store >(0u, sqrt_803d1c()); return; } [numthreads(1, 1, 1)] void compute_main() { - sqrt_803d1c(); + prevent_dce.Store >(0u, sqrt_803d1c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sqrt_803d1c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F1AA9742B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sqrt/803d1c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/803d1c.wgsl.expected.ir.fxc.hlsl index d95947178fa..e8e016ae0e1 100644 --- a/test/tint/builtins/gen/literal/sqrt/803d1c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sqrt/803d1c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DFC676F020(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B7F0B596A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sqrt/895a0c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/895a0c.wgsl.expected.fxc.hlsl index dbb1eecc3dd..7ea367ce6d6 100644 --- a/test/tint/builtins/gen/literal/sqrt/895a0c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sqrt/895a0c.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sqrt_895a0c() { +vector sqrt_895a0c() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sqrt_895a0c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sqrt_895a0c(); + prevent_dce.Store >(0u, sqrt_895a0c()); return; } [numthreads(1, 1, 1)] void compute_main() { - sqrt_895a0c(); + prevent_dce.Store >(0u, sqrt_895a0c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sqrt_895a0c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002DA52584670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sqrt/895a0c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/895a0c.wgsl.expected.ir.fxc.hlsl index 607e1013cb3..131c887ecf9 100644 --- a/test/tint/builtins/gen/literal/sqrt/895a0c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sqrt/895a0c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026EE00EE490(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000196149D87F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sqrt/d9ab4d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/d9ab4d.wgsl.expected.fxc.hlsl index 6d865d98f94..1a065615a19 100644 --- a/test/tint/builtins/gen/literal/sqrt/d9ab4d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sqrt/d9ab4d.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sqrt_d9ab4d() { +vector sqrt_d9ab4d() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sqrt_d9ab4d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sqrt_d9ab4d(); + prevent_dce.Store >(0u, sqrt_d9ab4d()); return; } [numthreads(1, 1, 1)] void compute_main() { - sqrt_d9ab4d(); + prevent_dce.Store >(0u, sqrt_d9ab4d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sqrt_d9ab4d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000011728DD4290(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sqrt/d9ab4d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/d9ab4d.wgsl.expected.ir.fxc.hlsl index 8ab84fdb84d..803d48cde76 100644 --- a/test/tint/builtins/gen/literal/sqrt/d9ab4d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sqrt/d9ab4d.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B2C6FBE320(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E0C06D9390(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/sqrt/ec33e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/ec33e9.wgsl.expected.fxc.hlsl index 75845d0ba01..8c54080d11c 100644 --- a/test/tint/builtins/gen/literal/sqrt/ec33e9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sqrt/ec33e9.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sqrt_ec33e9() { +float16_t sqrt_ec33e9() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sqrt_ec33e9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sqrt_ec33e9(); + prevent_dce.Store(0u, sqrt_ec33e9()); return; } [numthreads(1, 1, 1)] void compute_main() { - sqrt_ec33e9(); + prevent_dce.Store(0u, sqrt_ec33e9()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sqrt_ec33e9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000022A1A406D40(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/sqrt/ec33e9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/sqrt/ec33e9.wgsl.expected.ir.fxc.hlsl index b07debd642f..1320578ecfb 100644 --- a/test/tint/builtins/gen/literal/sqrt/ec33e9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/sqrt/ec33e9.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F851F3E390(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000024D9826BB80(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/step/07cb06.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/step/07cb06.wgsl.expected.fxc.hlsl index d7128167d2f..1d653e4e6a5 100644 --- a/test/tint/builtins/gen/literal/step/07cb06.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/step/07cb06.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void step_07cb06() { +vector step_07cb06() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - step_07cb06(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - step_07cb06(); + prevent_dce.Store >(0u, step_07cb06()); return; } [numthreads(1, 1, 1)] void compute_main() { - step_07cb06(); + prevent_dce.Store >(0u, step_07cb06()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = step_07cb06(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001811C806620(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/step/07cb06.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/step/07cb06.wgsl.expected.ir.fxc.hlsl index f6e1539c1ba..ce8fedac6ad 100644 --- a/test/tint/builtins/gen/literal/step/07cb06.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/step/07cb06.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001561865F680(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014D2567B6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/step/630d07.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/step/630d07.wgsl.expected.fxc.hlsl index 9e00ddc9599..ef2968f79b1 100644 --- a/test/tint/builtins/gen/literal/step/630d07.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/step/630d07.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void step_630d07() { +float16_t step_630d07() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - step_630d07(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - step_630d07(); + prevent_dce.Store(0u, step_630d07()); return; } [numthreads(1, 1, 1)] void compute_main() { - step_630d07(); + prevent_dce.Store(0u, step_630d07()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = step_630d07(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000157DD3FAD70(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/step/630d07.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/step/630d07.wgsl.expected.ir.fxc.hlsl index 4f8c5fb90b1..edac8fcd4bf 100644 --- a/test/tint/builtins/gen/literal/step/630d07.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/step/630d07.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CF6363EE70(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001D49704D1A0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/step/baa320.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/step/baa320.wgsl.expected.fxc.hlsl index 304999a023e..89ff4b2578c 100644 --- a/test/tint/builtins/gen/literal/step/baa320.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/step/baa320.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void step_baa320() { +vector step_baa320() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - step_baa320(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - step_baa320(); + prevent_dce.Store >(0u, step_baa320()); return; } [numthreads(1, 1, 1)] void compute_main() { - step_baa320(); + prevent_dce.Store >(0u, step_baa320()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = step_baa320(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021B8A9CA6C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/step/baa320.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/step/baa320.wgsl.expected.ir.fxc.hlsl index baf9dcd06a0..6de5d3197f9 100644 --- a/test/tint/builtins/gen/literal/step/baa320.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/step/baa320.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000174BF91FCA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020296679420(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/step/cc6b61.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/step/cc6b61.wgsl.expected.fxc.hlsl index eceb22b6168..9374a0abf62 100644 --- a/test/tint/builtins/gen/literal/step/cc6b61.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/step/cc6b61.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void step_cc6b61() { +vector step_cc6b61() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - step_cc6b61(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - step_cc6b61(); + prevent_dce.Store >(0u, step_cc6b61()); return; } [numthreads(1, 1, 1)] void compute_main() { - step_cc6b61(); + prevent_dce.Store >(0u, step_cc6b61()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = step_cc6b61(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002278A0F5950(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/step/cc6b61.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/step/cc6b61.wgsl.expected.ir.fxc.hlsl index b94a51d9473..21733dd6664 100644 --- a/test/tint/builtins/gen/literal/step/cc6b61.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/step/cc6b61.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018C063D15A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000223338AB3F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.fxc.hlsl index 474ff196d17..64047c3247d 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupAdd_0dd12a() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupAdd_0dd12a()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupAdd_0dd12a()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001661A078960(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EE878A5E50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.ir.fxc.hlsl index 51fa88fca51..0fbf1bf1616 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000203FE9B1D80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000256AFA26040(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.fxc.hlsl index 2beeb4e0f91..6d997a82bb9 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint2 subgroupAdd_1280c8() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupAdd_1280c8())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupAdd_1280c8())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001BDE3BAF2E0(4,15-36): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000019992290260(4,15-36): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.ir.fxc.hlsl index 7965ca8fbec..9f25e0371f1 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DA4802CB10(4,15-36): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000026A2DEB0650(4,15-36): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.fxc.hlsl index eb88bf4986c..f3d030ae4f3 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int2 subgroupAdd_1eb429() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupAdd_1eb429())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupAdd_1eb429())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000018C2972F3E0(4,14-34): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000177F50B01B0(4,14-34): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.ir.fxc.hlsl index 9a8dddf012c..9e3143baba6 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002E96BAF9210(4,14-34): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000162480E8E50(4,14-34): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.fxc.hlsl index 2ad96d5a29f..f7fccabf21d 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float16_t subgroupAdd_225207() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupAdd_225207()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupAdd_225207()); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000222ADE019D0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001F77EC04F90(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.ir.fxc.hlsl index a0ecd91cf79..8a638c4a069 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AC6D189180(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000024621515BA0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.fxc.hlsl index f60f456c0f0..5e971ca6cb9 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int3 subgroupAdd_22d041() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupAdd_22d041())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupAdd_22d041())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002FC41D5EFF0(4,14-35): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001DBD12F0260(4,14-35): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.ir.fxc.hlsl index af3cd7c43e2..c377b4a2196 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DEA7D7F0A0(4,14-35): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000024C7D32E0D0(4,14-35): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.fxc.hlsl index 13b75622e2e..e8cd7441c7a 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int4 subgroupAdd_28db2c() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupAdd_28db2c())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupAdd_28db2c())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002314343F3E0(4,14-36): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000234498B0260(4,14-36): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.ir.fxc.hlsl index 35c342d8ae4..7bb461941ae 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C7D73F9120(4,14-36): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000224D9F0FB60(4,14-36): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.fxc.hlsl index a9518c74ab7..1061cafffa0 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupAdd_2ab40a() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupAdd_2ab40a()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupAdd_2ab40a()); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000266E3967020(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B0E236C9B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.ir.fxc.hlsl index 43297e695a1..f61d7f1a792 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000244934F3280(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021977F161E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.fxc.hlsl index 0235de36649..8c48a6822c6 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float subgroupAdd_3854ae() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupAdd_3854ae())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupAdd_3854ae())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001B8C9424340(4,15-33): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001DE89B85E10(4,15-33): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.ir.fxc.hlsl index 1b8b5fc000c..0a02dff9b8a 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CBAD5F01B0(4,15-33): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000025D3DDA0650(4,15-33): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.fxc.hlsl index a4cf7419b20..33dc96971b8 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint3 subgroupAdd_6587ff() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupAdd_6587ff())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupAdd_6587ff())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000029ADEE61DA0(4,15-37): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001D2EF3268F0(4,15-37): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.ir.fxc.hlsl index 8b3a300cb3d..94da6f2e977 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027D12C3CB10(4,15-37): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000014DFDADDD50(4,15-37): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.fxc.hlsl index 48e4494bbf0..ee2a5c6cde6 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float3 subgroupAdd_7d1215() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupAdd_7d1215())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupAdd_7d1215())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001CCCB8544D0(4,16-40): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001BC3F831CA0(4,16-40): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.ir.fxc.hlsl index 11dd789b253..2a251dd0c7d 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FF75C9EED0(4,16-40): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000184F7EEF870(4,16-40): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.fxc.hlsl index 01d102f0950..d1884c7090c 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float4 subgroupAdd_8f4c15() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupAdd_8f4c15())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupAdd_8f4c15())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000019F67A3F2E0(4,16-41): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000249358A6A80(4,16-41): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.ir.fxc.hlsl index 0bc1ab0c5e6..aab7541afce 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028E349D9060(4,16-41): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000208574BF790(4,16-41): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.fxc.hlsl index 201e52e2bab..9c519aa72e4 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint subgroupAdd_b61df7() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupAdd_b61df7())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupAdd_b61df7())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000022108E12040(4,14-30): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001C3130CA890(4,14-30): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.ir.fxc.hlsl index da91ab7081e..b7eca6381f8 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A62B71EED0(4,14-30): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000227890DF9F0(4,14-30): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.fxc.hlsl index 310aad556ea..6210c583d58 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int subgroupAdd_ba53f9() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupAdd_ba53f9())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupAdd_ba53f9())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001D4149A22A0(4,13-28): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001EE455B5DC0(4,13-28): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.ir.fxc.hlsl index 4b49a9ae266..2ec72a0c5e4 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029DD877CB10(4,13-28): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001C73484E8F0(4,13-28): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.fxc.hlsl index 45ba4f8d4ee..dd885bc506b 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupAdd_cae1ed() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupAdd_cae1ed()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupAdd_cae1ed()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000022F6A42F430(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002448436BD80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.ir.fxc.hlsl index a609086dd9f..1c69c5b3758 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022E035C3280(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000212F34C84E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.fxc.hlsl index 21d8e29d796..b5ee5c899fa 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float2 subgroupAdd_dcf73f() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupAdd_dcf73f())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupAdd_dcf73f())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000020DED641DA0(4,16-39): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001FBA1246080(4,16-39): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.ir.fxc.hlsl index 65eb4a87a9f..d1c3bb96a85 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022F6EED8D30(4,16-39): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000015D9A0703E0(4,16-39): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.fxc.hlsl index 7b23a868adc..af6485729ae 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint4 subgroupAdd_fbc357() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupAdd_fbc357())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupAdd_fbc357())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000166A6A2F2E0(4,15-38): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000258AA9071E0(4,15-38): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.ir.fxc.hlsl index a4913086e54..4a520fac733 100644 --- a/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001732F5EEED0(4,15-38): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000279FB45D500(4,15-38): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.fxc.hlsl index 8df146420f5..d8dc05aedde 100644 --- a/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupAll_c962bd())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CFBD5A9C10(4,14-36): error X3004: undeclared identifier 'WaveActiveAllTrue' + diff --git a/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.ir.fxc.hlsl index a346dfc1a0a..d6c2e6c122b 100644 --- a/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000168F7D19120(4,14-36): error X3004: undeclared identifier 'WaveActiveAllTrue' +C:\src\dawn\Shader@0x000001B391931C80(4,14-36): error X3004: undeclared identifier 'WaveActiveAllTrue' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.fxc.hlsl index 2b24bcff961..e16b9b121b4 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupAnd_1877b3() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupAnd_1877b3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupAnd_1877b3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001E52F512120(5,20-53): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001DB7FABFDD0(5,20-53): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.ir.fxc.hlsl index 6634d971516..2287d9404a6 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D263D70790(5,20-48): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001FF0024BE30(5,20-48): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.fxc.hlsl index ef07ceb2dfe..1aa9606c111 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint2 subgroupAnd_376802() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupAnd_376802())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupAnd_376802())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001F31EC14340(4,15-39): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x0000027FF6ECD5D0(4,15-39): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.ir.fxc.hlsl index ac2635ed423..f912498978f 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025A86732530(4,15-39): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001F539720990(4,15-39): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.fxc.hlsl index f1aa4a9e4bc..1340743cf59 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupAnd_4adc72() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupAnd_4adc72())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupAnd_4adc72())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000017C0FBA7D40(5,20-53): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x0000017D50A774D0(5,20-53): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.ir.fxc.hlsl index 11fed8a69cf..e6bfe9eadef 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017808552250(5,20-48): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x0000022AFB0BCFD0(5,20-48): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.fxc.hlsl index a5ab851ed94..2992a929db4 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint subgroupAnd_4df632() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupAnd_4df632())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupAnd_4df632())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001C62A3C1D70(4,14-33): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001D2B162FD30(4,14-33): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.ir.fxc.hlsl index 92aaa9530fa..03f72baf3d8 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029CE37C90C0(4,14-33): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001CA70D5FEE0(4,14-33): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.fxc.hlsl index d9f6ebec1d6..485460219e8 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupAnd_97655b() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupAnd_97655b())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupAnd_97655b())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001613FAC8480(5,20-53): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x00000199732A8560(5,20-53): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.ir.fxc.hlsl index 288e324e84d..8ca56d821c8 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027283D4F2E0(5,20-48): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001B414BDFEF0(5,20-48): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.fxc.hlsl index 6a7ecca3da9..46b9045fca7 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint3 subgroupAnd_ad0cd3() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupAnd_ad0cd3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupAnd_ad0cd3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001C8B473F2E0(4,15-40): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x0000026A18D246A0(4,15-40): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.ir.fxc.hlsl index 574d599525c..5fd8c0fa49f 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B38E708D30(4,15-40): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x00000202F2780880(4,15-40): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.fxc.hlsl index 2c07048de5e..18a8dd91c6e 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int subgroupAnd_c6fc92() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupAnd_c6fc92())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupAnd_c6fc92())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001D230F277C0(4,19-45): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000002466F5AAFB0(4,19-45): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.ir.fxc.hlsl index 0f6a3162c64..44b886f1856 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021F051390E0(4,19-45): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001F4C972D510(4,19-45): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.fxc.hlsl index 148c3e68ac4..4e74a19c3e3 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint4 subgroupAnd_d2c9a6() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupAnd_d2c9a6())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupAnd_d2c9a6())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001576ECA5300(4,15-41): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001EC5071FCC0(4,15-41): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.ir.fxc.hlsl index 46d52c66aa5..91eb8aa47cf 100644 --- a/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017A770F3140(4,15-41): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x00000217C80EC2E0(4,15-41): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.fxc.hlsl index 439e998a801..d3f7ef01e4f 100644 --- a/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupAny_cddda0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001672929D590(4,14-36): error X3004: undeclared identifier 'WaveActiveAnyTrue' + diff --git a/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.ir.fxc.hlsl index b6a19a1e75b..d7fb0192b64 100644 --- a/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002BAD6E78DA0(4,14-36): error X3004: undeclared identifier 'WaveActiveAnyTrue' +C:\src\dawn\Shader@0x0000025CEF9FF7A0(4,14-36): error X3004: undeclared identifier 'WaveActiveAnyTrue' diff --git a/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.fxc.hlsl index 9037fc7bbd7..0d3fa551c87 100644 --- a/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint4 subgroupBallot_1a8251() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupBallot_1a8251())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBallot_1a8251())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002563DC4D4F0(4,15-36): error X3004: undeclared identifier 'WaveActiveBallot' +C:\src\dawn\Shader@0x000002652FE860D0(4,15-36): error X3004: undeclared identifier 'WaveActiveBallot' diff --git a/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.ir.fxc.hlsl index 80eb9886695..9db7a110688 100644 --- a/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000189B72E01D0(4,15-36): error X3004: undeclared identifier 'WaveActiveBallot' +C:\src\dawn\Shader@0x000001F7E20AA900(4,15-36): error X3004: undeclared identifier 'WaveActiveBallot' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.fxc.hlsl index f0c2321469f..ead08cb8957 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_02f329()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002299F68BCC0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.ir.fxc.hlsl index 7bbdfea2ca7..6d1bf4cdd73 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000266478C92E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D777CABDE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.fxc.hlsl index 82c4a6cc89e..0e56a5377f5 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float16_t subgroupBroadcast_07e2d8() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupBroadcast_07e2d8()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupBroadcast_07e2d8()); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000207D706F440(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000020FE0F605C0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.ir.fxc.hlsl index 23d31765eab..bad3619a5b9 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000169A65F90E0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000025B5013FCF0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.fxc.hlsl index af3b99045c0..bc06b7b3405 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float subgroupBroadcast_08beca() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupBroadcast_08beca())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_08beca())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001F382910100(4,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000017D77778DB0(4,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.ir.fxc.hlsl index f2e266ac126..e398c7878ac 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000200E325DD20(4,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001C812A146B0(4,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.fxc.hlsl index 697725aeeba..be3c6eced23 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupBroadcast_0f44e2() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupBroadcast_0f44e2()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_0f44e2()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000019016CEC400(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F800C6BCC0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.ir.fxc.hlsl index b02af42539f..efb17a75867 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BA953692E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000171B8AD46D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.fxc.hlsl index 7c3f75888f9..9e307c5e5df 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupBroadcast_13f36c() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupBroadcast_13f36c()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_13f36c()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000027E59DAF440(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002AF6EB7E820(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.ir.fxc.hlsl index ff101ba6df4..8cb8588146d 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023D53199B20(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C606A75F80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.fxc.hlsl index 092f41ea2f0..9c7d99c1a13 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int subgroupBroadcast_1d79c7() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupBroadcast_1d79c7())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_1d79c7())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000017D40F3C6A0(4,13-33): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000027D369C84E0(4,13-33): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.ir.fxc.hlsl index 4d05edd1453..0e16ac73678 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000299093F9260(4,13-33): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001F5FFC26B60(4,13-33): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.fxc.hlsl index 5abc47c4818..dd63fe7ff4b 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint4 subgroupBroadcast_279027() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupBroadcast_279027())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_279027())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002212FF5C630(4,15-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000262F32ED340(4,15-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.ir.fxc.hlsl index 3b9819771c1..1c2f2c6a976 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017C2D3491D0(4,15-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000015E3F844E90(4,15-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.fxc.hlsl index 4a7858f9924..66ceebd1e3f 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_2b59c9())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000290EB594DE0(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.ir.fxc.hlsl index 2d930a92dd4..1d9e8bd6d4c 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000272CE18EE90(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000027F9EDCC250(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.fxc.hlsl index 06ea17560a3..478bf8806a4 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_34ae44())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018FA5C2FFD0(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.ir.fxc.hlsl index a8498a55f19..7629dfeb95f 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025914B799A0(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000021D0327A420(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.fxc.hlsl index 7c1babf5724..f8b881c7a73 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint3 subgroupBroadcast_34fa3d() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupBroadcast_34fa3d())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_34fa3d())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002247C411740(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002265AB286F0(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.ir.fxc.hlsl index 2f3c830a173..f4d9ed82b36 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020617FE9290(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001842452E0E0(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.fxc.hlsl index a89cad2f3d2..d29ed0bf321 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int2 subgroupBroadcast_3e6879() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupBroadcast_3e6879())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_3e6879())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000024C7A480D80(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000287CBC6D1C0(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.ir.fxc.hlsl index 4e42e255968..23fa11afdfd 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DBC9E792D0(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001A12916D380(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.fxc.hlsl index d8ffdc0d242..4de2d1efa4e 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupBroadcast_41e5d7() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupBroadcast_41e5d7()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_41e5d7()); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000213C7AF8740(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C009DC3890(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.ir.fxc.hlsl index 0e4b6ee84c5..22319f57360 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000113FFACEAD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F68E864700(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.fxc.hlsl index 35e594658ac..a2785c465ec 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_49de94())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002BE376F1120(4,14-34): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.ir.fxc.hlsl index 510911bfab6..cfa93d05ee7 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000233C12190D0(4,14-34): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001996950FE60(4,14-34): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.fxc.hlsl index 723b874aab0..dc9feed1755 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint2 subgroupBroadcast_4a4334() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupBroadcast_4a4334())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_4a4334())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000017F3FA1F380(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000168061EFF00(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.ir.fxc.hlsl index 373c4f10cab..2444a202748 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000224955C9120(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000233FBE5A440(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.fxc.hlsl index 3e3304fb285..c6b62f7a8a2 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float2 subgroupBroadcast_5196c8() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupBroadcast_5196c8())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_5196c8())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000224A7E223E0(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002A0650BDD60(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.ir.fxc.hlsl index efe5782f091..8cc9c2a239c 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000206F0312290(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001B294B7E090(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.fxc.hlsl index 1dbb069c64e..c54761a0f40 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_6290a2())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002078107AE70(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.ir.fxc.hlsl index e46f18f3c4f..5bb26b6ef1c 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000160D65512A0(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000018AB29DF7A0(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.fxc.hlsl index 73b717a4dc8..bc5b3a3fd7b 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupBroadcast_719ad6()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027117026390(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.ir.fxc.hlsl index 3a2cc3caafa..90a14d56b0e 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FFE78DDF20(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000017EA726FF80(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.fxc.hlsl index 5c14c6cf6e7..38a5dc6a33b 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_727609())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018E60F30390(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.ir.fxc.hlsl index 7b91955994a..5f0648f0201 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CDBD2E9FB0(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002B3C33946B0(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.fxc.hlsl index ed08d4196cf..40748874546 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_838c78())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000166907CDE30(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.ir.fxc.hlsl index 1fa41fbcdd6..3b8f989e7eb 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D2E0912FF0(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000029166CACE30(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.fxc.hlsl index 570e10891d2..b9a1dffd4d9 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_867093())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EDDF34C9D0(4,15-37): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.ir.fxc.hlsl index 0a7a68471da..be7e76f14cc 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CB2945F530(4,15-37): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000019F641EF700(4,15-37): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.fxc.hlsl index 5c0320c659b..b9e388558b6 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_8855b2())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019D6916D160(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.ir.fxc.hlsl index 70b7abdea3f..d92cbec0b0c 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B468292290(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001F6AAE3FE90(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.fxc.hlsl index d5cb6a2d8c1..020d9d32535 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float3 subgroupBroadcast_912ff5() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupBroadcast_912ff5())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_912ff5())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001F7AC5AEE90(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000024E5FC5FCB0(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.ir.fxc.hlsl index 9bdfbbec430..811cc0d35d7 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002773445D960(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000278FE75FDE0(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.fxc.hlsl index 61fe5e6cd59..21cc0d1676a 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_9ccdca())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000260905AC9F0(4,13-32): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.ir.fxc.hlsl index 9d7fa52ce00..4d7309992f5 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022A53FF9260(4,13-32): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001E17315FB20(4,13-32): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.fxc.hlsl index 6778f756fe0..b41b4026632 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_a279d7())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CFD40EFCB0(4,15-40): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.ir.fxc.hlsl index 1c20fb41a06..df516fe76c2 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B07754EF10(4,15-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001BFD2009E80(4,15-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.fxc.hlsl index f0725215282..ba2983c123c 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_a3b3e5()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A44597A5F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.ir.fxc.hlsl index 950d979fa9d..9f6975fe216 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000195D21D9520(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000252C350BC10(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.fxc.hlsl index 2904a3c6a01..729d1562fe0 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float4 subgroupBroadcast_b7e93b() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupBroadcast_b7e93b())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_b7e93b())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002A4C62002F0(4,16-46): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000232A8C7BBB0(4,16-46): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.ir.fxc.hlsl index 7e82a493260..eb248b4ea58 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FAC95C8FA0(4,16-46): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000026EAEF9C260(4,16-46): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.fxc.hlsl index 6d7e6c6fb84..591d97c2b03 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint subgroupBroadcast_c36fe1() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupBroadcast_c36fe1())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_c36fe1())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000028F3D630CD0(4,14-35): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001C557B9A790(4,14-35): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.ir.fxc.hlsl index fe5ff2f8756..6f7bdeb0970 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021298D9DDD0(4,14-35): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000014B81F5A3A0(4,14-35): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.fxc.hlsl index 7f5b1b3e3a1..ecd028513db 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_cd7aa1())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021420DA7030(4,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.ir.fxc.hlsl index d8f1181910b..761bfd740aa 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024AD19E92B0(4,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000234FD6EFDC0(4,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.fxc.hlsl index 70976fa0429..f6cb614f198 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int3 subgroupBroadcast_e275c8() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupBroadcast_e275c8())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_e275c8())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002A9C6836020(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001DF5ED902C0(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.ir.fxc.hlsl index afe70ef4bf9..5ac04155654 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E636969290(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001D20F6CE440(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.fxc.hlsl index d6de26a804f..72cbf64c7ff 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_e4dd1a()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000266EC52E1D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.ir.fxc.hlsl index ad0205f85a3..ea7a7e17d96 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000249FD8D92E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020C90884720(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.fxc.hlsl index 53a7b3114b3..1519e5ffca1 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int4 subgroupBroadcast_f637f9() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupBroadcast_f637f9())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_f637f9())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001EC7B068090(4,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002BEF46BFF00(4,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.ir.fxc.hlsl index 7985618029c..e2933e6a15d 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000198C321D960(4,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000011D4807C250(4,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.fxc.hlsl index 823df08e9f4..180e9eee8ab 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_fa6810())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002795929FF00(4,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.ir.fxc.hlsl index f3634cb9258..5d549cbc261 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FA9B0592B0(4,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000218D05846D0(4,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.fxc.hlsl index d501fa32cff..9a19a14cc7a 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcastFirst_0538e1())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019B3E42C9D0(4,15-37): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.fxc.hlsl index 10a2a4f7478..70bba37ad65 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018F06089320(4,15-37): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x0000015FB673BEA0(4,15-37): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.fxc.hlsl index 80d043a6ab5..b1fe5cb0fdf 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcastFirst_0e58ec()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C81A3CAFE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.fxc.hlsl index a1eebf6f0d9..3d7bac350e0 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000279095892E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B63F9DBFE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.fxc.hlsl index 35ee8bc8893..be2499ed5ef 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupBroadcastFirst_151e52()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016DBC1F6210(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.ir.fxc.hlsl index 001b7d657b6..dc40e4f46aa 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021B81B20450(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000298F61FB730(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.fxc.hlsl index 69f0a5d6159..cf337f86ab3 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcastFirst_1d9530())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017689CEE1D0(4,15-40): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.fxc.hlsl index cf3e5aa04f6..3ac351eeab1 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028C98C2CB10(4,15-40): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000001A27B9A4F10(4,15-40): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.fxc.hlsl index cea4dcedd98..16f8de0ef87 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcastFirst_5c6962())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000205A8FB0390(4,16-44): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.fxc.hlsl index 09c4dd1adc1..bcf351bc685 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021F906B0630(4,16-44): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000001E5116846C0(4,16-44): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.fxc.hlsl index 9042357e647..6a6263bf99e 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcastFirst_5e5b6f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022A6ADF8710(4,15-41): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.fxc.hlsl index e0159d51e90..f898ce47a2f 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021ADE7122F0(4,15-41): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x0000015EE1DA46C0(4,15-41): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.fxc.hlsl index 33684040ecb..ebfcd083f60 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcastFirst_612d6f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001DA83067DE0(4,15-42): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.fxc.hlsl index 530930115fa..a92d2a4893d 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000208A178F820(4,15-42): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x0000026D5D6EF980(4,15-42): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.fxc.hlsl index f0061491d4c..d818a313c16 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcastFirst_61f177())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000012731A292F0(4,14-34): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.ir.fxc.hlsl index f90a088f50e..73384f7221d 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023C69F02F90(4,14-34): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000001C747DA0020(4,14-34): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.fxc.hlsl index b05b9048183..493edf2b5bc 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcastFirst_6945f6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000244055446D0(4,16-43): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.fxc.hlsl index a6f027bf1d9..8aae7ae0d0b 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E8F41090C0(4,16-43): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000002034E4CF980(4,16-43): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.fxc.hlsl index 6eb74ed0b13..f1551b8d67f 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcastFirst_705aad()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001FC538BFBE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.ir.fxc.hlsl index eb7dce69c4e..4837eeb7a2e 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CF629992E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B2A7496920(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.fxc.hlsl index e5f1b4939ae..83de29311f7 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcastFirst_85b351())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002435D4CD1C0(4,14-38): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.ir.fxc.hlsl index 2d14c3c8a99..047dc42c1ea 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015E5B3CEAF0(4,14-38): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000001F81569A2F0(4,14-38): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.fxc.hlsl index 2b17579f2ff..c0f5f5a9b04 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcastFirst_8ae580())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017940DBFD20(4,16-45): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.fxc.hlsl index a82cbf681d4..805a528633c 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015E472C1340(4,16-45): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x0000024AF33546C0(4,16-45): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.fxc.hlsl index 43eecbda854..d6db34be6d9 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcastFirst_9a1bdc())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000210B60760C0(4,13-32): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.fxc.hlsl index f8c0b109856..a6e8c8af0b3 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000010358759300(4,13-32): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000001110A95E1C0(4,13-32): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.fxc.hlsl index 6700345e473..2afd3c35862 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcastFirst_9dccee())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026404290390(4,14-40): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.fxc.hlsl index fe49eaa94c8..41763a4d1fd 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F0FC419260(4,14-40): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x0000016BE85DCE50(4,14-40): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.fxc.hlsl index d503b572e89..90ba3dea8b0 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcastFirst_a11307()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C81ACF60B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.ir.fxc.hlsl index 20a52ada3bb..2f816a8b8d0 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022031DA1C40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021DF53E3A90(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.fxc.hlsl index af52b29e0b2..29d4182188d 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcastFirst_e820d4())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024FD9330390(4,14-39): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.fxc.hlsl index 63aa4b096f5..685f595c120 100644 --- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000257E35A8DE0(4,14-39): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x00000251D33D1DA0(4,14-39): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.fxc.hlsl index c05cc9d5611..8ca4775aff5 100644 --- a/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupElect_3943d6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028184540260(4,14-30): error X3004: undeclared identifier 'WaveIsFirstLane' + diff --git a/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.ir.fxc.hlsl index 770154cef6f..db66b6694f6 100644 --- a/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C1E627F790(4,14-30): error X3004: undeclared identifier 'WaveIsFirstLane' +C:\src\dawn\Shader@0x000001276FFF06F0(4,14-30): error X3004: undeclared identifier 'WaveIsFirstLane' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.fxc.hlsl index 7b033bb48ca..f60f2734af6 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupExclusiveAdd_01de08() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveAdd_01de08()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveAdd_01de08()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001C39A2580B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DC905A0410(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.ir.fxc.hlsl index e76061c237e..4e3fd69f6bf 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000168301A9170(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000012CD2E2B720(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.fxc.hlsl index 175313cff22..46c9963f3a8 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint3 subgroupExclusiveAdd_0ff95a() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_0ff95a())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_0ff95a())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000217AC3EC550(4,15-37): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001D7C3E2FCF0(4,15-37): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.fxc.hlsl index f63cb60a1de..5dd42b6f383 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002565E4293A0(4,15-37): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000002BDB0D9E0E0(4,15-37): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.fxc.hlsl index 50fcf021cb3..ad23742a40a 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int4 subgroupExclusiveAdd_406ab4() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_406ab4())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_406ab4())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002ABAC96F970(4,14-36): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001A5D2CC4740(4,14-36): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.fxc.hlsl index 4c2c7ae589f..bbe83ec983d 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021C9D43D960(4,14-36): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000017281EC46D0(4,14-36): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.fxc.hlsl index 9a7bb135b10..c2ed8092752 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float3 subgroupExclusiveAdd_41cfde() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_41cfde())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_41cfde())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002044F4DC550(4,16-40): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001E76FCA65B0(4,16-40): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.fxc.hlsl index 455666f9c0c..bae925999eb 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002097F0B9290(4,16-40): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001F1BC7D8E00(4,16-40): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.fxc.hlsl index e6074a5bd9f..1bd8b9a75cc 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint subgroupExclusiveAdd_42684c() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_42684c())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_42684c())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001F78FBAF3F0(4,14-30): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001BBCBCE12F0(4,14-30): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.ir.fxc.hlsl index 47e0a159ec5..e5e6090b820 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023E28D28DC0(4,14-30): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001898E37ACF0(4,14-30): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.fxc.hlsl index ede5c2161bc..c94542a3fd8 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint2 subgroupExclusiveAdd_48acea() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_48acea())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_48acea())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002434C54CE20(4,15-36): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000012190084F00(4,15-36): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.ir.fxc.hlsl index fd87138b6a8..1df11037961 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000014E1D0F3A40(4,15-36): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001EA18E5F870(4,15-36): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.fxc.hlsl index dc2c87bfe57..ffa2553e2f7 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float16_t subgroupExclusiveAdd_4a1568() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupExclusiveAdd_4a1568()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupExclusiveAdd_4a1568()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000015CCCF51AB0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022685C50D70(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.fxc.hlsl index 3797d7c32b1..d17c8a51d34 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000117F5662F00(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001B697DE5000(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.fxc.hlsl index f9087e09aad..930bb4df4c3 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float2 subgroupExclusiveAdd_4c8024() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_4c8024())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_4c8024())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001FCA2BDF3F0(4,16-39): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000018029EE46F0(4,16-39): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.fxc.hlsl index c23b75e4384..f285141b4ba 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C31C1AB490(4,16-39): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000020745DF46C0(4,16-39): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.fxc.hlsl index 311193373c5..0bb808116f5 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float4 subgroupExclusiveAdd_71ad0f() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_71ad0f())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_71ad0f())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000160F97AC550(4,16-41): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000002A53A9EFD10(4,16-41): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.fxc.hlsl index 54a77a5c7bb..82b9fadbe70 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002146CC62E00(4,16-41): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001471ADD46A0(4,16-41): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.fxc.hlsl index 4fe17ea6aaa..8e2341d5e7a 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupExclusiveAdd_95e984() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveAdd_95e984()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveAdd_95e984()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000019C4A627D30(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000154F86FB2F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.ir.fxc.hlsl index d71064ac64d..449a721d9c1 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021E1BB89150(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000268DE290D50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.fxc.hlsl index 65b03ee09eb..736a73e2c66 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float subgroupExclusiveAdd_967e38() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_967e38())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_967e38())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000192073E8300(4,15-33): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x00000257C0340490(4,15-33): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.ir.fxc.hlsl index 2a991ab9037..ed2478dfbc9 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B4FF969230(4,15-33): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001B5B18B4680(4,15-33): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.fxc.hlsl index d32bfa5938d..e5972918df7 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int subgroupExclusiveAdd_b0c261() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_b0c261())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_b0c261())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000027EADF51C30(4,13-28): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000002E806A17640(4,13-28): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.fxc.hlsl index e38726983bc..804a9962f7c 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002D4778491E0(4,13-28): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001EF5FDDFEA0(4,13-28): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.fxc.hlsl index 353aaf1d0a0..b7921d745fe 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int3 subgroupExclusiveAdd_c08160() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_c08160())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_c08160())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000278EC974970(4,14-35): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000002454DE6C9F0(4,14-35): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.ir.fxc.hlsl index b4f36322fb5..95a774be126 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E62861EF20(4,14-35): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000021C29B9FDE0(4,14-35): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.fxc.hlsl index 771a379d2ff..c4fb5dfdbe8 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupExclusiveAdd_e58e23() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveAdd_e58e23()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveAdd_e58e23()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002903A364710(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026D9F526230(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.fxc.hlsl index 5e774946a25..c8ff058f680 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F9755BF4F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002EBA1844710(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.fxc.hlsl index 111ba5870cd..c50f7f735af 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint4 subgroupExclusiveAdd_ec300f() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_ec300f())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_ec300f())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000018FC519F3F0(4,15-38): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x00000288842346C0(4,15-38): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.fxc.hlsl index c34f6eae822..5fb8f198a97 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021DD3A792B0(4,15-38): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x00000267242EA420(4,15-38): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.fxc.hlsl index d5b6f165b6c..2b40e801bd0 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int2 subgroupExclusiveAdd_f0f712() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_f0f712())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_f0f712())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000025AAAA51BF0(4,14-34): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000016CDDB546F0(4,14-34): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.fxc.hlsl index 74bbc3b4744..d4b24821188 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C0653C8F00(4,14-34): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000015F83BBFDC0(4,14-34): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.fxc.hlsl index cdf4d291298..cc2262fd947 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint4 subgroupExclusiveMul_000b92() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_000b92())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_000b92())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002078E8DF3F0(4,15-42): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001AD1DC7FC30(4,15-42): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.ir.fxc.hlsl index 6650d017ef2..d9e1a6af44a 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000196919391D0(4,15-42): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000020D0E7107F0(4,15-42): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.fxc.hlsl index 09d6dcca617..a04b4e7aa4f 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int4 subgroupExclusiveMul_019660() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_019660())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_019660())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000021F33F0C7D0(4,14-40): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000028486784F00(4,14-40): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.ir.fxc.hlsl index 00075bde899..39503736c26 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002BD9C54F4F0(4,14-40): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000018DAA90F880(4,14-40): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.fxc.hlsl index 0194b1f7f1f..22e5456923b 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float3 subgroupExclusiveMul_0a04d5() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_0a04d5())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_0a04d5())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001566884C550(4,16-44): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000002AAC2E1D630(4,16-44): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.fxc.hlsl index 82040468186..bec18d2e02b 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023219CBBE90(4,16-44): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000027F0419F890(4,16-44): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.fxc.hlsl index c9f792372c4..6dbf13c0ddc 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupExclusiveMul_13ba26() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveMul_13ba26()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveMul_13ba26()); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000224AE26CC50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023F6ECA38F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.ir.fxc.hlsl index 270dfd43192..392fe43e639 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000199475A9300(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D4A6A346C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.fxc.hlsl index 566e2c8bcec..0c71b602d5d 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float2 subgroupExclusiveMul_25d1b9() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_25d1b9())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_25d1b9())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001B2E00620C0(4,16-43): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001BEEFE70FB0(4,16-43): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.fxc.hlsl index 8e1c86883f5..095d8d3446b 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ADEC13CC50(4,16-43): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001F23322F8B0(4,16-43): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.fxc.hlsl index ddbd0b430e2..a2f023054bc 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int2 subgroupExclusiveMul_4525a3() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_4525a3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_4525a3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000017113907EF0(4,14-38): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000027F445C46F0(4,14-38): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.ir.fxc.hlsl index 55b8ea7ba14..014da70611a 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E235042DD0(4,14-38): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001956D0359D0(4,14-38): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.fxc.hlsl index de93f3bca52..9e96352a27e 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float16_t subgroupExclusiveMul_6f431e() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupExclusiveMul_6f431e()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupExclusiveMul_6f431e()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000021D20F50BB0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000020B764388C0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.ir.fxc.hlsl index 170f7b14da5..aceff9a6592 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A175499170(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000019E2D288E20(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.fxc.hlsl index cf1075de1d0..9130b8b008b 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float4 subgroupExclusiveMul_7b5f57() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_7b5f57())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_7b5f57())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001F6384E3DD0(4,16-45): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x00000210A00346C0(4,16-45): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.fxc.hlsl index 91d3c021329..ecc11719e5f 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024D6287FE00(4,16-45): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001D8D094F6C0(4,16-45): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.fxc.hlsl index ee837c76b50..4c3d8764ee1 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int3 subgroupExclusiveMul_87f23e() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_87f23e())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_87f23e())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000019B8B1D3DD0(4,14-39): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001DDF1D6FD30(4,14-39): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.ir.fxc.hlsl index b06ed5eae56..b59f8e80660 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025411159CB0(4,14-39): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000002707656D2E0(4,14-39): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.fxc.hlsl index 37d6d705598..e8534433a07 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float subgroupExclusiveMul_98b2e4() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveMul_98b2e4())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveMul_98b2e4())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002017E9F5BB0(4,15-37): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000002704EB5F8A0(4,15-37): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.fxc.hlsl index f75664b4820..07c60baa689 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026CE73B9250(4,15-37): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001C4B386F720(4,15-37): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.fxc.hlsl index 99f15a5ecf6..d391fb8f3c0 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupExclusiveMul_a07956() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveMul_a07956()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveMul_a07956()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002299ABC1D50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000277613551A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.ir.fxc.hlsl index 683da3c3356..36d57118651 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000219D9AFF4C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F4D07A4AD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.fxc.hlsl index 2467bb03c01..80d738ec226 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int subgroupExclusiveMul_a23002() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveMul_a23002())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveMul_a23002())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001CDCCD4F3F0(4,13-32): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000002386F000270(4,13-32): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.ir.fxc.hlsl index ce8c589c925..debe57a50e4 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002D6F202F0C0(4,13-32): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000027E0520F6E0(4,13-32): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.fxc.hlsl index b4ca9e8eb1c..08caaa51bc2 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint2 subgroupExclusiveMul_d1d490() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_d1d490())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_d1d490())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000025E395C5FA0(4,15-40): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x00000299AA2D0800(4,15-40): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.ir.fxc.hlsl index 454dd5b2d25..3118a9062b3 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000220C47D9120(4,15-40): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001C55BB1F8F0(4,15-40): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.fxc.hlsl index 3770796dc1f..f81bb3e6bed 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint subgroupExclusiveMul_dc51f8() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveMul_dc51f8())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveMul_dc51f8())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000012EF89EF3F0(4,14-34): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000019DFA398DB0(4,14-34): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.fxc.hlsl index f48e975cfcf..c2e26b720d8 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001449E873140(4,14-34): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000002872815A380(4,14-34): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.fxc.hlsl index e269603a07a..d949d097f70 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupExclusiveMul_e88d1c() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveMul_e88d1c()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveMul_e88d1c()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000022F6AC68B40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D065F24940(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.fxc.hlsl index 2019003c99f..b9ec13e945f 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002016CC89150(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002BA77A2E340(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.fxc.hlsl index 1aee9842f51..c52070e5a78 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint3 subgroupExclusiveMul_f039f4() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_f039f4())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_f039f4())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001EB5103F970(4,15-41): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001CABDADCE00(4,15-41): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.ir.fxc.hlsl index b094c541927..34bfe7d0dca 100644 --- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000237698BEF20(4,15-41): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001C50D3ED560(4,15-41): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.fxc.hlsl index 2a6ce9bcef9..e23f650db08 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ float4 subgroupMax_0b0375() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMax_0b0375())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMax_0b0375())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002186309F980(4,16-41): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.ir.fxc.hlsl index d9eb968d65d..15406f8009d 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002008C4D9290(4,16-41): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000002886E29FDB0(4,16-41): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.fxc.hlsl index 90f27fe8d3a..8818ec846fb 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ uint4 subgroupMax_15ccbf() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMax_15ccbf())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMax_15ccbf())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022CA3C267D0(4,15-38): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.ir.fxc.hlsl index e2363a95fc8..3a8195d86d5 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015F383ECB10(4,15-38): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000001E205200FF0(4,15-38): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.fxc.hlsl index 784de1e16e3..773e556945b 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ float subgroupMax_1a1a5f() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMax_1a1a5f())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMax_1a1a5f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000169A16A5DD0(4,15-33): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.ir.fxc.hlsl index 10ed2720f1b..8187c32959c 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017018EF8FC0(4,15-33): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000001D89261FB60(4,15-33): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.fxc.hlsl index 9755ec0cc97..42d96d99486 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ float2 subgroupMax_1fc846() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMax_1fc846())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMax_1fc846())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020BA0259CA0(4,16-39): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.ir.fxc.hlsl index d42c7f12ca1..8f7ff33858d 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000188EAF492C0(4,16-39): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000001E0DE9D4E70(4,16-39): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.fxc.hlsl index 88679a73bed..fe3a56399f8 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ uint3 subgroupMax_23f502() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMax_23f502())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMax_23f502())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028491B11C90(4,15-37): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.ir.fxc.hlsl index 03462310704..a6658c816bd 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022F44FB9140(4,15-37): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x0000021D13AE6900(4,15-37): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.fxc.hlsl index 48cdad2240a..4f10db73fe7 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ vector subgroupMax_33e339() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMax_33e339()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMax_33e339()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E9F7CFFB70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.ir.fxc.hlsl index 5a36f08b01e..9f00dd12147 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000209BB98EA40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DEEB8DFAC0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.fxc.hlsl index ab5cb0c7c86..81f2bf45963 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ int3 subgroupMax_4ea90e() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMax_4ea90e())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMax_4ea90e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001ADA3D94690(4,14-35): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.ir.fxc.hlsl index 4c2a3cb1719..733b875dc73 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025167249100(4,14-35): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000001E9C8EE46C0(4,14-35): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.fxc.hlsl index f946ad5b642..2de4a059362 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ float16_t subgroupMax_5611a5() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupMax_5611a5()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupMax_5611a5()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BB66AF61F0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.ir.fxc.hlsl index 612a003d251..51d847032ca 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027EFF13FC20(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C4171188A0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.fxc.hlsl index cd7046b82c9..2b1647d923d 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ int subgroupMax_6c913e() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMax_6c913e())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMax_6c913e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000183C5010EB0(4,13-28): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.ir.fxc.hlsl index 3fe04fe1288..dad0795b94b 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002346D13EED0(4,13-28): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000002A002AD0150(4,13-28): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.fxc.hlsl index 311b16ccbb4..cc0a6c91f0a 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ vector subgroupMax_7c934c() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMax_7c934c()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMax_7c934c()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A60BF16310(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.ir.fxc.hlsl index a6cf397c1dc..e93c63cd2af 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A9C59CE720(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E1B0CD46E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.fxc.hlsl index c5e3a29a307..e2441e5ac8f 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ float3 subgroupMax_7e81ea() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMax_7e81ea())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMax_7e81ea())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000251FF7C55C0(4,16-40): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.ir.fxc.hlsl index de7b110c149..fffed2e3a7d 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A569768D90(4,16-40): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000001A339B3C2E0(4,16-40): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.fxc.hlsl index 1453686e962..2f96cec6fea 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ int2 subgroupMax_932164() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMax_932164())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMax_932164())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022987580910(4,14-34): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.ir.fxc.hlsl index 8fee18ad95e..0ce3de47a2c 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000234F4E69120(4,14-34): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000002259E19F6C0(4,14-34): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.fxc.hlsl index 5e35cef9ad8..e919e24b26a 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ vector subgroupMax_a3afe3() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMax_a3afe3()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMax_a3afe3()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002F2D466FB70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.ir.fxc.hlsl index 41d566e1722..31f0d606b37 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002745FE09150(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000293B23825F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.fxc.hlsl index aaf8b5ec7f8..9b36fd635d7 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ int4 subgroupMax_a3d5f7() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMax_a3d5f7())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMax_a3d5f7())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000199212FFBB0(4,14-36): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.ir.fxc.hlsl index 90f54a2be24..8a50535d9a7 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017AB9C0CB10(4,14-36): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000002498343B720(4,14-36): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.fxc.hlsl index f61ed9b9b62..80b864f55dd 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ uint subgroupMax_b58cbf() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMax_b58cbf())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMax_b58cbf())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000015F24E16CA0(4,14-30): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.ir.fxc.hlsl index 8d418dffb8d..32b102b417f 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AA607790C0(4,14-30): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x00000219400FD510(4,14-30): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.fxc.hlsl index d2144aed8d6..a0529038ba9 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ uint2 subgroupMax_b8fb0e() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMax_b8fb0e())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMax_b8fb0e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002CFBE8EFBC0(4,15-36): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.ir.fxc.hlsl index 903bfc94d02..69a5f7674b2 100644 --- a/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F75008F0C0(4,15-36): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000001C40D905360(4,15-36): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.fxc.hlsl index 97c2be2fde6..455e6eb7bbd 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ int3 subgroupMin_030ad6() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMin_030ad6())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMin_030ad6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000014D35C7FA10(4,14-35): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.ir.fxc.hlsl index 3723137ae46..1791834b96d 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029D31A9DDC0(4,14-35): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x00000222A17B7830(4,14-35): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.fxc.hlsl index 33314ea668d..674cbfd54f7 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ int2 subgroupMin_0bc13a() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMin_0bc13a())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMin_0bc13a())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018100C8FA10(4,14-34): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.ir.fxc.hlsl index f172ce7b3d4..c1a8fe41544 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000189FC0B8DB0(4,14-34): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000001449F2CFB80(4,14-34): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.fxc.hlsl index 1ed02ed7f88..e595ea43806 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ int4 subgroupMin_1de104() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMin_1de104())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMin_1de104())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E466A06440(4,14-36): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.ir.fxc.hlsl index 6fd7b93e0e3..fda7bc7773a 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021533969120(4,14-36): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x0000026C86D10650(4,14-36): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.fxc.hlsl index 364dfaf6934..09ee9c7f09d 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ uint subgroupMin_2493ab() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMin_2493ab())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMin_2493ab())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024F31EE5DE0(4,14-30): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.ir.fxc.hlsl index eaeed638970..e8b599460a6 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027BE94DEED0(4,14-30): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000001C292148150(4,14-30): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.fxc.hlsl index 7c1fa9022dc..b39e7ed802c 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ float2 subgroupMin_2d8828() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMin_2d8828())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMin_2d8828())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B30053F980(4,16-39): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.ir.fxc.hlsl index ca96cc801d4..349be08b2bf 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000012B446F9140(4,16-39): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x0000020B19F0FB20(4,16-39): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.fxc.hlsl index 50c4e200843..d0333059434 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ uint3 subgroupMin_337a21() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMin_337a21())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMin_337a21())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002D6B7BE6770(4,15-37): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.ir.fxc.hlsl index 69ce7ea87b0..7ca606b26e7 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028A1EF6F0A0(4,15-37): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000002300F9A0650(4,15-37): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.fxc.hlsl index e3c915e9216..90a9b407deb 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ float subgroupMin_7def0a() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMin_7def0a())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMin_7def0a())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021143EB68D0(4,15-33): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.ir.fxc.hlsl index 98803eb710d..3f4e5b5491b 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023A77BB8C90(4,15-33): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x0000023CF0CD8040(4,15-33): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.fxc.hlsl index e34f8a98fa2..dedaf001769 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ uint4 subgroupMin_82ef23() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMin_82ef23())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMin_82ef23())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021D67916440(4,15-38): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.ir.fxc.hlsl index 8ea63c4bdbb..4eb24f183b8 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BF5FDBCB10(4,15-38): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000001AEE6FAC1D0(4,15-38): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.fxc.hlsl index e0f5a872a18..fd34ed49f6c 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ float3 subgroupMin_836960() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMin_836960())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMin_836960())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016E3B739C80(4,16-40): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.ir.fxc.hlsl index d241764727e..c4b4dca32a0 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000170B2A1D960(4,16-40): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x0000025CC76FF870(4,16-40): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.fxc.hlsl index c427e65ce86..2c20ce240fd 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ uint2 subgroupMin_8bb8c1() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMin_8bb8c1())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMin_8bb8c1())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002841F9E01B0(4,15-36): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.ir.fxc.hlsl index 492197348c7..889eb5fdc5a 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002344B10CB10(4,15-36): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x0000022A4D79C2E0(4,15-36): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.fxc.hlsl index 68e6c9c877a..6708f3eb4ec 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ float16_t subgroupMin_8ffadc() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupMin_8ffadc()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupMin_8ffadc()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000129A3BC0060(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.ir.fxc.hlsl index 18c70dcf07b..e9d70156136 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000217201E3260(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001D9ED4ABAA0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.fxc.hlsl index 6c81bac3d9b..6ab1ec11d6d 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ int subgroupMin_a96a2e() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMin_a96a2e())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMin_a96a2e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EF2534B0B0(4,13-28): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.ir.fxc.hlsl index 088fb443e06..d1ba0823f2a 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CA302790A0(4,13-28): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x0000023952569A80(4,13-28): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.fxc.hlsl index 88450d1631b..ae9c2db9564 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ float4 subgroupMin_bbd9b0() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMin_bbd9b0())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMin_bbd9b0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000225CFAA68F0(4,16-41): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.ir.fxc.hlsl index ab9d2e7e3bc..96294ea580c 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D16B11F330(4,16-41): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000002467E334BE0(4,16-41): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.fxc.hlsl index cd89ad85814..d3ffddc665a 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ vector subgroupMin_c6da7c() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMin_c6da7c()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMin_c6da7c()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002C4F31D6080(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.ir.fxc.hlsl index fa58b4817d9..591c592ed63 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000198DFBBF0D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022609F58D90(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.fxc.hlsl index 2afe52b2fde..c29be826200 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ vector subgroupMin_cd3b9d() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMin_cd3b9d()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMin_cd3b9d()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001AA6D4046A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.ir.fxc.hlsl index a50a440e301..55df14c3b3f 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018532363280(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000251A9B1BBB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.fxc.hlsl index 5aa50c8c973..0508ed48594 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -7,8 +7,16 @@ vector subgroupMin_d85be6() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMin_d85be6()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMin_d85be6()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D53D63BD80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.ir.fxc.hlsl index 6f47487598b..4ffa0f50edb 100644 --- a/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F4780A9D80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DC788EAF70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.fxc.hlsl index 8620d0d82c8..90666834806 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float subgroupMul_0de9d3() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMul_0de9d3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMul_0de9d3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001BA1BC386C0(4,15-37): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000002041E5BAFA0(4,15-37): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.ir.fxc.hlsl index a03b38a850e..287b95f7a1b 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CC2050F360(4,15-37): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x00000136A3C95CD0(4,15-37): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.fxc.hlsl index b4441e659f5..bcadff24dff 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float16_t subgroupMul_2941a2() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupMul_2941a2()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupMul_2941a2()); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000228B15FF430(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000238002AF970(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.ir.fxc.hlsl index 517fa80cc6d..8f07cd4d90a 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020C3C84D590(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000023302F14690(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.fxc.hlsl index ff9b10a154a..57860003e3e 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int subgroupMul_3fe886() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMul_3fe886())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMul_3fe886())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001A526C92170(4,13-32): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x00000258C64F6130(4,13-32): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.ir.fxc.hlsl index 0f9abf49eb4..f5a988f8a8b 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F77A3F1480(4,13-32): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000002C00E395EF0(4,13-32): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.fxc.hlsl index a3243288c2c..0dcd713bfe5 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint subgroupMul_4f8ee6() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMul_4f8ee6())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMul_4f8ee6())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000268847D86C0(4,14-34): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000002058E5A9E40(4,14-34): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.ir.fxc.hlsl index b42b03bfb2e..315e6a2db5d 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026B2BB5EED0(4,14-34): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001D35E5160E0(4,14-34): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.fxc.hlsl index 7f13a44cbdf..63ec0c3a02f 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupMul_53aee2() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMul_53aee2()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMul_53aee2()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000025DDFFBF430(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B45B46BD80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.ir.fxc.hlsl index 8ca2cd51e4c..54e1dd2e85a 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029058B3FAC0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B2952DD590(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.fxc.hlsl index 6ba247ef92e..d58e2914e45 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int3 subgroupMul_5a8c86() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMul_5a8c86())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMul_5a8c86())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001AAF2D7BAC0(4,14-39): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x00000202A8666420(4,14-39): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.ir.fxc.hlsl index 42e0dcbf51c..b98197d7bb8 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A4EFC7F0A0(4,14-39): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001F077ABC2E0(4,14-39): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.fxc.hlsl index d926941d750..7e5630ed955 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float4 subgroupMul_66c813() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMul_66c813())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMul_66c813())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001E48CF7C360(4,16-45): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x00000178F5B46910(4,16-45): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.ir.fxc.hlsl index 902320edfb8..a08b9aeb786 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D78EF82250(4,16-45): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001AAD526F6C0(4,16-45): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.fxc.hlsl index 6a7501dfc53..b85a69d749b 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupMul_6aaaf3() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMul_6aaaf3()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMul_6aaaf3()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002112182F430(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021C7E396080(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.ir.fxc.hlsl index af60b6dc7a8..b3edaa41972 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025AA5A0E900(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000184AAF86050(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.fxc.hlsl index f8a7db9caea..6b739b56afb 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float3 subgroupMul_93eccd() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMul_93eccd())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMul_93eccd())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001952347BF90(4,16-44): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001DEDAAA6910(4,16-44): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.ir.fxc.hlsl index a409543347a..2a79582171e 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025D44C9F0A0(4,16-44): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x00000247FE67F6A0(4,16-44): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.fxc.hlsl index 2d730c94f6b..a659214cca3 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int2 subgroupMul_d584a2() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMul_d584a2())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMul_d584a2())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000020E62ABFFC0(4,14-38): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x00000266A6740260(4,14-38): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.ir.fxc.hlsl index 05325d0b9e0..ffc4209e93f 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000270B4EDCB10(4,14-38): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000025D2EE5F6A0(4,14-38): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.fxc.hlsl index c31db94c1a3..1edc0be7570 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint2 subgroupMul_dc672a() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMul_dc672a())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMul_dc672a())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000174E653F3E0(4,15-40): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000021496A77F60(4,15-40): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.ir.fxc.hlsl index c007e88ec95..fdc8930e77e 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025EDE5DCA10(4,15-40): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001F4B013FB20(4,15-40): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.fxc.hlsl index 1b41db8c7d3..9cf4a934686 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint4 subgroupMul_dd1333() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMul_dd1333())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMul_dd1333())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001D87F7EC440(4,15-42): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000002561355DF90(4,15-42): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.ir.fxc.hlsl index c136b1d5ebb..c300d0363f9 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000176C7639120(4,15-42): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001D855479A90(4,15-42): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.fxc.hlsl index b1f172410db..e9b38943e4b 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ vector subgroupMul_f2ac5b() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMul_f2ac5b()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMul_f2ac5b()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000020F6A5BF430(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E1B7A34CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.ir.fxc.hlsl index ada5e4dbdc0..2a4973eec35 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DC218D0420(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F3423061E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.fxc.hlsl index bd389efbb28..1ac042345df 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ float2 subgroupMul_f78398() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMul_f78398())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMul_f78398())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000188FB59CE00(4,16-43): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000024CB10EB110(4,16-43): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.ir.fxc.hlsl index 78b255bf595..0da5add6e4a 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A44F0AF4A0(4,16-43): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000016D868569D0(4,16-43): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.fxc.hlsl index 3b8f759cc9d..25492731404 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint3 subgroupMul_fa781b() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMul_fa781b())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMul_fa781b())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000022E0402D850(4,15-41): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000002B26F446AC0(4,15-41): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.ir.fxc.hlsl index 2c6269e5aae..f4c04eb4085 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000012117EC8F70(4,15-41): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000025CA06546A0(4,15-41): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.fxc.hlsl index 674a7611278..aea806e2785 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int4 subgroupMul_fab258() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMul_fab258())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMul_fab258())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002584C071870(4,14-40): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001C30D43EE80(4,14-40): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.ir.fxc.hlsl index 6f152fa3904..1861d55d5f1 100644 --- a/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002295F079040(4,14-40): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001FA7CDE1820(4,14-40): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.fxc.hlsl index 8ae1bc17db4..8f65811c6c2 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupOr_03343f() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupOr_03343f())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupOr_03343f())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000016D913D2270(5,20-52): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001B628C70750(5,20-52): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.ir.fxc.hlsl index 4cc958dd57c..8f245d5345b 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000159F0A6DD10(5,20-47): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000002923879AEE0(5,20-47): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.fxc.hlsl index 96c80f804d3..4b2a693846b 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint subgroupOr_0bc264() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupOr_0bc264())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupOr_0bc264())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000247F8842930(4,14-32): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001F9B28E4FA0(4,14-32): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.ir.fxc.hlsl index d9eba0fdd7a..52934d220fc 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AF4C8A8FE0(4,14-32): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001AD60AB0650(4,14-32): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.fxc.hlsl index 41af36f7fc8..6487c5140c9 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupOr_3f60e0() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupOr_3f60e0())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupOr_3f60e0())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000283D71F1990(5,20-52): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001F877EB6390(5,20-52): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.ir.fxc.hlsl index f49bbd531a4..93f7fd5b97d 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000206F94D14D0(5,20-47): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x00000207B2B1C2D0(5,20-47): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.fxc.hlsl index 6f3310789a9..fc4c44e5da2 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupOr_4d4eb0() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupOr_4d4eb0())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupOr_4d4eb0())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001F1F762F3E0(5,20-52): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001DF13090440(5,20-52): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.ir.fxc.hlsl index 5fede55a4f9..979e1b07d90 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E3EEBFDD10(5,20-47): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001D60F034E50(5,20-47): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.fxc.hlsl index 9f013ea175e..36f90086ba9 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint3 subgroupOr_663a21() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupOr_663a21())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupOr_663a21())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000244C44786C0(4,15-39): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001D791B4B200(4,15-39): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.ir.fxc.hlsl index 7886afa6e43..e7e9ce17ec4 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F91FE29020(4,15-39): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000002632978C2D0(4,15-39): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.fxc.hlsl index df1e94570d5..05a3162c6c0 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint2 subgroupOr_aa74f7() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupOr_aa74f7())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupOr_aa74f7())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001DAEF2F3690(4,15-38): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x0000025C899D0320(4,15-38): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.ir.fxc.hlsl index 43ebb88c319..a70b1ed6883 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000249871C9100(4,15-38): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x00000217FBB3FAA0(4,15-38): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.fxc.hlsl index 2ec1e40f229..fd023a0ad9d 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int subgroupOr_ae58b6() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupOr_ae58b6())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupOr_ae58b6())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001FF6F0986C0(4,19-44): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x0000024F7D387CD0(4,19-44): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.ir.fxc.hlsl index ab5bd1042f3..869445acdef 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002227510EEC0(4,19-44): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x0000011F12EDBA60(4,19-44): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.fxc.hlsl index eb289f50694..b605360912d 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint4 subgroupOr_f915e3() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupOr_f915e3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupOr_f915e3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000214A6D31D70(4,15-40): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x00000235485F38A0(4,15-40): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.ir.fxc.hlsl index dbb893a6a62..bf12133647b 100644 --- a/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000222A2F7CB10(4,15-40): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x0000023193C6ACB0(4,15-40): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.fxc.hlsl index f5cb594608d..47695aafcf8 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_030422())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002420353BA70(4,15-37): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.ir.fxc.hlsl index 73e539a78e9..46ffb27d708 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022AF36590D0(4,15-37): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001C8F1CCFB60(4,15-37): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.fxc.hlsl index 4b7d76f900e..ebaa3fc732f 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_1f664c())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F3EC7046F0(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.ir.fxc.hlsl index 5e723ea48fb..e6003401315 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000260DC2BCA10(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001776372D540(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.fxc.hlsl index c73f9dbae75..456a34b9599 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_21f083())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026F2A6E95F0(4,15-40): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.ir.fxc.hlsl index c259be30d51..6d21d21948b 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D71676EF00(4,15-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001BBAB8DD540(4,15-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.fxc.hlsl index 03a7785f880..af81c7a0e13 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_2ee993())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002C31F8546C0(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.ir.fxc.hlsl index c4965647120..0d4dfcb61ff 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F1FA3BEF00(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001CC3246FB20(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.fxc.hlsl index 160d624b1c6..d33540853c3 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_323416())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A9BE165500(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.ir.fxc.hlsl index a47bcac6bda..e222f5fd56e 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024C78702300(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002460C41F100(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.fxc.hlsl index 19289740822..6db8d83a15a 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_4752bd())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026FE542D680(4,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.ir.fxc.hlsl index ae297d10d2d..3c06621e83d 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022FE254EF20(4,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002C187A5FD20(4,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.fxc.hlsl index ac2cfa4d346..1b03c253650 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_4cbb69())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001FF34CC46D0(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.ir.fxc.hlsl index 18447874404..40cc271d8ff 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000250F882FAC0(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001B429210780(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.fxc.hlsl index 9aeba80d4e7..44818b6b422 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_4f5711())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002025C506F70(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.ir.fxc.hlsl index 932cd7e290e..8b6437de971 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BA01E79120(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000018C8B980550(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.fxc.hlsl index b6965cd0618..3c07791b4a6 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_54f328())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002BFB9809C00(4,14-34): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.ir.fxc.hlsl index 7173fffaac1..841dc65bc58 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ABBCC290B0(4,14-34): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000140BD238FB0(4,14-34): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.fxc.hlsl index 6e261a2430f..36b336db055 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_5dfeab())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022FFC26C100(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.ir.fxc.hlsl index ee95d666476..edb7bdd2b3f 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000247AFFDD960(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000019D6AB3CD70(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.fxc.hlsl index ea058d9cb48..3f995c1f548 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_5ef5a2())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021C17D646D0(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.ir.fxc.hlsl index 4463a312960..d1791b8b7a1 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002369011CB10(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002463C758E00(4,15-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.fxc.hlsl index 5c27f9c432d..e9f12aac396 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_647034()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EFE83DD970(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.ir.fxc.hlsl index e3581b88885..15ad7688a56 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017A83443500(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001818D930410(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.fxc.hlsl index 9c232f26dc6..ace5583a49e 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_7ba2d5()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029220254FD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.ir.fxc.hlsl index 7ba4fa1e591..611d5b80a58 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022286F40310(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028FEA500410(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.fxc.hlsl index 33f2d9e6309..90850496c32 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_7c5d64())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A2299146D0(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.ir.fxc.hlsl index 9305c4e6e46..d769828353b 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002040D229ED0(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000020C13820170(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.fxc.hlsl index 18a9cfb5f1f..aeb82357151 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffle_7d7b1e()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002191DFE48D0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.ir.fxc.hlsl index 4cbccf02a49..dc6ab418105 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F18BC9DF20(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000023CA46746A0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.fxc.hlsl index be66fbfa729..c9f7b1787d6 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_821df9()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002763C466E40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.ir.fxc.hlsl index 0c40238282f..d8a653bda60 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002949F769150(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023058634AE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.fxc.hlsl index b4049df7681..dc50fa7af84 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_824702())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023F0BC46290(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.ir.fxc.hlsl index 05c092b11be..66467b1beb1 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000247DFE791C0(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000025C724EC300(4,14-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.fxc.hlsl index 8bd10e8415b..1158e74b87f 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_84f261())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CDFE2A5050(4,15-43): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.ir.fxc.hlsl index 62a1ffb3e1d..2816aeea130 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001671DD51380(4,15-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000255B42DCE20(4,15-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.fxc.hlsl index 6b7867a6a6e..8fb305e65ec 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_85587b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026A3D985AB0(4,16-46): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.ir.fxc.hlsl index f71040605a3..9b1f3924de4 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000221D7DEEF40(4,16-46): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000021AA60C4A30(4,16-46): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.fxc.hlsl index 5389080ca76..5de7210d9fd 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_8890a5())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002AABBD70220(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.ir.fxc.hlsl index bfa6642ba15..66f01ade4d8 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002364956EF40(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000020080DFFB80(4,16-44): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.fxc.hlsl index ce7d230a4a5..15600109b65 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_8bfbcd())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021A8A8C0540(4,13-32): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.ir.fxc.hlsl index 2c7afe4a08f..222f1515e10 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000154B070D910(4,13-32): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002D7A4BEF6E0(4,13-32): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.fxc.hlsl index b6bdc636143..bea3f516e82 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_8c3fd2()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018827174490(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.ir.fxc.hlsl index ccc63d264fe..4dec0981e7e 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D62B159150(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EB6AFB4710(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.fxc.hlsl index 4ed08da7c14..bfc7b64e112 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_aa1d5c()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024F688D4710(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.ir.fxc.hlsl index 985401f816a..277e7f9f35d 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024D9B52F4F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A248324CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.fxc.hlsl index 2bd0b1f9019..e0cb0a50f7e 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffle_b0f28d()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F10BF77D60(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.ir.fxc.hlsl index ea5bac2e14e..f3a18655930 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002D308059090(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000146614D9190(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.fxc.hlsl index e7c86f8d5b1..5ceffa02e5f 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_b4bbb7())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000206A1B50670(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.ir.fxc.hlsl index f08add0d5c4..7c5682fd4e7 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FE54B69120(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000224E182AE80(4,14-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.fxc.hlsl index b1cd0470bb0..515d76e3b47 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_bbb06c())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000230B2BE46A0(4,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.ir.fxc.hlsl index 850faefc418..28eaac30fd7 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D23D8C9100(4,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001D9F221F870(4,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.fxc.hlsl index d9b1768d183..c69351633be 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_d4a772())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021DD0456140(4,13-33): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.ir.fxc.hlsl index b16b0108c5f..9b7eb4dfeaa 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000266A5B5EF20(4,13-33): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000220EA80D5B0(4,13-33): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.fxc.hlsl index bd6566faaec..c50c2995033 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_d9ff67())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000214BF606AD0(4,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.ir.fxc.hlsl index d46c808eb2d..bf36b123ed8 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EE5CE21290(4,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002390207BE20(4,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.fxc.hlsl index 77355247d98..f65a414d5d6 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_e13c81())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E9CA070680(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.ir.fxc.hlsl index ac01c0e490d..720b67786e0 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BCA1A59120(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002B7839108F0(4,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.fxc.hlsl index f68ff8251c4..f4d6eaf5160 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_e854d5())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EAEC58BC30(4,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.ir.fxc.hlsl index e95da137fbe..13842db2dff 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FA7FC39210(4,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001FD5C89F870(4,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.fxc.hlsl index d6e739a26a4..9c235d59867 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_f194f5())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025554576860(4,14-35): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.ir.fxc.hlsl index 5029387f204..21ead63e45d 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A980B291C0(4,14-35): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000016D89F0FB60(4,14-35): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.fxc.hlsl index 3cc4058d334..389f5168d90 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_fb4ab9()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002106E75E0A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.ir.fxc.hlsl index e2a9f24340a..c93baf150c8 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025FEED2FDC0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020AF28353E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.fxc.hlsl index 1bb9b70ce8b..2cb6fc23fcb 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_10eb45()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000015179BFFB70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.ir.fxc.hlsl index 6d67c76edca..c7ea8a2dccd 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_10eb45()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000026192EAB720(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.fxc.hlsl index e8e702c67ad..413c092c3a5 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleDown_1b530f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021C54244630(4,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.ir.fxc.hlsl index c61d1dc1a4d..03287c7102e 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleDown_1b530f())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002D9A3F9D380(4,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.fxc.hlsl index 94113398da4..6feed0bcf64 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleDown_257ff0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F1DFAD68B0(4,45-62): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.ir.fxc.hlsl index f7425dd95bc..dbd0723a029 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleDown_257ff0())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000176B9064F30(4,45-62): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.fxc.hlsl index 5ef6d927998..5737300a324 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleDown_313d9b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016D42E32370(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.ir.fxc.hlsl index cc79f2f7942..6c2d726d946 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleDown_313d9b())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002333AA64D30(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.fxc.hlsl index 82d2dce5bee..3d1342a8f49 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_57b1e8()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002C2371938C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.ir.fxc.hlsl index 3f1ef463e98..3a064b5a954 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_57b1e8()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001E62EF80150(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.fxc.hlsl index 9176b92a2bb..615fb0f8b39 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleDown_5d8b9f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000187F0A160A0(4,44-61): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.fxc.hlsl index be9ad07ff58..a855c5d769a 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleDown_5d8b9f())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000198AD7646D0(4,44-61): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.fxc.hlsl index 3a3cefd0b5c..aa2e58e97bc 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_63fdb0()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023AE2DA0CA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.ir.fxc.hlsl index 0e7a9e19718..6f3c0b0d105 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_63fdb0()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001FC41E64210(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.fxc.hlsl index ee261e0c096..68b397a344c 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleDown_642789())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000253FBE3FFD0(4,41-58): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.ir.fxc.hlsl index 98abf963e77..bfeda9afdb8 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, subgroupShuffleDown_642789()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000201798C59E0(4,41-58): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.fxc.hlsl index 87502567aca..0268fc0480b 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleDown_7a0cf5())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F7F396D340(4,43-60): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.fxc.hlsl index f68ca01ad13..66b51ff2877 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleDown_7a0cf5())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F0B472FDE0(4,43-60): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.fxc.hlsl index 093f8756a07..1cdc2e11452 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleDown_7f8886())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000190F29F38C0(4,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.ir.fxc.hlsl index 6cabb9209fe..fd8bcd3d6d8 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleDown_7f8886())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002126B3F5C40(4,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.fxc.hlsl index c72373cf5f5..4f2b09de9f8 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleDown_9c6714()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017EF9FBF0F0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.ir.fxc.hlsl index fba126c96be..600153684a5 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleDown_9c6714()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021925AC46A0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.fxc.hlsl index d689ce16b78..bdab7cb2a31 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleDown_b41899())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EA3A684E90(4,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.ir.fxc.hlsl index d5a3bba0556..215e75078c3 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleDown_b41899())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001A435280B50(4,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.fxc.hlsl index abe998af7fa..5d1347eb34e 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleDown_c9f1c4())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025172C446C0(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.fxc.hlsl index 992849dd2a4..0c262af6bd1 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, subgroupShuffleDown_c9f1c4()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000248B3B0D380(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.fxc.hlsl index 58b4a323d98..f2760e11a41 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleDown_d269eb())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000214B92E0BD0(4,32-49): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.ir.fxc.hlsl index 12d2030876f..10f3be86b67 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleDown_d269eb())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021C2242F890(4,32-49): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.fxc.hlsl index b53e5e513e8..49a7212a8ef 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleDown_d46304())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002E2E0F262B0(4,42-59): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.ir.fxc.hlsl index 91af3e5a244..1ab3bb9c2d9 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, subgroupShuffleDown_d46304()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001762192FDF0(4,42-59): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.fxc.hlsl index 13ee2ca3f82..f3fc51c72f2 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleDown_d90c2f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022474326B10(4,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.ir.fxc.hlsl index 4ad4841a4e7..39d6fa39a5f 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleDown_d90c2f()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001D407BDF6E0(4,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.fxc.hlsl index 88e16d974fb..3c0ea92dae3 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_0990cd()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002167D8581D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.ir.fxc.hlsl index b9a91b6e3b1..90adc0dfa19 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_0990cd()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027467BFFBD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.fxc.hlsl index 4f8c244f208..de0840bc88c 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleUp_1bb93f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000208F863DF00(4,32-49): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.ir.fxc.hlsl index c5c58235872..670d5846a16 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleUp_1bb93f())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000266ACB24680(4,32-49): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.fxc.hlsl index 125c11de2f6..4940220e7c8 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleUp_23c7ca())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EC369C4690(4,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.ir.fxc.hlsl index d8186b23af4..e06b0bdcbe5 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleUp_23c7ca())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001777646F7A0(4,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.fxc.hlsl index b99adab37a0..0e4827dbe1b 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleUp_3242a6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B02F007100(4,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.ir.fxc.hlsl index e68044950f1..30e4208e662 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleUp_3242a6()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F479ABCEB0(4,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.fxc.hlsl index 740727e8d93..8e3cde4b41d 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleUp_33d495())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EC6FC56790(4,45-62): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.ir.fxc.hlsl index 583567f3421..491846c6c25 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleUp_33d495())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027EE093FE00(4,45-62): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.fxc.hlsl index e14eadda7e1..b5b865f02c3 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleUp_3e609f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024B182457B0(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.ir.fxc.hlsl index ebd66c0037a..006fb42c1ed 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleUp_3e609f())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001EF62EF0C80(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.fxc.hlsl index 37bb286cdfc..0a4676576f7 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleUp_58de69())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001548CF1FC30(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.ir.fxc.hlsl index 5a1cb159fd9..ec476a214c6 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, subgroupShuffleUp_58de69()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000187648946C0(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.fxc.hlsl index b638aa74a36..8ca414ae3c2 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_868e52()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C8A7F25CF0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.ir.fxc.hlsl index 1202e701dec..3fa312b7a14 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_868e52()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F79E3B61F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.fxc.hlsl index d8bd58aff82..91071bb4ad0 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleUp_87c9d6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000292FE6E4EB0(4,44-61): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.ir.fxc.hlsl index a7c833b0017..c9ecf6e5ca0 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleUp_87c9d6())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000014EB512BDE0(4,44-61): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.fxc.hlsl index 33f15b8219b..15ba54479ec 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleUp_88eb07())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000204685781D0(4,42-59): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.ir.fxc.hlsl index 0663a7bbdba..7b1bb298e57 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, subgroupShuffleUp_88eb07()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001CE7B5B46C0(4,42-59): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.fxc.hlsl index 020342926cd..71b701c9d71 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleUp_8a63f3())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002200DFC0330(4,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.ir.fxc.hlsl index adbacb80222..82b2556d2b9 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleUp_8a63f3())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000200538146C0(4,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.fxc.hlsl index fc4adeeefc4..6d3c5e293b0 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_a2075a()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000182C04F5330(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.ir.fxc.hlsl index 2935c5661dc..7e2a8858972 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_a2075a()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001B315B6C8C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.fxc.hlsl index 44fb68d3e0c..a460527ff8b 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleUp_abaea0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027AD48A51F0(4,41-58): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.ir.fxc.hlsl index 4f52f780a79..b427da0528f 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, subgroupShuffleUp_abaea0()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002DB6DAA46A0(4,41-58): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.fxc.hlsl index 71149a4142c..56d59b109f4 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleUp_b58804())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000250368157C0(4,43-60): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.ir.fxc.hlsl index 32e77e57bbb..64e6a0f2955 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleUp_b58804())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021098A646A0(4,43-60): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.fxc.hlsl index f1f7672567c..3a2877025b5 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleUp_bbf7f4()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000230E4206BE0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.fxc.hlsl index 0df5a72d8e6..6c1b11d9bb5 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleUp_bbf7f4()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002C3053FD1E0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.fxc.hlsl index cf4a91bd0e7..c22923f93b3 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleUp_db5bcb())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020C8CF1BBB0(4,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.ir.fxc.hlsl index e368ac3902c..5b9909f1914 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleUp_db5bcb())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000017509518640(4,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.fxc.hlsl index 3bb1a2f776e..d000543313d 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleXor_071aa0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B40FB560A0(4,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.ir.fxc.hlsl index bd9fe7f0090..471de6c2ae9 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleXor_071aa0())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002255F7646D0(4,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.fxc.hlsl index 407ef4b1d10..5679bd43961 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleXor_08f588())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BAAC356A70(4,42-59): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.ir.fxc.hlsl index fe882938b85..db82c10e40f 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, subgroupShuffleXor_08f588()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000188162CFDF0(4,42-59): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.fxc.hlsl index f919e51c057..cb1cc4363e3 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleXor_1d36b6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000265F1244E70(4,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.ir.fxc.hlsl index 795d16e8b0c..1851569b0da 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleXor_1d36b6())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000013B01AD46A0(4,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.fxc.hlsl index b9f806317e1..5bbd9b31c7b 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_1e247f()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000269AE7F3FF0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.ir.fxc.hlsl index 5051174bd73..4848cc4b7a7 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_1e247f()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002CC361C0150(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.fxc.hlsl index 5ecd59e45ad..a5b83db1380 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_1f2590()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029D3D2B4E00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.ir.fxc.hlsl index 2e160b352bb..aa5e58337eb 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_1f2590()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019AA4716040(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.fxc.hlsl index 67ad72e61c2..33d289988e0 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_2e033d()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001963BFA8100(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.ir.fxc.hlsl index 9bb71bb0870..22a6c583d47 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_2e033d()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001BEE4D8D7B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.fxc.hlsl index 3dd82ced353..4e9db6beb7e 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleXor_445e83())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E165554690(4,32-49): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.ir.fxc.hlsl index 3000d5bb3d0..b94df164fdf 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleXor_445e83())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019ADECEF6A0(4,32-49): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.fxc.hlsl index 9a14ce46820..fe422a4602a 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleXor_7435fe())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028BAAF355A0(4,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.ir.fxc.hlsl index e72c01af14a..c4152f3e187 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleXor_7435fe())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000022D912CF720(4,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.fxc.hlsl index 8f7c047923d..6240974a837 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleXor_80b6e9())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C6DC4FB840(4,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.ir.fxc.hlsl index 782801a3758..54f664a06e7 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleXor_80b6e9()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027B93CA4E60(4,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.fxc.hlsl index 81108cdbc43..d617487b4a3 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleXor_9f945a())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A6D5D8B680(4,41-58): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.ir.fxc.hlsl index 8be3f27b98c..8317afe650e 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, subgroupShuffleXor_9f945a()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000184990C6070(4,41-58): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.fxc.hlsl index 4421d8309a0..47379e55ab3 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleXor_bdddba())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001ECDAFD5CF0(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.ir.fxc.hlsl index 3c6eb905414..15b2caf8cd9 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleXor_bdddba())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001EF66CB4A50(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.fxc.hlsl index 5d1922fd349..d1d307a21c9 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleXor_c88290())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A7100A7190(4,45-62): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.ir.fxc.hlsl index cab7a6b5eaa..26bb7e6be69 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleXor_c88290())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000205107ED070(4,45-62): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.fxc.hlsl index 539329f3b1b..5383043dc65 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleXor_caa816())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025B82AF0DF0(4,44-61): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.ir.fxc.hlsl index 406512ca62b..2609e45eb98 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleXor_caa816())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C5322BCE00(4,44-61): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.fxc.hlsl index 8e3469f0baf..0c15217ca7e 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleXor_d224ab()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025FFAFADD10(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.ir.fxc.hlsl index ee9ec9998d8..6b964965e8e 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleXor_d224ab()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001FD843B4FD0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.fxc.hlsl index b084860297a..6a97b7615ee 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleXor_e3c10b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002B22BB9DBB0(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.ir.fxc.hlsl index 990908aec6f..4642ece2bbb 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, subgroupShuffleXor_e3c10b()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001763EFE14C0(4,40-57): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.fxc.hlsl index 85528c1afc1..ab69540c9e1 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleXor_f7b453())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019824B41E00(4,43-60): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.ir.fxc.hlsl index e5b36559149..1d5388d7cc8 100644 --- a/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -16,3 +16,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleXor_f7b453())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000014363366050(4,43-60): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.fxc.hlsl index 637f40475d7..23bf9b069b6 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint3 subgroupXor_468721() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupXor_468721())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupXor_468721())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001CEE4B02460(4,15-40): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001EC2E7AFC40(4,15-40): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.ir.fxc.hlsl index f507934ceb6..da669031f01 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000233B7DCCB10(4,15-40): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000023549650650(4,15-40): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.fxc.hlsl index 938a026de5f..6674e5758d2 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupXor_473de8() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupXor_473de8())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupXor_473de8())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001EB105DF2E0(5,20-53): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x00000214B9201060(5,20-53): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.ir.fxc.hlsl index 071d9739b90..26383fa8f84 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000242B6DCF420(5,20-48): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x00000239ADCCD1C0(5,20-48): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.fxc.hlsl index 9d909353179..aac7652d9a7 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ int subgroupXor_694b17() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupXor_694b17())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupXor_694b17())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000270803DB1B0(4,19-45): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001B1ED06D090(4,19-45): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.ir.fxc.hlsl index 7eb0c9e13dc..529dc68be1d 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000193D889EEB0(4,19-45): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001CDAB75FE80(4,19-45): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.fxc.hlsl index 42110f2f062..3834790706e 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint subgroupXor_7750d6() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupXor_7750d6())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupXor_7750d6())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000017025E7FFC0(4,14-33): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000016C8AD35EB0(4,14-33): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.ir.fxc.hlsl index ad964edcece..6aa30f00ada 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022EE19590C0(4,14-33): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x00000263AE5FFE20(4,14-33): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.fxc.hlsl index 209a110d904..712dce62481 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint2 subgroupXor_7f6672() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupXor_7f6672())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupXor_7f6672())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001D2005F1400(4,15-39): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000019E55AA7AC0(4,15-39): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.ir.fxc.hlsl index ca2e62479cc..f3c50d1eead 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002DA0C759120(4,15-39): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001C940F14EE0(4,15-39): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.fxc.hlsl index 30c49f9f62e..62757fc463e 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupXor_83b1f3() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupXor_83b1f3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupXor_83b1f3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001562F474130(5,20-53): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001DF5CE15280(5,20-53): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.ir.fxc.hlsl index 00ce9f0b766..f9c840f64f5 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F1679AD960(5,20-48): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000002B9ADF44A00(5,20-48): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.fxc.hlsl index 0d9f24df9a1..976d65980e7 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupXor_9c6e73() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupXor_9c6e73())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupXor_9c6e73())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001B02A250E00(5,20-53): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000023299903CA0(5,20-53): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.ir.fxc.hlsl index ee7a6c33781..65396576573 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015E4E422250(5,20-48): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000021B8B2BF890(5,20-48): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.fxc.hlsl index 6cc915a0572..98511ca6ab1 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.fxc.hlsl @@ -7,11 +7,16 @@ uint4 subgroupXor_9d77e4() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupXor_9d77e4())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupXor_9d77e4())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001B889021E80(4,15-41): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001C51E055C00(4,15-41): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.ir.fxc.hlsl index 42c414c5455..26f45d5ad0a 100644 --- a/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E2D9DD2250(4,15-41): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000002033FD1D500(4,15-41): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/literal/tan/539e54.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tan/539e54.wgsl.expected.fxc.hlsl index 240f5ad5952..0577f6cd4c1 100644 --- a/test/tint/builtins/gen/literal/tan/539e54.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tan/539e54.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tan_539e54() { +vector tan_539e54() { vector res = (float16_t(1.556640625h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tan_539e54(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tan_539e54(); + prevent_dce.Store >(0u, tan_539e54()); return; } [numthreads(1, 1, 1)] void compute_main() { - tan_539e54(); + prevent_dce.Store >(0u, tan_539e54()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tan_539e54(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000017CFD3D3D00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/tan/539e54.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/tan/539e54.wgsl.expected.ir.fxc.hlsl index c9bdc8331c5..50c03ec50f0 100644 --- a/test/tint/builtins/gen/literal/tan/539e54.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tan/539e54.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027BB1F9E9D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E3A17BC740(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/tan/9f7c9c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tan/9f7c9c.wgsl.expected.fxc.hlsl index 5680ec6ee30..d5abab72722 100644 --- a/test/tint/builtins/gen/literal/tan/9f7c9c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tan/9f7c9c.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tan_9f7c9c() { +vector tan_9f7c9c() { vector res = (float16_t(1.556640625h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tan_9f7c9c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tan_9f7c9c(); + prevent_dce.Store >(0u, tan_9f7c9c()); return; } [numthreads(1, 1, 1)] void compute_main() { - tan_9f7c9c(); + prevent_dce.Store >(0u, tan_9f7c9c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tan_9f7c9c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F75752D000(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/tan/9f7c9c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/tan/9f7c9c.wgsl.expected.ir.fxc.hlsl index 2b2dc09c49e..36cdea37eb1 100644 --- a/test/tint/builtins/gen/literal/tan/9f7c9c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tan/9f7c9c.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027B2CC22480(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023AE88F64C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/tan/d4d491.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tan/d4d491.wgsl.expected.fxc.hlsl index fb2c732508e..a7e580b5ac1 100644 --- a/test/tint/builtins/gen/literal/tan/d4d491.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tan/d4d491.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tan_d4d491() { +float16_t tan_d4d491() { float16_t res = float16_t(1.556640625h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tan_d4d491(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tan_d4d491(); + prevent_dce.Store(0u, tan_d4d491()); return; } [numthreads(1, 1, 1)] void compute_main() { - tan_d4d491(); + prevent_dce.Store(0u, tan_d4d491()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tan_d4d491(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000247B84D6C10(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/tan/d4d491.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/tan/d4d491.wgsl.expected.ir.fxc.hlsl index 5633da6b699..15b8594e485 100644 --- a/test/tint/builtins/gen/literal/tan/d4d491.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tan/d4d491.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D5071E0E80(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002023CD961F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/tan/db0456.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tan/db0456.wgsl.expected.fxc.hlsl index ac1c01aeb70..f3bfacd3a0a 100644 --- a/test/tint/builtins/gen/literal/tan/db0456.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tan/db0456.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tan_db0456() { +vector tan_db0456() { vector res = (float16_t(1.556640625h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tan_db0456(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tan_db0456(); + prevent_dce.Store >(0u, tan_db0456()); return; } [numthreads(1, 1, 1)] void compute_main() { - tan_db0456(); + prevent_dce.Store >(0u, tan_db0456()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tan_db0456(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000159BB26CA70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/tan/db0456.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/tan/db0456.wgsl.expected.ir.fxc.hlsl index a194c17520b..fc64fb0418a 100644 --- a/test/tint/builtins/gen/literal/tan/db0456.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tan/db0456.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D08791F9C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020A6E7EBE50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/tanh/06a4fe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/06a4fe.wgsl.expected.fxc.hlsl index 986fcf64890..8dbff1608f6 100644 --- a/test/tint/builtins/gen/literal/tanh/06a4fe.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tanh/06a4fe.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tanh_06a4fe() { +vector tanh_06a4fe() { vector res = (float16_t(0.76123046875h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tanh_06a4fe(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tanh_06a4fe(); + prevent_dce.Store >(0u, tanh_06a4fe()); return; } [numthreads(1, 1, 1)] void compute_main() { - tanh_06a4fe(); + prevent_dce.Store >(0u, tanh_06a4fe()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tanh_06a4fe(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F2FD1794A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/tanh/06a4fe.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/06a4fe.wgsl.expected.ir.fxc.hlsl index 8ffbe4d9c5e..84468c5c226 100644 --- a/test/tint/builtins/gen/literal/tanh/06a4fe.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tanh/06a4fe.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E625E35430(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024DF3068F80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/tanh/5b19af.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/5b19af.wgsl.expected.fxc.hlsl index 3642a2d0748..ac748dbf140 100644 --- a/test/tint/builtins/gen/literal/tanh/5b19af.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tanh/5b19af.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tanh_5b19af() { +float16_t tanh_5b19af() { float16_t res = float16_t(0.76123046875h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tanh_5b19af(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tanh_5b19af(); + prevent_dce.Store(0u, tanh_5b19af()); return; } [numthreads(1, 1, 1)] void compute_main() { - tanh_5b19af(); + prevent_dce.Store(0u, tanh_5b19af()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tanh_5b19af(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020534E04FA0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/tanh/5b19af.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/5b19af.wgsl.expected.ir.fxc.hlsl index 1daa61ded34..4bc507845e6 100644 --- a/test/tint/builtins/gen/literal/tanh/5b19af.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tanh/5b19af.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021DDEB32710(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000017A89D5D0E0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/tanh/6d105a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/6d105a.wgsl.expected.fxc.hlsl index 4f48c5653ed..b418c52c87c 100644 --- a/test/tint/builtins/gen/literal/tanh/6d105a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tanh/6d105a.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tanh_6d105a() { +vector tanh_6d105a() { vector res = (float16_t(0.76123046875h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tanh_6d105a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tanh_6d105a(); + prevent_dce.Store >(0u, tanh_6d105a()); return; } [numthreads(1, 1, 1)] void compute_main() { - tanh_6d105a(); + prevent_dce.Store >(0u, tanh_6d105a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tanh_6d105a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000023252D86610(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/tanh/6d105a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/6d105a.wgsl.expected.ir.fxc.hlsl index 985b170bcda..4c63aa50e60 100644 --- a/test/tint/builtins/gen/literal/tanh/6d105a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tanh/6d105a.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000188971EF9E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000162D47F4450(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/tanh/e8efb3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/e8efb3.wgsl.expected.fxc.hlsl index 343c988ec84..4adb1b7ccc0 100644 --- a/test/tint/builtins/gen/literal/tanh/e8efb3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tanh/e8efb3.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tanh_e8efb3() { +vector tanh_e8efb3() { vector res = (float16_t(0.76123046875h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tanh_e8efb3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tanh_e8efb3(); + prevent_dce.Store >(0u, tanh_e8efb3()); return; } [numthreads(1, 1, 1)] void compute_main() { - tanh_e8efb3(); + prevent_dce.Store >(0u, tanh_e8efb3()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tanh_e8efb3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002B1FA1442B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/tanh/e8efb3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/tanh/e8efb3.wgsl.expected.ir.fxc.hlsl index 51f9da8f4b4..2112577768d 100644 --- a/test/tint/builtins/gen/literal/tanh/e8efb3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/tanh/e8efb3.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025A93E3E6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019AEA07B450(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSample/193203.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSample/193203.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSample/193203.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSample/193203.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSample/4703d0.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSample/4703d0.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSample/4703d0.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSample/4703d0.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.fxc.hlsl index 5c618c869a7..b38ced5083f 100644 --- a/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.fxc.hlsl @@ -175,6 +175,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022C9A1F99A0(55,137-143): error X3000: syntax error: unexpected token 'sampler' -C:\src\dawn\Shader@0x0000022C9A1F99A0(56,27-32): error X3004: undeclared identifier 'coords' +C:\src\dawn\Shader@0x0000021EDE397F80(55,137-143): error X3000: syntax error: unexpected token 'sampler' +C:\src\dawn\Shader@0x0000021EDE397F80(56,27-32): error X3004: undeclared identifier 'coords' diff --git a/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.ir.dxc.hlsl index 49d2f50d402..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleBias -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleBias/87915c.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/87915c.wgsl.expected.ir.dxc.hlsl index 49d2f50d402..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/87915c.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/87915c.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleBias -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.ir.dxc.hlsl index 49d2f50d402..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleBias -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.ir.dxc.hlsl index 49d2f50d402..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleBias -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/7b5025.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/7b5025.wgsl.expected.ir.dxc.hlsl index b7acf20186d..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/7b5025.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/7b5025.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompare -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.ir.dxc.hlsl index b7acf20186d..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompare -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.ir.dxc.hlsl index b7acf20186d..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompare -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.dxc.hlsl index f8e283a8c67..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompareLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.dxc.hlsl index f8e283a8c67..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompareLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.dxc.hlsl index f8e283a8c67..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompareLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.ir.dxc.hlsl index 2729ab61a04..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleGrad -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/7cd6de.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/7cd6de.wgsl.expected.ir.dxc.hlsl index 2729ab61a04..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/7cd6de.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/7cd6de.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleGrad -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.ir.dxc.hlsl index 2729ab61a04..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleGrad -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.ir.dxc.hlsl index 2729ab61a04..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleGrad -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/f3b2c8.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/f3b2c8.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/f3b2c8.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/f3b2c8.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/faa6d7.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/textureSampleLevel/faa6d7.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/faa6d7.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/faa6d7.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/literal/transpose/06794e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/06794e.wgsl.expected.fxc.hlsl index 80d5ee19f38..dd87aaa4357 100644 --- a/test/tint/builtins/gen/literal/transpose/06794e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/06794e.wgsl.expected.fxc.hlsl @@ -1,41 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); - prevent_dce.Store >((offset + 16u), value[2u]); -} - -void transpose_06794e() { +int transpose_06794e() { matrix res = matrix((float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_06794e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_06794e(); + prevent_dce.Store(0u, asuint(transpose_06794e())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_06794e(); + prevent_dce.Store(0u, asuint(transpose_06794e())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_06794e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000027B5A88C630(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027B5A88C630(5,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/literal/transpose/06794e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/06794e.wgsl.expected.ir.fxc.hlsl index 8927af76f25..46f94dcfa31 100644 --- a/test/tint/builtins/gen/literal/transpose/06794e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/06794e.wgsl.expected.ir.fxc.hlsl @@ -43,6 +43,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A7D738EF30(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001A7D738EF30(15,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x000002148B614EB0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002148B614EB0(15,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/literal/transpose/5edd96.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/5edd96.wgsl.expected.fxc.hlsl index 8b775e94fdb..473ed99db27 100644 --- a/test/tint/builtins/gen/literal/transpose/5edd96.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/5edd96.wgsl.expected.fxc.hlsl @@ -1,40 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); -} - -void transpose_5edd96() { +int transpose_5edd96() { matrix res = matrix((float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_5edd96(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_5edd96(); + prevent_dce.Store(0u, asuint(transpose_5edd96())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_5edd96(); + prevent_dce.Store(0u, asuint(transpose_5edd96())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_5edd96(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001CAC652FB70(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CAC652FB70(5,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/literal/transpose/5edd96.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/5edd96.wgsl.expected.ir.fxc.hlsl index bc97d29c66c..b21db3256db 100644 --- a/test/tint/builtins/gen/literal/transpose/5edd96.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/5edd96.wgsl.expected.ir.fxc.hlsl @@ -43,6 +43,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CFF9225070(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001CFF9225070(15,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x0000018F90A952B0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018F90A952B0(15,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/literal/transpose/5f36bf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/5f36bf.wgsl.expected.fxc.hlsl index 6d2e6f4503a..845f5da2dca 100644 --- a/test/tint/builtins/gen/literal/transpose/5f36bf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/5f36bf.wgsl.expected.fxc.hlsl @@ -1,41 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); - prevent_dce.Store >((offset + 16u), value[2u]); -} - -void transpose_5f36bf() { +int transpose_5f36bf() { matrix res = matrix((float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_5f36bf(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_5f36bf(); + prevent_dce.Store(0u, asuint(transpose_5f36bf())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_5f36bf(); + prevent_dce.Store(0u, asuint(transpose_5f36bf())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_5f36bf(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A0252F6670(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A0252F6670(5,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/literal/transpose/5f36bf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/5f36bf.wgsl.expected.ir.fxc.hlsl index 0cc05a0d119..c553cb0c0b8 100644 --- a/test/tint/builtins/gen/literal/transpose/5f36bf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/5f36bf.wgsl.expected.ir.fxc.hlsl @@ -43,6 +43,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002006306DAB0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002006306DAB0(15,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x000001EE03B194E0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EE03B194E0(15,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/literal/transpose/7be8b2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/7be8b2.wgsl.expected.fxc.hlsl index f9f1c025e83..78b2c4e0b3d 100644 --- a/test/tint/builtins/gen/literal/transpose/7be8b2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/7be8b2.wgsl.expected.fxc.hlsl @@ -1,40 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 4u), value[1u]); -} - -void transpose_7be8b2() { +int transpose_7be8b2() { matrix res = matrix((float16_t(1.0h)).xx, (float16_t(1.0h)).xx); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_7be8b2(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_7be8b2(); + prevent_dce.Store(0u, asuint(transpose_7be8b2())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_7be8b2(); + prevent_dce.Store(0u, asuint(transpose_7be8b2())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_7be8b2(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F981EC5390(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F981EC5390(5,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/literal/transpose/7be8b2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/7be8b2.wgsl.expected.ir.fxc.hlsl index 06b333996b3..9e26990ae94 100644 --- a/test/tint/builtins/gen/literal/transpose/7be8b2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/7be8b2.wgsl.expected.ir.fxc.hlsl @@ -43,6 +43,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002897DF50460(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002897DF50460(15,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x0000017D4F39CC60(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017D4F39CC60(15,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/literal/transpose/844869.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/844869.wgsl.expected.fxc.hlsl index ec0bb489aaf..d693450a8a0 100644 --- a/test/tint/builtins/gen/literal/transpose/844869.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/844869.wgsl.expected.fxc.hlsl @@ -1,42 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); - prevent_dce.Store >((offset + 16u), value[2u]); - prevent_dce.Store >((offset + 24u), value[3u]); -} - -void transpose_844869() { +int transpose_844869() { matrix res = matrix((float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_844869(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_844869(); + prevent_dce.Store(0u, asuint(transpose_844869())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_844869(); + prevent_dce.Store(0u, asuint(transpose_844869())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_844869(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000183663A5320(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000183663A5320(5,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/literal/transpose/844869.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/844869.wgsl.expected.ir.fxc.hlsl index 74a8537a6b2..c5958b81f84 100644 --- a/test/tint/builtins/gen/literal/transpose/844869.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/844869.wgsl.expected.ir.fxc.hlsl @@ -43,6 +43,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002352527E570(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002352527E570(15,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x0000025774E945E0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025774E945E0(15,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/literal/transpose/8c06ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/8c06ce.wgsl.expected.fxc.hlsl index 11937a18c2b..6f6355ab333 100644 --- a/test/tint/builtins/gen/literal/transpose/8c06ce.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/8c06ce.wgsl.expected.fxc.hlsl @@ -1,42 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); - prevent_dce.Store >((offset + 16u), value[2u]); - prevent_dce.Store >((offset + 24u), value[3u]); -} - -void transpose_8c06ce() { +int transpose_8c06ce() { matrix res = matrix((float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_8c06ce(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_8c06ce(); + prevent_dce.Store(0u, asuint(transpose_8c06ce())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_8c06ce(); + prevent_dce.Store(0u, asuint(transpose_8c06ce())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_8c06ce(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000228E2476780(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000228E2476780(5,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/literal/transpose/8c06ce.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/8c06ce.wgsl.expected.ir.fxc.hlsl index dbdca0a31c1..8b0ca56faf2 100644 --- a/test/tint/builtins/gen/literal/transpose/8c06ce.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/8c06ce.wgsl.expected.ir.fxc.hlsl @@ -43,6 +43,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000147314EF3A0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000147314EF3A0(15,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x0000018111A5B6D0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018111A5B6D0(15,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/literal/transpose/b9ad1f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/b9ad1f.wgsl.expected.fxc.hlsl index df8512ebb0a..8021772b5df 100644 --- a/test/tint/builtins/gen/literal/transpose/b9ad1f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/b9ad1f.wgsl.expected.fxc.hlsl @@ -1,40 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); -} - -void transpose_b9ad1f() { +int transpose_b9ad1f() { matrix res = matrix((float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_b9ad1f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_b9ad1f(); + prevent_dce.Store(0u, asuint(transpose_b9ad1f())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_b9ad1f(); + prevent_dce.Store(0u, asuint(transpose_b9ad1f())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_b9ad1f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025027315E30(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025027315E30(5,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/literal/transpose/b9ad1f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/b9ad1f.wgsl.expected.ir.fxc.hlsl index 1ab7bb651c7..044e31855aa 100644 --- a/test/tint/builtins/gen/literal/transpose/b9ad1f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/b9ad1f.wgsl.expected.ir.fxc.hlsl @@ -43,6 +43,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FE750B28D0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001FE750B28D0(15,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x00000214A59A38C0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000214A59A38C0(15,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/literal/transpose/d6faec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/d6faec.wgsl.expected.fxc.hlsl index 5852f9ed034..c4f399aa43c 100644 --- a/test/tint/builtins/gen/literal/transpose/d6faec.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/d6faec.wgsl.expected.fxc.hlsl @@ -1,41 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 4u), value[1u]); - prevent_dce.Store >((offset + 8u), value[2u]); -} - -void transpose_d6faec() { +int transpose_d6faec() { matrix res = matrix((float16_t(1.0h)).xx, (float16_t(1.0h)).xx, (float16_t(1.0h)).xx); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_d6faec(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_d6faec(); + prevent_dce.Store(0u, asuint(transpose_d6faec())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_d6faec(); + prevent_dce.Store(0u, asuint(transpose_d6faec())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_d6faec(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001EB4BAD5BB0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EB4BAD5BB0(5,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/literal/transpose/d6faec.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/d6faec.wgsl.expected.ir.fxc.hlsl index 6840db061e4..a9b21cd2806 100644 --- a/test/tint/builtins/gen/literal/transpose/d6faec.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/d6faec.wgsl.expected.ir.fxc.hlsl @@ -43,6 +43,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000267E68F00A0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000267E68F00A0(15,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x0000012595335390(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000012595335390(15,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/literal/transpose/faeb05.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/faeb05.wgsl.expected.fxc.hlsl index ab5a3c4ce95..8a7b9150add 100644 --- a/test/tint/builtins/gen/literal/transpose/faeb05.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/faeb05.wgsl.expected.fxc.hlsl @@ -1,42 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 4u), value[1u]); - prevent_dce.Store >((offset + 8u), value[2u]); - prevent_dce.Store >((offset + 12u), value[3u]); -} - -void transpose_faeb05() { +int transpose_faeb05() { matrix res = matrix((float16_t(1.0h)).xx, (float16_t(1.0h)).xx, (float16_t(1.0h)).xx, (float16_t(1.0h)).xx); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_faeb05(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_faeb05(); + prevent_dce.Store(0u, asuint(transpose_faeb05())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_faeb05(); + prevent_dce.Store(0u, asuint(transpose_faeb05())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_faeb05(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A87A575780(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A87A575780(5,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/literal/transpose/faeb05.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/transpose/faeb05.wgsl.expected.ir.fxc.hlsl index 2c905f61857..8ae7899ab9d 100644 --- a/test/tint/builtins/gen/literal/transpose/faeb05.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/transpose/faeb05.wgsl.expected.ir.fxc.hlsl @@ -43,6 +43,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001946A60E750(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001946A60E750(15,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x0000023D43646210(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023D43646210(15,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/literal/trunc/103ab8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/103ab8.wgsl.expected.fxc.hlsl index f2745f438da..6512998557f 100644 --- a/test/tint/builtins/gen/literal/trunc/103ab8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/trunc/103ab8.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void trunc_103ab8() { +vector trunc_103ab8() { vector res = (float16_t(1.0h)).xxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - trunc_103ab8(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - trunc_103ab8(); + prevent_dce.Store >(0u, trunc_103ab8()); return; } [numthreads(1, 1, 1)] void compute_main() { - trunc_103ab8(); + prevent_dce.Store >(0u, trunc_103ab8()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = trunc_103ab8(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002950E864670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/trunc/103ab8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/103ab8.wgsl.expected.ir.fxc.hlsl index 596cc717136..c444456e849 100644 --- a/test/tint/builtins/gen/literal/trunc/103ab8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/trunc/103ab8.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E77E7BFB90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002345D1B6600(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/trunc/a56109.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/a56109.wgsl.expected.fxc.hlsl index ff5ba4ba110..0c6d879742a 100644 --- a/test/tint/builtins/gen/literal/trunc/a56109.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/trunc/a56109.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void trunc_a56109() { +vector trunc_a56109() { vector res = (float16_t(1.0h)).xx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - trunc_a56109(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - trunc_a56109(); + prevent_dce.Store >(0u, trunc_a56109()); return; } [numthreads(1, 1, 1)] void compute_main() { - trunc_a56109(); + prevent_dce.Store >(0u, trunc_a56109()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = trunc_a56109(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002016AEB6670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/trunc/a56109.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/a56109.wgsl.expected.ir.fxc.hlsl index bf5d7623a4b..8548649817f 100644 --- a/test/tint/builtins/gen/literal/trunc/a56109.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/trunc/a56109.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FACAF2EBB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F9F7244F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/trunc/cc2b0d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/cc2b0d.wgsl.expected.fxc.hlsl index 11c8a536e17..5ec139a5ee3 100644 --- a/test/tint/builtins/gen/literal/trunc/cc2b0d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/trunc/cc2b0d.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void trunc_cc2b0d() { +float16_t trunc_cc2b0d() { float16_t res = float16_t(1.0h); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - trunc_cc2b0d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - trunc_cc2b0d(); + prevent_dce.Store(0u, trunc_cc2b0d()); return; } [numthreads(1, 1, 1)] void compute_main() { - trunc_cc2b0d(); + prevent_dce.Store(0u, trunc_cc2b0d()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = trunc_cc2b0d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000028303766580(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/trunc/cc2b0d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/cc2b0d.wgsl.expected.ir.fxc.hlsl index b69cf5d5cbc..6dab598addf 100644 --- a/test/tint/builtins/gen/literal/trunc/cc2b0d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/trunc/cc2b0d.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023D4B1AF280(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000017B743061F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/literal/trunc/ce7c17.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/ce7c17.wgsl.expected.fxc.hlsl index 72dc6fd8508..708fce6c4f3 100644 --- a/test/tint/builtins/gen/literal/trunc/ce7c17.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/trunc/ce7c17.wgsl.expected.fxc.hlsl @@ -1,35 +1,46 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void trunc_ce7c17() { +vector trunc_ce7c17() { vector res = (float16_t(1.0h)).xxxx; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - trunc_ce7c17(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - trunc_ce7c17(); + prevent_dce.Store >(0u, trunc_ce7c17()); return; } [numthreads(1, 1, 1)] void compute_main() { - trunc_ce7c17(); + prevent_dce.Store >(0u, trunc_ce7c17()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = trunc_ce7c17(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001EDF64B4CE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/literal/trunc/ce7c17.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/trunc/ce7c17.wgsl.expected.ir.fxc.hlsl index e3f5e5303ae..b807ef2a660 100644 --- a/test/tint/builtins/gen/literal/trunc/ce7c17.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/trunc/ce7c17.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C802DE03B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A2DA5838B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.fxc.hlsl index 9fe9c3e8015..f4e23fc792f 100644 --- a/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.fxc.hlsl @@ -1,18 +1,26 @@ SKIP: FAILED -float16_t tint_workgroupUniformLoad(inout float16_t p) { +groupshared float16_t arg_0; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + arg_0 = float16_t(0.0h); + } + GroupMemoryBarrierWithGroupSync(); +} + +float16_t tint_workgroupUniformLoad_arg_0() { GroupMemoryBarrierWithGroupSync(); - const float16_t result = p; + float16_t result = arg_0; GroupMemoryBarrierWithGroupSync(); return result; } -groupshared float16_t arg_0; -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void workgroupUniformLoad_e07d08() { - float16_t res = tint_workgroupUniformLoad(arg_0); - prevent_dce.Store(0u, res); +float16_t workgroupUniformLoad_e07d08() { + float16_t res = tint_workgroupUniformLoad_arg_0(); + return res; } struct tint_symbol_1 { @@ -20,11 +28,8 @@ struct tint_symbol_1 { }; void compute_main_inner(uint local_invocation_index) { - { - arg_0 = float16_t(0.0h); - } - GroupMemoryBarrierWithGroupSync(); - workgroupUniformLoad_e07d08(); + tint_zero_workgroup_memory(local_invocation_index); + prevent_dce.Store(0u, workgroupUniformLoad_e07d08()); } [numthreads(1, 1, 1)] @@ -32,3 +37,6 @@ void compute_main(tint_symbol_1 tint_symbol) { compute_main_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020B73E3DD80(1,13-21): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.ir.fxc.hlsl index ae10f736055..716076f4bf2 100644 --- a/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.ir.fxc.hlsl @@ -29,5 +29,5 @@ void compute_main(compute_main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000022E2DF79150(7,13-21): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000254250B8880(7,13-21): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/abs/421ca3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/421ca3.wgsl.expected.fxc.hlsl index ca9cc56e473..6ab7dfe85ea 100644 --- a/test/tint/builtins/gen/var/abs/421ca3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/abs/421ca3.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void abs_421ca3() { +vector abs_421ca3() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = abs(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - abs_421ca3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - abs_421ca3(); + prevent_dce.Store >(0u, abs_421ca3()); return; } [numthreads(1, 1, 1)] void compute_main() { - abs_421ca3(); + prevent_dce.Store >(0u, abs_421ca3()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = abs_421ca3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000137054364D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/abs/421ca3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/abs/421ca3.wgsl.expected.ir.fxc.hlsl index 7dc96d03802..07453a63191 100644 --- a/test/tint/builtins/gen/var/abs/421ca3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/abs/421ca3.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021B7BB2EB20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A411839650(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/abs/538d29.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/538d29.wgsl.expected.fxc.hlsl index 090c71199cf..fc60a69ce21 100644 --- a/test/tint/builtins/gen/var/abs/538d29.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/abs/538d29.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void abs_538d29() { +vector abs_538d29() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = abs(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - abs_538d29(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - abs_538d29(); + prevent_dce.Store >(0u, abs_538d29()); return; } [numthreads(1, 1, 1)] void compute_main() { - abs_538d29(); + prevent_dce.Store >(0u, abs_538d29()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = abs_538d29(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020DDCC95890(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/abs/538d29.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/abs/538d29.wgsl.expected.ir.fxc.hlsl index 52fc5220103..c2d5d76735d 100644 --- a/test/tint/builtins/gen/var/abs/538d29.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/abs/538d29.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000228B95CF2D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022176AD45D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/abs/5ae4fe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/5ae4fe.wgsl.expected.fxc.hlsl index 8fa6325708c..86155a190ea 100644 --- a/test/tint/builtins/gen/var/abs/5ae4fe.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/abs/5ae4fe.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void abs_5ae4fe() { +vector abs_5ae4fe() { vector arg_0 = (float16_t(1.0h)).xx; vector res = abs(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - abs_5ae4fe(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - abs_5ae4fe(); + prevent_dce.Store >(0u, abs_5ae4fe()); return; } [numthreads(1, 1, 1)] void compute_main() { - abs_5ae4fe(); + prevent_dce.Store >(0u, abs_5ae4fe()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = abs_5ae4fe(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000024766D5ADA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/abs/5ae4fe.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/abs/5ae4fe.wgsl.expected.ir.fxc.hlsl index d32f006c50d..561c4ca54f9 100644 --- a/test/tint/builtins/gen/var/abs/5ae4fe.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/abs/5ae4fe.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D8F9F2E750(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002147FE893F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/abs/fd247f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/abs/fd247f.wgsl.expected.fxc.hlsl index 70c1c4742a8..1660f3f8f91 100644 --- a/test/tint/builtins/gen/var/abs/fd247f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/abs/fd247f.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void abs_fd247f() { +float16_t abs_fd247f() { float16_t arg_0 = float16_t(1.0h); float16_t res = abs(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - abs_fd247f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - abs_fd247f(); + prevent_dce.Store(0u, abs_fd247f()); return; } [numthreads(1, 1, 1)] void compute_main() { - abs_fd247f(); + prevent_dce.Store(0u, abs_fd247f()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = abs_fd247f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000215B41D56B0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/abs/fd247f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/abs/fd247f.wgsl.expected.ir.fxc.hlsl index c5a94de1280..f23de99bfac 100644 --- a/test/tint/builtins/gen/var/abs/fd247f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/abs/fd247f.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002557DE9EC50(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001AE5A7438B0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/acos/004aff.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acos/004aff.wgsl.expected.fxc.hlsl index cf77412ace1..11ee2bff57c 100644 --- a/test/tint/builtins/gen/var/acos/004aff.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/acos/004aff.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acos_004aff() { +vector acos_004aff() { vector arg_0 = (float16_t(0.96875h)).xx; vector res = acos(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acos_004aff(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acos_004aff(); + prevent_dce.Store >(0u, acos_004aff()); return; } [numthreads(1, 1, 1)] void compute_main() { - acos_004aff(); + prevent_dce.Store >(0u, acos_004aff()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acos_004aff(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F63287C180(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/acos/004aff.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/acos/004aff.wgsl.expected.ir.fxc.hlsl index 55df8bf9832..8a8e828d022 100644 --- a/test/tint/builtins/gen/var/acos/004aff.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/acos/004aff.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002858E51EB30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002FC42339650(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/acos/203628.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acos/203628.wgsl.expected.fxc.hlsl index 5a878883f37..28138017cff 100644 --- a/test/tint/builtins/gen/var/acos/203628.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/acos/203628.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acos_203628() { +vector acos_203628() { vector arg_0 = (float16_t(0.96875h)).xxxx; vector res = acos(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acos_203628(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acos_203628(); + prevent_dce.Store >(0u, acos_203628()); return; } [numthreads(1, 1, 1)] void compute_main() { - acos_203628(); + prevent_dce.Store >(0u, acos_203628()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acos_203628(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A6C2F6D370(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/acos/203628.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/acos/203628.wgsl.expected.ir.fxc.hlsl index 6a827af285b..317f2fd21a3 100644 --- a/test/tint/builtins/gen/var/acos/203628.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/acos/203628.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026857F2FBB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014934DC8FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/acos/303e3d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acos/303e3d.wgsl.expected.fxc.hlsl index eee0889b102..e5406fc7c29 100644 --- a/test/tint/builtins/gen/var/acos/303e3d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/acos/303e3d.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acos_303e3d() { +float16_t acos_303e3d() { float16_t arg_0 = float16_t(0.96875h); float16_t res = acos(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acos_303e3d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acos_303e3d(); + prevent_dce.Store(0u, acos_303e3d()); return; } [numthreads(1, 1, 1)] void compute_main() { - acos_303e3d(); + prevent_dce.Store(0u, acos_303e3d()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acos_303e3d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000029338DFBA60(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/acos/303e3d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/acos/303e3d.wgsl.expected.ir.fxc.hlsl index 697cb432983..6e0dd73f285 100644 --- a/test/tint/builtins/gen/var/acos/303e3d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/acos/303e3d.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D870F6F990(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001F73475CBC0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/acos/f47057.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acos/f47057.wgsl.expected.fxc.hlsl index 38c2ae3f589..a722f7945d6 100644 --- a/test/tint/builtins/gen/var/acos/f47057.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/acos/f47057.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acos_f47057() { +vector acos_f47057() { vector arg_0 = (float16_t(0.96875h)).xxx; vector res = acos(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acos_f47057(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acos_f47057(); + prevent_dce.Store >(0u, acos_f47057()); return; } [numthreads(1, 1, 1)] void compute_main() { - acos_f47057(); + prevent_dce.Store >(0u, acos_f47057()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acos_f47057(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000207125BBBA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/acos/f47057.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/acos/f47057.wgsl.expected.ir.fxc.hlsl index a3941adfaa4..4650d84e23a 100644 --- a/test/tint/builtins/gen/var/acos/f47057.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/acos/f47057.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000173BB627FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000264BC8DB3E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/acosh/5f49d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acosh/5f49d8.wgsl.expected.fxc.hlsl index e184be34c30..f3b939b06df 100644 --- a/test/tint/builtins/gen/var/acosh/5f49d8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/acosh/5f49d8.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_acosh(vector x) { return log((x + sqrt(((x * x) - float16_t(1.0h))))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acosh_5f49d8() { +vector acosh_5f49d8() { vector arg_0 = (float16_t(1.54296875h)).xx; vector res = tint_acosh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acosh_5f49d8(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acosh_5f49d8(); + prevent_dce.Store >(0u, acosh_5f49d8()); return; } [numthreads(1, 1, 1)] void compute_main() { - acosh_5f49d8(); + prevent_dce.Store >(0u, acosh_5f49d8()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acosh_5f49d8(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002AE671596D0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/acosh/5f49d8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/acosh/5f49d8.wgsl.expected.ir.fxc.hlsl index 8b5affd51c7..9c17a84da6a 100644 --- a/test/tint/builtins/gen/var/acosh/5f49d8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/acosh/5f49d8.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000236ED89FE50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001AFA5E43E80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/acosh/a37dfe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acosh/a37dfe.wgsl.expected.fxc.hlsl index 52fdae154ed..869af68bcfc 100644 --- a/test/tint/builtins/gen/var/acosh/a37dfe.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/acosh/a37dfe.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ float16_t tint_acosh(float16_t x) { return log((x + sqrt(((x * x) - float16_t(1.0h))))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acosh_a37dfe() { +float16_t acosh_a37dfe() { float16_t arg_0 = float16_t(1.54296875h); float16_t res = tint_acosh(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acosh_a37dfe(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acosh_a37dfe(); + prevent_dce.Store(0u, acosh_a37dfe()); return; } [numthreads(1, 1, 1)] void compute_main() { - acosh_a37dfe(); + prevent_dce.Store(0u, acosh_a37dfe()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acosh_a37dfe(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000185A6C64F90(1,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/acosh/a37dfe.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/acosh/a37dfe.wgsl.expected.ir.fxc.hlsl index 7c813ff465b..4e4ac42ef8c 100644 --- a/test/tint/builtins/gen/var/acosh/a37dfe.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/acosh/a37dfe.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002D19E5905D0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002B98FD238A0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/acosh/de60d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acosh/de60d8.wgsl.expected.fxc.hlsl index 248a0d6d028..f7dabf806b9 100644 --- a/test/tint/builtins/gen/var/acosh/de60d8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/acosh/de60d8.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_acosh(vector x) { return log((x + sqrt(((x * x) - float16_t(1.0h))))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acosh_de60d8() { +vector acosh_de60d8() { vector arg_0 = (float16_t(1.54296875h)).xxxx; vector res = tint_acosh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acosh_de60d8(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acosh_de60d8(); + prevent_dce.Store >(0u, acosh_de60d8()); return; } [numthreads(1, 1, 1)] void compute_main() { - acosh_de60d8(); + prevent_dce.Store >(0u, acosh_de60d8()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acosh_de60d8(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020C15B764C0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/acosh/de60d8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/acosh/de60d8.wgsl.expected.ir.fxc.hlsl index 20bb1765e4c..9155c7e08fd 100644 --- a/test/tint/builtins/gen/var/acosh/de60d8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/acosh/de60d8.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002363062FBA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020CFC0D56E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/acosh/f56574.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/acosh/f56574.wgsl.expected.fxc.hlsl index 56b75d94d04..ceb67729909 100644 --- a/test/tint/builtins/gen/var/acosh/f56574.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/acosh/f56574.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_acosh(vector x) { return log((x + sqrt(((x * x) - float16_t(1.0h))))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void acosh_f56574() { +vector acosh_f56574() { vector arg_0 = (float16_t(1.54296875h)).xxx; vector res = tint_acosh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - acosh_f56574(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - acosh_f56574(); + prevent_dce.Store >(0u, acosh_f56574()); return; } [numthreads(1, 1, 1)] void compute_main() { - acosh_f56574(); + prevent_dce.Store >(0u, acosh_f56574()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = acosh_f56574(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021EEC189F90(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/acosh/f56574.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/acosh/f56574.wgsl.expected.ir.fxc.hlsl index 91fa479d50f..04599e34f07 100644 --- a/test/tint/builtins/gen/var/acosh/f56574.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/acosh/f56574.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A6217FD8E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002BF741E4770(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/asin/11dfda.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asin/11dfda.wgsl.expected.fxc.hlsl index 2aab20684e1..f6199a44561 100644 --- a/test/tint/builtins/gen/var/asin/11dfda.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/asin/11dfda.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asin_11dfda() { +float16_t asin_11dfda() { float16_t arg_0 = float16_t(0.479248046875h); float16_t res = asin(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asin_11dfda(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asin_11dfda(); + prevent_dce.Store(0u, asin_11dfda()); return; } [numthreads(1, 1, 1)] void compute_main() { - asin_11dfda(); + prevent_dce.Store(0u, asin_11dfda()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asin_11dfda(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000164C2CC60C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/asin/11dfda.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/asin/11dfda.wgsl.expected.ir.fxc.hlsl index add12da1ae9..13d91c020da 100644 --- a/test/tint/builtins/gen/var/asin/11dfda.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/asin/11dfda.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021CD7D6F940(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000193F25238F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/asin/2d8e29.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asin/2d8e29.wgsl.expected.fxc.hlsl index 62de5340cb0..df9dac4601f 100644 --- a/test/tint/builtins/gen/var/asin/2d8e29.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/asin/2d8e29.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asin_2d8e29() { +vector asin_2d8e29() { vector arg_0 = (float16_t(0.479248046875h)).xxx; vector res = asin(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asin_2d8e29(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asin_2d8e29(); + prevent_dce.Store >(0u, asin_2d8e29()); return; } [numthreads(1, 1, 1)] void compute_main() { - asin_2d8e29(); + prevent_dce.Store >(0u, asin_2d8e29()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asin_2d8e29(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A261088FF0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/asin/2d8e29.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/asin/2d8e29.wgsl.expected.ir.fxc.hlsl index c3548dd7919..65cff7ee8c0 100644 --- a/test/tint/builtins/gen/var/asin/2d8e29.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/asin/2d8e29.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019C93E4F770(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028E79308F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/asin/3cfbd4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asin/3cfbd4.wgsl.expected.fxc.hlsl index c35ae1409af..f7b5ff798e2 100644 --- a/test/tint/builtins/gen/var/asin/3cfbd4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/asin/3cfbd4.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asin_3cfbd4() { +vector asin_3cfbd4() { vector arg_0 = (float16_t(0.479248046875h)).xxxx; vector res = asin(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asin_3cfbd4(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asin_3cfbd4(); + prevent_dce.Store >(0u, asin_3cfbd4()); return; } [numthreads(1, 1, 1)] void compute_main() { - asin_3cfbd4(); + prevent_dce.Store >(0u, asin_3cfbd4()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asin_3cfbd4(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000263146264C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/asin/3cfbd4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/asin/3cfbd4.wgsl.expected.ir.fxc.hlsl index e14e96bf519..e46fe6d3993 100644 --- a/test/tint/builtins/gen/var/asin/3cfbd4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/asin/3cfbd4.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025F2793FD50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017874D84E70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/asin/b4aced.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asin/b4aced.wgsl.expected.fxc.hlsl index 59476ed7447..3d65519e2e2 100644 --- a/test/tint/builtins/gen/var/asin/b4aced.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/asin/b4aced.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asin_b4aced() { +vector asin_b4aced() { vector arg_0 = (float16_t(0.479248046875h)).xx; vector res = asin(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asin_b4aced(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asin_b4aced(); + prevent_dce.Store >(0u, asin_b4aced()); return; } [numthreads(1, 1, 1)] void compute_main() { - asin_b4aced(); + prevent_dce.Store >(0u, asin_b4aced()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asin_b4aced(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001EF7EB766C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/asin/b4aced.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/asin/b4aced.wgsl.expected.ir.fxc.hlsl index 49cf4fb4278..c5bc5650a55 100644 --- a/test/tint/builtins/gen/var/asin/b4aced.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/asin/b4aced.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023786800360(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D89EAF5980(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/asinh/468a48.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asinh/468a48.wgsl.expected.fxc.hlsl index d5de8b63e35..5466789fa7b 100644 --- a/test/tint/builtins/gen/var/asinh/468a48.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/asinh/468a48.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ float16_t tint_sinh(float16_t x) { return log((x + sqrt(((x * x) + float16_t(1.0h))))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asinh_468a48() { +float16_t asinh_468a48() { float16_t arg_0 = float16_t(1.0h); float16_t res = tint_sinh(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asinh_468a48(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asinh_468a48(); + prevent_dce.Store(0u, asinh_468a48()); return; } [numthreads(1, 1, 1)] void compute_main() { - asinh_468a48(); + prevent_dce.Store(0u, asinh_468a48()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asinh_468a48(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000014271E760C0(1,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/asinh/468a48.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/asinh/468a48.wgsl.expected.ir.fxc.hlsl index 7b7733f8493..24e38385e1a 100644 --- a/test/tint/builtins/gen/var/asinh/468a48.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/asinh/468a48.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029F4CB1FDE0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000023E453238B0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/asinh/95ab2b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asinh/95ab2b.wgsl.expected.fxc.hlsl index c86d1d16e40..b6bc11bfcdc 100644 --- a/test/tint/builtins/gen/var/asinh/95ab2b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/asinh/95ab2b.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_sinh(vector x) { return log((x + sqrt(((x * x) + float16_t(1.0h))))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asinh_95ab2b() { +vector asinh_95ab2b() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = tint_sinh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asinh_95ab2b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asinh_95ab2b(); + prevent_dce.Store >(0u, asinh_95ab2b()); return; } [numthreads(1, 1, 1)] void compute_main() { - asinh_95ab2b(); + prevent_dce.Store >(0u, asinh_95ab2b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asinh_95ab2b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000232D918D390(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/asinh/95ab2b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/asinh/95ab2b.wgsl.expected.ir.fxc.hlsl index 07455e8682c..e5df9e34596 100644 --- a/test/tint/builtins/gen/var/asinh/95ab2b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/asinh/95ab2b.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001414F4C5FC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002439BD265F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/asinh/ad8f8b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asinh/ad8f8b.wgsl.expected.fxc.hlsl index 8973e5a113a..9acc7a92b30 100644 --- a/test/tint/builtins/gen/var/asinh/ad8f8b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/asinh/ad8f8b.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_sinh(vector x) { return log((x + sqrt(((x * x) + float16_t(1.0h))))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asinh_ad8f8b() { +vector asinh_ad8f8b() { vector arg_0 = (float16_t(1.0h)).xx; vector res = tint_sinh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asinh_ad8f8b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asinh_ad8f8b(); + prevent_dce.Store >(0u, asinh_ad8f8b()); return; } [numthreads(1, 1, 1)] void compute_main() { - asinh_ad8f8b(); + prevent_dce.Store >(0u, asinh_ad8f8b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asinh_ad8f8b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000015C705F8E50(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/asinh/ad8f8b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/asinh/ad8f8b.wgsl.expected.ir.fxc.hlsl index d493c5abce5..3caf6455ab9 100644 --- a/test/tint/builtins/gen/var/asinh/ad8f8b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/asinh/ad8f8b.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CE1A1C5F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000218E9244EC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/asinh/fb5e8c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/asinh/fb5e8c.wgsl.expected.fxc.hlsl index 907a61c9265..60677b19480 100644 --- a/test/tint/builtins/gen/var/asinh/fb5e8c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/asinh/fb5e8c.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_sinh(vector x) { return log((x + sqrt(((x * x) + float16_t(1.0h))))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void asinh_fb5e8c() { +vector asinh_fb5e8c() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = tint_sinh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - asinh_fb5e8c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - asinh_fb5e8c(); + prevent_dce.Store >(0u, asinh_fb5e8c()); return; } [numthreads(1, 1, 1)] void compute_main() { - asinh_fb5e8c(); + prevent_dce.Store >(0u, asinh_fb5e8c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = asinh_fb5e8c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002B8A6AE8E50(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/asinh/fb5e8c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/asinh/fb5e8c.wgsl.expected.ir.fxc.hlsl index d51b2cefd00..bdfa24950a9 100644 --- a/test/tint/builtins/gen/var/asinh/fb5e8c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/asinh/fb5e8c.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B43EDFE6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000234906E8F80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/atan/19faea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan/19faea.wgsl.expected.fxc.hlsl index 37261bebb58..4a5096414d8 100644 --- a/test/tint/builtins/gen/var/atan/19faea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan/19faea.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan_19faea() { +vector atan_19faea() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = atan(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan_19faea(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan_19faea(); + prevent_dce.Store >(0u, atan_19faea()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan_19faea(); + prevent_dce.Store >(0u, atan_19faea()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan_19faea(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000011BF17564F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/atan/19faea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atan/19faea.wgsl.expected.ir.fxc.hlsl index ec8dfa583c3..3a4ba8f08d4 100644 --- a/test/tint/builtins/gen/var/atan/19faea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan/19faea.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000187D4C9F4D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014A259A8F80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/atan/1e1764.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan/1e1764.wgsl.expected.fxc.hlsl index 1fa2af3bbac..0f225554aa7 100644 --- a/test/tint/builtins/gen/var/atan/1e1764.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan/1e1764.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan_1e1764() { +vector atan_1e1764() { vector arg_0 = (float16_t(1.0h)).xx; vector res = atan(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan_1e1764(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan_1e1764(); + prevent_dce.Store >(0u, atan_1e1764()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan_1e1764(); + prevent_dce.Store >(0u, atan_1e1764()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan_1e1764(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001988E795750(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/atan/1e1764.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atan/1e1764.wgsl.expected.ir.fxc.hlsl index 9a972967d68..6aa5be5dc1b 100644 --- a/test/tint/builtins/gen/var/atan/1e1764.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan/1e1764.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A323BC0090(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FFFF47E230(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/atan/a5f421.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan/a5f421.wgsl.expected.fxc.hlsl index e758018eeea..1efe5fa0df0 100644 --- a/test/tint/builtins/gen/var/atan/a5f421.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan/a5f421.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan_a5f421() { +vector atan_a5f421() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = atan(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan_a5f421(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan_a5f421(); + prevent_dce.Store >(0u, atan_a5f421()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan_a5f421(); + prevent_dce.Store >(0u, atan_a5f421()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan_a5f421(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D8BA7F5750(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/atan/a5f421.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atan/a5f421.wgsl.expected.ir.fxc.hlsl index c33302744ca..b82e52be447 100644 --- a/test/tint/builtins/gen/var/atan/a5f421.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan/a5f421.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024EBAFE0460(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C97E2D5970(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/atan/a7ba61.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan/a7ba61.wgsl.expected.fxc.hlsl index 66037780621..156d374db04 100644 --- a/test/tint/builtins/gen/var/atan/a7ba61.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan/a7ba61.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan_a7ba61() { +float16_t atan_a7ba61() { float16_t arg_0 = float16_t(1.0h); float16_t res = atan(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan_a7ba61(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan_a7ba61(); + prevent_dce.Store(0u, atan_a7ba61()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan_a7ba61(); + prevent_dce.Store(0u, atan_a7ba61()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan_a7ba61(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000026DB00460F0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/atan/a7ba61.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atan/a7ba61.wgsl.expected.ir.fxc.hlsl index 71d9b752f28..f1e4a7f25f2 100644 --- a/test/tint/builtins/gen/var/atan/a7ba61.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan/a7ba61.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002234182E880(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022180BCBFC0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/atan2/21dfea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan2/21dfea.wgsl.expected.fxc.hlsl index 94342e45d97..5e6001d4671 100644 --- a/test/tint/builtins/gen/var/atan2/21dfea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan2/21dfea.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan2_21dfea() { +vector atan2_21dfea() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector res = atan2(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan2_21dfea(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan2_21dfea(); + prevent_dce.Store >(0u, atan2_21dfea()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan2_21dfea(); + prevent_dce.Store >(0u, atan2_21dfea()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan2_21dfea(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002032A58D3F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/atan2/21dfea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atan2/21dfea.wgsl.expected.ir.fxc.hlsl index cb45ce6b609..a647feb4405 100644 --- a/test/tint/builtins/gen/var/atan2/21dfea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan2/21dfea.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029B5026F330(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E5B89646D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/atan2/93febc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan2/93febc.wgsl.expected.fxc.hlsl index 64a185ee892..7b5a12df065 100644 --- a/test/tint/builtins/gen/var/atan2/93febc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan2/93febc.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan2_93febc() { +vector atan2_93febc() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; vector res = atan2(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan2_93febc(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan2_93febc(); + prevent_dce.Store >(0u, atan2_93febc()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan2_93febc(); + prevent_dce.Store >(0u, atan2_93febc()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan2_93febc(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020A089A9260(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/atan2/93febc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atan2/93febc.wgsl.expected.ir.fxc.hlsl index fa05d3c6571..11bee61647d 100644 --- a/test/tint/builtins/gen/var/atan2/93febc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan2/93febc.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028F6EBA5FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020AC146B800(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/atan2/ca698e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan2/ca698e.wgsl.expected.fxc.hlsl index 0046f93d1e4..5bfac61ce90 100644 --- a/test/tint/builtins/gen/var/atan2/ca698e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan2/ca698e.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan2_ca698e() { +float16_t atan2_ca698e() { float16_t arg_0 = float16_t(1.0h); float16_t arg_1 = float16_t(1.0h); float16_t res = atan2(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan2_ca698e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan2_ca698e(); + prevent_dce.Store(0u, atan2_ca698e()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan2_ca698e(); + prevent_dce.Store(0u, atan2_ca698e()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan2_ca698e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000019CA6CD5740(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/atan2/ca698e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atan2/ca698e.wgsl.expected.ir.fxc.hlsl index 18ecc2599ce..257372794db 100644 --- a/test/tint/builtins/gen/var/atan2/ca698e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan2/ca698e.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027E7570EEC0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000027490514DC0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/atan2/d983ab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atan2/d983ab.wgsl.expected.fxc.hlsl index 85516dd5aeb..480ec242df1 100644 --- a/test/tint/builtins/gen/var/atan2/d983ab.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan2/d983ab.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atan2_d983ab() { +vector atan2_d983ab() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; vector res = atan2(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atan2_d983ab(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atan2_d983ab(); + prevent_dce.Store >(0u, atan2_d983ab()); return; } [numthreads(1, 1, 1)] void compute_main() { - atan2_d983ab(); + prevent_dce.Store >(0u, atan2_d983ab()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atan2_d983ab(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D8571E9260(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/atan2/d983ab.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atan2/d983ab.wgsl.expected.ir.fxc.hlsl index 7dc2d045edf..b1591255ee5 100644 --- a/test/tint/builtins/gen/var/atan2/d983ab.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atan2/d983ab.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EE61FAFF30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D2634DCF50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/atanh/5bf88d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atanh/5bf88d.wgsl.expected.fxc.hlsl index 099ba25e74c..49d6f46c7ab 100644 --- a/test/tint/builtins/gen/var/atanh/5bf88d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atanh/5bf88d.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_atanh(vector x) { return (log(((float16_t(1.0h) + x) / (float16_t(1.0h) - x))) * float16_t(0.5h)); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atanh_5bf88d() { +vector atanh_5bf88d() { vector arg_0 = (float16_t(0.5h)).xx; vector res = tint_atanh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atanh_5bf88d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atanh_5bf88d(); + prevent_dce.Store >(0u, atanh_5bf88d()); return; } [numthreads(1, 1, 1)] void compute_main() { - atanh_5bf88d(); + prevent_dce.Store >(0u, atanh_5bf88d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atanh_5bf88d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000011BAEDCD390(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/atanh/5bf88d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atanh/5bf88d.wgsl.expected.ir.fxc.hlsl index e0d5edf05fe..4979edc6226 100644 --- a/test/tint/builtins/gen/var/atanh/5bf88d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atanh/5bf88d.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ECD3085FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029E2A3D4300(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/atanh/d2d8cd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atanh/d2d8cd.wgsl.expected.fxc.hlsl index 82825aac0e6..55ac6c2a190 100644 --- a/test/tint/builtins/gen/var/atanh/d2d8cd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atanh/d2d8cd.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ float16_t tint_atanh(float16_t x) { return (log(((float16_t(1.0h) + x) / (float16_t(1.0h) - x))) * float16_t(0.5h)); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atanh_d2d8cd() { +float16_t atanh_d2d8cd() { float16_t arg_0 = float16_t(0.5h); float16_t res = tint_atanh(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atanh_d2d8cd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atanh_d2d8cd(); + prevent_dce.Store(0u, atanh_d2d8cd()); return; } [numthreads(1, 1, 1)] void compute_main() { - atanh_d2d8cd(); + prevent_dce.Store(0u, atanh_d2d8cd()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atanh_d2d8cd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B697198420(1,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/atanh/d2d8cd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atanh/d2d8cd.wgsl.expected.ir.fxc.hlsl index 5054f75998e..d716a97adc5 100644 --- a/test/tint/builtins/gen/var/atanh/d2d8cd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atanh/d2d8cd.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C59B98F440(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000166FE4D4570(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/atanh/e3b450.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atanh/e3b450.wgsl.expected.fxc.hlsl index 74200378a72..5abe350c4af 100644 --- a/test/tint/builtins/gen/var/atanh/e3b450.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atanh/e3b450.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_atanh(vector x) { return (log(((float16_t(1.0h) + x) / (float16_t(1.0h) - x))) * float16_t(0.5h)); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atanh_e3b450() { +vector atanh_e3b450() { vector arg_0 = (float16_t(0.5h)).xxxx; vector res = tint_atanh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atanh_e3b450(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atanh_e3b450(); + prevent_dce.Store >(0u, atanh_e3b450()); return; } [numthreads(1, 1, 1)] void compute_main() { - atanh_e3b450(); + prevent_dce.Store >(0u, atanh_e3b450()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atanh_e3b450(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F6BA5C64F0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/atanh/e3b450.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atanh/e3b450.wgsl.expected.ir.fxc.hlsl index 600303f89e8..e0aaa99663e 100644 --- a/test/tint/builtins/gen/var/atanh/e3b450.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atanh/e3b450.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A91BB75060(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000015924F456C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/atanh/ec4b06.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/atanh/ec4b06.wgsl.expected.fxc.hlsl index a547f07100f..b5e2efef331 100644 --- a/test/tint/builtins/gen/var/atanh/ec4b06.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/atanh/ec4b06.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_atanh(vector x) { return (log(((float16_t(1.0h) + x) / (float16_t(1.0h) - x))) * float16_t(0.5h)); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void atanh_ec4b06() { +vector atanh_ec4b06() { vector arg_0 = (float16_t(0.5h)).xxx; vector res = tint_atanh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - atanh_ec4b06(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - atanh_ec4b06(); + prevent_dce.Store >(0u, atanh_ec4b06()); return; } [numthreads(1, 1, 1)] void compute_main() { - atanh_ec4b06(); + prevent_dce.Store >(0u, atanh_ec4b06()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = atanh_ec4b06(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000014E5B00FD80(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/atanh/ec4b06.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/atanh/ec4b06.wgsl.expected.ir.fxc.hlsl index cb0f6187eea..49e62bc5295 100644 --- a/test/tint/builtins/gen/var/atanh/ec4b06.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/atanh/ec4b06.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017EA4BAA320(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CB5BC487D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.fxc.hlsl index c74bdd79010..af4f28e2efc 100644 --- a/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.fxc.hlsl @@ -1,41 +1,47 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_1df11f() { +vector bitcast_1df11f() { vector arg_0 = (float16_t(1.0h)).xx; vector res = arg_0; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_1df11f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_1df11f(); + prevent_dce.Store >(0u, bitcast_1df11f()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_1df11f(); + prevent_dce.Store >(0u, bitcast_1df11f()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_1df11f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000002286CC951D0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002286CC951D0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002286CC951D0(6,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000002929D116610(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.ir.fxc.hlsl index 2f7baf0df84..260436d8853 100644 --- a/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026F9F60ED30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020DC9B3D2E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.fxc.hlsl index 30c289ef7f0..f43befc4b9e 100644 --- a/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.fxc.hlsl @@ -5,42 +5,50 @@ int2 tint_bitcast_from_f16(vector src) { return asint(uint2((r.x & 0xffff) | ((r.y & 0xffff) << 16), (r.z & 0xffff) | ((r.w & 0xffff) << 16))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_214f23() { +int2 bitcast_214f23() { vector arg_0 = (float16_t(1.0h)).xxxx; int2 res = tint_bitcast_from_f16(arg_0); - prevent_dce.Store2(0u, asuint(res)); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_214f23(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_214f23(); + prevent_dce.Store2(0u, asuint(bitcast_214f23())); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_214f23(); + prevent_dce.Store2(0u, asuint(bitcast_214f23())); return; } + +struct VertexOutput { + float4 pos; + int2 prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int2 prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_214f23(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x0000028AA8921CC0(1,35-43): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000028AA8921CC0(2,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x0000028AA8921CC0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000001E77A2F6FB0(1,35-43): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E77A2F6FB0(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000001E77A2F6FB0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.ir.fxc.hlsl index 1d0ade31d05..8abfead8d14 100644 --- a/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.ir.fxc.hlsl @@ -49,7 +49,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018E63512F60(13,35-43): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000018E63512F60(14,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x0000018E63512F60(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000002436BD87FD0(13,35-43): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002436BD87FD0(14,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000002436BD87FD0(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.fxc.hlsl index eb7b57fb5f3..fb52173b8be 100644 --- a/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.fxc.hlsl @@ -5,42 +5,50 @@ float tint_bitcast_from_f16(vector src) { return asfloat(uint((r.x & 0xffff) | ((r.y & 0xffff) << 16))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_23c8bd() { +float bitcast_23c8bd() { vector arg_0 = (float16_t(1.0h)).xx; float res = tint_bitcast_from_f16(arg_0); - prevent_dce.Store(0u, asuint(res)); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_23c8bd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_23c8bd(); + prevent_dce.Store(0u, asuint(bitcast_23c8bd())); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_23c8bd(); + prevent_dce.Store(0u, asuint(bitcast_23c8bd())); return; } + +struct VertexOutput { + float4 pos; + float prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_23c8bd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000002397E150600(1,36-44): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002397E150600(2,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x000002397E150600(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000001DEEE3CA9B0(1,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DEEE3CA9B0(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000001DEEE3CA9B0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.ir.fxc.hlsl index d2a4a91b6ce..dcd716f944d 100644 --- a/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.ir.fxc.hlsl @@ -49,7 +49,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000014373483880(13,36-44): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000014373483880(14,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x0000014373483880(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x0000017980376610(13,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017980376610(14,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x0000017980376610(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.fxc.hlsl index 9797a78b50a..b1cd63660f1 100644 --- a/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.fxc.hlsl @@ -5,42 +5,50 @@ float2 tint_bitcast_from_f16(vector src) { return asfloat(uint2((r.x & 0xffff) | ((r.y & 0xffff) << 16), (r.z & 0xffff) | ((r.w & 0xffff) << 16))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_2a6e58() { +float2 bitcast_2a6e58() { vector arg_0 = (float16_t(1.0h)).xxxx; float2 res = tint_bitcast_from_f16(arg_0); - prevent_dce.Store2(0u, asuint(res)); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_2a6e58(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_2a6e58(); + prevent_dce.Store2(0u, asuint(bitcast_2a6e58())); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_2a6e58(); + prevent_dce.Store2(0u, asuint(bitcast_2a6e58())); return; } + +struct VertexOutput { + float4 pos; + float2 prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float2 prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_2a6e58(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000001DC4B661CC0(1,37-45): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001DC4B661CC0(2,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x000001DC4B661CC0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000001967DF75780(1,37-45): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001967DF75780(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000001967DF75780(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.ir.fxc.hlsl index b6eb48d0b47..51db5107b85 100644 --- a/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.ir.fxc.hlsl @@ -49,7 +49,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017D1BB5ED10(13,37-45): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000017D1BB5ED10(14,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x0000017D1BB5ED10(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x0000029A12C3BBD0(13,37-45): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029A12C3BBD0(14,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x0000029A12C3BBD0(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.fxc.hlsl index d513851eb45..a57a272fd3a 100644 --- a/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.fxc.hlsl @@ -1,41 +1,47 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_3e7b47() { +vector bitcast_3e7b47() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = arg_0; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_3e7b47(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_3e7b47(); + prevent_dce.Store >(0u, bitcast_3e7b47()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_3e7b47(); + prevent_dce.Store >(0u, bitcast_3e7b47()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_3e7b47(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000002727ADE51D0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002727ADE51D0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002727ADE51D0(6,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001B78F727F80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.ir.fxc.hlsl index 42a1151266f..f3c4e428a63 100644 --- a/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C77511F2E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014EECB365A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.fxc.hlsl index 7cc7a76845b..37d466e5e51 100644 --- a/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.fxc.hlsl @@ -7,40 +7,48 @@ vector tint_bitcast_to_f16(float2 src) { return vector(t_low.x, t_high.x, t_low.y, t_high.y); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_429d64() { +vector bitcast_429d64() { float2 arg_0 = (1.0f).xx; vector res = tint_bitcast_to_f16(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_429d64(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_429d64(); + prevent_dce.Store >(0u, bitcast_429d64()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_429d64(); + prevent_dce.Store >(0u, bitcast_429d64()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_429d64(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000001E7FB241CC0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001476EAA8E50(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.ir.fxc.hlsl index 4f8c3c7c4bb..ce852871ac2 100644 --- a/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.ir.fxc.hlsl @@ -56,5 +56,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D58208E710(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020B8D886630(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.fxc.hlsl index 1febfea7982..ad8c006caf4 100644 --- a/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.fxc.hlsl @@ -1,40 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_436211() { +float16_t bitcast_436211() { float16_t arg_0 = float16_t(1.0h); float16_t res = arg_0; - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_436211(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_436211(); + prevent_dce.Store(0u, bitcast_436211()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_436211(); + prevent_dce.Store(0u, bitcast_436211()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_436211(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000002296BCE02B0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000002296BCE02B0(4,13-17): error X3000: unrecognized identifier 'arg_0' +C:\src\dawn\Shader@0x0000024E0A72B7C0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.ir.fxc.hlsl index 09fe382e415..a8fae04f235 100644 --- a/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A371B0F7C0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000164505B38F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.fxc.hlsl index c1015723766..4314f60d80a 100644 --- a/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.fxc.hlsl @@ -1,41 +1,47 @@ SKIP: INVALID -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_5081ed() { +vector bitcast_5081ed() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = arg_0; - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_5081ed(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_5081ed(); + prevent_dce.Store >(0u, bitcast_5081ed()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_5081ed(); + prevent_dce.Store >(0u, bitcast_5081ed()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_5081ed(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x00000205CAE651D0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000205CAE651D0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000205CAE651D0(6,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001445AA15780(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.ir.fxc.hlsl index 739b76aff64..27b83a88769 100644 --- a/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000163671EF7F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FAF0A9F050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.fxc.hlsl index 0c176d50248..13d56f417e7 100644 --- a/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.fxc.hlsl @@ -7,40 +7,48 @@ vector tint_bitcast_to_f16(uint src) { return vector(t_low.x, t_high.x); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_66e93d() { +vector bitcast_66e93d() { uint arg_0 = 1u; vector res = tint_bitcast_to_f16(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_66e93d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_66e93d(); + prevent_dce.Store >(0u, bitcast_66e93d()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_66e93d(); + prevent_dce.Store >(0u, bitcast_66e93d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_66e93d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000002234AD11CC0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C52EB79860(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.ir.fxc.hlsl index 89ef6a66f53..5b90047ea77 100644 --- a/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.ir.fxc.hlsl @@ -52,5 +52,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028FBF48ED20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A90CF15750(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.fxc.hlsl index f7f9e2c871b..3cd5657ad31 100644 --- a/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.fxc.hlsl @@ -7,40 +7,48 @@ vector tint_bitcast_to_f16(int src) { return vector(t_low.x, t_high.x); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_674557() { +vector bitcast_674557() { int arg_0 = 1; vector res = tint_bitcast_to_f16(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_674557(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_674557(); + prevent_dce.Store >(0u, bitcast_674557()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_674557(); + prevent_dce.Store >(0u, bitcast_674557()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_674557(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x0000021A89C11CC0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B02B7665C0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.ir.fxc.hlsl index 79e275f1506..d3358b73c09 100644 --- a/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.ir.fxc.hlsl @@ -52,5 +52,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025697E55050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026D5698B6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.fxc.hlsl index bce0b26317d..8c3cf6f762c 100644 --- a/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.fxc.hlsl @@ -5,42 +5,50 @@ int tint_bitcast_from_f16(vector src) { return asint(uint((r.x & 0xffff) | ((r.y & 0xffff) << 16))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_6ac6f9() { +int bitcast_6ac6f9() { vector arg_0 = (float16_t(1.0h)).xx; int res = tint_bitcast_from_f16(arg_0); - prevent_dce.Store(0u, asuint(res)); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_6ac6f9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_6ac6f9(); + prevent_dce.Store(0u, asuint(bitcast_6ac6f9())); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_6ac6f9(); + prevent_dce.Store(0u, asuint(bitcast_6ac6f9())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_6ac6f9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000001E5909102B0(1,34-42): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001E5909102B0(2,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x000001E5909102B0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x0000024C8B965750(1,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024C8B965750(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x0000024C8B965750(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.ir.fxc.hlsl index 84a240ecb05..a05234efef9 100644 --- a/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.ir.fxc.hlsl @@ -49,7 +49,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000208C4C75F70(13,34-42): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000208C4C75F70(14,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x00000208C4C75F70(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x00000187F728A670(13,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000187F728A670(14,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x00000187F728A670(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.fxc.hlsl index d8436ae1712..2c0ef61722c 100644 --- a/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.fxc.hlsl @@ -7,40 +7,48 @@ vector tint_bitcast_to_f16(int2 src) { return vector(t_low.x, t_high.x, t_low.y, t_high.y); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_71c92a() { +vector bitcast_71c92a() { int2 arg_0 = (1).xx; vector res = tint_bitcast_to_f16(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_71c92a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_71c92a(); + prevent_dce.Store >(0u, bitcast_71c92a()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_71c92a(); + prevent_dce.Store >(0u, bitcast_71c92a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_71c92a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x0000022008B91CC0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C7D81F8F80(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.ir.fxc.hlsl index 57c3c0d8222..f476e66fb9d 100644 --- a/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.ir.fxc.hlsl @@ -56,5 +56,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BEF5CCE800(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002E08093B680(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.fxc.hlsl index 85d3271b091..07a83ac887b 100644 --- a/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.fxc.hlsl @@ -5,42 +5,50 @@ uint2 tint_bitcast_from_f16(vector src) { return asuint(uint2((r.x & 0xffff) | ((r.y & 0xffff) << 16), (r.z & 0xffff) | ((r.w & 0xffff) << 16))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_81c5f5() { +uint2 bitcast_81c5f5() { vector arg_0 = (float16_t(1.0h)).xxxx; uint2 res = tint_bitcast_from_f16(arg_0); - prevent_dce.Store2(0u, asuint(res)); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_81c5f5(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_81c5f5(); + prevent_dce.Store2(0u, asuint(bitcast_81c5f5())); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_81c5f5(); + prevent_dce.Store2(0u, asuint(bitcast_81c5f5())); return; } + +struct VertexOutput { + float4 pos; + uint2 prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation uint2 prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_81c5f5(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x0000016B28511CC0(1,36-44): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000016B28511CC0(2,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x0000016B28511CC0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000002C8923B6510(1,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002C8923B6510(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000002C8923B6510(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.ir.fxc.hlsl index 6bdb67928dc..29077124b1a 100644 --- a/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.ir.fxc.hlsl @@ -49,7 +49,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000240FA53EBC0(13,36-44): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000240FA53EBC0(14,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x00000240FA53EBC0(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x00000155C56EAC60(13,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000155C56EAC60(14,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x00000155C56EAC60(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.fxc.hlsl index 78dbe73e628..2dd36a33741 100644 --- a/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.fxc.hlsl @@ -7,40 +7,48 @@ vector tint_bitcast_to_f16(float src) { return vector(t_low.x, t_high.x); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_9ca42c() { +vector bitcast_9ca42c() { float arg_0 = 1.0f; vector res = tint_bitcast_to_f16(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_9ca42c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_9ca42c(); + prevent_dce.Store >(0u, bitcast_9ca42c()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_9ca42c(); + prevent_dce.Store >(0u, bitcast_9ca42c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_9ca42c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x0000025E98171CC0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001830A768E50(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.ir.fxc.hlsl index de6d64ba627..6c7ffce0a34 100644 --- a/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.ir.fxc.hlsl @@ -52,5 +52,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ED318AEFC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024BB4E450E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.fxc.hlsl index 9ba1896e087..de9610c40a4 100644 --- a/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.fxc.hlsl @@ -5,42 +5,50 @@ uint tint_bitcast_from_f16(vector src) { return asuint(uint((r.x & 0xffff) | ((r.y & 0xffff) << 16))); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_a58b50() { +uint bitcast_a58b50() { vector arg_0 = (float16_t(1.0h)).xx; uint res = tint_bitcast_from_f16(arg_0); - prevent_dce.Store(0u, asuint(res)); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_a58b50(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_a58b50(); + prevent_dce.Store(0u, asuint(bitcast_a58b50())); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_a58b50(); + prevent_dce.Store(0u, asuint(bitcast_a58b50())); return; } + +struct VertexOutput { + float4 pos; + uint prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation uint prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_a58b50(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000001DC1BC302B0(1,35-43): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001DC1BC302B0(2,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x000001DC1BC302B0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000001D09B2D4F70(1,35-43): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D09B2D4F70(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000001D09B2D4F70(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.ir.fxc.hlsl index 3d5233cc78d..ac8a6cf1e60 100644 --- a/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.ir.fxc.hlsl @@ -49,7 +49,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002280F2FEF50(13,35-43): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002280F2FEF50(14,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x000002280F2FEF50(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000001F7AE926690(13,35-43): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F7AE926690(14,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000001F7AE926690(14,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.fxc.hlsl index 4c8065d331d..f25a08d78ad 100644 --- a/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.fxc.hlsl @@ -7,40 +7,48 @@ vector tint_bitcast_to_f16(uint2 src) { return vector(t_low.x, t_high.x, t_low.y, t_high.y); } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void bitcast_bc3994() { +vector bitcast_bc3994() { uint2 arg_0 = (1u).xx; vector res = tint_bitcast_to_f16(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - bitcast_bc3994(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - bitcast_bc3994(); + prevent_dce.Store >(0u, bitcast_bc3994()); return; } [numthreads(1, 1, 1)] void compute_main() { - bitcast_bc3994(); + prevent_dce.Store >(0u, bitcast_bc3994()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = bitcast_bc3994(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} FXC validation failure: -C:\src\dawn\Shader@0x000001C583CA1CC0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DA64785780(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.ir.fxc.hlsl index 3292702a07e..6b53b750ae7 100644 --- a/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.ir.fxc.hlsl @@ -56,5 +56,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002191EF65050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017D15D95100(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/ceil/09bf52.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ceil/09bf52.wgsl.expected.fxc.hlsl index 189a30c7372..aabe6801681 100644 --- a/test/tint/builtins/gen/var/ceil/09bf52.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ceil/09bf52.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ceil_09bf52() { +vector ceil_09bf52() { vector arg_0 = (float16_t(1.5h)).xxx; vector res = ceil(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ceil_09bf52(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ceil_09bf52(); + prevent_dce.Store >(0u, ceil_09bf52()); return; } [numthreads(1, 1, 1)] void compute_main() { - ceil_09bf52(); + prevent_dce.Store >(0u, ceil_09bf52()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ceil_09bf52(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D3A8285750(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/ceil/09bf52.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ceil/09bf52.wgsl.expected.ir.fxc.hlsl index 9973736c011..9dd044e442f 100644 --- a/test/tint/builtins/gen/var/ceil/09bf52.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ceil/09bf52.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AF4736F250(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E4C0E37FD0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/ceil/18c240.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ceil/18c240.wgsl.expected.fxc.hlsl index 3299498955e..2515295dfaa 100644 --- a/test/tint/builtins/gen/var/ceil/18c240.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ceil/18c240.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ceil_18c240() { +vector ceil_18c240() { vector arg_0 = (float16_t(1.5h)).xx; vector res = ceil(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ceil_18c240(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ceil_18c240(); + prevent_dce.Store >(0u, ceil_18c240()); return; } [numthreads(1, 1, 1)] void compute_main() { - ceil_18c240(); + prevent_dce.Store >(0u, ceil_18c240()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ceil_18c240(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000240480863F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/ceil/18c240.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ceil/18c240.wgsl.expected.ir.fxc.hlsl index 6b8cc8ccf75..700595ea974 100644 --- a/test/tint/builtins/gen/var/ceil/18c240.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ceil/18c240.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023C8A2E7070(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022E0F4D8F20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/ceil/4bca2a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ceil/4bca2a.wgsl.expected.fxc.hlsl index a59760b66d8..88e3b3de48d 100644 --- a/test/tint/builtins/gen/var/ceil/4bca2a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ceil/4bca2a.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ceil_4bca2a() { +vector ceil_4bca2a() { vector arg_0 = (float16_t(1.5h)).xxxx; vector res = ceil(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ceil_4bca2a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ceil_4bca2a(); + prevent_dce.Store >(0u, ceil_4bca2a()); return; } [numthreads(1, 1, 1)] void compute_main() { - ceil_4bca2a(); + prevent_dce.Store >(0u, ceil_4bca2a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ceil_4bca2a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000174D8A69AB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/ceil/4bca2a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ceil/4bca2a.wgsl.expected.ir.fxc.hlsl index b0ffd2cb7a2..6f0e61a83ee 100644 --- a/test/tint/builtins/gen/var/ceil/4bca2a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ceil/4bca2a.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001607D96ED30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000277D0045230(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/ceil/f3f889.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ceil/f3f889.wgsl.expected.fxc.hlsl index e28f1a5c3b1..4ac4149d04c 100644 --- a/test/tint/builtins/gen/var/ceil/f3f889.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ceil/f3f889.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ceil_f3f889() { +float16_t ceil_f3f889() { float16_t arg_0 = float16_t(1.5h); float16_t res = ceil(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ceil_f3f889(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ceil_f3f889(); + prevent_dce.Store(0u, ceil_f3f889()); return; } [numthreads(1, 1, 1)] void compute_main() { - ceil_f3f889(); + prevent_dce.Store(0u, ceil_f3f889()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ceil_f3f889(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000276553F6C30(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/ceil/f3f889.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ceil/f3f889.wgsl.expected.ir.fxc.hlsl index b45653b8ca4..3fc52f54790 100644 --- a/test/tint/builtins/gen/var/ceil/f3f889.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ceil/f3f889.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000263A1BA0180(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C80745A220(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/clamp/235b29.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/235b29.wgsl.expected.fxc.hlsl index 2c3f9cf488b..0118befa45d 100644 --- a/test/tint/builtins/gen/var/clamp/235b29.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/clamp/235b29.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void clamp_235b29() { +vector clamp_235b29() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; vector arg_2 = (float16_t(1.0h)).xx; vector res = clamp(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - clamp_235b29(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - clamp_235b29(); + prevent_dce.Store >(0u, clamp_235b29()); return; } [numthreads(1, 1, 1)] void compute_main() { - clamp_235b29(); + prevent_dce.Store >(0u, clamp_235b29()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = clamp_235b29(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E6625B9410(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/clamp/235b29.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/clamp/235b29.wgsl.expected.ir.fxc.hlsl index 82fd0703f6b..7ad9c76b066 100644 --- a/test/tint/builtins/gen/var/clamp/235b29.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/clamp/235b29.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E5409960A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025142A44FB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/clamp/2c251b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/2c251b.wgsl.expected.fxc.hlsl index 1ebf0b00fcd..33b88927f7f 100644 --- a/test/tint/builtins/gen/var/clamp/2c251b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/clamp/2c251b.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void clamp_2c251b() { +vector clamp_2c251b() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; vector arg_2 = (float16_t(1.0h)).xxxx; vector res = clamp(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - clamp_2c251b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - clamp_2c251b(); + prevent_dce.Store >(0u, clamp_2c251b()); return; } [numthreads(1, 1, 1)] void compute_main() { - clamp_2c251b(); + prevent_dce.Store >(0u, clamp_2c251b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = clamp_2c251b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001DDB70B6580(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/clamp/2c251b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/clamp/2c251b.wgsl.expected.ir.fxc.hlsl index 18f750ebb76..0997cab2c44 100644 --- a/test/tint/builtins/gen/var/clamp/2c251b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/clamp/2c251b.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016DCD3E0970(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025328394D00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/clamp/553ffb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/553ffb.wgsl.expected.fxc.hlsl index ac4f6eb787a..ba64ad31df8 100644 --- a/test/tint/builtins/gen/var/clamp/553ffb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/clamp/553ffb.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void clamp_553ffb() { +float16_t clamp_553ffb() { float16_t arg_0 = float16_t(1.0h); float16_t arg_1 = float16_t(1.0h); float16_t arg_2 = float16_t(1.0h); float16_t res = clamp(arg_0, arg_1, arg_2); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - clamp_553ffb(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - clamp_553ffb(); + prevent_dce.Store(0u, clamp_553ffb()); return; } [numthreads(1, 1, 1)] void compute_main() { - clamp_553ffb(); + prevent_dce.Store(0u, clamp_553ffb()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = clamp_553ffb(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000230F7A664C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/clamp/553ffb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/clamp/553ffb.wgsl.expected.ir.fxc.hlsl index c55db7256d8..ed27b9f7c8f 100644 --- a/test/tint/builtins/gen/var/clamp/553ffb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/clamp/553ffb.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C134940930(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001A14C895DE0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/clamp/b195eb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/clamp/b195eb.wgsl.expected.fxc.hlsl index 55894580199..c743eec9684 100644 --- a/test/tint/builtins/gen/var/clamp/b195eb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/clamp/b195eb.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void clamp_b195eb() { +vector clamp_b195eb() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector arg_2 = (float16_t(1.0h)).xxx; vector res = clamp(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - clamp_b195eb(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - clamp_b195eb(); + prevent_dce.Store >(0u, clamp_b195eb()); return; } [numthreads(1, 1, 1)] void compute_main() { - clamp_b195eb(); + prevent_dce.Store >(0u, clamp_b195eb()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = clamp_b195eb(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B5022065E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/clamp/b195eb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/clamp/b195eb.wgsl.expected.ir.fxc.hlsl index 1df9a93042b..aab4464ae01 100644 --- a/test/tint/builtins/gen/var/clamp/b195eb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/clamp/b195eb.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022E02BF0FC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000298872DB780(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/cos/0835a8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cos/0835a8.wgsl.expected.fxc.hlsl index 17ef763da7e..c6ceab1f7f1 100644 --- a/test/tint/builtins/gen/var/cos/0835a8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/cos/0835a8.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cos_0835a8() { +vector cos_0835a8() { vector arg_0 = (float16_t(0.0h)).xxx; vector res = cos(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cos_0835a8(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cos_0835a8(); + prevent_dce.Store >(0u, cos_0835a8()); return; } [numthreads(1, 1, 1)] void compute_main() { - cos_0835a8(); + prevent_dce.Store >(0u, cos_0835a8()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cos_0835a8(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002B58F636780(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/cos/0835a8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/cos/0835a8.wgsl.expected.ir.fxc.hlsl index 60b55981ec5..bd03e45d483 100644 --- a/test/tint/builtins/gen/var/cos/0835a8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/cos/0835a8.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018195015E50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000204A9982520(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/cos/0a89f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cos/0a89f7.wgsl.expected.fxc.hlsl index 17f76de662d..98be3a9660e 100644 --- a/test/tint/builtins/gen/var/cos/0a89f7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/cos/0a89f7.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cos_0a89f7() { +vector cos_0a89f7() { vector arg_0 = (float16_t(0.0h)).xxxx; vector res = cos(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cos_0a89f7(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cos_0a89f7(); + prevent_dce.Store >(0u, cos_0a89f7()); return; } [numthreads(1, 1, 1)] void compute_main() { - cos_0a89f7(); + prevent_dce.Store >(0u, cos_0a89f7()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cos_0a89f7(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025BDC91D370(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/cos/0a89f7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/cos/0a89f7.wgsl.expected.ir.fxc.hlsl index 6c2ce8fb29d..45f58fc72ff 100644 --- a/test/tint/builtins/gen/var/cos/0a89f7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/cos/0a89f7.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C1EFE9ED00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021642334F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/cos/5bc2c6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cos/5bc2c6.wgsl.expected.fxc.hlsl index ac593aa9471..c1eef5745ab 100644 --- a/test/tint/builtins/gen/var/cos/5bc2c6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/cos/5bc2c6.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cos_5bc2c6() { +vector cos_5bc2c6() { vector arg_0 = (float16_t(0.0h)).xx; vector res = cos(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cos_5bc2c6(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cos_5bc2c6(); + prevent_dce.Store >(0u, cos_5bc2c6()); return; } [numthreads(1, 1, 1)] void compute_main() { - cos_5bc2c6(); + prevent_dce.Store >(0u, cos_5bc2c6()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cos_5bc2c6(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000015526C95DF0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/cos/5bc2c6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/cos/5bc2c6.wgsl.expected.ir.fxc.hlsl index 53538261b07..199ff15bece 100644 --- a/test/tint/builtins/gen/var/cos/5bc2c6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/cos/5bc2c6.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002E2DDE5ED00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028DB8400B30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/cos/fc047d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cos/fc047d.wgsl.expected.fxc.hlsl index 65bef843045..d4b00dfde1e 100644 --- a/test/tint/builtins/gen/var/cos/fc047d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/cos/fc047d.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cos_fc047d() { +float16_t cos_fc047d() { float16_t arg_0 = float16_t(0.0h); float16_t res = cos(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cos_fc047d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cos_fc047d(); + prevent_dce.Store(0u, cos_fc047d()); return; } [numthreads(1, 1, 1)] void compute_main() { - cos_fc047d(); + prevent_dce.Store(0u, cos_fc047d()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cos_fc047d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002C92B765DF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/cos/fc047d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/cos/fc047d.wgsl.expected.ir.fxc.hlsl index ff0b06b2e56..6a033891df1 100644 --- a/test/tint/builtins/gen/var/cos/fc047d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/cos/fc047d.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000255EB515460(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000276238861A0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/cosh/2ed778.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cosh/2ed778.wgsl.expected.fxc.hlsl index 19dc5bd63d5..0682e1f1fc0 100644 --- a/test/tint/builtins/gen/var/cosh/2ed778.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/cosh/2ed778.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cosh_2ed778() { +float16_t cosh_2ed778() { float16_t arg_0 = float16_t(0.0h); float16_t res = cosh(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cosh_2ed778(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cosh_2ed778(); + prevent_dce.Store(0u, cosh_2ed778()); return; } [numthreads(1, 1, 1)] void compute_main() { - cosh_2ed778(); + prevent_dce.Store(0u, cosh_2ed778()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cosh_2ed778(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000277AD816120(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/cosh/2ed778.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/cosh/2ed778.wgsl.expected.ir.fxc.hlsl index 760c270f5c6..c8235cd339f 100644 --- a/test/tint/builtins/gen/var/cosh/2ed778.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/cosh/2ed778.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002F415A7FC10(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001BE54C838D0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/cosh/3b7bbf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cosh/3b7bbf.wgsl.expected.fxc.hlsl index 26510e6f2c2..e5fcd294b98 100644 --- a/test/tint/builtins/gen/var/cosh/3b7bbf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/cosh/3b7bbf.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cosh_3b7bbf() { +vector cosh_3b7bbf() { vector arg_0 = (float16_t(0.0h)).xxxx; vector res = cosh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cosh_3b7bbf(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cosh_3b7bbf(); + prevent_dce.Store >(0u, cosh_3b7bbf()); return; } [numthreads(1, 1, 1)] void compute_main() { - cosh_3b7bbf(); + prevent_dce.Store >(0u, cosh_3b7bbf()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cosh_3b7bbf(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000229581664C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/cosh/3b7bbf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/cosh/3b7bbf.wgsl.expected.ir.fxc.hlsl index 18647c661f2..d7bf41a8914 100644 --- a/test/tint/builtins/gen/var/cosh/3b7bbf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/cosh/3b7bbf.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002016236FFB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002AA2CDF9530(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/cosh/43b672.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cosh/43b672.wgsl.expected.fxc.hlsl index 1cffff7078d..3083851bc6f 100644 --- a/test/tint/builtins/gen/var/cosh/43b672.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/cosh/43b672.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cosh_43b672() { +vector cosh_43b672() { vector arg_0 = (float16_t(0.0h)).xx; vector res = cosh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cosh_43b672(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cosh_43b672(); + prevent_dce.Store >(0u, cosh_43b672()); return; } [numthreads(1, 1, 1)] void compute_main() { - cosh_43b672(); + prevent_dce.Store >(0u, cosh_43b672()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cosh_43b672(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021AB4706610(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/cosh/43b672.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/cosh/43b672.wgsl.expected.ir.fxc.hlsl index 3f48124efed..a94cb18b2d0 100644 --- a/test/tint/builtins/gen/var/cosh/43b672.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/cosh/43b672.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017920523B80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020FF60116E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/cosh/b1b8a0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cosh/b1b8a0.wgsl.expected.fxc.hlsl index 03bc142aab9..95a721039f0 100644 --- a/test/tint/builtins/gen/var/cosh/b1b8a0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/cosh/b1b8a0.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cosh_b1b8a0() { +vector cosh_b1b8a0() { vector arg_0 = (float16_t(0.0h)).xxx; vector res = cosh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cosh_b1b8a0(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cosh_b1b8a0(); + prevent_dce.Store >(0u, cosh_b1b8a0()); return; } [numthreads(1, 1, 1)] void compute_main() { - cosh_b1b8a0(); + prevent_dce.Store >(0u, cosh_b1b8a0()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cosh_b1b8a0(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002C04BF0FD80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/cosh/b1b8a0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/cosh/b1b8a0.wgsl.expected.ir.fxc.hlsl index 1c39e3e20c8..7490eea9bdb 100644 --- a/test/tint/builtins/gen/var/cosh/b1b8a0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/cosh/b1b8a0.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000191AFFE1660(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000161AF598F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/cross/9857cb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/cross/9857cb.wgsl.expected.fxc.hlsl index 00b2910133a..90e0891c5d3 100644 --- a/test/tint/builtins/gen/var/cross/9857cb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/cross/9857cb.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void cross_9857cb() { +vector cross_9857cb() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector res = cross(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - cross_9857cb(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - cross_9857cb(); + prevent_dce.Store >(0u, cross_9857cb()); return; } [numthreads(1, 1, 1)] void compute_main() { - cross_9857cb(); + prevent_dce.Store >(0u, cross_9857cb()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = cross_9857cb(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000018AD5F86620(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/cross/9857cb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/cross/9857cb.wgsl.expected.ir.fxc.hlsl index 9aa2f189adb..33627b09dd8 100644 --- a/test/tint/builtins/gen/var/cross/9857cb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/cross/9857cb.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BDD6575030(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000263F921B6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.fxc.hlsl index 32f84dcd013..6096237ce56 100644 --- a/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_degrees(vector param_0) { return param_0 * 57.29577951308232286465; } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void degrees_3055d3() { +vector degrees_3055d3() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = tint_degrees(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - degrees_3055d3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - degrees_3055d3(); + prevent_dce.Store >(0u, degrees_3055d3()); return; } [numthreads(1, 1, 1)] void compute_main() { - degrees_3055d3(); + prevent_dce.Store >(0u, degrees_3055d3()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = degrees_3055d3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021E71135FC0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.ir.fxc.hlsl index f1aade5ddb2..a6a956f9324 100644 --- a/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002E0B46EFBB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025E8DD448A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.fxc.hlsl index ab235974eac..7837df5480c 100644 --- a/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ float16_t tint_degrees(float16_t param_0) { return param_0 * 57.29577951308232286465; } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void degrees_5e9805() { +float16_t degrees_5e9805() { float16_t arg_0 = float16_t(1.0h); float16_t res = tint_degrees(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - degrees_5e9805(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - degrees_5e9805(); + prevent_dce.Store(0u, degrees_5e9805()); return; } [numthreads(1, 1, 1)] void compute_main() { - degrees_5e9805(); + prevent_dce.Store(0u, degrees_5e9805()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = degrees_5e9805(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001FE093CBEF0(1,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.ir.fxc.hlsl index 3bd131ecf3f..14ea6ade000 100644 --- a/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002048AE7FBC0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000027A9E364C70(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.fxc.hlsl index 59879a2752b..eaa0140ea3a 100644 --- a/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_degrees(vector param_0) { return param_0 * 57.29577951308232286465; } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void degrees_dfe8f4() { +vector degrees_dfe8f4() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = tint_degrees(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - degrees_dfe8f4(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - degrees_dfe8f4(); + prevent_dce.Store >(0u, degrees_dfe8f4()); return; } [numthreads(1, 1, 1)] void compute_main() { - degrees_dfe8f4(); + prevent_dce.Store >(0u, degrees_dfe8f4()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = degrees_dfe8f4(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000022CDDFA65C0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.ir.fxc.hlsl index d2e10589ddd..f55d5d93058 100644 --- a/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000272678867C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016AAF78B3E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.fxc.hlsl index dec4ccb331b..8de74049177 100644 --- a/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_degrees(vector param_0) { return param_0 * 57.29577951308232286465; } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void degrees_f59715() { +vector degrees_f59715() { vector arg_0 = (float16_t(1.0h)).xx; vector res = tint_degrees(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - degrees_f59715(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - degrees_f59715(); + prevent_dce.Store >(0u, degrees_f59715()); return; } [numthreads(1, 1, 1)] void compute_main() { - degrees_f59715(); + prevent_dce.Store >(0u, degrees_f59715()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = degrees_f59715(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002AA1C1DFE90(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.ir.fxc.hlsl index d3870e37f96..c3bd7c5a428 100644 --- a/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025F134AED10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BD87B05520(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/determinant/32bfde.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/determinant/32bfde.wgsl.expected.fxc.hlsl index 2e01c7a5075..709b8b02354 100644 --- a/test/tint/builtins/gen/var/determinant/32bfde.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/determinant/32bfde.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void determinant_32bfde() { +float16_t determinant_32bfde() { matrix arg_0 = matrix((float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx); float16_t res = determinant(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - determinant_32bfde(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - determinant_32bfde(); + prevent_dce.Store(0u, determinant_32bfde()); return; } [numthreads(1, 1, 1)] void compute_main() { - determinant_32bfde(); + prevent_dce.Store(0u, determinant_32bfde()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = determinant_32bfde(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000207D8938F80(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/determinant/32bfde.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/determinant/32bfde.wgsl.expected.ir.fxc.hlsl index 45d6e5c1ffc..be17111bd65 100644 --- a/test/tint/builtins/gen/var/determinant/32bfde.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/determinant/32bfde.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A192365070(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000021B88366220(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/determinant/d7c86f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/determinant/d7c86f.wgsl.expected.fxc.hlsl index a0f3431c3f2..3111c3afc01 100644 --- a/test/tint/builtins/gen/var/determinant/d7c86f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/determinant/d7c86f.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void determinant_d7c86f() { +float16_t determinant_d7c86f() { matrix arg_0 = matrix((float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx); float16_t res = determinant(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - determinant_d7c86f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - determinant_d7c86f(); + prevent_dce.Store(0u, determinant_d7c86f()); return; } [numthreads(1, 1, 1)] void compute_main() { - determinant_d7c86f(); + prevent_dce.Store(0u, determinant_d7c86f()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = determinant_d7c86f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001621EB757C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/determinant/d7c86f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/determinant/d7c86f.wgsl.expected.ir.fxc.hlsl index c67b66d41fd..6a26d4876ff 100644 --- a/test/tint/builtins/gen/var/determinant/d7c86f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/determinant/d7c86f.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D73F8B5060(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000017F9803B700(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/determinant/fc12a5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/determinant/fc12a5.wgsl.expected.fxc.hlsl index b31a601a02b..c35064ca45b 100644 --- a/test/tint/builtins/gen/var/determinant/fc12a5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/determinant/fc12a5.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void determinant_fc12a5() { +float16_t determinant_fc12a5() { matrix arg_0 = matrix((float16_t(1.0h)).xx, (float16_t(1.0h)).xx); float16_t res = determinant(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - determinant_fc12a5(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - determinant_fc12a5(); + prevent_dce.Store(0u, determinant_fc12a5()); return; } [numthreads(1, 1, 1)] void compute_main() { - determinant_fc12a5(); + prevent_dce.Store(0u, determinant_fc12a5()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = determinant_fc12a5(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002052D5B5770(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/determinant/fc12a5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/determinant/fc12a5.wgsl.expected.ir.fxc.hlsl index 187481600c9..1f22e2396ab 100644 --- a/test/tint/builtins/gen/var/determinant/fc12a5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/determinant/fc12a5.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000281B259E380(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000234D5616630(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/distance/7272f3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/distance/7272f3.wgsl.expected.fxc.hlsl index e9f331a5649..67364b967ef 100644 --- a/test/tint/builtins/gen/var/distance/7272f3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/distance/7272f3.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void distance_7272f3() { +float16_t distance_7272f3() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; float16_t res = distance(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - distance_7272f3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - distance_7272f3(); + prevent_dce.Store(0u, distance_7272f3()); return; } [numthreads(1, 1, 1)] void compute_main() { - distance_7272f3(); + prevent_dce.Store(0u, distance_7272f3()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = distance_7272f3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E8D813BA40(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/distance/7272f3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/distance/7272f3.wgsl.expected.ir.fxc.hlsl index c5493c6a8ff..bc5ad6eca03 100644 --- a/test/tint/builtins/gen/var/distance/7272f3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/distance/7272f3.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000144D9B0EE10(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000260E0C2E050(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/distance/7d201f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/distance/7d201f.wgsl.expected.fxc.hlsl index 6e8f92331af..44d986bfa84 100644 --- a/test/tint/builtins/gen/var/distance/7d201f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/distance/7d201f.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void distance_7d201f() { +float16_t distance_7d201f() { float16_t arg_0 = float16_t(1.0h); float16_t arg_1 = float16_t(1.0h); float16_t res = distance(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - distance_7d201f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - distance_7d201f(); + prevent_dce.Store(0u, distance_7d201f()); return; } [numthreads(1, 1, 1)] void compute_main() { - distance_7d201f(); + prevent_dce.Store(0u, distance_7d201f()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = distance_7d201f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B64B3B5A60(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/distance/7d201f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/distance/7d201f.wgsl.expected.ir.fxc.hlsl index baa021a3db1..fad9dcc496c 100644 --- a/test/tint/builtins/gen/var/distance/7d201f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/distance/7d201f.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C964535490(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001DA42834750(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/distance/892a5d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/distance/892a5d.wgsl.expected.fxc.hlsl index 7a85c0485b8..b2bdffd96cd 100644 --- a/test/tint/builtins/gen/var/distance/892a5d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/distance/892a5d.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void distance_892a5d() { +float16_t distance_892a5d() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; float16_t res = distance(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - distance_892a5d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - distance_892a5d(); + prevent_dce.Store(0u, distance_892a5d()); return; } [numthreads(1, 1, 1)] void compute_main() { - distance_892a5d(); + prevent_dce.Store(0u, distance_892a5d()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = distance_892a5d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002F35E8C4290(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/distance/892a5d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/distance/892a5d.wgsl.expected.ir.fxc.hlsl index 7f9b60fda6f..4f39fb00c76 100644 --- a/test/tint/builtins/gen/var/distance/892a5d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/distance/892a5d.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000208ACF9EB50(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002697A644730(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/distance/928fa0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/distance/928fa0.wgsl.expected.fxc.hlsl index ba84e32ef2d..a83292f72ec 100644 --- a/test/tint/builtins/gen/var/distance/928fa0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/distance/928fa0.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void distance_928fa0() { +float16_t distance_928fa0() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; float16_t res = distance(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - distance_928fa0(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - distance_928fa0(); + prevent_dce.Store(0u, distance_928fa0()); return; } [numthreads(1, 1, 1)] void compute_main() { - distance_928fa0(); + prevent_dce.Store(0u, distance_928fa0()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = distance_928fa0(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B6A41A5770(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/distance/928fa0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/distance/928fa0.wgsl.expected.ir.fxc.hlsl index 7a9cd160a20..c6e4b96b574 100644 --- a/test/tint/builtins/gen/var/distance/928fa0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/distance/928fa0.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000157B1D2EE30(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001D1C6004300(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/dot/8e40f1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/8e40f1.wgsl.expected.fxc.hlsl index 5dcb6194058..fc5eb1dad8f 100644 --- a/test/tint/builtins/gen/var/dot/8e40f1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/dot/8e40f1.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void dot_8e40f1() { +float16_t dot_8e40f1() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; float16_t res = dot(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - dot_8e40f1(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - dot_8e40f1(); + prevent_dce.Store(0u, dot_8e40f1()); return; } [numthreads(1, 1, 1)] void compute_main() { - dot_8e40f1(); + prevent_dce.Store(0u, dot_8e40f1()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = dot_8e40f1(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000010E36FEFC90(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/dot/8e40f1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/dot/8e40f1.wgsl.expected.ir.fxc.hlsl index ba16a8c56b5..8a6e6019833 100644 --- a/test/tint/builtins/gen/var/dot/8e40f1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/dot/8e40f1.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027CF44A2330(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000019E30B041D0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/dot/cd5a04.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/cd5a04.wgsl.expected.fxc.hlsl index 53945e15e2f..a4c049b85ad 100644 --- a/test/tint/builtins/gen/var/dot/cd5a04.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/dot/cd5a04.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void dot_cd5a04() { +float16_t dot_cd5a04() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; float16_t res = dot(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - dot_cd5a04(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - dot_cd5a04(); + prevent_dce.Store(0u, dot_cd5a04()); return; } [numthreads(1, 1, 1)] void compute_main() { - dot_cd5a04(); + prevent_dce.Store(0u, dot_cd5a04()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = dot_cd5a04(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F7D9B276C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/dot/cd5a04.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/dot/cd5a04.wgsl.expected.ir.fxc.hlsl index 1a286ec1df5..fa06d74680a 100644 --- a/test/tint/builtins/gen/var/dot/cd5a04.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/dot/cd5a04.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002895579E700(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000273BD08CC20(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/dot/d0d179.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/dot/d0d179.wgsl.expected.fxc.hlsl index cbac95ae1ff..a8806519ddf 100644 --- a/test/tint/builtins/gen/var/dot/d0d179.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/dot/d0d179.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void dot_d0d179() { +float16_t dot_d0d179() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; float16_t res = dot(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - dot_d0d179(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - dot_d0d179(); + prevent_dce.Store(0u, dot_d0d179()); return; } [numthreads(1, 1, 1)] void compute_main() { - dot_d0d179(); + prevent_dce.Store(0u, dot_d0d179()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = dot_d0d179(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E5F92F94A0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/dot/d0d179.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/dot/d0d179.wgsl.expected.ir.fxc.hlsl index 5fa6433e9e3..56eae6224b7 100644 --- a/test/tint/builtins/gen/var/dot/d0d179.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/dot/d0d179.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020545105030(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001EE786F9BB0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/exp/13806d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp/13806d.wgsl.expected.fxc.hlsl index aa77d5960e8..06c8a599530 100644 --- a/test/tint/builtins/gen/var/exp/13806d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp/13806d.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp_13806d() { +vector exp_13806d() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = exp(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp_13806d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp_13806d(); + prevent_dce.Store >(0u, exp_13806d()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp_13806d(); + prevent_dce.Store >(0u, exp_13806d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp_13806d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B2D2B863B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/exp/13806d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/exp/13806d.wgsl.expected.ir.fxc.hlsl index 98dab48bfb6..114b3a5d9ce 100644 --- a/test/tint/builtins/gen/var/exp/13806d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp/13806d.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022A26D856E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C8BAA88F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/exp/2e08e2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp/2e08e2.wgsl.expected.fxc.hlsl index 9fef94a78b4..47af7d7958a 100644 --- a/test/tint/builtins/gen/var/exp/2e08e2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp/2e08e2.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp_2e08e2() { +vector exp_2e08e2() { vector arg_0 = (float16_t(1.0h)).xx; vector res = exp(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp_2e08e2(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp_2e08e2(); + prevent_dce.Store >(0u, exp_2e08e2()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp_2e08e2(); + prevent_dce.Store >(0u, exp_2e08e2()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp_2e08e2(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001EDD5529EB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/exp/2e08e2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/exp/2e08e2.wgsl.expected.ir.fxc.hlsl index b0c6d921821..b480fda97a8 100644 --- a/test/tint/builtins/gen/var/exp/2e08e2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp/2e08e2.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015E62F9FCE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C7D266E090(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/exp/611a87.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp/611a87.wgsl.expected.fxc.hlsl index 210d0ae5ac9..d5b61629f55 100644 --- a/test/tint/builtins/gen/var/exp/611a87.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp/611a87.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp_611a87() { +vector exp_611a87() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = exp(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp_611a87(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp_611a87(); + prevent_dce.Store >(0u, exp_611a87()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp_611a87(); + prevent_dce.Store >(0u, exp_611a87()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp_611a87(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F58F9064E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/exp/611a87.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/exp/611a87.wgsl.expected.ir.fxc.hlsl index c630a1bcd55..d8dd0a9f3ab 100644 --- a/test/tint/builtins/gen/var/exp/611a87.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp/611a87.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029EA3260480(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CB003045D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/exp/c18fe9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp/c18fe9.wgsl.expected.fxc.hlsl index 66f50e2901c..5f23d08e084 100644 --- a/test/tint/builtins/gen/var/exp/c18fe9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp/c18fe9.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp_c18fe9() { +float16_t exp_c18fe9() { float16_t arg_0 = float16_t(1.0h); float16_t res = exp(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp_c18fe9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp_c18fe9(); + prevent_dce.Store(0u, exp_c18fe9()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp_c18fe9(); + prevent_dce.Store(0u, exp_c18fe9()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp_c18fe9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000029125060C90(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/exp/c18fe9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/exp/c18fe9.wgsl.expected.ir.fxc.hlsl index 2613d5639e4..2861e483511 100644 --- a/test/tint/builtins/gen/var/exp/c18fe9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp/c18fe9.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002953238E660(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000215FF4DB6F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/exp2/151a4c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp2/151a4c.wgsl.expected.fxc.hlsl index a93a13429fd..09e2da3d66a 100644 --- a/test/tint/builtins/gen/var/exp2/151a4c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp2/151a4c.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp2_151a4c() { +vector exp2_151a4c() { vector arg_0 = (float16_t(1.0h)).xx; vector res = exp2(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp2_151a4c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp2_151a4c(); + prevent_dce.Store >(0u, exp2_151a4c()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp2_151a4c(); + prevent_dce.Store >(0u, exp2_151a4c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp2_151a4c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000292B38576A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/exp2/151a4c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/exp2/151a4c.wgsl.expected.ir.fxc.hlsl index 7b2528d362d..fbc2db38dfd 100644 --- a/test/tint/builtins/gen/var/exp2/151a4c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp2/151a4c.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000299A570E5A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DCB9E36600(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/exp2/751377.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp2/751377.wgsl.expected.fxc.hlsl index b4a7b8f9b46..af43619a80d 100644 --- a/test/tint/builtins/gen/var/exp2/751377.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp2/751377.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp2_751377() { +vector exp2_751377() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = exp2(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp2_751377(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp2_751377(); + prevent_dce.Store >(0u, exp2_751377()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp2_751377(); + prevent_dce.Store >(0u, exp2_751377()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp2_751377(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002131386B3C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/exp2/751377.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/exp2/751377.wgsl.expected.ir.fxc.hlsl index 3421e873f77..b30159d88ff 100644 --- a/test/tint/builtins/gen/var/exp2/751377.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp2/751377.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F6D879ED00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A231016630(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/exp2/b408e4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp2/b408e4.wgsl.expected.fxc.hlsl index 8080c8522fb..e8f988564b1 100644 --- a/test/tint/builtins/gen/var/exp2/b408e4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp2/b408e4.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp2_b408e4() { +float16_t exp2_b408e4() { float16_t arg_0 = float16_t(1.0h); float16_t res = exp2(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp2_b408e4(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp2_b408e4(); + prevent_dce.Store(0u, exp2_b408e4()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp2_b408e4(); + prevent_dce.Store(0u, exp2_b408e4()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp2_b408e4(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002D6E7516CF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/exp2/b408e4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/exp2/b408e4.wgsl.expected.ir.fxc.hlsl index 6bd523abed3..2110ec08a6e 100644 --- a/test/tint/builtins/gen/var/exp2/b408e4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp2/b408e4.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A786E3F360(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E2061D38B0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/exp2/ffa827.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/exp2/ffa827.wgsl.expected.fxc.hlsl index 0b8eb7dd4fb..2e5ff34f198 100644 --- a/test/tint/builtins/gen/var/exp2/ffa827.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp2/ffa827.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void exp2_ffa827() { +vector exp2_ffa827() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = exp2(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - exp2_ffa827(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - exp2_ffa827(); + prevent_dce.Store >(0u, exp2_ffa827()); return; } [numthreads(1, 1, 1)] void compute_main() { - exp2_ffa827(); + prevent_dce.Store >(0u, exp2_ffa827()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = exp2_ffa827(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A127E0D020(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/exp2/ffa827.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/exp2/ffa827.wgsl.expected.ir.fxc.hlsl index 4d9782a0bc1..4d58340a837 100644 --- a/test/tint/builtins/gen/var/exp2/ffa827.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/exp2/ffa827.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F7878EF9D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021C056165F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/faceForward/524986.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/faceForward/524986.wgsl.expected.fxc.hlsl index ab717a9ce91..e62328d0512 100644 --- a/test/tint/builtins/gen/var/faceForward/524986.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/faceForward/524986.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void faceForward_524986() { +vector faceForward_524986() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector arg_2 = (float16_t(1.0h)).xxx; vector res = faceforward(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - faceForward_524986(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - faceForward_524986(); + prevent_dce.Store >(0u, faceForward_524986()); return; } [numthreads(1, 1, 1)] void compute_main() { - faceForward_524986(); + prevent_dce.Store >(0u, faceForward_524986()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = faceForward_524986(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000267A0C7BBB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/faceForward/524986.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/faceForward/524986.wgsl.expected.ir.fxc.hlsl index 2acdf848ccc..81965bf4012 100644 --- a/test/tint/builtins/gen/var/faceForward/524986.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/faceForward/524986.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D52B12F060(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016ADCD797E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/faceForward/cc63dc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/faceForward/cc63dc.wgsl.expected.fxc.hlsl index 52578196dfd..207b82f3429 100644 --- a/test/tint/builtins/gen/var/faceForward/cc63dc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/faceForward/cc63dc.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void faceForward_cc63dc() { +vector faceForward_cc63dc() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; vector arg_2 = (float16_t(1.0h)).xxxx; vector res = faceforward(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - faceForward_cc63dc(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - faceForward_cc63dc(); + prevent_dce.Store >(0u, faceForward_cc63dc()); return; } [numthreads(1, 1, 1)] void compute_main() { - faceForward_cc63dc(); + prevent_dce.Store >(0u, faceForward_cc63dc()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = faceForward_cc63dc(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F00286E0A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/faceForward/cc63dc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/faceForward/cc63dc.wgsl.expected.ir.fxc.hlsl index c654ed3dfa8..585a33e3e89 100644 --- a/test/tint/builtins/gen/var/faceForward/cc63dc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/faceForward/cc63dc.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027B6F9B08B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000209FF988A90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/faceForward/fb0f2e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/faceForward/fb0f2e.wgsl.expected.fxc.hlsl index c604f00af60..3b325b64066 100644 --- a/test/tint/builtins/gen/var/faceForward/fb0f2e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/faceForward/fb0f2e.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void faceForward_fb0f2e() { +vector faceForward_fb0f2e() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; vector arg_2 = (float16_t(1.0h)).xx; vector res = faceforward(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - faceForward_fb0f2e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - faceForward_fb0f2e(); + prevent_dce.Store >(0u, faceForward_fb0f2e()); return; } [numthreads(1, 1, 1)] void compute_main() { - faceForward_fb0f2e(); + prevent_dce.Store >(0u, faceForward_fb0f2e()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = faceForward_fb0f2e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000276969857F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/faceForward/fb0f2e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/faceForward/fb0f2e.wgsl.expected.ir.fxc.hlsl index de345f4b74d..c9f127f8751 100644 --- a/test/tint/builtins/gen/var/faceForward/fb0f2e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/faceForward/fb0f2e.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002102AB36080(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000205B1429420(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/floor/3802c0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/floor/3802c0.wgsl.expected.fxc.hlsl index 2fa208a63c8..0c8811122b2 100644 --- a/test/tint/builtins/gen/var/floor/3802c0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/floor/3802c0.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void floor_3802c0() { +vector floor_3802c0() { vector arg_0 = (float16_t(1.5h)).xxx; vector res = floor(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - floor_3802c0(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - floor_3802c0(); + prevent_dce.Store >(0u, floor_3802c0()); return; } [numthreads(1, 1, 1)] void compute_main() { - floor_3802c0(); + prevent_dce.Store >(0u, floor_3802c0()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = floor_3802c0(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002065B86D390(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/floor/3802c0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/floor/3802c0.wgsl.expected.ir.fxc.hlsl index 791a5cc0514..b4e5cff62ab 100644 --- a/test/tint/builtins/gen/var/floor/3802c0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/floor/3802c0.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028851FEE7C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021148F35970(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/floor/84658c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/floor/84658c.wgsl.expected.fxc.hlsl index 196909fe9f3..9d70b925cdc 100644 --- a/test/tint/builtins/gen/var/floor/84658c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/floor/84658c.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void floor_84658c() { +vector floor_84658c() { vector arg_0 = (float16_t(1.5h)).xx; vector res = floor(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - floor_84658c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - floor_84658c(); + prevent_dce.Store >(0u, floor_84658c()); return; } [numthreads(1, 1, 1)] void compute_main() { - floor_84658c(); + prevent_dce.Store >(0u, floor_84658c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = floor_84658c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000181ECF666C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/floor/84658c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/floor/84658c.wgsl.expected.ir.fxc.hlsl index f540541ff15..89a5dba9364 100644 --- a/test/tint/builtins/gen/var/floor/84658c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/floor/84658c.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002155C3A0890(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002240899C320(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/floor/a2d31b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/floor/a2d31b.wgsl.expected.fxc.hlsl index 47973daf345..cd3ec972903 100644 --- a/test/tint/builtins/gen/var/floor/a2d31b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/floor/a2d31b.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void floor_a2d31b() { +vector floor_a2d31b() { vector arg_0 = (float16_t(1.5h)).xxxx; vector res = floor(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - floor_a2d31b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - floor_a2d31b(); + prevent_dce.Store >(0u, floor_a2d31b()); return; } [numthreads(1, 1, 1)] void compute_main() { - floor_a2d31b(); + prevent_dce.Store >(0u, floor_a2d31b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = floor_a2d31b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001DB8F10E070(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/floor/a2d31b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/floor/a2d31b.wgsl.expected.ir.fxc.hlsl index e5783f3e9da..d644454988f 100644 --- a/test/tint/builtins/gen/var/floor/a2d31b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/floor/a2d31b.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020B97F373C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E62B954E70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/floor/b6e09c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/floor/b6e09c.wgsl.expected.fxc.hlsl index ef23db807b2..e8a83d8a8d2 100644 --- a/test/tint/builtins/gen/var/floor/b6e09c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/floor/b6e09c.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void floor_b6e09c() { +float16_t floor_b6e09c() { float16_t arg_0 = float16_t(1.5h); float16_t res = floor(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - floor_b6e09c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - floor_b6e09c(); + prevent_dce.Store(0u, floor_b6e09c()); return; } [numthreads(1, 1, 1)] void compute_main() { - floor_b6e09c(); + prevent_dce.Store(0u, floor_b6e09c()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = floor_b6e09c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025863FCD4A0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/floor/b6e09c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/floor/b6e09c.wgsl.expected.ir.fxc.hlsl index 51c6bc4003d..a393b1cf1d5 100644 --- a/test/tint/builtins/gen/var/floor/b6e09c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/floor/b6e09c.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019F7D235470(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000018BD986D070(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.fxc.hlsl index 744fbf87908..10f6bc9b9ec 100644 --- a/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fma_ab7818() { +vector fma_ab7818() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; vector arg_2 = (float16_t(1.0h)).xxxx; vector res = mad(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fma_ab7818(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fma_ab7818(); + prevent_dce.Store >(0u, fma_ab7818()); return; } [numthreads(1, 1, 1)] void compute_main() { - fma_ab7818(); + prevent_dce.Store >(0u, fma_ab7818()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fma_ab7818(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000022F9B036600(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.ir.fxc.hlsl index d6a9f826ac7..e43298ddc73 100644 --- a/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D87B336080(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002532D2BB230(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.fxc.hlsl index 55e386ef71a..888bfd2d9a4 100644 --- a/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fma_bf21b6() { +vector fma_bf21b6() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; vector arg_2 = (float16_t(1.0h)).xx; vector res = mad(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fma_bf21b6(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fma_bf21b6(); + prevent_dce.Store >(0u, fma_bf21b6()); return; } [numthreads(1, 1, 1)] void compute_main() { - fma_bf21b6(); + prevent_dce.Store >(0u, fma_bf21b6()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fma_bf21b6(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A319DE4090(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.ir.fxc.hlsl index b1c3bc6814c..22047a73e72 100644 --- a/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DF2F305500(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028D206A9660(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.fxc.hlsl index f3cd4393a90..2cef57cf00c 100644 --- a/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fma_c8abb3() { +float16_t fma_c8abb3() { float16_t arg_0 = float16_t(1.0h); float16_t arg_1 = float16_t(1.0h); float16_t arg_2 = float16_t(1.0h); float16_t res = mad(arg_0, arg_1, arg_2); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fma_c8abb3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fma_c8abb3(); + prevent_dce.Store(0u, fma_c8abb3()); return; } [numthreads(1, 1, 1)] void compute_main() { - fma_c8abb3(); + prevent_dce.Store(0u, fma_c8abb3()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fma_c8abb3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D9D7AA68D0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.ir.fxc.hlsl index 8cf0d7bf2d1..8b862735996 100644 --- a/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000011CFA1D5680(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001CBC6404820(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.fxc.hlsl index 7ad75b61fc4..15eae1cb813 100644 --- a/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fma_e7abdc() { +vector fma_e7abdc() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector arg_2 = (float16_t(1.0h)).xxx; vector res = mad(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fma_e7abdc(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fma_e7abdc(); + prevent_dce.Store >(0u, fma_e7abdc()); return; } [numthreads(1, 1, 1)] void compute_main() { - fma_e7abdc(); + prevent_dce.Store >(0u, fma_e7abdc()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fma_e7abdc(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021083789260(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.ir.fxc.hlsl index 56067ae57e3..7b195e02498 100644 --- a/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018718D760A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020876C14FB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/fract/181aa9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fract/181aa9.wgsl.expected.fxc.hlsl index dcaebbf2010..2308391d29b 100644 --- a/test/tint/builtins/gen/var/fract/181aa9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/fract/181aa9.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fract_181aa9() { +vector fract_181aa9() { vector arg_0 = (float16_t(1.25h)).xx; vector res = frac(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fract_181aa9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fract_181aa9(); + prevent_dce.Store >(0u, fract_181aa9()); return; } [numthreads(1, 1, 1)] void compute_main() { - fract_181aa9(); + prevent_dce.Store >(0u, fract_181aa9()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fract_181aa9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000206670D4DA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/fract/181aa9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/fract/181aa9.wgsl.expected.ir.fxc.hlsl index ccaa98eb004..a35eab6d813 100644 --- a/test/tint/builtins/gen/var/fract/181aa9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/fract/181aa9.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FBDD555F90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000179B42BB3E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/fract/498c77.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fract/498c77.wgsl.expected.fxc.hlsl index 35bbed7f8ff..73cdb773409 100644 --- a/test/tint/builtins/gen/var/fract/498c77.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/fract/498c77.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fract_498c77() { +vector fract_498c77() { vector arg_0 = (float16_t(1.25h)).xxxx; vector res = frac(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fract_498c77(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fract_498c77(); + prevent_dce.Store >(0u, fract_498c77()); return; } [numthreads(1, 1, 1)] void compute_main() { - fract_498c77(); + prevent_dce.Store >(0u, fract_498c77()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fract_498c77(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020B581DD2B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/fract/498c77.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/fract/498c77.wgsl.expected.ir.fxc.hlsl index ea95bc75590..2838da9df7d 100644 --- a/test/tint/builtins/gen/var/fract/498c77.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/fract/498c77.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000014FEF070180(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B602134900(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/fract/958a1d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fract/958a1d.wgsl.expected.fxc.hlsl index 18ada479ef2..111adc2a640 100644 --- a/test/tint/builtins/gen/var/fract/958a1d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/fract/958a1d.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fract_958a1d() { +vector fract_958a1d() { vector arg_0 = (float16_t(1.25h)).xxx; vector res = frac(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fract_958a1d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fract_958a1d(); + prevent_dce.Store >(0u, fract_958a1d()); return; } [numthreads(1, 1, 1)] void compute_main() { - fract_958a1d(); + prevent_dce.Store >(0u, fract_958a1d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fract_958a1d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001AEFB5E66C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/fract/958a1d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/fract/958a1d.wgsl.expected.ir.fxc.hlsl index 8c810a32d4d..45462503c23 100644 --- a/test/tint/builtins/gen/var/fract/958a1d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/fract/958a1d.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BA931EEB30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029C81D04A20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/fract/eb38ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/fract/eb38ce.wgsl.expected.fxc.hlsl index 77253599f19..78ff5892c73 100644 --- a/test/tint/builtins/gen/var/fract/eb38ce.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/fract/eb38ce.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void fract_eb38ce() { +float16_t fract_eb38ce() { float16_t arg_0 = float16_t(1.25h); float16_t res = frac(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - fract_eb38ce(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - fract_eb38ce(); + prevent_dce.Store(0u, fract_eb38ce()); return; } [numthreads(1, 1, 1)] void compute_main() { - fract_eb38ce(); + prevent_dce.Store(0u, fract_eb38ce()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = fract_eb38ce(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002607D49A940(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/fract/eb38ce.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/fract/eb38ce.wgsl.expected.ir.fxc.hlsl index f28a08c1f7a..d8beba04966 100644 --- a/test/tint/builtins/gen/var/fract/eb38ce.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/fract/eb38ce.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000227B53CE820(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002D75A41B6F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.fxc.hlsl index d6b3d6f9337..3b4537024f5 100644 --- a/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.fxc.hlsl @@ -6,7 +6,7 @@ struct frexp_result_vec4_f16 { }; frexp_result_vec4_f16 tint_frexp(vector param_0) { vector exp; - vector fract = frexp(param_0, exp); + vector fract = sign(param_0) * frexp(param_0, exp); frexp_result_vec4_f16 result = {fract, int4(exp)}; return result; } @@ -16,22 +16,6 @@ void frexp_3dd21e() { frexp_result_vec4_f16 res = tint_frexp(arg_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - frexp_3dd21e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { frexp_3dd21e(); return; @@ -42,3 +26,27 @@ void compute_main() { frexp_3dd21e(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + frexp_3dd21e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B9ECB2C2D0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.ir.fxc.hlsl index d9af119ee20..e6327fc9842 100644 --- a/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F1EC0F0A80(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BEC3E238F0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/frexp/4b2200.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/frexp/4b2200.wgsl.expected.ir.fxc.hlsl index c8ffaea8470..e7ad8d8d3fb 100644 --- a/test/tint/builtins/gen/var/frexp/4b2200.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/4b2200.wgsl.expected.ir.fxc.hlsl @@ -43,7 +43,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000140B0BE1FB0(17,26-37): error X3013: 'frexp': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x00000140B0BE1FB0(17,26-37): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x00000140B0BE1FB0(17,26-37): error X3013: frexp(float|half, out float|half exp) +C:\src\dawn\Shader@0x000001DDF45AE070(17,26-37): error X3013: 'frexp': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000001DDF45AE070(17,26-37): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000001DDF45AE070(17,26-37): error X3013: frexp(float|half, out float|half exp) diff --git a/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.fxc.hlsl index 9672e1de5a2..ef876e30b5c 100644 --- a/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.fxc.hlsl @@ -6,7 +6,7 @@ struct frexp_result_f16 { }; frexp_result_f16 tint_frexp(float16_t param_0) { float16_t exp; - float16_t fract = frexp(param_0, exp); + float16_t fract = sign(param_0) * frexp(param_0, exp); frexp_result_f16 result = {fract, int(exp)}; return result; } @@ -16,22 +16,6 @@ void frexp_5257dd() { frexp_result_f16 res = tint_frexp(arg_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - frexp_5257dd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { frexp_5257dd(); return; @@ -42,3 +26,27 @@ void compute_main() { frexp_5257dd(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + frexp_5257dd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021AB4874EE0(2,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.ir.fxc.hlsl index f2a702bd696..e6640cfaa53 100644 --- a/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022F6E37DFC0(2,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C8E28438B0(2,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.fxc.hlsl index 5f203b86c3e..abff79c8aef 100644 --- a/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.fxc.hlsl @@ -6,7 +6,7 @@ struct frexp_result_vec2_f16 { }; frexp_result_vec2_f16 tint_frexp(vector param_0) { vector exp; - vector fract = frexp(param_0, exp); + vector fract = sign(param_0) * frexp(param_0, exp); frexp_result_vec2_f16 result = {fract, int2(exp)}; return result; } @@ -16,22 +16,6 @@ void frexp_5f47bf() { frexp_result_vec2_f16 res = tint_frexp(arg_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - frexp_5f47bf(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { frexp_5f47bf(); return; @@ -42,3 +26,27 @@ void compute_main() { frexp_5f47bf(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + frexp_5f47bf(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000214C7FAD240(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.ir.fxc.hlsl index c8825588fba..4a11ee284eb 100644 --- a/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000230E5C20000(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002305D9DB700(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/frexp/77af93.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/frexp/77af93.wgsl.expected.ir.fxc.hlsl index 4afdb050d75..c83947129e5 100644 --- a/test/tint/builtins/gen/var/frexp/77af93.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/77af93.wgsl.expected.ir.fxc.hlsl @@ -43,7 +43,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000257FAB606A0(17,31-42): error X3013: 'frexp': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x00000257FAB606A0(17,31-42): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x00000257FAB606A0(17,31-42): error X3013: frexp(float|half, out float|half exp) +C:\src\dawn\Shader@0x000002F1024F72B0(17,31-42): error X3013: 'frexp': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000002F1024F72B0(17,31-42): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000002F1024F72B0(17,31-42): error X3013: frexp(float|half, out float|half exp) diff --git a/test/tint/builtins/gen/var/frexp/979800.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/frexp/979800.wgsl.expected.ir.fxc.hlsl index e2936612df5..ad9ca2f7824 100644 --- a/test/tint/builtins/gen/var/frexp/979800.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/979800.wgsl.expected.ir.fxc.hlsl @@ -43,7 +43,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021982C9F9C0(17,31-42): error X3013: 'frexp': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x0000021982C9F9C0(17,31-42): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x0000021982C9F9C0(17,31-42): error X3013: frexp(float|half, out float|half exp) +C:\src\dawn\Shader@0x000001A8B2595EC0(17,31-42): error X3013: 'frexp': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000001A8B2595EC0(17,31-42): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000001A8B2595EC0(17,31-42): error X3013: frexp(float|half, out float|half exp) diff --git a/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.fxc.hlsl index 133b5a620d1..05f05bfca4a 100644 --- a/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.fxc.hlsl @@ -6,7 +6,7 @@ struct frexp_result_vec3_f16 { }; frexp_result_vec3_f16 tint_frexp(vector param_0) { vector exp; - vector fract = frexp(param_0, exp); + vector fract = sign(param_0) * frexp(param_0, exp); frexp_result_vec3_f16 result = {fract, int3(exp)}; return result; } @@ -16,22 +16,6 @@ void frexp_ae4a66() { frexp_result_vec3_f16 res = tint_frexp(arg_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - frexp_ae4a66(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { frexp_ae4a66(); return; @@ -42,3 +26,27 @@ void compute_main() { frexp_ae4a66(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + frexp_ae4a66(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001409798C030(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.ir.fxc.hlsl index 184f34f07e1..749b499faa6 100644 --- a/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017B1F8D5070(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000281D6A5B6E0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/frexp/eb2421.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/frexp/eb2421.wgsl.expected.ir.fxc.hlsl index 3009a2f3043..29be04f0ccf 100644 --- a/test/tint/builtins/gen/var/frexp/eb2421.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/frexp/eb2421.wgsl.expected.ir.fxc.hlsl @@ -43,7 +43,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E92DA0D9E0(17,31-42): error X3013: 'frexp': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x000001E92DA0D9E0(17,31-42): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x000001E92DA0D9E0(17,31-42): error X3013: frexp(float|half, out float|half exp) +C:\src\dawn\Shader@0x000001CA673A6450(17,31-42): error X3013: 'frexp': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000001CA673A6450(17,31-42): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000001CA673A6450(17,31-42): error X3013: frexp(float|half, out float|half exp) diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.dxc.hlsl index b1f9cfcfd8d..32ca73e5ddb 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.dxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.dxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_315bf5() { +fn inputAttachmentLoad_315bf5() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_315bf5(); + prevent_dce = inputAttachmentLoad_315bf5(); } Failed to generate: /test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.fxc.hlsl index b1f9cfcfd8d..32ca73e5ddb 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.fxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_315bf5() { +fn inputAttachmentLoad_315bf5() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_315bf5(); + prevent_dce = inputAttachmentLoad_315bf5(); } Failed to generate: /test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl index 502b482262c..3b038015874 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl index 0972091e702..3b038015874 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1051 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.dxc.hlsl index c40fd889f5c..bf3a5dd16c9 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.dxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.dxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_c38b2f() { +fn inputAttachmentLoad_c38b2f() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_c38b2f(); + prevent_dce = inputAttachmentLoad_c38b2f(); } Failed to generate: /test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.fxc.hlsl index c40fd889f5c..bf3a5dd16c9 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.fxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_c38b2f() { +fn inputAttachmentLoad_c38b2f() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_c38b2f(); + prevent_dce = inputAttachmentLoad_c38b2f(); } Failed to generate: /test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl index 502b482262c..3b038015874 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl index 0972091e702..3b038015874 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1051 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.dxc.hlsl index ef2e2b3d130..eb23ad32abe 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.dxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.dxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_fc4d97() { +fn inputAttachmentLoad_fc4d97() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_fc4d97(); + prevent_dce = inputAttachmentLoad_fc4d97(); } Failed to generate: /test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.fxc.hlsl index ef2e2b3d130..eb23ad32abe 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.fxc.hlsl @@ -3,18 +3,18 @@ SKIP: FAILED enable chromium_internal_input_attachments; +@group(0) @binding(0) var prevent_dce : vec4; + @input_attachment_index(3) @group(1) @binding(0) var arg_0 : input_attachment; -fn inputAttachmentLoad_fc4d97() { +fn inputAttachmentLoad_fc4d97() -> vec4 { var res : vec4 = inputAttachmentLoad(arg_0); - prevent_dce = res; + return res; } -@group(2) @binding(0) var prevent_dce : vec4; - @fragment fn fragment_main() { - inputAttachmentLoad_fc4d97(); + prevent_dce = inputAttachmentLoad_fc4d97(); } Failed to generate: /test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl:38:8 error: HLSL backend does not support extension 'chromium_internal_input_attachments' diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl index 502b482262c..3b038015874 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl index 0972091e702..3b038015874 100644 --- a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1051 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/builtins/gen/var/inverseSqrt/440300.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/440300.wgsl.expected.fxc.hlsl index 0f95134b288..74334b056f9 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/440300.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/inverseSqrt/440300.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void inverseSqrt_440300() { +float16_t inverseSqrt_440300() { float16_t arg_0 = float16_t(1.0h); float16_t res = rsqrt(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - inverseSqrt_440300(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - inverseSqrt_440300(); + prevent_dce.Store(0u, inverseSqrt_440300()); return; } [numthreads(1, 1, 1)] void compute_main() { - inverseSqrt_440300(); + prevent_dce.Store(0u, inverseSqrt_440300()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = inverseSqrt_440300(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E8879AF130(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/inverseSqrt/440300.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/440300.wgsl.expected.ir.fxc.hlsl index d5b01c597d6..82e48621767 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/440300.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/inverseSqrt/440300.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019A8C2B0480(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001A0393F6220(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/inverseSqrt/5f51f8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/5f51f8.wgsl.expected.fxc.hlsl index 2d532f040c6..395160def53 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/5f51f8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/inverseSqrt/5f51f8.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void inverseSqrt_5f51f8() { +vector inverseSqrt_5f51f8() { vector arg_0 = (float16_t(1.0h)).xx; vector res = rsqrt(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - inverseSqrt_5f51f8(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - inverseSqrt_5f51f8(); + prevent_dce.Store >(0u, inverseSqrt_5f51f8()); return; } [numthreads(1, 1, 1)] void compute_main() { - inverseSqrt_5f51f8(); + prevent_dce.Store >(0u, inverseSqrt_5f51f8()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = inverseSqrt_5f51f8(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F4BFF8D4A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/inverseSqrt/5f51f8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/5f51f8.wgsl.expected.ir.fxc.hlsl index ba7dc214353..a3568b21375 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/5f51f8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/inverseSqrt/5f51f8.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000150E26754C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F2C0F6C310(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/inverseSqrt/b85ebd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/b85ebd.wgsl.expected.fxc.hlsl index f309d38920f..7238cb31f92 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/b85ebd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/inverseSqrt/b85ebd.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void inverseSqrt_b85ebd() { +vector inverseSqrt_b85ebd() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = rsqrt(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - inverseSqrt_b85ebd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - inverseSqrt_b85ebd(); + prevent_dce.Store >(0u, inverseSqrt_b85ebd()); return; } [numthreads(1, 1, 1)] void compute_main() { - inverseSqrt_b85ebd(); + prevent_dce.Store >(0u, inverseSqrt_b85ebd()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = inverseSqrt_b85ebd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D19F718380(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/inverseSqrt/b85ebd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/b85ebd.wgsl.expected.ir.fxc.hlsl index 84944f8c142..583f13ea730 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/b85ebd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/inverseSqrt/b85ebd.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023BDD3CED10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DB9BB75230(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/inverseSqrt/cbdc70.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/cbdc70.wgsl.expected.fxc.hlsl index 4f153a360d4..d4826ac9783 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/cbdc70.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/inverseSqrt/cbdc70.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void inverseSqrt_cbdc70() { +vector inverseSqrt_cbdc70() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = rsqrt(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - inverseSqrt_cbdc70(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - inverseSqrt_cbdc70(); + prevent_dce.Store >(0u, inverseSqrt_cbdc70()); return; } [numthreads(1, 1, 1)] void compute_main() { - inverseSqrt_cbdc70(); + prevent_dce.Store >(0u, inverseSqrt_cbdc70()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = inverseSqrt_cbdc70(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000022AE26E65F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/inverseSqrt/cbdc70.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/inverseSqrt/cbdc70.wgsl.expected.ir.fxc.hlsl index 50aba61f5d1..86f8e3dfb4c 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/cbdc70.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/inverseSqrt/cbdc70.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B9F43FF9C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001ECDCC7F9A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/ldexp/082c1f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/082c1f.wgsl.expected.fxc.hlsl index 67b41b80447..351d3bfa48c 100644 --- a/test/tint/builtins/gen/var/ldexp/082c1f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/082c1f.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_082c1f() { +float16_t ldexp_082c1f() { float16_t arg_0 = float16_t(1.0h); float16_t res = ldexp(arg_0, 1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_082c1f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_082c1f(); + prevent_dce.Store(0u, ldexp_082c1f()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_082c1f(); + prevent_dce.Store(0u, ldexp_082c1f()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_082c1f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001CCD98CC0B0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/ldexp/082c1f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/082c1f.wgsl.expected.ir.fxc.hlsl index ae9c7201bec..08c83d12890 100644 --- a/test/tint/builtins/gen/var/ldexp/082c1f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/082c1f.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F7EC695070(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000212DB25B3B0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/ldexp/217a31.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/217a31.wgsl.expected.fxc.hlsl index 13162eb69ab..f8da5307aba 100644 --- a/test/tint/builtins/gen/var/ldexp/217a31.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/217a31.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_217a31() { +vector ldexp_217a31() { vector arg_0 = (float16_t(1.0h)).xx; vector res = ldexp(arg_0, (1).xx); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_217a31(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_217a31(); + prevent_dce.Store >(0u, ldexp_217a31()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_217a31(); + prevent_dce.Store >(0u, ldexp_217a31()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_217a31(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000015EE6268E50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/ldexp/217a31.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/217a31.wgsl.expected.ir.fxc.hlsl index 0b2421b53c0..41d3e7e1366 100644 --- a/test/tint/builtins/gen/var/ldexp/217a31.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/217a31.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000227C9364690(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002601C95D520(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/ldexp/3d90b4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/3d90b4.wgsl.expected.fxc.hlsl index 7dc2f2ac72c..aed97f0fa76 100644 --- a/test/tint/builtins/gen/var/ldexp/3d90b4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/3d90b4.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_3d90b4() { +vector ldexp_3d90b4() { vector arg_0 = (float16_t(1.0h)).xx; int2 arg_1 = (1).xx; vector res = ldexp(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_3d90b4(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_3d90b4(); + prevent_dce.Store >(0u, ldexp_3d90b4()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_3d90b4(); + prevent_dce.Store >(0u, ldexp_3d90b4()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_3d90b4(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000023833393CD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/ldexp/3d90b4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/3d90b4.wgsl.expected.ir.fxc.hlsl index a54225f69fb..32bcf690db1 100644 --- a/test/tint/builtins/gen/var/ldexp/3d90b4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/3d90b4.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019FE2140A50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B183D7C010(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/ldexp/624e0c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/624e0c.wgsl.expected.fxc.hlsl index b6e61c9445c..28515bcadf0 100644 --- a/test/tint/builtins/gen/var/ldexp/624e0c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/624e0c.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_624e0c() { +float16_t ldexp_624e0c() { float16_t arg_0 = float16_t(1.0h); int arg_1 = 1; float16_t res = ldexp(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_624e0c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_624e0c(); + prevent_dce.Store(0u, ldexp_624e0c()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_624e0c(); + prevent_dce.Store(0u, ldexp_624e0c()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_624e0c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000209199D6560(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/ldexp/624e0c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/624e0c.wgsl.expected.ir.fxc.hlsl index f10495d4703..29f3d8ad6b6 100644 --- a/test/tint/builtins/gen/var/ldexp/624e0c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/624e0c.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B574B81070(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022B502D3CB0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/ldexp/7485ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/7485ce.wgsl.expected.fxc.hlsl index 45fd297c63f..3d38288f196 100644 --- a/test/tint/builtins/gen/var/ldexp/7485ce.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/7485ce.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_7485ce() { +vector ldexp_7485ce() { vector arg_0 = (float16_t(1.0h)).xxx; int3 arg_1 = (1).xxx; vector res = ldexp(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_7485ce(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_7485ce(); + prevent_dce.Store >(0u, ldexp_7485ce()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_7485ce(); + prevent_dce.Store >(0u, ldexp_7485ce()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_7485ce(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002312EB38E50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/ldexp/7485ce.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/7485ce.wgsl.expected.ir.fxc.hlsl index 7b9a3ad97d4..9047781f1d9 100644 --- a/test/tint/builtins/gen/var/ldexp/7485ce.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/7485ce.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C90741E840(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020C01BB45D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/ldexp/7fa13c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/7fa13c.wgsl.expected.fxc.hlsl index c97cb218995..2ead0b6c46f 100644 --- a/test/tint/builtins/gen/var/ldexp/7fa13c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/7fa13c.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_7fa13c() { +vector ldexp_7fa13c() { vector arg_0 = (float16_t(1.0h)).xxxx; int4 arg_1 = (1).xxxx; vector res = ldexp(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_7fa13c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_7fa13c(); + prevent_dce.Store >(0u, ldexp_7fa13c()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_7fa13c(); + prevent_dce.Store >(0u, ldexp_7fa13c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_7fa13c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E2AB056500(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/ldexp/7fa13c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/7fa13c.wgsl.expected.ir.fxc.hlsl index 3cc00cec41a..a7506a3e00e 100644 --- a/test/tint/builtins/gen/var/ldexp/7fa13c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/7fa13c.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A73A6B5050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024D05142760(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/ldexp/8a0c2f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/8a0c2f.wgsl.expected.fxc.hlsl index 8f8caa87772..f4fbec8ae8d 100644 --- a/test/tint/builtins/gen/var/ldexp/8a0c2f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/8a0c2f.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_8a0c2f() { +vector ldexp_8a0c2f() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = ldexp(arg_0, (1).xxxx); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_8a0c2f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_8a0c2f(); + prevent_dce.Store >(0u, ldexp_8a0c2f()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_8a0c2f(); + prevent_dce.Store >(0u, ldexp_8a0c2f()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_8a0c2f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002019DC2D290(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/ldexp/8a0c2f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/8a0c2f.wgsl.expected.ir.fxc.hlsl index c2a7c8c19ba..d218bf9bd52 100644 --- a/test/tint/builtins/gen/var/ldexp/8a0c2f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/8a0c2f.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002747A2554B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E564FA6630(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/ldexp/8e43e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/8e43e9.wgsl.expected.fxc.hlsl index 03c657d5565..f741a6f48e9 100644 --- a/test/tint/builtins/gen/var/ldexp/8e43e9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/8e43e9.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void ldexp_8e43e9() { +vector ldexp_8e43e9() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = ldexp(arg_0, (1).xxx); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - ldexp_8e43e9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - ldexp_8e43e9(); + prevent_dce.Store >(0u, ldexp_8e43e9()); return; } [numthreads(1, 1, 1)] void compute_main() { - ldexp_8e43e9(); + prevent_dce.Store >(0u, ldexp_8e43e9()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = ldexp_8e43e9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000191B7131810(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/ldexp/8e43e9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/ldexp/8e43e9.wgsl.expected.ir.fxc.hlsl index 073aa54b954..2db5c930983 100644 --- a/test/tint/builtins/gen/var/ldexp/8e43e9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/ldexp/8e43e9.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017D44A10CC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C59CA76630(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/length/3f0e13.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/length/3f0e13.wgsl.expected.fxc.hlsl index 2bb74831674..6f02c96848a 100644 --- a/test/tint/builtins/gen/var/length/3f0e13.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/length/3f0e13.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void length_3f0e13() { +float16_t length_3f0e13() { vector arg_0 = (float16_t(0.0h)).xx; float16_t res = length(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - length_3f0e13(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - length_3f0e13(); + prevent_dce.Store(0u, length_3f0e13()); return; } [numthreads(1, 1, 1)] void compute_main() { - length_3f0e13(); + prevent_dce.Store(0u, length_3f0e13()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = length_3f0e13(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000024EA3F5FC90(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/length/3f0e13.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/length/3f0e13.wgsl.expected.ir.fxc.hlsl index b42606b54f0..c2d9334ada2 100644 --- a/test/tint/builtins/gen/var/length/3f0e13.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/length/3f0e13.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A630E3E9F0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000020D774D8FA0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/length/5b1a9b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/length/5b1a9b.wgsl.expected.fxc.hlsl index cd6ab60541b..c7eb4dfc367 100644 --- a/test/tint/builtins/gen/var/length/5b1a9b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/length/5b1a9b.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void length_5b1a9b() { +float16_t length_5b1a9b() { vector arg_0 = (float16_t(0.0h)).xxxx; float16_t res = length(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - length_5b1a9b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - length_5b1a9b(); + prevent_dce.Store(0u, length_5b1a9b()); return; } [numthreads(1, 1, 1)] void compute_main() { - length_5b1a9b(); + prevent_dce.Store(0u, length_5b1a9b()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = length_5b1a9b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F6483560C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/length/5b1a9b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/length/5b1a9b.wgsl.expected.ir.fxc.hlsl index e60a4837f5f..b5a6636f786 100644 --- a/test/tint/builtins/gen/var/length/5b1a9b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/length/5b1a9b.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000148A57305B0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001892C77BAF0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/length/ba16d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/length/ba16d6.wgsl.expected.fxc.hlsl index fb040931c37..d9c897e93c6 100644 --- a/test/tint/builtins/gen/var/length/ba16d6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/length/ba16d6.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void length_ba16d6() { +float16_t length_ba16d6() { vector arg_0 = (float16_t(0.0h)).xxx; float16_t res = length(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - length_ba16d6(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - length_ba16d6(); + prevent_dce.Store(0u, length_ba16d6()); return; } [numthreads(1, 1, 1)] void compute_main() { - length_ba16d6(); + prevent_dce.Store(0u, length_ba16d6()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = length_ba16d6(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002ECF9A45DF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/length/ba16d6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/length/ba16d6.wgsl.expected.ir.fxc.hlsl index 9cef8c2b45d..22d532f78bd 100644 --- a/test/tint/builtins/gen/var/length/ba16d6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/length/ba16d6.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C6BF50FB20(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000027E8C2254B0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/length/c158da.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/length/c158da.wgsl.expected.fxc.hlsl index 290d96e4817..df00ec4a583 100644 --- a/test/tint/builtins/gen/var/length/c158da.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/length/c158da.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void length_c158da() { +float16_t length_c158da() { float16_t arg_0 = float16_t(0.0h); float16_t res = length(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - length_c158da(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - length_c158da(); + prevent_dce.Store(0u, length_c158da()); return; } [numthreads(1, 1, 1)] void compute_main() { - length_c158da(); + prevent_dce.Store(0u, length_c158da()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = length_c158da(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F861956150(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/length/c158da.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/length/c158da.wgsl.expected.ir.fxc.hlsl index 650dcb0de1b..95ed68c606f 100644 --- a/test/tint/builtins/gen/var/length/c158da.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/length/c158da.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020F4ACFDBB0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001B110EC6A60(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/log/6ff86f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log/6ff86f.wgsl.expected.fxc.hlsl index eb147f2f07b..cd28ab613f7 100644 --- a/test/tint/builtins/gen/var/log/6ff86f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/log/6ff86f.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log_6ff86f() { +vector log_6ff86f() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = log(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log_6ff86f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log_6ff86f(); + prevent_dce.Store >(0u, log_6ff86f()); return; } [numthreads(1, 1, 1)] void compute_main() { - log_6ff86f(); + prevent_dce.Store >(0u, log_6ff86f()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log_6ff86f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001AE5841B650(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/log/6ff86f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/log/6ff86f.wgsl.expected.ir.fxc.hlsl index 40f6f88d02c..dd95f39f594 100644 --- a/test/tint/builtins/gen/var/log/6ff86f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/log/6ff86f.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000204BA1EF3C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000015913ADC340(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/log/8f0e32.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log/8f0e32.wgsl.expected.fxc.hlsl index e5900ba062d..68c3b7e8814 100644 --- a/test/tint/builtins/gen/var/log/8f0e32.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/log/8f0e32.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log_8f0e32() { +vector log_8f0e32() { vector arg_0 = (float16_t(1.0h)).xx; vector res = log(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log_8f0e32(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log_8f0e32(); + prevent_dce.Store >(0u, log_8f0e32()); return; } [numthreads(1, 1, 1)] void compute_main() { - log_8f0e32(); + prevent_dce.Store >(0u, log_8f0e32()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log_8f0e32(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000140F932ADA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/log/8f0e32.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/log/8f0e32.wgsl.expected.ir.fxc.hlsl index 1f90abc71ed..4f6d1201db0 100644 --- a/test/tint/builtins/gen/var/log/8f0e32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/log/8f0e32.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CC9059F180(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026400BE87F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/log/c9f489.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log/c9f489.wgsl.expected.fxc.hlsl index 1d5447ceaa8..48184d0f651 100644 --- a/test/tint/builtins/gen/var/log/c9f489.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/log/c9f489.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log_c9f489() { +float16_t log_c9f489() { float16_t arg_0 = float16_t(1.0h); float16_t res = log(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log_c9f489(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log_c9f489(); + prevent_dce.Store(0u, log_c9f489()); return; } [numthreads(1, 1, 1)] void compute_main() { - log_c9f489(); + prevent_dce.Store(0u, log_c9f489()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log_c9f489(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E2F0A1D4A0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/log/c9f489.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/log/c9f489.wgsl.expected.ir.fxc.hlsl index 655bac70f18..ca41f13500d 100644 --- a/test/tint/builtins/gen/var/log/c9f489.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/log/c9f489.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000284A2E030F0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002BB17834FD0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/log/cdbdc1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log/cdbdc1.wgsl.expected.fxc.hlsl index 34ea086d4fd..57be71b3614 100644 --- a/test/tint/builtins/gen/var/log/cdbdc1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/log/cdbdc1.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log_cdbdc1() { +vector log_cdbdc1() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = log(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log_cdbdc1(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log_cdbdc1(); + prevent_dce.Store >(0u, log_cdbdc1()); return; } [numthreads(1, 1, 1)] void compute_main() { - log_cdbdc1(); + prevent_dce.Store >(0u, log_cdbdc1()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log_cdbdc1(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001CD7A684A90(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/log/cdbdc1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/log/cdbdc1.wgsl.expected.ir.fxc.hlsl index af4b05b06e9..c6fb7de56fa 100644 --- a/test/tint/builtins/gen/var/log/cdbdc1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/log/cdbdc1.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020CB150F9D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002269E7E4580(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/log2/38b478.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log2/38b478.wgsl.expected.fxc.hlsl index 859353bf825..06bffd2b107 100644 --- a/test/tint/builtins/gen/var/log2/38b478.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/log2/38b478.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log2_38b478() { +vector log2_38b478() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = log2(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log2_38b478(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log2_38b478(); + prevent_dce.Store >(0u, log2_38b478()); return; } [numthreads(1, 1, 1)] void compute_main() { - log2_38b478(); + prevent_dce.Store >(0u, log2_38b478()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log2_38b478(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020E1F8D5B80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/log2/38b478.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/log2/38b478.wgsl.expected.ir.fxc.hlsl index 22c87e3098b..1cbdc23d4cf 100644 --- a/test/tint/builtins/gen/var/log2/38b478.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/log2/38b478.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002EEA0D7ED00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000195F593C320(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/log2/776088.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log2/776088.wgsl.expected.fxc.hlsl index 684c13be0e2..f59fcf8fb86 100644 --- a/test/tint/builtins/gen/var/log2/776088.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/log2/776088.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log2_776088() { +vector log2_776088() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = log2(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log2_776088(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log2_776088(); + prevent_dce.Store >(0u, log2_776088()); return; } [numthreads(1, 1, 1)] void compute_main() { - log2_776088(); + prevent_dce.Store >(0u, log2_776088()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log2_776088(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002747C0A44D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/log2/776088.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/log2/776088.wgsl.expected.ir.fxc.hlsl index f6f3239e3da..5f216d79c49 100644 --- a/test/tint/builtins/gen/var/log2/776088.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/log2/776088.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A07015FD50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014DF2D18FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/log2/8c10b3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log2/8c10b3.wgsl.expected.fxc.hlsl index d637943e1d6..0d49696e304 100644 --- a/test/tint/builtins/gen/var/log2/8c10b3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/log2/8c10b3.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log2_8c10b3() { +float16_t log2_8c10b3() { float16_t arg_0 = float16_t(1.0h); float16_t res = log2(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log2_8c10b3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log2_8c10b3(); + prevent_dce.Store(0u, log2_8c10b3()); return; } [numthreads(1, 1, 1)] void compute_main() { - log2_8c10b3(); + prevent_dce.Store(0u, log2_8c10b3()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log2_8c10b3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021119E06120(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/log2/8c10b3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/log2/8c10b3.wgsl.expected.ir.fxc.hlsl index d194af87458..c616026c930 100644 --- a/test/tint/builtins/gen/var/log2/8c10b3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/log2/8c10b3.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002213D82E820(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002470887B6F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/log2/fb9f0b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/log2/fb9f0b.wgsl.expected.fxc.hlsl index 6809742fd58..7a470b1633a 100644 --- a/test/tint/builtins/gen/var/log2/fb9f0b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/log2/fb9f0b.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void log2_fb9f0b() { +vector log2_fb9f0b() { vector arg_0 = (float16_t(1.0h)).xx; vector res = log2(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - log2_fb9f0b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - log2_fb9f0b(); + prevent_dce.Store >(0u, log2_fb9f0b()); return; } [numthreads(1, 1, 1)] void compute_main() { - log2_fb9f0b(); + prevent_dce.Store >(0u, log2_fb9f0b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = log2_fb9f0b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000029031E9E9F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/log2/fb9f0b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/log2/fb9f0b.wgsl.expected.ir.fxc.hlsl index 99318681613..a1f9a197e98 100644 --- a/test/tint/builtins/gen/var/log2/fb9f0b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/log2/fb9f0b.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F7F42F54C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026C21298F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/max/111ac0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/111ac0.wgsl.expected.fxc.hlsl index 560bcd5c4d5..e7cea7901c0 100644 --- a/test/tint/builtins/gen/var/max/111ac0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/max/111ac0.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void max_111ac0() { +float16_t max_111ac0() { float16_t arg_0 = float16_t(1.0h); float16_t arg_1 = float16_t(1.0h); float16_t res = max(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - max_111ac0(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - max_111ac0(); + prevent_dce.Store(0u, max_111ac0()); return; } [numthreads(1, 1, 1)] void compute_main() { - max_111ac0(); + prevent_dce.Store(0u, max_111ac0()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = max_111ac0(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000157B2B44FC0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/max/111ac0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/max/111ac0.wgsl.expected.ir.fxc.hlsl index 9341b03a8ab..3f997395a23 100644 --- a/test/tint/builtins/gen/var/max/111ac0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/max/111ac0.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C93C075470(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000027B880761F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/max/34956e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/34956e.wgsl.expected.fxc.hlsl index 6b2d850da87..a097cda908b 100644 --- a/test/tint/builtins/gen/var/max/34956e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/max/34956e.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void max_34956e() { +vector max_34956e() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; vector res = max(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - max_34956e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - max_34956e(); + prevent_dce.Store >(0u, max_34956e()); return; } [numthreads(1, 1, 1)] void compute_main() { - max_34956e(); + prevent_dce.Store >(0u, max_34956e()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = max_34956e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000206A79A6530(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/max/34956e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/max/34956e.wgsl.expected.ir.fxc.hlsl index af6472168f4..5a4c8b738c2 100644 --- a/test/tint/builtins/gen/var/max/34956e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/max/34956e.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020BE9D651C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020FF4C57E00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/max/445169.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/445169.wgsl.expected.fxc.hlsl index fda1a4dc287..6eef8ead8d7 100644 --- a/test/tint/builtins/gen/var/max/445169.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/max/445169.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void max_445169() { +vector max_445169() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector res = max(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - max_445169(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - max_445169(); + prevent_dce.Store >(0u, max_445169()); return; } [numthreads(1, 1, 1)] void compute_main() { - max_445169(); + prevent_dce.Store >(0u, max_445169()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = max_445169(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001091B01D3D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/max/445169.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/max/445169.wgsl.expected.ir.fxc.hlsl index 48885ec1a13..4f13e9af0f8 100644 --- a/test/tint/builtins/gen/var/max/445169.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/max/445169.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D66C11FF30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000141B125B800(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/max/e14f2b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/max/e14f2b.wgsl.expected.fxc.hlsl index 0a9070978bd..f694626a58e 100644 --- a/test/tint/builtins/gen/var/max/e14f2b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/max/e14f2b.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void max_e14f2b() { +vector max_e14f2b() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; vector res = max(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - max_e14f2b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - max_e14f2b(); + prevent_dce.Store >(0u, max_e14f2b()); return; } [numthreads(1, 1, 1)] void compute_main() { - max_e14f2b(); + prevent_dce.Store >(0u, max_e14f2b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = max_e14f2b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001447D3EECF0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/max/e14f2b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/max/e14f2b.wgsl.expected.ir.fxc.hlsl index 3e02d44aff7..9d2d8cc0008 100644 --- a/test/tint/builtins/gen/var/max/e14f2b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/max/e14f2b.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AF330B5050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000015183E29FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/min/7c710a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/7c710a.wgsl.expected.fxc.hlsl index cb3b27b32b8..2e1ce8198fa 100644 --- a/test/tint/builtins/gen/var/min/7c710a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/min/7c710a.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void min_7c710a() { +vector min_7c710a() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; vector res = min(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - min_7c710a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - min_7c710a(); + prevent_dce.Store >(0u, min_7c710a()); return; } [numthreads(1, 1, 1)] void compute_main() { - min_7c710a(); + prevent_dce.Store >(0u, min_7c710a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = min_7c710a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000029BE3B8B840(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/min/7c710a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/min/7c710a.wgsl.expected.ir.fxc.hlsl index b5873e2c58c..802fee6debf 100644 --- a/test/tint/builtins/gen/var/min/7c710a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/min/7c710a.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DAA7B12B40(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EF703E5390(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/min/ab0acd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/ab0acd.wgsl.expected.fxc.hlsl index 7cf0e2d7d75..5905f0fe5e3 100644 --- a/test/tint/builtins/gen/var/min/ab0acd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/min/ab0acd.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void min_ab0acd() { +vector min_ab0acd() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector res = min(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - min_ab0acd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - min_ab0acd(); + prevent_dce.Store >(0u, min_ab0acd()); return; } [numthreads(1, 1, 1)] void compute_main() { - min_ab0acd(); + prevent_dce.Store >(0u, min_ab0acd()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = min_ab0acd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F8D6065BB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/min/ab0acd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/min/ab0acd.wgsl.expected.ir.fxc.hlsl index aeaaba0f39a..2c92152be1e 100644 --- a/test/tint/builtins/gen/var/min/ab0acd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/min/ab0acd.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020D386A5FC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002C7446A8F80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/min/ac84d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/ac84d6.wgsl.expected.fxc.hlsl index 11ea9d7227e..8bb8c0e8054 100644 --- a/test/tint/builtins/gen/var/min/ac84d6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/min/ac84d6.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void min_ac84d6() { +float16_t min_ac84d6() { float16_t arg_0 = float16_t(1.0h); float16_t arg_1 = float16_t(1.0h); float16_t res = min(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - min_ac84d6(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - min_ac84d6(); + prevent_dce.Store(0u, min_ac84d6()); return; } [numthreads(1, 1, 1)] void compute_main() { - min_ac84d6(); + prevent_dce.Store(0u, min_ac84d6()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = min_ac84d6(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D949605B70(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/min/ac84d6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/min/ac84d6.wgsl.expected.ir.fxc.hlsl index 6f4ecbb0567..dcd54ac35bd 100644 --- a/test/tint/builtins/gen/var/min/ac84d6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/min/ac84d6.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024C982EFB60(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000019F58FC61F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/min/e780f9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/min/e780f9.wgsl.expected.fxc.hlsl index 8921e06cff6..8065fd81126 100644 --- a/test/tint/builtins/gen/var/min/e780f9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/min/e780f9.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void min_e780f9() { +vector min_e780f9() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; vector res = min(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - min_e780f9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - min_e780f9(); + prevent_dce.Store >(0u, min_e780f9()); return; } [numthreads(1, 1, 1)] void compute_main() { - min_e780f9(); + prevent_dce.Store >(0u, min_e780f9()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = min_e780f9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002986F54E8B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/min/e780f9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/min/e780f9.wgsl.expected.ir.fxc.hlsl index 8474ca78f10..264137d04c6 100644 --- a/test/tint/builtins/gen/var/min/e780f9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/min/e780f9.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001988D9A0020(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024248CEBEB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/mix/38cbbb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/38cbbb.wgsl.expected.fxc.hlsl index 679886b1276..793e89de180 100644 --- a/test/tint/builtins/gen/var/mix/38cbbb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/38cbbb.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_38cbbb() { +float16_t mix_38cbbb() { float16_t arg_0 = float16_t(1.0h); float16_t arg_1 = float16_t(1.0h); float16_t arg_2 = float16_t(1.0h); float16_t res = lerp(arg_0, arg_1, arg_2); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_38cbbb(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_38cbbb(); + prevent_dce.Store(0u, mix_38cbbb()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_38cbbb(); + prevent_dce.Store(0u, mix_38cbbb()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_38cbbb(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000024D87348E50(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/mix/38cbbb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/mix/38cbbb.wgsl.expected.ir.fxc.hlsl index 9898ebfb60f..ae47cdc6400 100644 --- a/test/tint/builtins/gen/var/mix/38cbbb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/38cbbb.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021004CC3600(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000024178663BF0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/mix/63f2fd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/63f2fd.wgsl.expected.fxc.hlsl index 24fb3156aed..ce0dd89999c 100644 --- a/test/tint/builtins/gen/var/mix/63f2fd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/63f2fd.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_63f2fd() { +vector mix_63f2fd() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector arg_2 = (float16_t(1.0h)).xxx; vector res = lerp(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_63f2fd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_63f2fd(); + prevent_dce.Store >(0u, mix_63f2fd()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_63f2fd(); + prevent_dce.Store >(0u, mix_63f2fd()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_63f2fd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000118A43AEA40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/mix/63f2fd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/mix/63f2fd.wgsl.expected.ir.fxc.hlsl index 70c355068f4..3a1691e2ed2 100644 --- a/test/tint/builtins/gen/var/mix/63f2fd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/63f2fd.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A0ECC2E860(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001AC8767BBC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/mix/98ee3e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/98ee3e.wgsl.expected.fxc.hlsl index a91127a7904..c75693f0c14 100644 --- a/test/tint/builtins/gen/var/mix/98ee3e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/98ee3e.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_98ee3e() { +vector mix_98ee3e() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; vector arg_2 = (float16_t(1.0h)).xx; vector res = lerp(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_98ee3e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_98ee3e(); + prevent_dce.Store >(0u, mix_98ee3e()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_98ee3e(); + prevent_dce.Store >(0u, mix_98ee3e()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_98ee3e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002A54F96B010(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/mix/98ee3e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/mix/98ee3e.wgsl.expected.ir.fxc.hlsl index a8225f9e72b..497ae2273b8 100644 --- a/test/tint/builtins/gen/var/mix/98ee3e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/98ee3e.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F7E2F7F5D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022F10058A50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/mix/c1aec6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/c1aec6.wgsl.expected.fxc.hlsl index bc4db2f2a43..b8892b2e70e 100644 --- a/test/tint/builtins/gen/var/mix/c1aec6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/c1aec6.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_c1aec6() { +vector mix_c1aec6() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; float16_t arg_2 = float16_t(1.0h); vector res = lerp(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_c1aec6(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_c1aec6(); + prevent_dce.Store >(0u, mix_c1aec6()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_c1aec6(); + prevent_dce.Store >(0u, mix_c1aec6()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_c1aec6(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000202D85565E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/mix/c1aec6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/mix/c1aec6.wgsl.expected.ir.fxc.hlsl index 8c50980f20d..e26ac26e0cc 100644 --- a/test/tint/builtins/gen/var/mix/c1aec6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/c1aec6.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002825431FE70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DE1D225440(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/mix/e46a83.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/e46a83.wgsl.expected.fxc.hlsl index 58655ab975f..5a184a9c049 100644 --- a/test/tint/builtins/gen/var/mix/e46a83.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/e46a83.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_e46a83() { +vector mix_e46a83() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; float16_t arg_2 = float16_t(1.0h); vector res = lerp(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_e46a83(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_e46a83(); + prevent_dce.Store >(0u, mix_e46a83()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_e46a83(); + prevent_dce.Store >(0u, mix_e46a83()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_e46a83(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000200B51857A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/mix/e46a83.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/mix/e46a83.wgsl.expected.ir.fxc.hlsl index d2ef3bd786a..8e733a6b5ad 100644 --- a/test/tint/builtins/gen/var/mix/e46a83.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/e46a83.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ACDE0EEC20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001ADE56F3110(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/mix/ee2468.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/ee2468.wgsl.expected.fxc.hlsl index 57b187658de..1d502103ab5 100644 --- a/test/tint/builtins/gen/var/mix/ee2468.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/ee2468.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_ee2468() { +vector mix_ee2468() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; vector arg_2 = (float16_t(1.0h)).xxxx; vector res = lerp(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_ee2468(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_ee2468(); + prevent_dce.Store >(0u, mix_ee2468()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_ee2468(); + prevent_dce.Store >(0u, mix_ee2468()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_ee2468(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002AB826DEA40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/mix/ee2468.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/mix/ee2468.wgsl.expected.ir.fxc.hlsl index 111585b8d4c..3c7ad6d640c 100644 --- a/test/tint/builtins/gen/var/mix/ee2468.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/ee2468.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028A8FE1E7B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000256819A6970(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/mix/f1a543.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/mix/f1a543.wgsl.expected.fxc.hlsl index a00412f395b..99e0cb23d62 100644 --- a/test/tint/builtins/gen/var/mix/f1a543.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/f1a543.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void mix_f1a543() { +vector mix_f1a543() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; float16_t arg_2 = float16_t(1.0h); vector res = lerp(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - mix_f1a543(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - mix_f1a543(); + prevent_dce.Store >(0u, mix_f1a543()); return; } [numthreads(1, 1, 1)] void compute_main() { - mix_f1a543(); + prevent_dce.Store >(0u, mix_f1a543()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = mix_f1a543(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000027E1017F4C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/mix/f1a543.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/mix/f1a543.wgsl.expected.ir.fxc.hlsl index 0328d26cfec..f84bc706aea 100644 --- a/test/tint/builtins/gen/var/mix/f1a543.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/mix/f1a543.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029DC801EC20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A0AF10BB90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/modf/2d50da.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/modf/2d50da.wgsl.expected.ir.fxc.hlsl index 7a2214aa1e7..222e8bdeb9d 100644 --- a/test/tint/builtins/gen/var/modf/2d50da.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/2d50da.wgsl.expected.ir.fxc.hlsl @@ -43,7 +43,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000220C039F6A0(17,30-40): error X3013: 'modf': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x00000220C039F6A0(17,30-40): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x00000220C039F6A0(17,30-40): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) +C:\src\dawn\Shader@0x000001DB83A53820(17,30-40): error X3013: 'modf': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000001DB83A53820(17,30-40): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000001DB83A53820(17,30-40): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) diff --git a/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.fxc.hlsl index f15ea894a23..f88dee61108 100644 --- a/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.fxc.hlsl @@ -15,22 +15,6 @@ void modf_45005f() { modf_result_vec3_f16 res = tint_modf(arg_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - modf_45005f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { modf_45005f(); return; @@ -41,3 +25,27 @@ void compute_main() { modf_45005f(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + modf_45005f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F4F2BB8E50(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.ir.fxc.hlsl index e115488a3dc..d854fc34107 100644 --- a/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000185EC285070(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000230FF89BC10(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/modf/4bfced.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/modf/4bfced.wgsl.expected.ir.fxc.hlsl index ef195fcb26c..370de141c32 100644 --- a/test/tint/builtins/gen/var/modf/4bfced.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/4bfced.wgsl.expected.ir.fxc.hlsl @@ -43,7 +43,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E0AD82F420(17,30-40): error X3013: 'modf': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x000001E0AD82F420(17,30-40): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x000001E0AD82F420(17,30-40): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) +C:\src\dawn\Shader@0x000002043C1463F0(17,30-40): error X3013: 'modf': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000002043C1463F0(17,30-40): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000002043C1463F0(17,30-40): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) diff --git a/test/tint/builtins/gen/var/modf/5ea256.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/modf/5ea256.wgsl.expected.ir.fxc.hlsl index 35c783e1e20..0ce4d1a9a61 100644 --- a/test/tint/builtins/gen/var/modf/5ea256.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/5ea256.wgsl.expected.ir.fxc.hlsl @@ -43,7 +43,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C3BD7E2BD0(17,30-40): error X3013: 'modf': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x000001C3BD7E2BD0(17,30-40): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x000001C3BD7E2BD0(17,30-40): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) +C:\src\dawn\Shader@0x00000246B1573820(17,30-40): error X3013: 'modf': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x00000246B1573820(17,30-40): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x00000246B1573820(17,30-40): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) diff --git a/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.fxc.hlsl index 8fe20b56eae..55f0b791b09 100644 --- a/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.fxc.hlsl @@ -15,22 +15,6 @@ void modf_8dbbbf() { modf_result_f16 res = tint_modf(arg_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - modf_8dbbbf(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { modf_8dbbbf(); return; @@ -41,3 +25,27 @@ void compute_main() { modf_8dbbbf(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + modf_8dbbbf(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000206D068AE30(2,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.ir.fxc.hlsl index 9efe4409db4..52ad5d4c293 100644 --- a/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019DFE1C04C0(2,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000021B57B964C0(2,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/modf/995934.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/modf/995934.wgsl.expected.fxc.hlsl index e39a700fbfe..70e7fac1032 100644 --- a/test/tint/builtins/gen/var/modf/995934.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/995934.wgsl.expected.fxc.hlsl @@ -15,22 +15,6 @@ void modf_995934() { modf_result_vec4_f16 res = tint_modf(arg_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - modf_995934(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { modf_995934(); return; @@ -41,3 +25,27 @@ void compute_main() { modf_995934(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + modf_995934(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000022FE21BB630(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/modf/995934.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/modf/995934.wgsl.expected.ir.fxc.hlsl index a4bb7e7036f..449995e0186 100644 --- a/test/tint/builtins/gen/var/modf/995934.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/995934.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002EC45B10DB0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000129D24938B0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.fxc.hlsl index abafca1529b..88685e01234 100644 --- a/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.fxc.hlsl @@ -15,22 +15,6 @@ void modf_a545b9() { modf_result_vec2_f16 res = tint_modf(arg_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - modf_a545b9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; -} - void fragment_main() { modf_a545b9(); return; @@ -41,3 +25,27 @@ void compute_main() { modf_a545b9(); return; } + +struct VertexOutput { + float4 pos; +}; +struct tint_symbol_1 { + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + modf_a545b9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025D926CE020(2,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.ir.fxc.hlsl index b6172788acf..ec097740600 100644 --- a/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BE6E35E6E0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002278B3EB700(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/modf/bbf7f7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/modf/bbf7f7.wgsl.expected.ir.fxc.hlsl index f2a9db5fe63..366e9c74a6c 100644 --- a/test/tint/builtins/gen/var/modf/bbf7f7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/modf/bbf7f7.wgsl.expected.ir.fxc.hlsl @@ -43,7 +43,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000178E626F6E0(17,25-35): error X3013: 'modf': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x00000178E626F6E0(17,25-35): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x00000178E626F6E0(17,25-35): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) +C:\src\dawn\Shader@0x00000210C8867E30(17,25-35): error X3013: 'modf': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x00000210C8867E30(17,25-35): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x00000210C8867E30(17,25-35): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) diff --git a/test/tint/builtins/gen/var/normalize/39d5ec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/normalize/39d5ec.wgsl.expected.fxc.hlsl index b1ef930fce9..f9824ed858c 100644 --- a/test/tint/builtins/gen/var/normalize/39d5ec.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/normalize/39d5ec.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void normalize_39d5ec() { +vector normalize_39d5ec() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = normalize(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - normalize_39d5ec(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - normalize_39d5ec(); + prevent_dce.Store >(0u, normalize_39d5ec()); return; } [numthreads(1, 1, 1)] void compute_main() { - normalize_39d5ec(); + prevent_dce.Store >(0u, normalize_39d5ec()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = normalize_39d5ec(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020760AB5CD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/normalize/39d5ec.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/normalize/39d5ec.wgsl.expected.ir.fxc.hlsl index 81e6387155e..6687e66ed17 100644 --- a/test/tint/builtins/gen/var/normalize/39d5ec.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/normalize/39d5ec.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C63B026500(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F76FC34E10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/normalize/7990f3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/normalize/7990f3.wgsl.expected.fxc.hlsl index 4e770e12552..2c7a625cdc9 100644 --- a/test/tint/builtins/gen/var/normalize/7990f3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/normalize/7990f3.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void normalize_7990f3() { +vector normalize_7990f3() { vector arg_0 = (float16_t(1.0h)).xx; vector res = normalize(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - normalize_7990f3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - normalize_7990f3(); + prevent_dce.Store >(0u, normalize_7990f3()); return; } [numthreads(1, 1, 1)] void compute_main() { - normalize_7990f3(); + prevent_dce.Store >(0u, normalize_7990f3()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = normalize_7990f3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002C45B146E10(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/normalize/7990f3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/normalize/7990f3.wgsl.expected.ir.fxc.hlsl index a688ea48bfd..dfedc74a4cb 100644 --- a/test/tint/builtins/gen/var/normalize/7990f3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/normalize/7990f3.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002452363E800(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000230B865BB50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/normalize/b8cb8d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/normalize/b8cb8d.wgsl.expected.fxc.hlsl index c8b97137d7b..e5561a4b370 100644 --- a/test/tint/builtins/gen/var/normalize/b8cb8d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/normalize/b8cb8d.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void normalize_b8cb8d() { +vector normalize_b8cb8d() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = normalize(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - normalize_b8cb8d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - normalize_b8cb8d(); + prevent_dce.Store >(0u, normalize_b8cb8d()); return; } [numthreads(1, 1, 1)] void compute_main() { - normalize_b8cb8d(); + prevent_dce.Store >(0u, normalize_b8cb8d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = normalize_b8cb8d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E8FA0F5CA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/normalize/b8cb8d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/normalize/b8cb8d.wgsl.expected.ir.fxc.hlsl index e8250866aaa..b8112b50352 100644 --- a/test/tint/builtins/gen/var/normalize/b8cb8d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/normalize/b8cb8d.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024114837250(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F0686C3D20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/pow/4f33b2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pow/4f33b2.wgsl.expected.fxc.hlsl index 93b34a6bda8..e7f3ed49a25 100644 --- a/test/tint/builtins/gen/var/pow/4f33b2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/pow/4f33b2.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void pow_4f33b2() { +vector pow_4f33b2() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; vector res = pow(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - pow_4f33b2(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - pow_4f33b2(); + prevent_dce.Store >(0u, pow_4f33b2()); return; } [numthreads(1, 1, 1)] void compute_main() { - pow_4f33b2(); + prevent_dce.Store >(0u, pow_4f33b2()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = pow_4f33b2(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D42AFFA320(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/pow/4f33b2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/pow/4f33b2.wgsl.expected.ir.fxc.hlsl index 5a297e77f64..c66b58af096 100644 --- a/test/tint/builtins/gen/var/pow/4f33b2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/pow/4f33b2.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029DD23CEE70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017000FF83E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/pow/ce9ef5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pow/ce9ef5.wgsl.expected.fxc.hlsl index d5b83bc9d36..d13f20ee3f1 100644 --- a/test/tint/builtins/gen/var/pow/ce9ef5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/pow/ce9ef5.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void pow_ce9ef5() { +float16_t pow_ce9ef5() { float16_t arg_0 = float16_t(1.0h); float16_t arg_1 = float16_t(1.0h); float16_t res = pow(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - pow_ce9ef5(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - pow_ce9ef5(); + prevent_dce.Store(0u, pow_ce9ef5()); return; } [numthreads(1, 1, 1)] void compute_main() { - pow_ce9ef5(); + prevent_dce.Store(0u, pow_ce9ef5()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = pow_ce9ef5(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000012DE1B55DF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/pow/ce9ef5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/pow/ce9ef5.wgsl.expected.ir.fxc.hlsl index a2fff8bcab2..cde8aabc7aa 100644 --- a/test/tint/builtins/gen/var/pow/ce9ef5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/pow/ce9ef5.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025B97F25960(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000252EFA450B0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/pow/f37b25.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pow/f37b25.wgsl.expected.fxc.hlsl index 934e25ab49a..607a4a40900 100644 --- a/test/tint/builtins/gen/var/pow/f37b25.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/pow/f37b25.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void pow_f37b25() { +vector pow_f37b25() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; vector res = pow(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - pow_f37b25(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - pow_f37b25(); + prevent_dce.Store >(0u, pow_f37b25()); return; } [numthreads(1, 1, 1)] void compute_main() { - pow_f37b25(); + prevent_dce.Store >(0u, pow_f37b25()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = pow_f37b25(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E1D0326390(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/pow/f37b25.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/pow/f37b25.wgsl.expected.ir.fxc.hlsl index a684d643bf9..a1b3d1c7d0b 100644 --- a/test/tint/builtins/gen/var/pow/f37b25.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/pow/f37b25.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B077C7F020(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023B6051B440(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/pow/fa5429.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/pow/fa5429.wgsl.expected.fxc.hlsl index dc8d60ff554..9aff70c2cfd 100644 --- a/test/tint/builtins/gen/var/pow/fa5429.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/pow/fa5429.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void pow_fa5429() { +vector pow_fa5429() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector res = pow(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - pow_fa5429(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - pow_fa5429(); + prevent_dce.Store >(0u, pow_fa5429()); return; } [numthreads(1, 1, 1)] void compute_main() { - pow_fa5429(); + prevent_dce.Store >(0u, pow_fa5429()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = pow_fa5429(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000019126E01470(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/pow/fa5429.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/pow/fa5429.wgsl.expected.ir.fxc.hlsl index c00c09766d2..0030983d2a5 100644 --- a/test/tint/builtins/gen/var/pow/fa5429.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/pow/fa5429.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000215E59A5050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EFBBD38FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.fxc.hlsl index f0b73ba1525..f130a5873fa 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_0464d1()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002D14AC34A80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.ir.fxc.hlsl index 5d0ea927a88..000b319d420 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_0464d1()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021E98773EE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.fxc.hlsl index 9461dc064f3..dcc2177e85c 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_0639ea())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000280E90946A0(5,13-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.ir.fxc.hlsl index c6b7e3793b9..70f2a36df1b 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_0639ea())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000220E4C3FEF0(5,13-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.fxc.hlsl index 6eee02d934b..31fff1c6a14 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_0cc513())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002B6BC984DF0(5,16-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.ir.fxc.hlsl index ff11d382489..8eabdc5f558 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_0cc513())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021DE634C320(5,16-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.fxc.hlsl index 2a1f161dfff..d00efbac28b 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_0e0e6e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E5F3049BC0(5,14-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.ir.fxc.hlsl index 5b927d55a77..b25dff46d70 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_0e0e6e())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001FB7ADBC320(5,14-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.fxc.hlsl index dec0ba01fd8..bc4da154ee8 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_2d0b7d())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000200F3FD9C50(5,15-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.ir.fxc.hlsl index 68b0e10f50f..45cff3c30ab 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, quadBroadcast_2d0b7d()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000242B356D580(5,15-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.fxc.hlsl index 5fe61e8bcda..4b6d9bab73c 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_355db5())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019FB0CEC240(5,16-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.ir.fxc.hlsl index 51b8fc3c5bd..6c8faa9aa09 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_355db5())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000206CFB58E20(5,16-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.fxc.hlsl index 5b976e8733f..66934d4dd2b 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_3c3824()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000268652AFA80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.ir.fxc.hlsl index ebce2a0aa66..bae99232c1a 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_3c3824()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001D722CF0140(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.fxc.hlsl index cb200bd4260..b9951ba327e 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_4d9898()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026BA6FEFC60(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.ir.fxc.hlsl index 2bec8fb6ad0..ae73a767c5e 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_4d9898()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001A394F33AB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.fxc.hlsl index 06eea0b75fb..758eb9ea550 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_641316())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022483E1ADC0(5,15-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.ir.fxc.hlsl index 782932829d2..9161ee6e59a 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, quadBroadcast_641316()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001A903734AD0(5,15-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.fxc.hlsl index 3e780d1b529..68bd8fc232a 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_704803())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002BDC825ADC0(5,14-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.ir.fxc.hlsl index c06795a9ee9..bc0b2cc240a 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_704803())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019E04AD1BA0(5,14-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.fxc.hlsl index 829af0c7954..2cdb98a9176 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_76f499())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000245DB5C46E0(5,14-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.ir.fxc.hlsl index 3a283d72d0a..3f5c9d59a03 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_76f499())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000215F021C260(5,14-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.fxc.hlsl index e116661c67d..b00c18b2f7a 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_78129b()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CE4C3846C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.ir.fxc.hlsl index de543ed88c1..449d9d343f5 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_78129b()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001FE7083BBD0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.fxc.hlsl index b2c217ae39d..12e93c23900 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_796753()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D5707B0DD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.ir.fxc.hlsl index 7a087684b5c..712ec1d6ab1 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_796753()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021DCCDD5170(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.fxc.hlsl index ac18ae8b265..eaa7fd2d51c 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_820991())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001589DEAD590(5,16-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.ir.fxc.hlsl index c2b1408ec56..09c9931fddf 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_820991())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002085DF7D580(5,16-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.fxc.hlsl index bfe7dd9e8fc..71265c64409 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_960c6b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000219E6F88550(5,15-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.ir.fxc.hlsl index 7f72a4908cc..09cd22f3cfa 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_960c6b())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001AA97E26120(5,15-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.fxc.hlsl index 07fe7d811df..6314af19967 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_9d802c())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000279B4E402E0(5,16-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.ir.fxc.hlsl index 81fe53b2703..d0745dc9152 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_9d802c())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002970A21FDB0(5,16-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.fxc.hlsl index 4f287ece5b1..f3c90860678 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_a2d2b4())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CFFB14C2F0(5,14-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.ir.fxc.hlsl index b5d6440957a..690dd137d2b 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_a2d2b4()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000017034960480(5,14-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.fxc.hlsl index 42b1fb7a7aa..5faef70ab62 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_ae401e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026AB91BADC0(5,15-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.ir.fxc.hlsl index 39d49eaa868..6f729d610c2 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, quadBroadcast_ae401e()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002050DA051E0(5,15-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.fxc.hlsl index 42612bd0e78..35e3a8d673f 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_b68331())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000260DD639BC0(5,15-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.ir.fxc.hlsl index 119d75262cf..0f903da9462 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, quadBroadcast_b68331()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000020F41234AD0(5,15-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.fxc.hlsl index f94708f054b..54730b38ef0 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_bed00b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D323334A50(5,14-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.ir.fxc.hlsl index 8bc33a6e6e9..c36c3ca6e3c 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadBroadcast_bed00b())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019ECD3FD580(5,14-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.fxc.hlsl index f950700f3cd..8da1d7f5a3f 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_c0e704())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000151AD629BC0(5,14-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.ir.fxc.hlsl index 535ca8e6a22..fda424ee2cf 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_c0e704())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000028CA8541540(5,14-37): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.fxc.hlsl index 41b111e8ca0..576904c1ea1 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_cd3624())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023495EBBFC0(5,16-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.ir.fxc.hlsl index f15a1652e0b..011affeb31d 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_cd3624())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000018ABC148DC0(5,16-40): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.fxc.hlsl index ee9acb47d55..b41a95d8af8 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_cebc6a()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000200F14746C0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.ir.fxc.hlsl index 4e2ced99473..548ffab26c9 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_cebc6a()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000024040E363A0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.fxc.hlsl index de14bf7bce5..373bd1640ba 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_cfbf48())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002228C635650(5,16-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.ir.fxc.hlsl index 877f9eee219..0fa68bf58ee 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_cfbf48())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000015F57195610(5,16-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.fxc.hlsl index d425ce6c447..aa913aa6bd6 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_e6d39d())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027E17C69B90(5,15-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.ir.fxc.hlsl index 42541c675e3..8a47d1c4462 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_e6d39d())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019F0DEF6A10(5,15-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.fxc.hlsl index 41b92d95f28..9c270552660 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_e6d948())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022B6CD7B850(5,14-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.ir.fxc.hlsl index af5f53fc22d..94329dae34a 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadBroadcast_e6d948()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C04BDCAE90(5,14-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.fxc.hlsl index 4a12ca2ad92..5a112290e01 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_e7c301()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002274A40FC40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.ir.fxc.hlsl index 49dea4cef6c..00a02edffb5 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_e7c301()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000144D3BC0E70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.fxc.hlsl index cdf2c7a4e73..a54b8694d06 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_ef7d5d()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019203FFFC40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.ir.fxc.hlsl index ab93ab5e556..f2b4fefea60 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadBroadcast_ef7d5d()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001AAEA7469F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.fxc.hlsl index 8392e642535..8be85be2838 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadBroadcast_f1e8ec())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BE5AC8F7F0(5,15-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.ir.fxc.hlsl index 6d8c1a48082..aa32a81eda5 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, quadBroadcast_f1e8ec()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000276DDFCC320(5,15-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.fxc.hlsl index d2cec030a7e..cb0b3087c31 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_f5f923())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021C20E5C320(5,14-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.ir.fxc.hlsl index 8c1abc49a00..3a060c80f0a 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_f5f923())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000018D8AE2FDB0(5,14-38): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.fxc.hlsl index fe2bef5fae9..a5b8dac95ed 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadBroadcast_f60448())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000188F0425650(5,15-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.ir.fxc.hlsl index 80672ca685c..00ba6ccb6d7 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, quadBroadcast_f60448()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C5FB82FDB0(5,15-39): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.fxc.hlsl index 0bfb016166f..9cf7f5beee3 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_f9d579())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002594DDA9B90(5,13-36): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.ir.fxc.hlsl index 26e5a268066..5aac6275529 100644 --- a/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadBroadcast_f9d579())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C54C9FD520(5,13-36): error X3004: undeclared identifier 'QuadReadLaneAt' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.fxc.hlsl index a6386f22ea2..36a246bfbd8 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_15ac75()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C7DA8A9D80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.ir.fxc.hlsl index a093c521a66..534136b66fa 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_15ac75()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021B5558C1F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.fxc.hlsl index cd268d826d8..f89f5e7b87c 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapDiagonal_2be5e7()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020BA7CDF980(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.ir.fxc.hlsl index a9d857c25c1..554baa7f13c 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapDiagonal_2be5e7()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000244B71BBAF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.fxc.hlsl index a8239d96cf3..0b760504ee9 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapDiagonal_331804())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025887E9BDB0(5,16-44): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.ir.fxc.hlsl index 969c1abdda6..8ceffeac90e 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapDiagonal_331804())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000012A1B5CDD70(5,16-44): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.fxc.hlsl index 302cbe46648..358ae9e0f1a 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapDiagonal_348173())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C712FE46C0(5,15-43): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.ir.fxc.hlsl index 00bd53e293b..8238407286e 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, quadSwapDiagonal_348173()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000020D3AD0FDC0(5,15-43): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.fxc.hlsl index 079049460a0..1d85e9bda78 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapDiagonal_486196())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002C3AAA5B7A0(5,15-43): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.ir.fxc.hlsl index 9d6715c50f3..ccea143e211 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapDiagonal_486196())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021B0F4DFB50(5,15-43): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.fxc.hlsl index 9cb25cfe986..888fab3a9a0 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapDiagonal_730e40())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002C675276170(5,14-42): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.ir.fxc.hlsl index 75e07e8d5a9..51696477d9e 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapDiagonal_730e40()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001BE8FDFAE90(5,14-42): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.fxc.hlsl index 59e69fc8a73..f5603365147 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapDiagonal_8077c8())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020A9F71CFD0(5,16-44): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.ir.fxc.hlsl index 7d520d1ca84..c1c42dc1c87 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapDiagonal_8077c8())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000175A3764D20(5,16-44): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.fxc.hlsl index 58f10dca90e..75f020c50aa 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapDiagonal_856536())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002B4F8CD49E0(5,15-43): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.ir.fxc.hlsl index 25866a00979..91e4c5495dc 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, quadSwapDiagonal_856536()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000249CB89FDC0(5,15-43): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.fxc.hlsl index 22a98a3fef1..222b47ae5c5 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapDiagonal_9ccb38())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001420DF36BB0(5,13-41): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.ir.fxc.hlsl index a2d06f6ef3c..5969934fd29 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapDiagonal_9ccb38())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000273B929FDB0(5,13-41): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.fxc.hlsl index 9a81ea51b80..71f35b5739e 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapDiagonal_a090b0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E1726146D0(5,14-42): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.ir.fxc.hlsl index f8861fab91e..f90c32e596f 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapDiagonal_a090b0())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000017C06955CD0(5,14-42): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.fxc.hlsl index 06b64161e3d..d74fe4c84a2 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapDiagonal_a665b1())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000259A2B9D0D0(5,14-42): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.ir.fxc.hlsl index f6fd7047e8e..e62b730e5bd 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapDiagonal_a665b1())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002B41C1A6080(5,14-42): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.fxc.hlsl index f1a34c57ec4..2ecc8db498f 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapDiagonal_a82e1d())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020466DAD0B0(5,14-42): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.ir.fxc.hlsl index ab4904805f5..2f77eea74ef 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapDiagonal_a82e1d())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002249A31FDD0(5,14-42): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.fxc.hlsl index 37045021e9d..6eaa6beddbe 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_af19a5()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002101B20FAE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.ir.fxc.hlsl index 12ecb027c78..7a17ca64076 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_af19a5()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F32A9E48B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.fxc.hlsl index 830b1d1bca4..77d59daef29 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapDiagonal_b905fc())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002DC9C966020(5,16-44): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.ir.fxc.hlsl index 83c8cfd2f68..2d5a35b62b4 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapDiagonal_b905fc())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000013E14FF6E60(5,16-44): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.fxc.hlsl index 6ee12ab0a28..1dbfdc2f7a9 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapDiagonal_c31636())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000195460B4AF0(5,15-43): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.ir.fxc.hlsl index 0f3a528ee26..b08a007da2a 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, quadSwapDiagonal_c31636()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002557640AE90(5,15-43): error X3004: undeclared identifier 'QuadReadAcrossDiagonal' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.fxc.hlsl index 6d7e1ef1d3e..deb7812f34e 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_e4bec8()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019022295900(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.ir.fxc.hlsl index 9f098f1a6fb..55a0e897f3e 100644 --- a/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapDiagonal_e4bec8()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000022D18CB38D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.fxc.hlsl index 84b9e629707..26974d67d6c 100644 --- a/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_02834c()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023D1A1846C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.ir.fxc.hlsl index 0f3fd1df3e0..15135b9bfe0 100644 --- a/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_02834c()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001B4A7AE46B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.fxc.hlsl index 631b5bf10ac..f3384108324 100644 --- a/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapX_053f3b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D7F3276010(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.ir.fxc.hlsl index e2460f2f7ba..afaeec5c08f 100644 --- a/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapX_053f3b())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002A6498B4690(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.fxc.hlsl index 171828b516f..0d740a25ca1 100644 --- a/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapX_07f1fc())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018855826F60(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.ir.fxc.hlsl index fbcb01044eb..b984c4915a3 100644 --- a/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, quadSwapX_07f1fc()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001B43EEEFD60(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.fxc.hlsl index 71535d26c57..d3077e77c3b 100644 --- a/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapX_150d6f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002055E7001D0(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.ir.fxc.hlsl index ab4edf2afe0..da37aeb5bbd 100644 --- a/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapX_150d6f())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C980CF1E10(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.fxc.hlsl index 5d4950032b4..cdffc6b9ee4 100644 --- a/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapX_19f8ce())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025497C2EC70(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.ir.fxc.hlsl index 7c9f44e1480..2a3394db868 100644 --- a/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, quadSwapX_19f8ce()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000017E9CB34680(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.fxc.hlsl index 0661620b66e..1eadca6199c 100644 --- a/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapX_1e1086())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025C71A79B20(5,13-34): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.ir.fxc.hlsl index ccda9d26595..a58d042c390 100644 --- a/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapX_1e1086())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002C0529B3FF0(5,13-34): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.fxc.hlsl index 1674a1e0621..2f74386ee63 100644 --- a/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapX_69af6a())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CDB1A702E0(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.ir.fxc.hlsl index 1a2271ab149..406c9da3e56 100644 --- a/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapX_69af6a())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F30FF24680(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.fxc.hlsl index f200126c392..921df7a940f 100644 --- a/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapX_8203ad())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002A75E5168A0(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.ir.fxc.hlsl index 1d01356af5f..0cca4984fb7 100644 --- a/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapX_8203ad()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000161E9D898A0(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.fxc.hlsl index 622f4d739b1..e142f09232c 100644 --- a/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapX_879738())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000298194B5470(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.ir.fxc.hlsl index 8d1e799d2e3..ae8b965afe5 100644 --- a/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapX_879738())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001B23770BBC0(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.fxc.hlsl index 02863194901..7970f09d164 100644 --- a/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapX_9bea80())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000217442C4A80(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.ir.fxc.hlsl index 4d1a9fa5579..50323e75155 100644 --- a/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapX_9bea80())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C9D4B60660(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.fxc.hlsl index aaef08b23b1..0dacdbbbe84 100644 --- a/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapX_a4e103()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C7797A4A50(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.ir.fxc.hlsl index 15cb00b2383..d980f399936 100644 --- a/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapX_a4e103()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027941B6FF30(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.fxc.hlsl index c54bf8c2d07..6ddcc3f336f 100644 --- a/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapX_b1a5fe())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002E6E25A9B50(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.ir.fxc.hlsl index 58c08c1ca47..3f034e0542d 100644 --- a/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapX_b1a5fe())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000272C6A546A0(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.fxc.hlsl index 9454f54a2a2..05b4497e567 100644 --- a/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_bc2013()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028D6C1A0570(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.ir.fxc.hlsl index 0ce9e575def..595954623bc 100644 --- a/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_bc2013()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001A0E689FBE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.fxc.hlsl index 134d77570da..24a5a058d85 100644 --- a/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapX_bddb9f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019CB65746B0(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.ir.fxc.hlsl index 124b900bc4a..782c5a1d511 100644 --- a/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, quadSwapX_bddb9f()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001CD216346D0(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.fxc.hlsl index 3526320d82f..d7267651df4 100644 --- a/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_d60cec()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000237B2630570(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.ir.fxc.hlsl index 8ed8370bd3a..50835d76d21 100644 --- a/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapX_d60cec()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001EB307CFFB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.fxc.hlsl index d021e135620..7b217149b7b 100644 --- a/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapX_edfa1f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002629BF801D0(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.ir.fxc.hlsl index e157b3188c4..bd6e7fc1476 100644 --- a/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapX_edfa1f())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000176BBDCFD50(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossX' + diff --git a/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.fxc.hlsl index b6296975ae0..8fec19fda1f 100644 --- a/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapY_06a67c())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D9D627BDC0(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.ir.fxc.hlsl index 65d370a8503..3d032e4664f 100644 --- a/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, quadSwapY_06a67c()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000244D66046D0(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.fxc.hlsl index 1cccaaadf87..84cab9059f8 100644 --- a/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapY_0c4938())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000227F43AFAF0(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.ir.fxc.hlsl index d87d2dcac3e..2253f93a281 100644 --- a/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapY_0c4938()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000017CFE00FF20(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.fxc.hlsl index 07aba1d1974..7895d421d80 100644 --- a/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapY_0d05a8())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F1AB3C9B70(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.ir.fxc.hlsl index 63a844e1c9c..2eee4a22ca0 100644 --- a/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapY_0d05a8())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000026D34B14680(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.fxc.hlsl index 7a6d6f4e203..df7f29c6690 100644 --- a/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapY_14bb9a())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017C28695250(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.ir.fxc.hlsl index 730b966d3bf..807df601432 100644 --- a/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapY_14bb9a())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000124448BFD50(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.fxc.hlsl index cb091ae1d72..c31ebe932bb 100644 --- a/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapY_1f1a06())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019C87ADB9B0(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.ir.fxc.hlsl index 29e31505e4f..f18a7ac688b 100644 --- a/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapY_1f1a06())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002877451FD50(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.fxc.hlsl index 528e304825a..bf431a1663e 100644 --- a/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_264908()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024D2D6346C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.ir.fxc.hlsl index 6fa8b324099..eb2abb2a018 100644 --- a/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_264908()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001E7631E4FD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.fxc.hlsl index 25e5866cfee..33c97217ea8 100644 --- a/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_5b2e67()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B9A40B1700(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.ir.fxc.hlsl index aa690379177..28ea4771d72 100644 --- a/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_5b2e67()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002417C93FBE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.fxc.hlsl index b145015ec97..cb0be9b320f 100644 --- a/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapY_6f6bc9())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002476C8C0510(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.ir.fxc.hlsl index df1e46c5449..91d4b672dd9 100644 --- a/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapY_6f6bc9())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002103CD06C20(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.fxc.hlsl index ae890490175..7509b0d476c 100644 --- a/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapY_9277e9()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002373BD4EA00(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.ir.fxc.hlsl index ed4fc571fae..2a87a628ccf 100644 --- a/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, quadSwapY_9277e9()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021526C9AB60(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.fxc.hlsl index 4daf988d0d2..893341dd3cb 100644 --- a/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapY_94ab6d())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002152D6201D0(5,13-34): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.ir.fxc.hlsl index 93020090018..1c64e442291 100644 --- a/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(quadSwapY_94ab6d())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000278DA2BCC20(5,13-34): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.fxc.hlsl index 75fce9e570b..77eb32bb534 100644 --- a/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(quadSwapY_a27e1c())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002113686CDC0(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.ir.fxc.hlsl index 16458ec3582..5b591226df5 100644 --- a/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store2(0u, quadSwapY_a27e1c()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000181C8B14680(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.fxc.hlsl index d53079a9533..1d8cb794286 100644 --- a/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_a50fcb()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A949FB6B10(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.ir.fxc.hlsl index 800493fbb55..9e537838b90 100644 --- a/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store >(0u, quadSwapY_a50fcb()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002830A7AFFB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.fxc.hlsl index 29d17ee6803..87b24391f36 100644 --- a/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapY_b9d9e7())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002BA3B0F9B00(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.ir.fxc.hlsl index c34dcbdd74f..1cbc2e8ec68 100644 --- a/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapY_b9d9e7())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F387BD46D0(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.fxc.hlsl index cf92fa0c81d..4565223880f 100644 --- a/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(quadSwapY_bb697b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C891C89B50(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.ir.fxc.hlsl index dfeef1b1f71..1e4ad856816 100644 --- a/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store4(0u, quadSwapY_bb697b()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000024D99047F60(5,15-36): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.fxc.hlsl index 383caa9a0b5..431e302b73a 100644 --- a/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapY_be4e72())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000240A752BE30(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.ir.fxc.hlsl index 1422d579580..cd4d4934f0d 100644 --- a/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapY_be4e72())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001940568FD50(5,14-35): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.fxc.hlsl index 466d5dd3cbf..d6718379a6c 100644 --- a/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapY_d1ab4d())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000248C9C6FEC0(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.ir.fxc.hlsl index c16714ebc4a..7741e7e499c 100644 --- a/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(quadSwapY_d1ab4d())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000017C89ED9AE0(5,16-37): error X3004: undeclared identifier 'QuadReadAcrossY' + diff --git a/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.fxc.hlsl index 8390b8f962e..f57a18d67ee 100644 --- a/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ float16_t tint_radians(float16_t param_0) { return param_0 * 0.01745329251994329547; } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void radians_208fd9() { +float16_t radians_208fd9() { float16_t arg_0 = float16_t(1.0h); float16_t res = tint_radians(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - radians_208fd9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - radians_208fd9(); + prevent_dce.Store(0u, radians_208fd9()); return; } [numthreads(1, 1, 1)] void compute_main() { - radians_208fd9(); + prevent_dce.Store(0u, radians_208fd9()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = radians_208fd9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001FFDF716120(1,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.ir.fxc.hlsl index d9e1beb5549..8c7490b45cc 100644 --- a/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002059E77E2D0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001CA1A373CD0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.fxc.hlsl index cc449894ddd..08c08f2e883 100644 --- a/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_radians(vector param_0) { return param_0 * 0.01745329251994329547; } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void radians_44f20b() { +vector radians_44f20b() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = tint_radians(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - radians_44f20b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - radians_44f20b(); + prevent_dce.Store >(0u, radians_44f20b()); return; } [numthreads(1, 1, 1)] void compute_main() { - radians_44f20b(); + prevent_dce.Store >(0u, radians_44f20b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = radians_44f20b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001DFA74A6580(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.ir.fxc.hlsl index 1872e6e0a8c..31ceb89637d 100644 --- a/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026DECBBF7F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002517F45B700(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.fxc.hlsl index 1303076a112..417057838d6 100644 --- a/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_radians(vector param_0) { return param_0 * 0.01745329251994329547; } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void radians_7ea4c7() { +vector radians_7ea4c7() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = tint_radians(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - radians_7ea4c7(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - radians_7ea4c7(); + prevent_dce.Store >(0u, radians_7ea4c7()); return; } [numthreads(1, 1, 1)] void compute_main() { - radians_7ea4c7(); + prevent_dce.Store >(0u, radians_7ea4c7()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = radians_7ea4c7(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001EA75D5B3C0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.ir.fxc.hlsl index a2d3ac7d6b3..3930ac85d63 100644 --- a/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021C8B68E710(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000161880BDE60(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.fxc.hlsl index bcc79ab4989..c21187e99e2 100644 --- a/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.fxc.hlsl @@ -4,37 +4,48 @@ vector tint_radians(vector param_0) { return param_0 * 0.01745329251994329547; } -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void radians_fbacf0() { +vector radians_fbacf0() { vector arg_0 = (float16_t(1.0h)).xx; vector res = tint_radians(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - radians_fbacf0(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - radians_fbacf0(); + prevent_dce.Store >(0u, radians_fbacf0()); return; } [numthreads(1, 1, 1)] void compute_main() { - radians_fbacf0(); + prevent_dce.Store >(0u, radians_fbacf0()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = radians_fbacf0(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000169B1945740(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.ir.fxc.hlsl index af7c30f9289..cb1323ba37b 100644 --- a/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017BAA67F4F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017DF5263CC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/reflect/310de5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reflect/310de5.wgsl.expected.fxc.hlsl index 03e87f021d5..d02a6d4e3ba 100644 --- a/test/tint/builtins/gen/var/reflect/310de5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/reflect/310de5.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void reflect_310de5() { +vector reflect_310de5() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; vector res = reflect(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - reflect_310de5(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - reflect_310de5(); + prevent_dce.Store >(0u, reflect_310de5()); return; } [numthreads(1, 1, 1)] void compute_main() { - reflect_310de5(); + prevent_dce.Store >(0u, reflect_310de5()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = reflect_310de5(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000027026B9DA80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/reflect/310de5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/reflect/310de5.wgsl.expected.ir.fxc.hlsl index 912663d0d4a..e8ae6512adf 100644 --- a/test/tint/builtins/gen/var/reflect/310de5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/reflect/310de5.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001684C4412E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002D4635ECF90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/reflect/61ca21.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reflect/61ca21.wgsl.expected.fxc.hlsl index fad0898ec16..5ab35bb3b9a 100644 --- a/test/tint/builtins/gen/var/reflect/61ca21.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/reflect/61ca21.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void reflect_61ca21() { +vector reflect_61ca21() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector res = reflect(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - reflect_61ca21(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - reflect_61ca21(); + prevent_dce.Store >(0u, reflect_61ca21()); return; } [numthreads(1, 1, 1)] void compute_main() { - reflect_61ca21(); + prevent_dce.Store >(0u, reflect_61ca21()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = reflect_61ca21(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000018321595850(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/reflect/61ca21.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/reflect/61ca21.wgsl.expected.ir.fxc.hlsl index b1a351e423e..7dce34a39c3 100644 --- a/test/tint/builtins/gen/var/reflect/61ca21.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/reflect/61ca21.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CC676CF700(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002D768B2CF90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/reflect/bb15ac.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/reflect/bb15ac.wgsl.expected.fxc.hlsl index f370764a82e..a556484c58f 100644 --- a/test/tint/builtins/gen/var/reflect/bb15ac.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/reflect/bb15ac.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void reflect_bb15ac() { +vector reflect_bb15ac() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; vector res = reflect(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - reflect_bb15ac(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - reflect_bb15ac(); + prevent_dce.Store >(0u, reflect_bb15ac()); return; } [numthreads(1, 1, 1)] void compute_main() { - reflect_bb15ac(); + prevent_dce.Store >(0u, reflect_bb15ac()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = reflect_bb15ac(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000026C5DDA9910(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/reflect/bb15ac.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/reflect/bb15ac.wgsl.expected.ir.fxc.hlsl index b1d69da34d3..10a4c7f3737 100644 --- a/test/tint/builtins/gen/var/reflect/bb15ac.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/reflect/bb15ac.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015209C2FC50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F5B7C8B6E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/refract/0594ba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/refract/0594ba.wgsl.expected.fxc.hlsl index e7cee2338a2..26b5b3b474f 100644 --- a/test/tint/builtins/gen/var/refract/0594ba.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/refract/0594ba.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void refract_0594ba() { +vector refract_0594ba() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; float16_t arg_2 = float16_t(1.0h); vector res = refract(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - refract_0594ba(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - refract_0594ba(); + prevent_dce.Store >(0u, refract_0594ba()); return; } [numthreads(1, 1, 1)] void compute_main() { - refract_0594ba(); + prevent_dce.Store >(0u, refract_0594ba()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = refract_0594ba(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000029F12D66710(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/refract/0594ba.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/refract/0594ba.wgsl.expected.ir.fxc.hlsl index 12ea6dac6ee..09c592ba9c6 100644 --- a/test/tint/builtins/gen/var/refract/0594ba.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/refract/0594ba.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000292AFB735E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B6659FA490(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/refract/570cb3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/refract/570cb3.wgsl.expected.fxc.hlsl index 10f48b3f807..c80e3a681b2 100644 --- a/test/tint/builtins/gen/var/refract/570cb3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/refract/570cb3.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void refract_570cb3() { +vector refract_570cb3() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; float16_t arg_2 = float16_t(1.0h); vector res = refract(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - refract_570cb3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - refract_570cb3(); + prevent_dce.Store >(0u, refract_570cb3()); return; } [numthreads(1, 1, 1)] void compute_main() { - refract_570cb3(); + prevent_dce.Store >(0u, refract_570cb3()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = refract_570cb3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000028DBC9DD280(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/refract/570cb3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/refract/570cb3.wgsl.expected.ir.fxc.hlsl index 41816551991..c7b6bd02a88 100644 --- a/test/tint/builtins/gen/var/refract/570cb3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/refract/570cb3.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A2FAF95FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017EE610A490(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/refract/8984af.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/refract/8984af.wgsl.expected.fxc.hlsl index 449f15b1aaa..c0d36f3dcd9 100644 --- a/test/tint/builtins/gen/var/refract/8984af.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/refract/8984af.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void refract_8984af() { +vector refract_8984af() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; float16_t arg_2 = float16_t(1.0h); vector res = refract(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - refract_8984af(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - refract_8984af(); + prevent_dce.Store >(0u, refract_8984af()); return; } [numthreads(1, 1, 1)] void compute_main() { - refract_8984af(); + prevent_dce.Store >(0u, refract_8984af()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = refract_8984af(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001ED7E9455B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/refract/8984af.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/refract/8984af.wgsl.expected.ir.fxc.hlsl index b8a2be805c8..4eea050e78e 100644 --- a/test/tint/builtins/gen/var/refract/8984af.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/refract/8984af.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CE51295520(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029414B45790(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/round/9078ef.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/round/9078ef.wgsl.expected.fxc.hlsl index 956c07f6588..8be76d5ff6e 100644 --- a/test/tint/builtins/gen/var/round/9078ef.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/round/9078ef.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void round_9078ef() { +float16_t round_9078ef() { float16_t arg_0 = float16_t(3.5h); float16_t res = round(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - round_9078ef(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - round_9078ef(); + prevent_dce.Store(0u, round_9078ef()); return; } [numthreads(1, 1, 1)] void compute_main() { - round_9078ef(); + prevent_dce.Store(0u, round_9078ef()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = round_9078ef(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000279E0135DF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/round/9078ef.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/round/9078ef.wgsl.expected.ir.fxc.hlsl index 8dc03f30f05..6373abdba2f 100644 --- a/test/tint/builtins/gen/var/round/9078ef.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/round/9078ef.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002160D923180(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000178B3BAF090(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/round/d87e84.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/round/d87e84.wgsl.expected.fxc.hlsl index 531e5161b1c..3eb738ca101 100644 --- a/test/tint/builtins/gen/var/round/d87e84.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/round/d87e84.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void round_d87e84() { +vector round_d87e84() { vector arg_0 = (float16_t(3.5h)).xx; vector res = round(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - round_d87e84(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - round_d87e84(); + prevent_dce.Store >(0u, round_d87e84()); return; } [numthreads(1, 1, 1)] void compute_main() { - round_d87e84(); + prevent_dce.Store >(0u, round_d87e84()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = round_d87e84(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000027303FE6BB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/round/d87e84.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/round/d87e84.wgsl.expected.ir.fxc.hlsl index ff03a2937a7..0cad29a5edd 100644 --- a/test/tint/builtins/gen/var/round/d87e84.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/round/d87e84.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FB2BFB3A60(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024E44E96630(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/round/e1bba2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/round/e1bba2.wgsl.expected.fxc.hlsl index 84d41c4e401..25e4f6151f8 100644 --- a/test/tint/builtins/gen/var/round/e1bba2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/round/e1bba2.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void round_e1bba2() { +vector round_e1bba2() { vector arg_0 = (float16_t(3.5h)).xxx; vector res = round(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - round_e1bba2(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - round_e1bba2(); + prevent_dce.Store >(0u, round_e1bba2()); return; } [numthreads(1, 1, 1)] void compute_main() { - round_e1bba2(); + prevent_dce.Store >(0u, round_e1bba2()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = round_e1bba2(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000014B9F7B5E50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/round/e1bba2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/round/e1bba2.wgsl.expected.ir.fxc.hlsl index 39471b2ee6e..e0ef61cf850 100644 --- a/test/tint/builtins/gen/var/round/e1bba2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/round/e1bba2.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019558694C80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021C66516620(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/round/f665b5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/round/f665b5.wgsl.expected.fxc.hlsl index 982e87bb891..2ad0d1ec029 100644 --- a/test/tint/builtins/gen/var/round/f665b5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/round/f665b5.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void round_f665b5() { +vector round_f665b5() { vector arg_0 = (float16_t(3.5h)).xxxx; vector res = round(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - round_f665b5(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - round_f665b5(); + prevent_dce.Store >(0u, round_f665b5()); return; } [numthreads(1, 1, 1)] void compute_main() { - round_f665b5(); + prevent_dce.Store >(0u, round_f665b5()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = round_f665b5(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001282D846020(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/round/f665b5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/round/f665b5.wgsl.expected.ir.fxc.hlsl index ee3a513bf92..9323b3ca34c 100644 --- a/test/tint/builtins/gen/var/round/f665b5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/round/f665b5.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021D705E0180(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F94FA3B600(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/saturate/462535.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/saturate/462535.wgsl.expected.fxc.hlsl index dbd46553193..13b1853a7bd 100644 --- a/test/tint/builtins/gen/var/saturate/462535.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/saturate/462535.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void saturate_462535() { +vector saturate_462535() { vector arg_0 = (float16_t(2.0h)).xxx; vector res = saturate(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - saturate_462535(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - saturate_462535(); + prevent_dce.Store >(0u, saturate_462535()); return; } [numthreads(1, 1, 1)] void compute_main() { - saturate_462535(); + prevent_dce.Store >(0u, saturate_462535()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = saturate_462535(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000280F8115B30(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/saturate/462535.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/saturate/462535.wgsl.expected.ir.fxc.hlsl index 04d9cd20f3e..1374828ab74 100644 --- a/test/tint/builtins/gen/var/saturate/462535.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/saturate/462535.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018F23935040(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002BFDD06C340(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/saturate/cd2028.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/saturate/cd2028.wgsl.expected.fxc.hlsl index f3933ffe3b3..a82ff6ba178 100644 --- a/test/tint/builtins/gen/var/saturate/cd2028.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/saturate/cd2028.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void saturate_cd2028() { +vector saturate_cd2028() { vector arg_0 = (float16_t(2.0h)).xx; vector res = saturate(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - saturate_cd2028(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - saturate_cd2028(); + prevent_dce.Store >(0u, saturate_cd2028()); return; } [numthreads(1, 1, 1)] void compute_main() { - saturate_cd2028(); + prevent_dce.Store >(0u, saturate_cd2028()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = saturate_cd2028(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025BB757E430(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/saturate/cd2028.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/saturate/cd2028.wgsl.expected.ir.fxc.hlsl index 104ee0e647a..38993e72362 100644 --- a/test/tint/builtins/gen/var/saturate/cd2028.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/saturate/cd2028.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000137A8E12B20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F497472760(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/saturate/dcde71.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/saturate/dcde71.wgsl.expected.fxc.hlsl index 58cc15dcdc0..5949a9470b8 100644 --- a/test/tint/builtins/gen/var/saturate/dcde71.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/saturate/dcde71.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void saturate_dcde71() { +vector saturate_dcde71() { vector arg_0 = (float16_t(2.0h)).xxxx; vector res = saturate(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - saturate_dcde71(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - saturate_dcde71(); + prevent_dce.Store >(0u, saturate_dcde71()); return; } [numthreads(1, 1, 1)] void compute_main() { - saturate_dcde71(); + prevent_dce.Store >(0u, saturate_dcde71()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = saturate_dcde71(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000206D40846B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/saturate/dcde71.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/saturate/dcde71.wgsl.expected.ir.fxc.hlsl index ec80e594c52..48f8dedb531 100644 --- a/test/tint/builtins/gen/var/saturate/dcde71.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/saturate/dcde71.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002186DB3EA20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000013D1D5793D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/saturate/e8df56.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/saturate/e8df56.wgsl.expected.fxc.hlsl index 4bf07e3847f..f09fe3699c5 100644 --- a/test/tint/builtins/gen/var/saturate/e8df56.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/saturate/e8df56.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void saturate_e8df56() { +float16_t saturate_e8df56() { float16_t arg_0 = float16_t(2.0h); float16_t res = saturate(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - saturate_e8df56(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - saturate_e8df56(); + prevent_dce.Store(0u, saturate_e8df56()); return; } [numthreads(1, 1, 1)] void compute_main() { - saturate_e8df56(); + prevent_dce.Store(0u, saturate_e8df56()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = saturate_e8df56(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000219052DF070(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/saturate/e8df56.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/saturate/e8df56.wgsl.expected.ir.fxc.hlsl index f84eec382e2..28b2451701f 100644 --- a/test/tint/builtins/gen/var/saturate/e8df56.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/saturate/e8df56.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C27A13F3A0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001B84801AFE0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/select/10e73b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/10e73b.wgsl.expected.fxc.hlsl index 038705d127f..9436fcec4b0 100644 --- a/test/tint/builtins/gen/var/select/10e73b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/10e73b.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_10e73b() { +float16_t select_10e73b() { float16_t arg_0 = float16_t(1.0h); float16_t arg_1 = float16_t(1.0h); bool arg_2 = true; float16_t res = (arg_2 ? arg_1 : arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_10e73b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_10e73b(); + prevent_dce.Store(0u, select_10e73b()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_10e73b(); + prevent_dce.Store(0u, select_10e73b()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_10e73b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000248474F5770(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/select/10e73b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/select/10e73b.wgsl.expected.ir.fxc.hlsl index 4169fc3af8b..fd8d2935389 100644 --- a/test/tint/builtins/gen/var/select/10e73b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/10e73b.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029057725580(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000216945949F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.fxc.hlsl index 752bedaf36a..64ed7e6770a 100644 --- a/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_1ada2a() { +vector select_1ada2a() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; bool arg_2 = true; vector res = (arg_2 ? arg_1 : arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_1ada2a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_1ada2a(); + prevent_dce.Store >(0u, select_1ada2a()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_1ada2a(); + prevent_dce.Store >(0u, select_1ada2a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_1ada2a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000027C7C879280(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.ir.fxc.hlsl index 32fcf12b333..0fe7ef8d70a 100644 --- a/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021D9D825FC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E6F5F8B700(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/select/53d518.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/53d518.wgsl.expected.fxc.hlsl index 4ee04fea92b..b8260b222a3 100644 --- a/test/tint/builtins/gen/var/select/53d518.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/53d518.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_53d518() { +vector select_53d518() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; bool3 arg_2 = (true).xxx; vector res = (arg_2 ? arg_1 : arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_53d518(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_53d518(); + prevent_dce.Store >(0u, select_53d518()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_53d518(); + prevent_dce.Store >(0u, select_53d518()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_53d518(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000239D80BE090(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/select/53d518.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/select/53d518.wgsl.expected.ir.fxc.hlsl index 095b8f752d4..96dd3e829e1 100644 --- a/test/tint/builtins/gen/var/select/53d518.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/53d518.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001960B4E0360(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000212F873F4C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.fxc.hlsl index 9354ecb1eab..43b7e1d1eb5 100644 --- a/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_830dd9() { +vector select_830dd9() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; bool arg_2 = true; vector res = (arg_2 ? arg_1 : arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_830dd9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_830dd9(); + prevent_dce.Store >(0u, select_830dd9()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_830dd9(); + prevent_dce.Store >(0u, select_830dd9()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_830dd9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001634B6E57B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.ir.fxc.hlsl index 1be7a86a522..30b97bd65a4 100644 --- a/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B852E05FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002256836B700(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.fxc.hlsl index 6b19e4fc003..d98cc6fda28 100644 --- a/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_86f9bd() { +vector select_86f9bd() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; bool arg_2 = true; vector res = (arg_2 ? arg_1 : arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_86f9bd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_86f9bd(); + prevent_dce.Store >(0u, select_86f9bd()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_86f9bd(); + prevent_dce.Store >(0u, select_86f9bd()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_86f9bd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002737A97A8E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.ir.fxc.hlsl index 452265ae73d..a6caef4c2ac 100644 --- a/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000249FD8E5040(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BDEF1E6A30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/select/a081f1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/a081f1.wgsl.expected.fxc.hlsl index 43eaa62cd3e..7ba05e0d5d0 100644 --- a/test/tint/builtins/gen/var/select/a081f1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/a081f1.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_a081f1() { +vector select_a081f1() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; bool4 arg_2 = (true).xxxx; vector res = (arg_2 ? arg_1 : arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_a081f1(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_a081f1(); + prevent_dce.Store >(0u, select_a081f1()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_a081f1(); + prevent_dce.Store >(0u, select_a081f1()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_a081f1(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000024F6EAB57C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/select/a081f1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/select/a081f1.wgsl.expected.ir.fxc.hlsl index dfc5691271b..46240f13fa5 100644 --- a/test/tint/builtins/gen/var/select/a081f1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/a081f1.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002E6C85B3040(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A15357B6D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/select/ed7c13.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/select/ed7c13.wgsl.expected.fxc.hlsl index 09e3ce05518..ef294557dd6 100644 --- a/test/tint/builtins/gen/var/select/ed7c13.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/ed7c13.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void select_ed7c13() { +vector select_ed7c13() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; bool2 arg_2 = (true).xx; vector res = (arg_2 ? arg_1 : arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - select_ed7c13(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - select_ed7c13(); + prevent_dce.Store >(0u, select_ed7c13()); return; } [numthreads(1, 1, 1)] void compute_main() { - select_ed7c13(); + prevent_dce.Store >(0u, select_ed7c13()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = select_ed7c13(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002699FCA9260(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/select/ed7c13.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/select/ed7c13.wgsl.expected.ir.fxc.hlsl index d8d9e60b44c..7b3ae3dfa55 100644 --- a/test/tint/builtins/gen/var/select/ed7c13.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/select/ed7c13.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000166EAC3F950(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000296A5A14640(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sign/160933.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sign/160933.wgsl.expected.fxc.hlsl index 8b6e1aacbf9..36aa45b7cbe 100644 --- a/test/tint/builtins/gen/var/sign/160933.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sign/160933.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sign_160933() { +vector sign_160933() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = vector(sign(arg_0)); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sign_160933(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sign_160933(); + prevent_dce.Store >(0u, sign_160933()); return; } [numthreads(1, 1, 1)] void compute_main() { - sign_160933(); + prevent_dce.Store >(0u, sign_160933()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sign_160933(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000022C254A4990(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sign/160933.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sign/160933.wgsl.expected.ir.fxc.hlsl index 48e2169c9bf..77acbf48b9a 100644 --- a/test/tint/builtins/gen/var/sign/160933.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sign/160933.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B002FC0030(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000259FFE95C30(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sign/5d283a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sign/5d283a.wgsl.expected.fxc.hlsl index 541058ca615..1f0e6b8f7ab 100644 --- a/test/tint/builtins/gen/var/sign/5d283a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sign/5d283a.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sign_5d283a() { +vector sign_5d283a() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = vector(sign(arg_0)); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sign_5d283a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sign_5d283a(); + prevent_dce.Store >(0u, sign_5d283a()); return; } [numthreads(1, 1, 1)] void compute_main() { - sign_5d283a(); + prevent_dce.Store >(0u, sign_5d283a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sign_5d283a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002DFEB61D370(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sign/5d283a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sign/5d283a.wgsl.expected.ir.fxc.hlsl index 459f5874748..dd25cb8a4a9 100644 --- a/test/tint/builtins/gen/var/sign/5d283a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sign/5d283a.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017AB20F5050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F2AE79D0A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sign/7c85ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sign/7c85ea.wgsl.expected.fxc.hlsl index 8dbf1d5160c..8bff6eb8a2e 100644 --- a/test/tint/builtins/gen/var/sign/7c85ea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sign/7c85ea.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sign_7c85ea() { +float16_t sign_7c85ea() { float16_t arg_0 = float16_t(1.0h); float16_t res = float16_t(sign(arg_0)); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sign_7c85ea(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sign_7c85ea(); + prevent_dce.Store(0u, sign_7c85ea()); return; } [numthreads(1, 1, 1)] void compute_main() { - sign_7c85ea(); + prevent_dce.Store(0u, sign_7c85ea()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sign_7c85ea(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001B0F716D480(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/sign/7c85ea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sign/7c85ea.wgsl.expected.ir.fxc.hlsl index 33be8c0d6a9..027c7c1dba8 100644 --- a/test/tint/builtins/gen/var/sign/7c85ea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sign/7c85ea.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D92BA726E0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002506A34B6F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/sign/ccdb3c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sign/ccdb3c.wgsl.expected.fxc.hlsl index 33d9cbf1e8d..214c6ed8e3a 100644 --- a/test/tint/builtins/gen/var/sign/ccdb3c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sign/ccdb3c.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sign_ccdb3c() { +vector sign_ccdb3c() { vector arg_0 = (float16_t(1.0h)).xx; vector res = vector(sign(arg_0)); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sign_ccdb3c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sign_ccdb3c(); + prevent_dce.Store >(0u, sign_ccdb3c()); return; } [numthreads(1, 1, 1)] void compute_main() { - sign_ccdb3c(); + prevent_dce.Store >(0u, sign_ccdb3c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sign_ccdb3c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021293659F50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sign/ccdb3c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sign/ccdb3c.wgsl.expected.ir.fxc.hlsl index 3f5baf00cae..79483747e94 100644 --- a/test/tint/builtins/gen/var/sign/ccdb3c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sign/ccdb3c.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CCCC6102E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EF0B79C320(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sin/2c903b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sin/2c903b.wgsl.expected.fxc.hlsl index 43c6cd30110..d29050a3b9b 100644 --- a/test/tint/builtins/gen/var/sin/2c903b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sin/2c903b.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sin_2c903b() { +vector sin_2c903b() { vector arg_0 = (float16_t(1.5703125h)).xxx; vector res = sin(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sin_2c903b(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sin_2c903b(); + prevent_dce.Store >(0u, sin_2c903b()); return; } [numthreads(1, 1, 1)] void compute_main() { - sin_2c903b(); + prevent_dce.Store >(0u, sin_2c903b()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sin_2c903b(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000021714CE5740(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sin/2c903b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sin/2c903b.wgsl.expected.ir.fxc.hlsl index d3ace6db281..2f95734938f 100644 --- a/test/tint/builtins/gen/var/sin/2c903b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sin/2c903b.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F3F1BA5480(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002244A765290(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sin/3cca11.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sin/3cca11.wgsl.expected.fxc.hlsl index 9d7b049bf42..6e9137f8024 100644 --- a/test/tint/builtins/gen/var/sin/3cca11.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sin/3cca11.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sin_3cca11() { +vector sin_3cca11() { vector arg_0 = (float16_t(1.5703125h)).xx; vector res = sin(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sin_3cca11(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sin_3cca11(); + prevent_dce.Store >(0u, sin_3cca11()); return; } [numthreads(1, 1, 1)] void compute_main() { - sin_3cca11(); + prevent_dce.Store >(0u, sin_3cca11()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sin_3cca11(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025E3F7ECD10(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sin/3cca11.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sin/3cca11.wgsl.expected.ir.fxc.hlsl index 7db003c326b..56dd003ed45 100644 --- a/test/tint/builtins/gen/var/sin/3cca11.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sin/3cca11.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BA659BEB50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000220638B6550(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sin/5c0712.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sin/5c0712.wgsl.expected.fxc.hlsl index 0ff6cb6d29c..bd2db9a97f9 100644 --- a/test/tint/builtins/gen/var/sin/5c0712.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sin/5c0712.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sin_5c0712() { +vector sin_5c0712() { vector arg_0 = (float16_t(1.5703125h)).xxxx; vector res = sin(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sin_5c0712(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sin_5c0712(); + prevent_dce.Store >(0u, sin_5c0712()); return; } [numthreads(1, 1, 1)] void compute_main() { - sin_5c0712(); + prevent_dce.Store >(0u, sin_5c0712()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sin_5c0712(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001FB59D77F80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sin/5c0712.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sin/5c0712.wgsl.expected.ir.fxc.hlsl index 7167e10f6df..bcae561e491 100644 --- a/test/tint/builtins/gen/var/sin/5c0712.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sin/5c0712.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018A0E0EF390(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022698B8BAC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sin/66a59f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sin/66a59f.wgsl.expected.fxc.hlsl index 08dd07b32bc..d29a9848eab 100644 --- a/test/tint/builtins/gen/var/sin/66a59f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sin/66a59f.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sin_66a59f() { +float16_t sin_66a59f() { float16_t arg_0 = float16_t(1.5703125h); float16_t res = sin(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sin_66a59f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sin_66a59f(); + prevent_dce.Store(0u, sin_66a59f()); return; } [numthreads(1, 1, 1)] void compute_main() { - sin_66a59f(); + prevent_dce.Store(0u, sin_66a59f()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sin_66a59f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000204C75ABE40(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/sin/66a59f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sin/66a59f.wgsl.expected.ir.fxc.hlsl index 0e5d7b31a5f..fdc61522baf 100644 --- a/test/tint/builtins/gen/var/sin/66a59f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sin/66a59f.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000183428FE9C0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001F1BD7038C0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/sinh/0908c1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sinh/0908c1.wgsl.expected.fxc.hlsl index eb361d6bf42..8d53c40acf0 100644 --- a/test/tint/builtins/gen/var/sinh/0908c1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sinh/0908c1.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sinh_0908c1() { +vector sinh_0908c1() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = sinh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sinh_0908c1(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sinh_0908c1(); + prevent_dce.Store >(0u, sinh_0908c1()); return; } [numthreads(1, 1, 1)] void compute_main() { - sinh_0908c1(); + prevent_dce.Store >(0u, sinh_0908c1()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sinh_0908c1(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001422720FD80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sinh/0908c1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sinh/0908c1.wgsl.expected.ir.fxc.hlsl index 10a5f7fef69..90e2b97b8e9 100644 --- a/test/tint/builtins/gen/var/sinh/0908c1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sinh/0908c1.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000216907A5020(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000143AF9C8F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sinh/69cce2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sinh/69cce2.wgsl.expected.fxc.hlsl index 3dd5e21471a..9b1a65c15ef 100644 --- a/test/tint/builtins/gen/var/sinh/69cce2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sinh/69cce2.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sinh_69cce2() { +float16_t sinh_69cce2() { float16_t arg_0 = float16_t(1.0h); float16_t res = sinh(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sinh_69cce2(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sinh_69cce2(); + prevent_dce.Store(0u, sinh_69cce2()); return; } [numthreads(1, 1, 1)] void compute_main() { - sinh_69cce2(); + prevent_dce.Store(0u, sinh_69cce2()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sinh_69cce2(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000017FBBB46C90(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/sinh/69cce2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sinh/69cce2.wgsl.expected.ir.fxc.hlsl index 1ca325798d1..bf6ce5f2268 100644 --- a/test/tint/builtins/gen/var/sinh/69cce2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sinh/69cce2.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B7B69CE3A0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000021A2DDDCB80(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/sinh/924f19.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sinh/924f19.wgsl.expected.fxc.hlsl index 31eed650e9f..f106ad59396 100644 --- a/test/tint/builtins/gen/var/sinh/924f19.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sinh/924f19.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sinh_924f19() { +vector sinh_924f19() { vector arg_0 = (float16_t(1.0h)).xx; vector res = sinh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sinh_924f19(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sinh_924f19(); + prevent_dce.Store >(0u, sinh_924f19()); return; } [numthreads(1, 1, 1)] void compute_main() { - sinh_924f19(); + prevent_dce.Store >(0u, sinh_924f19()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sinh_924f19(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000187EF1165F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sinh/924f19.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sinh/924f19.wgsl.expected.ir.fxc.hlsl index 2d2025c19b1..5f4717e6e09 100644 --- a/test/tint/builtins/gen/var/sinh/924f19.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sinh/924f19.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EBE0D454A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026DFD3D8FC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sinh/ba7e25.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sinh/ba7e25.wgsl.expected.fxc.hlsl index 1008b88a658..4072b0d2ee7 100644 --- a/test/tint/builtins/gen/var/sinh/ba7e25.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sinh/ba7e25.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sinh_ba7e25() { +vector sinh_ba7e25() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = sinh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sinh_ba7e25(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sinh_ba7e25(); + prevent_dce.Store >(0u, sinh_ba7e25()); return; } [numthreads(1, 1, 1)] void compute_main() { - sinh_ba7e25(); + prevent_dce.Store >(0u, sinh_ba7e25()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sinh_ba7e25(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002627CA49470(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sinh/ba7e25.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sinh/ba7e25.wgsl.expected.ir.fxc.hlsl index eba3ba8337b..63de1b5cdda 100644 --- a/test/tint/builtins/gen/var/sinh/ba7e25.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sinh/ba7e25.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B8E30EEA10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021D59488FA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/smoothstep/12c031.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/12c031.wgsl.expected.fxc.hlsl index 90ca1c66d2b..eb5e11f62c5 100644 --- a/test/tint/builtins/gen/var/smoothstep/12c031.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/smoothstep/12c031.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void smoothstep_12c031() { +vector smoothstep_12c031() { vector arg_0 = (float16_t(2.0h)).xx; vector arg_1 = (float16_t(4.0h)).xx; vector arg_2 = (float16_t(3.0h)).xx; vector res = smoothstep(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - smoothstep_12c031(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - smoothstep_12c031(); + prevent_dce.Store >(0u, smoothstep_12c031()); return; } [numthreads(1, 1, 1)] void compute_main() { - smoothstep_12c031(); + prevent_dce.Store >(0u, smoothstep_12c031()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = smoothstep_12c031(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000018CB4FDBC40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/smoothstep/12c031.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/12c031.wgsl.expected.ir.fxc.hlsl index b03b01cb061..1da42573980 100644 --- a/test/tint/builtins/gen/var/smoothstep/12c031.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/smoothstep/12c031.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019F3378E120(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001954F988800(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/smoothstep/586e12.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/586e12.wgsl.expected.fxc.hlsl index 3ce6694f23b..98dcffdc919 100644 --- a/test/tint/builtins/gen/var/smoothstep/586e12.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/smoothstep/586e12.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void smoothstep_586e12() { +float16_t smoothstep_586e12() { float16_t arg_0 = float16_t(2.0h); float16_t arg_1 = float16_t(4.0h); float16_t arg_2 = float16_t(3.0h); float16_t res = smoothstep(arg_0, arg_1, arg_2); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - smoothstep_586e12(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - smoothstep_586e12(); + prevent_dce.Store(0u, smoothstep_586e12()); return; } [numthreads(1, 1, 1)] void compute_main() { - smoothstep_586e12(); + prevent_dce.Store(0u, smoothstep_586e12()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = smoothstep_586e12(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000023B7ABE42B0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/smoothstep/586e12.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/586e12.wgsl.expected.ir.fxc.hlsl index 1a68491ba76..888643f64ad 100644 --- a/test/tint/builtins/gen/var/smoothstep/586e12.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/smoothstep/586e12.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002739D765F80(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001EEA8F654F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/smoothstep/6e7a74.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/6e7a74.wgsl.expected.fxc.hlsl index 66a70840632..8231aa6839a 100644 --- a/test/tint/builtins/gen/var/smoothstep/6e7a74.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/smoothstep/6e7a74.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void smoothstep_6e7a74() { +vector smoothstep_6e7a74() { vector arg_0 = (float16_t(2.0h)).xxx; vector arg_1 = (float16_t(4.0h)).xxx; vector arg_2 = (float16_t(3.0h)).xxx; vector res = smoothstep(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - smoothstep_6e7a74(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - smoothstep_6e7a74(); + prevent_dce.Store >(0u, smoothstep_6e7a74()); return; } [numthreads(1, 1, 1)] void compute_main() { - smoothstep_6e7a74(); + prevent_dce.Store >(0u, smoothstep_6e7a74()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = smoothstep_6e7a74(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000246BCC857E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/smoothstep/6e7a74.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/6e7a74.wgsl.expected.ir.fxc.hlsl index e7f22dc046d..6b73ee5370b 100644 --- a/test/tint/builtins/gen/var/smoothstep/6e7a74.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/smoothstep/6e7a74.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A2C52BECB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020EEB3CBBF0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/smoothstep/c43ebd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/c43ebd.wgsl.expected.fxc.hlsl index 47b65c9c910..124b77b6e57 100644 --- a/test/tint/builtins/gen/var/smoothstep/c43ebd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/smoothstep/c43ebd.wgsl.expected.fxc.hlsl @@ -1,38 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void smoothstep_c43ebd() { +vector smoothstep_c43ebd() { vector arg_0 = (float16_t(2.0h)).xxxx; vector arg_1 = (float16_t(4.0h)).xxxx; vector arg_2 = (float16_t(3.0h)).xxxx; vector res = smoothstep(arg_0, arg_1, arg_2); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - smoothstep_c43ebd(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - smoothstep_c43ebd(); + prevent_dce.Store >(0u, smoothstep_c43ebd()); return; } [numthreads(1, 1, 1)] void compute_main() { - smoothstep_c43ebd(); + prevent_dce.Store >(0u, smoothstep_c43ebd()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = smoothstep_c43ebd(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000238E0B634A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/smoothstep/c43ebd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/smoothstep/c43ebd.wgsl.expected.ir.fxc.hlsl index f32655ac5cd..c799ce66de4 100644 --- a/test/tint/builtins/gen/var/smoothstep/c43ebd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/smoothstep/c43ebd.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002570E01E8B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029B7FEA9DC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sqrt/803d1c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/803d1c.wgsl.expected.fxc.hlsl index a57f306ba27..081ef0d30d0 100644 --- a/test/tint/builtins/gen/var/sqrt/803d1c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sqrt/803d1c.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sqrt_803d1c() { +vector sqrt_803d1c() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = sqrt(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sqrt_803d1c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sqrt_803d1c(); + prevent_dce.Store >(0u, sqrt_803d1c()); return; } [numthreads(1, 1, 1)] void compute_main() { - sqrt_803d1c(); + prevent_dce.Store >(0u, sqrt_803d1c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sqrt_803d1c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000027AB6BD1330(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sqrt/803d1c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/803d1c.wgsl.expected.ir.fxc.hlsl index b71e7c3fc4a..9a17fbf8f81 100644 --- a/test/tint/builtins/gen/var/sqrt/803d1c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sqrt/803d1c.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A0F798FBB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D565AA8F80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sqrt/895a0c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/895a0c.wgsl.expected.fxc.hlsl index 270e15852a0..f97fa49a5c5 100644 --- a/test/tint/builtins/gen/var/sqrt/895a0c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sqrt/895a0c.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sqrt_895a0c() { +vector sqrt_895a0c() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = sqrt(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sqrt_895a0c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sqrt_895a0c(); + prevent_dce.Store >(0u, sqrt_895a0c()); return; } [numthreads(1, 1, 1)] void compute_main() { - sqrt_895a0c(); + prevent_dce.Store >(0u, sqrt_895a0c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sqrt_895a0c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002233C3265C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sqrt/895a0c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/895a0c.wgsl.expected.ir.fxc.hlsl index df49c10f1f9..2bb986cd2e0 100644 --- a/test/tint/builtins/gen/var/sqrt/895a0c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sqrt/895a0c.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015AF983EB10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000211259F93F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sqrt/d9ab4d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/d9ab4d.wgsl.expected.fxc.hlsl index e6848953166..24476bc45db 100644 --- a/test/tint/builtins/gen/var/sqrt/d9ab4d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sqrt/d9ab4d.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sqrt_d9ab4d() { +vector sqrt_d9ab4d() { vector arg_0 = (float16_t(1.0h)).xx; vector res = sqrt(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sqrt_d9ab4d(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sqrt_d9ab4d(); + prevent_dce.Store >(0u, sqrt_d9ab4d()); return; } [numthreads(1, 1, 1)] void compute_main() { - sqrt_d9ab4d(); + prevent_dce.Store >(0u, sqrt_d9ab4d()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sqrt_d9ab4d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000253AA4D9890(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/sqrt/d9ab4d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/d9ab4d.wgsl.expected.ir.fxc.hlsl index a72b9f67163..82508d8f587 100644 --- a/test/tint/builtins/gen/var/sqrt/d9ab4d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sqrt/d9ab4d.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CEFE927FB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A349DA8B20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/sqrt/ec33e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/ec33e9.wgsl.expected.fxc.hlsl index 6b2cc9cc52f..674e392a6a5 100644 --- a/test/tint/builtins/gen/var/sqrt/ec33e9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/sqrt/ec33e9.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void sqrt_ec33e9() { +float16_t sqrt_ec33e9() { float16_t arg_0 = float16_t(1.0h); float16_t res = sqrt(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - sqrt_ec33e9(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - sqrt_ec33e9(); + prevent_dce.Store(0u, sqrt_ec33e9()); return; } [numthreads(1, 1, 1)] void compute_main() { - sqrt_ec33e9(); + prevent_dce.Store(0u, sqrt_ec33e9()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = sqrt_ec33e9(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001D92499FE30(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/sqrt/ec33e9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/sqrt/ec33e9.wgsl.expected.ir.fxc.hlsl index 8e2b55a7df2..6f3df0ce400 100644 --- a/test/tint/builtins/gen/var/sqrt/ec33e9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/sqrt/ec33e9.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002F59B9F0150(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000204F33BAA30(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/step/07cb06.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/step/07cb06.wgsl.expected.fxc.hlsl index bcc868bad82..3b1c5f49501 100644 --- a/test/tint/builtins/gen/var/step/07cb06.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/step/07cb06.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void step_07cb06() { +vector step_07cb06() { vector arg_0 = (float16_t(1.0h)).xx; vector arg_1 = (float16_t(1.0h)).xx; vector res = step(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - step_07cb06(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - step_07cb06(); + prevent_dce.Store >(0u, step_07cb06()); return; } [numthreads(1, 1, 1)] void compute_main() { - step_07cb06(); + prevent_dce.Store >(0u, step_07cb06()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = step_07cb06(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000012463145780(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/step/07cb06.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/step/07cb06.wgsl.expected.ir.fxc.hlsl index e2ec7eb323a..bd152d2e006 100644 --- a/test/tint/builtins/gen/var/step/07cb06.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/step/07cb06.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023521630A10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F8A288B800(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/step/630d07.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/step/630d07.wgsl.expected.fxc.hlsl index 59a6ce92fbf..15f26870260 100644 --- a/test/tint/builtins/gen/var/step/630d07.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/step/630d07.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void step_630d07() { +float16_t step_630d07() { float16_t arg_0 = float16_t(1.0h); float16_t arg_1 = float16_t(1.0h); float16_t res = step(arg_0, arg_1); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - step_630d07(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - step_630d07(); + prevent_dce.Store(0u, step_630d07()); return; } [numthreads(1, 1, 1)] void compute_main() { - step_630d07(); + prevent_dce.Store(0u, step_630d07()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = step_630d07(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E5E55A38D0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/step/630d07.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/step/630d07.wgsl.expected.ir.fxc.hlsl index 8be80161cd5..a092308bf98 100644 --- a/test/tint/builtins/gen/var/step/630d07.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/step/630d07.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019BE2735030(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000016B86DE61F0(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/step/baa320.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/step/baa320.wgsl.expected.fxc.hlsl index 1d50723d7fc..eea34c36cee 100644 --- a/test/tint/builtins/gen/var/step/baa320.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/step/baa320.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void step_baa320() { +vector step_baa320() { vector arg_0 = (float16_t(1.0h)).xxxx; vector arg_1 = (float16_t(1.0h)).xxxx; vector res = step(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - step_baa320(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - step_baa320(); + prevent_dce.Store >(0u, step_baa320()); return; } [numthreads(1, 1, 1)] void compute_main() { - step_baa320(); + prevent_dce.Store >(0u, step_baa320()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = step_baa320(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A41FE0D3D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/step/baa320.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/step/baa320.wgsl.expected.ir.fxc.hlsl index 490268bc3d0..3aa95cc4907 100644 --- a/test/tint/builtins/gen/var/step/baa320.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/step/baa320.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025AC5A75050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000283FFAECF50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/step/cc6b61.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/step/cc6b61.wgsl.expected.fxc.hlsl index 374e8a2d7f1..3c2dae9c10c 100644 --- a/test/tint/builtins/gen/var/step/cc6b61.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/step/cc6b61.wgsl.expected.fxc.hlsl @@ -1,37 +1,48 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void step_cc6b61() { +vector step_cc6b61() { vector arg_0 = (float16_t(1.0h)).xxx; vector arg_1 = (float16_t(1.0h)).xxx; vector res = step(arg_0, arg_1); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - step_cc6b61(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - step_cc6b61(); + prevent_dce.Store >(0u, step_cc6b61()); return; } [numthreads(1, 1, 1)] void compute_main() { - step_cc6b61(); + prevent_dce.Store >(0u, step_cc6b61()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = step_cc6b61(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000020563D35D50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/step/cc6b61.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/step/cc6b61.wgsl.expected.ir.fxc.hlsl index e17d8da8554..1fb3ac71841 100644 --- a/test/tint/builtins/gen/var/step/cc6b61.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/step/cc6b61.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000231D5675050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000207792A3EA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.fxc.hlsl index 91a467575ee..c240c899ce3 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupAdd_0dd12a() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupAdd_0dd12a()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupAdd_0dd12a()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000016724106660(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000256C403D3F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.ir.fxc.hlsl index fd81b5ed180..1162358c1da 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018947FC92C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002480E9D5FC0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.fxc.hlsl index 04c19e1c625..647713cbe7f 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint2 subgroupAdd_1280c8() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupAdd_1280c8())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupAdd_1280c8())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002CC18BBFCC0(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000025A699701D0(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.ir.fxc.hlsl index 798c152f44e..d2895cf9ca4 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002321A239300(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000002481D2ABBC0(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.fxc.hlsl index 2f3bfca1d4b..076a7c34f56 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupAdd_1eb429() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupAdd_1eb429())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupAdd_1eb429())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000228FD2163D0(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000260CB925210(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.ir.fxc.hlsl index 84f50ddee00..b3efd782b4f 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EF28BD9300(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000023EBF8ABDC0(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.fxc.hlsl index ab34301b548..f86504fa030 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float16_t subgroupAdd_225207() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupAdd_225207()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupAdd_225207()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000026C96842240(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002E8C2C55230(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.ir.fxc.hlsl index 5d76eb5143c..f41678d5cae 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A5A55190A0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001F1E86FFCB0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.fxc.hlsl index d60d8d312e7..5777cc2df38 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupAdd_22d041() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupAdd_22d041())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupAdd_22d041())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000281DEC92CF0(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000013B16919B60(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.ir.fxc.hlsl index fd2d540a6f0..f4262b465bf 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021D851200A0(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001CED295E3C0(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.fxc.hlsl index af14f6c24e3..ee3ee641b68 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupAdd_28db2c() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupAdd_28db2c())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupAdd_28db2c())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000019DD2C63750(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001B718694F70(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.ir.fxc.hlsl index ebf7725bf84..7a9f6dc7194 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000292A98FCA00(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000002123198BBC0(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.fxc.hlsl index 878f4094fe9..3bde98a0513 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupAdd_2ab40a() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupAdd_2ab40a()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupAdd_2ab40a()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001AF7F43CA40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002328CFE46F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.ir.fxc.hlsl index bfd8857df5a..d295ea43e91 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002DAC5FDFF40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029FEFA9D2A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.fxc.hlsl index 5d3f3366c4c..35f84261268 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float subgroupAdd_3854ae() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupAdd_3854ae())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupAdd_3854ae())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000023728F093C0(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000020567806F90(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.ir.fxc.hlsl index 6c0e3df4322..d89c9a0b3ef 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D83AFAEFE0(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001C0909ABB20(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.fxc.hlsl index c74ace499cd..fa5fff3096d 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint3 subgroupAdd_6587ff() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupAdd_6587ff())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupAdd_6587ff())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001AB9FDFEBE0(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000018936E6AF00(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.ir.fxc.hlsl index 14cfc19b843..48884764f6e 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AE40F7EED0(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001F5695B5000(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.fxc.hlsl index 2efd9d185d4..08f0f3ae19f 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float3 subgroupAdd_7d1215() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupAdd_7d1215())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupAdd_7d1215())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000022CB470F2E0(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000023DB4115290(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.ir.fxc.hlsl index 4281a17fc41..30e5ff034ea 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E95384F2D0(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001717104BBC0(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.fxc.hlsl index cb24be40851..652e6e70f38 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float4 subgroupAdd_8f4c15() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupAdd_8f4c15())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupAdd_8f4c15())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000024228742450(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000023515B046C0(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.ir.fxc.hlsl index b26b47febcd..cbcffb9ac7d 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A961DC9300(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001FF42349B00(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.fxc.hlsl index 4882e887f17..6e8f950e18f 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint subgroupAdd_b61df7() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupAdd_b61df7())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupAdd_b61df7())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001AD75DCE340(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000024CEE2DB4D0(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.ir.fxc.hlsl index cee10a13ad5..82e6baea9d4 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000014E5500EC90(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000002264E6BD560(5,14-33): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.fxc.hlsl index 44bb6f4bf3e..e6309e1c15e 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int subgroupAdd_ba53f9() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupAdd_ba53f9())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupAdd_ba53f9())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001DAD6877D80(5,13-32): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x00000227737E0D50(5,13-32): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.ir.fxc.hlsl index 24788c4cea0..d4ba660fc82 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F592E4EA70(5,13-32): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001FE02ABDD50(5,13-32): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.fxc.hlsl index a7ec2f5efd0..da98cc436a5 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupAdd_cae1ed() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupAdd_cae1ed()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupAdd_cae1ed()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000029DB8637E60(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001AC68E046F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.ir.fxc.hlsl index 2a8d88874ea..8bbb2bf8f79 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F27BB1F100(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E249A6E1C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.fxc.hlsl index 54e780b6be2..04853f4782e 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float2 subgroupAdd_dcf73f() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupAdd_dcf73f())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupAdd_dcf73f())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000018791DB7DD0(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000002685E096030(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.ir.fxc.hlsl index 7ca2f23ed11..13a66177dc5 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002265E0DF7C0(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000001CCE97A9B00(5,16-35): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.fxc.hlsl index 4835cbe7e8a..2ef32b2dacd 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint4 subgroupAdd_fbc357() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupAdd_fbc357())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupAdd_fbc357())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000028641012BE0(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x0000019D21522730(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.ir.fxc.hlsl index d07dab8dcc3..fdd83e0c776 100644 --- a/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000218964C0C40(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' +C:\src\dawn\Shader@0x000002A174246E20(5,15-34): error X3004: undeclared identifier 'WaveActiveSum' diff --git a/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.fxc.hlsl index a195482df65..e07ea92d882 100644 --- a/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupAll_c962bd())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023A1DD34140(5,14-37): error X3004: undeclared identifier 'WaveActiveAllTrue' + diff --git a/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.ir.fxc.hlsl index 17f2d2d36fd..8912659bced 100644 --- a/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016D3B3EF140(5,14-37): error X3004: undeclared identifier 'WaveActiveAllTrue' +C:\src\dawn\Shader@0x000001797DFDDE70(5,14-37): error X3004: undeclared identifier 'WaveActiveAllTrue' diff --git a/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.fxc.hlsl index 38424dc59cc..dd0b8d04989 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupAnd_1877b3() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupAnd_1877b3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupAnd_1877b3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002D167C11700(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x00000204FC1A0600(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.ir.fxc.hlsl index c2e276a8298..589e5c59c35 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029CBD46CA00(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x00000220F3A2FD80(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.fxc.hlsl index 4614ed65ad5..7e213aff210 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint2 subgroupAnd_376802() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupAnd_376802())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupAnd_376802())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002C13E4828F0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001463681B4D0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.ir.fxc.hlsl index 829b53c7ff3..f5affd20985 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021DBCEDCA00(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000002CBAAC3F830(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.fxc.hlsl index ea0a82f37aa..6112e55a96a 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupAnd_4adc72() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupAnd_4adc72())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupAnd_4adc72())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001D7E87F1CA0(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x0000014D89F89B60(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.ir.fxc.hlsl index 256bfef932f..ae6c939ae28 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000111D8A48FE0(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x00000275B9856890(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.fxc.hlsl index 810be0a36cb..ddaef6f6db2 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint subgroupAnd_4df632() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupAnd_4df632())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupAnd_4df632())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001DBF3300A70(5,14-36): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x0000021FB52E9510(5,14-36): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.ir.fxc.hlsl index b2ce6ce6494..148d2e3a513 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000213B04DEC90(5,14-36): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x0000028CF2EA67C0(5,14-36): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.fxc.hlsl index e89825f9bee..6dd185e16bd 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupAnd_97655b() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupAnd_97655b())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupAnd_97655b())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000147CD86DCC0(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x0000021702CEAAF0(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.ir.fxc.hlsl index 169b2d342ef..d5d0328f71e 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C5C6558E20(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001E3FDB0FD80(5,20-50): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.fxc.hlsl index 8b0a69e8812..70700046d74 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint3 subgroupAnd_ad0cd3() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupAnd_ad0cd3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupAnd_ad0cd3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000208C8E8C5A0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000002111F1DA0D0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.ir.fxc.hlsl index 1a0163c342d..c07965322c1 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DACD319300(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x00000294D6697F60(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.fxc.hlsl index 6cff6fdccb4..3e9e160b143 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int subgroupAnd_c6fc92() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupAnd_c6fc92())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupAnd_c6fc92())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000136FE991080(5,19-49): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x0000016FF880F8D0(5,19-49): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.ir.fxc.hlsl index 5679a5f9859..e4bdbb71de1 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FB6DE78D70(5,19-49): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000002CC4715BB20(5,19-49): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.fxc.hlsl index 8f4fcbfe7f9..645a7038aeb 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint4 subgroupAnd_d2c9a6() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupAnd_d2c9a6())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupAnd_d2c9a6())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002CB4B9D1740(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000001876B5F01D0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.ir.fxc.hlsl index 1689f86083a..0a56b8f3540 100644 --- a/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020400DEEED0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' +C:\src\dawn\Shader@0x000002222127E0B0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitAnd' diff --git a/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.fxc.hlsl index 5f24ce89cf7..a1d467b5ccd 100644 --- a/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupAny_cddda0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000015FF5E49B50(5,14-37): error X3004: undeclared identifier 'WaveActiveAnyTrue' + diff --git a/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.ir.fxc.hlsl index a4dd4d3c539..61e86fd444f 100644 --- a/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026958698F20(5,14-37): error X3004: undeclared identifier 'WaveActiveAnyTrue' +C:\src\dawn\Shader@0x0000024C7E324E90(5,14-37): error X3004: undeclared identifier 'WaveActiveAnyTrue' diff --git a/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.fxc.hlsl index 9da57734e4b..0850cd1bcd3 100644 --- a/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint4 subgroupBallot_1a8251() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupBallot_1a8251())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBallot_1a8251())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000216ACDFD010(5,15-37): error X3004: undeclared identifier 'WaveActiveBallot' +C:\src\dawn\Shader@0x0000020A5D1F0260(5,15-37): error X3004: undeclared identifier 'WaveActiveBallot' diff --git a/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.ir.fxc.hlsl index e2387fff974..6e04aeae1da 100644 --- a/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ACFADF9100(5,15-37): error X3004: undeclared identifier 'WaveActiveBallot' +C:\src\dawn\Shader@0x000001F7A31646A0(5,15-37): error X3004: undeclared identifier 'WaveActiveBallot' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.fxc.hlsl index 7cf540e99ff..bdcdd58e9b9 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_02f329()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001AD4920FEA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.ir.fxc.hlsl index b8757249740..113cf8d079c 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C3EB06F350(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000128E7C2AFE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.fxc.hlsl index f0994ff7320..a8c75ea1f28 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float16_t subgroupBroadcast_07e2d8() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupBroadcast_07e2d8()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupBroadcast_07e2d8()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001DDF4F1F440(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E6B1631A00(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.ir.fxc.hlsl index 07059f1334d..07bdd1b59e0 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E883950700(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001A47C08C400(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.fxc.hlsl index 12cce6dae1e..baf65935225 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float subgroupBroadcast_08beca() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupBroadcast_08beca())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_08beca())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000260FE0CC900(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002E0ECA75640(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.ir.fxc.hlsl index 7caaf1d53c8..34db0c3d4d0 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002BBE5EF02B0(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002321DABFB60(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.fxc.hlsl index 26f3f2a0931..b249e10458d 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupBroadcast_0f44e2() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupBroadcast_0f44e2()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_0f44e2()); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000166868CD1D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002314F0100A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.ir.fxc.hlsl index 43a12ba1c24..cf412a3e3a3 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000258064D9220(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016CB2C3AFF0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.fxc.hlsl index e3076d9422c..5781e1012c3 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupBroadcast_13f36c() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupBroadcast_13f36c()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_13f36c()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001FD198BD1D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FAED10F400(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.ir.fxc.hlsl index f04b3ad4629..0c7527ab10a 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002505806F110(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D1392DBE00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.fxc.hlsl index 45e9a820b6b..3059b749523 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int subgroupBroadcast_1d79c7() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupBroadcast_1d79c7())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_1d79c7())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002205DFD0120(5,13-37): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000012FD6D203C0(5,13-37): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.ir.fxc.hlsl index 00fb2d378c6..69b87fb5597 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025163BF12E0(5,13-37): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001CEFE4E8080(5,13-37): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.fxc.hlsl index a58fe8fb904..ead4e2c2c0d 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint4 subgroupBroadcast_279027() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupBroadcast_279027())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_279027())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000024CFF3BFD20(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001A457BC60F0(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.ir.fxc.hlsl index 89f2bc3c3b8..9df7c09ba6e 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000233AA7DED80(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001B1A5CFC260(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.fxc.hlsl index 88fd3965502..ae9939257af 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_2b59c9())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000241FCCED6B0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.ir.fxc.hlsl index 1de568db7e2..410e5c63d89 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D387CCEF40(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000015BD72AF980(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.fxc.hlsl index 3ca106d909b..eed41a62570 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_34ae44())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000015773E587C0(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.ir.fxc.hlsl index 14374884203..4baa24bdce2 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002433D8AEF60(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000024A3CCABE40(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.fxc.hlsl index 6407ed3e674..2ac4659c130 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint3 subgroupBroadcast_34fa3d() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupBroadcast_34fa3d())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_34fa3d())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002345F903470(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000014E7FE4FE40(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.ir.fxc.hlsl index 7a569e5bceb..b86a67c7bb3 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000252A4ADF360(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001AC7A80A970(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.fxc.hlsl index 4696146ad90..989146c3d97 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupBroadcast_3e6879() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupBroadcast_3e6879())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_3e6879())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000012FD9152F00(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000272BC115670(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.ir.fxc.hlsl index 2930431c5d1..bf7d0097127 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000248BF08EF40(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000027993AFBD80(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.fxc.hlsl index 551b57ccb21..c30bcbb1e84 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupBroadcast_41e5d7() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupBroadcast_41e5d7()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_41e5d7()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002009A3ED1D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019CB2C9FAA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.ir.fxc.hlsl index 1454d2163b9..3ff5032ee57 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ECC5DC4950(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029FECC238D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.fxc.hlsl index 755b2e1e32e..79b579aaf69 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_49de94())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023796A96D30(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.ir.fxc.hlsl index 65b5205930f..1aa185160ee 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000201D0C50340(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002C6CD7F4700(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.fxc.hlsl index 80658b6548b..5af2373ab01 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint2 subgroupBroadcast_4a4334() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupBroadcast_4a4334())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_4a4334())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000015D73FA0A90(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000012D72478DA0(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.ir.fxc.hlsl index c7c1d84722d..17cf9904a82 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A8F35412F0(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000017876AFC340(5,15-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.fxc.hlsl index eb0b8b2cf1c..4e24e1e2d7c 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float2 subgroupBroadcast_5196c8() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupBroadcast_5196c8())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_5196c8())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000028954BBF3F0(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001F0E6919BE0(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.ir.fxc.hlsl index 683ae812556..638a5bbcdef 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021E6B3396A0(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000013DFEBFDE80(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.fxc.hlsl index b9137f7ca6f..614f87e8a39 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_6290a2())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002483F47BFC0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.ir.fxc.hlsl index f1051602251..4e077727baf 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A38A63A530(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001C9899251E0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.fxc.hlsl index 5e8374fae5a..19df21f4878 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupBroadcast_719ad6()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000175160EBBC0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.ir.fxc.hlsl index 5b5d95f85f2..417a5d4ad37 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002253981FAC0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001808F24A830(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.fxc.hlsl index 5913e10dc85..58a2fb415d8 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_727609())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B59704BDF0(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.ir.fxc.hlsl index c583be97931..462fa9ad595 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002237908EF60(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002372A4B0BE0(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.fxc.hlsl index 856c717b74e..f5946a1540c 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_838c78())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002504F7B5670(5,16-39): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.ir.fxc.hlsl index 661f516843a..25e897f933d 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DDF45297B0(5,16-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001DDAA8ED440(5,16-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.fxc.hlsl index 2ea4f9483db..a8737d2af55 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_867093())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002228993AFA0(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.ir.fxc.hlsl index a19a82822a2..e7923ad59a2 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025008F59990(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002399B78FB80(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.fxc.hlsl index 623dd60ee20..c631448e9c7 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_8855b2())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000226CB450740(5,16-39): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.ir.fxc.hlsl index b5e278e7f3c..6c12907e95c 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000225975DFF90(5,16-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000167A66C9BE0(5,16-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.fxc.hlsl index 54b5589ed3d..cf1306d586c 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float3 subgroupBroadcast_912ff5() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupBroadcast_912ff5())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_912ff5())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001EAC6861870(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000264E425CDB0(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.ir.fxc.hlsl index effa28380e2..e20229873d0 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019E7E9FEF30(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001BC1C374AF0(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.fxc.hlsl index 3c979fa8fc1..b0839d607e1 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_9ccdca())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025FB1A74700(5,13-36): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.ir.fxc.hlsl index b4acf5b090a..eede40c0fb8 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D8C0D50230(5,13-36): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000196ADBC5C20(5,13-36): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.fxc.hlsl index ccb6b4dda02..9297ccc6544 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_a279d7())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002090CFE0EF0(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.ir.fxc.hlsl index eeb57ea9dc8..43cac0fdfa6 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C4189A9350(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000023818AA58D0(5,15-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.fxc.hlsl index bce1a3407a1..46324a1f29a 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_a3b3e5()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001DA7FA961F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.ir.fxc.hlsl index 24510f964cf..c3df1d4ea17 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E0919EF510(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E2D6060000(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.fxc.hlsl index b4f143f5aa1..f3490143a96 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float4 subgroupBroadcast_b7e93b() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupBroadcast_b7e93b())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_b7e93b())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000011B9698C750(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002193EBD3C50(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.ir.fxc.hlsl index 18adea140dc..c4263ec7691 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019D7C9BEF40(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001C2598DDE80(5,16-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.fxc.hlsl index 9dcdf410e16..65e1767e860 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint subgroupBroadcast_c36fe1() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupBroadcast_c36fe1())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcast_c36fe1())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001CF1DB58740(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000235E56B4700(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.ir.fxc.hlsl index 63b5489fe45..fe335aa8ba9 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000212695E8FA0(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002BA20D3E9E0(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.fxc.hlsl index a1441cbb6fd..eecc35c5a9d 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_cd7aa1())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000185C3E83E30(5,16-39): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.ir.fxc.hlsl index d4fac6ff786..85faf6f81c2 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E1B582F350(5,16-39): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000022A8F0F51E0(5,16-39): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.fxc.hlsl index ea4ba8bc160..07a4e0aea37 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupBroadcast_e275c8() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupBroadcast_e275c8())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcast_e275c8())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002304F8DF590(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001B503E746E0(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.ir.fxc.hlsl index df9089872a4..1abcbc2e1dc 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000206DB25FF40(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000011A38E58DE0(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.fxc.hlsl index 0ec30ca03b6..7051cdfad30 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcast_e4dd1a()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001AFCDECCE10(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.ir.fxc.hlsl index fbff7908ce3..82276661a63 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CC6E2FE130(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000251CA485330(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.fxc.hlsl index da1ba5132af..980c6e1fe54 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupBroadcast_f637f9() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupBroadcast_f637f9())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcast_f637f9())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000247A6AEF3F0(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001B2408A0260(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.ir.fxc.hlsl index 56814b02db1..002de7a4c2c 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026909E7EF60(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001796B6EBD80(5,14-38): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.fxc.hlsl index c533aa0eb5b..339190fdb26 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcast_fa6810())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002196B8E4B30(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.ir.fxc.hlsl index deaef7a508c..93b647be5ff 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022C471CF040(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001D219B2C280(5,14-37): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.fxc.hlsl index 145d192008b..b51f53d495f 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcastFirst_0538e1())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021202725010(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.fxc.hlsl index a3ca7a6d588..246a7b80c41 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002314E6C9260(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x0000020FEECEFB80(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.fxc.hlsl index 49a9e389349..6b69baaf94d 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcastFirst_0e58ec()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000013B184AFC00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.fxc.hlsl index 8bc83818ce4..3ee36d97d0b 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CA3F8092C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021B5BE5FC00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.fxc.hlsl index 0378b88753c..c1a09e4e365 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupBroadcastFirst_151e52()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A10EBCBDA0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.ir.fxc.hlsl index d5a50f9b35d..7b0304173fe 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024502C7FE30(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001617919BDC0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.fxc.hlsl index 868f07f1e80..5cf956411a3 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcastFirst_1d9530())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026B73DDC9A0(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.fxc.hlsl index c0ffbfa73cb..2d0881902db 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A40574CA20(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x0000021ECBDDFDF0(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.fxc.hlsl index fe8da5df7fb..5f85478c0d1 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcastFirst_5c6962())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000161B97DDAD0(5,16-39): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.fxc.hlsl index 7e7084542c6..f3be0d67637 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AE19AAF530(5,16-39): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x00000208E54EFF70(5,16-39): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.fxc.hlsl index c7b949c1f38..fbe3c9b5d78 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcastFirst_5e5b6f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026AA86E9510(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.fxc.hlsl index 9cd2b9fc608..bea37cc22ce 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027736F50380(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000001E311449D20(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.fxc.hlsl index fe8bee0957a..adf49f7d429 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcastFirst_612d6f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021D9C1EFF20(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.fxc.hlsl index 18b0aa4ef74..7117f6c7a92 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000190ABF0C890(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x0000028E0BF15650(5,15-38): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.fxc.hlsl index 8d733c59d0c..88029302930 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcastFirst_61f177())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029C77E94EA0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.ir.fxc.hlsl index 1e8f461987d..61a7c9f1cdb 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001761B2A02E0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000001B2411B0E50(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.fxc.hlsl index c456e4ee2b2..9cd5aaf8038 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcastFirst_6945f6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001AA2277FCD0(5,16-39): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.fxc.hlsl index 2bd52c4af4a..90132678485 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025C90F70940(5,16-39): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000001E3EE0DC260(5,16-39): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.fxc.hlsl index 53dfd80ae72..ed4460f0129 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcastFirst_705aad()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B259B538C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.ir.fxc.hlsl index 0917c631512..a088ae506de 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BC301EA700(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A8295538F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.fxc.hlsl index ff6ed920cb8..c336d2dd693 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupBroadcastFirst_85b351())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D44C0B81F0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.ir.fxc.hlsl index 3a51d9a211f..16d56343518 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C477FB8EF0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000002CC8D8846E0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.fxc.hlsl index 2026ab33262..31a75bb6cb9 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcastFirst_8ae580())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002BFDF549520(5,16-39): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.fxc.hlsl index 92cb8de8670..628f6dbe1a8 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000167E36FF960(5,16-39): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x00000279C8899D20(5,16-39): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.fxc.hlsl index 773c4d6ce96..84ef5602d73 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupBroadcastFirst_9a1bdc())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002A8661668F0(5,13-36): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.fxc.hlsl index c1bb5fb66a2..c808d248a57 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A10C1E99C0(5,13-36): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x000001C81586FE10(5,13-36): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.fxc.hlsl index d9e0ee3ca4b..ce32acbc5b1 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupBroadcastFirst_9dccee())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F49D5046D0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.fxc.hlsl index 12e01d72708..cb9fcc64fed 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B9243104C0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x0000022061A3C280(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.fxc.hlsl index 906a1e19b37..cc28f658ba1 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupBroadcastFirst_a11307()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001535F264DC0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.ir.fxc.hlsl index 37cd06578bb..2b723248a81 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025B9EFC92E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B0539338F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.fxc.hlsl index 0b4261fb3db..0afc3c9c264 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -18,3 +18,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupBroadcastFirst_e820d4())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E34FDA5650(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' + diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.fxc.hlsl index 8e29f9ef9f2..21d6fc7be6c 100644 --- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000243918BEF40(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' +C:\src\dawn\Shader@0x0000022DD99AFDE0(5,14-37): error X3004: undeclared identifier 'WaveReadLaneFirst' diff --git a/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.fxc.hlsl index c05cc9d5611..fa32639a158 100644 --- a/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -17,3 +17,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupElect_3943d6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019AE48D0580(4,14-30): error X3004: undeclared identifier 'WaveIsFirstLane' + diff --git a/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.ir.fxc.hlsl index 8d3807dfb64..8d6df937d6c 100644 --- a/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002107D61EEC0(4,14-30): error X3004: undeclared identifier 'WaveIsFirstLane' +C:\src\dawn\Shader@0x0000012C4AD66510(4,14-30): error X3004: undeclared identifier 'WaveIsFirstLane' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.fxc.hlsl index e6cd814e36a..e8cc81b0611 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupExclusiveAdd_01de08() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveAdd_01de08()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveAdd_01de08()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000021B04B460F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E5AB9E38C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.ir.fxc.hlsl index 3dd537b4897..cc70c6c06ed 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CEC473ECA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027609FB38F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.fxc.hlsl index ee7f6d0aec9..2da6ccffea9 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint3 subgroupExclusiveAdd_0ff95a() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_0ff95a())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_0ff95a())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000023915FAC730(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x00000275CCE946D0(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.fxc.hlsl index ba58b0396f3..f4b5dae5189 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002518DEE9940(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000028154DCFDD0(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.fxc.hlsl index e66eb0e9e1a..5899569e411 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupExclusiveAdd_406ab4() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_406ab4())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_406ab4())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001DCC507C5C0(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x00000200380D9510(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.fxc.hlsl index 538dcd7b215..46585d2ad22 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B59CEBEF40(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001D581A9F7A0(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.fxc.hlsl index 04a5e9135e2..8019c71706e 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float3 subgroupExclusiveAdd_41cfde() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_41cfde())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_41cfde())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000185503CC780(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001C5A507C9A0(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.fxc.hlsl index 8fdec7d88b4..6a2daffb964 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019DE825FB00(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x00000276D134BDA0(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.fxc.hlsl index c54fe37ff11..3005a34bd4c 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint subgroupExclusiveAdd_42684c() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_42684c())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_42684c())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002530D1F3020(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001427EE24EA0(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.ir.fxc.hlsl index 1756bcbcbe0..6cecf0bde27 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EB07D300C0(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000002DBC95DBDE0(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.fxc.hlsl index d0704077b46..ab93bd1ed81 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint2 subgroupExclusiveAdd_48acea() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_48acea())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_48acea())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001CB9AB514C0(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000020CEC494ED0(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.ir.fxc.hlsl index c3f592a6cd8..f101a8a3026 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000247DC4A12B0(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000002794B7A7E00(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.fxc.hlsl index a3a5fc1c3c6..9047303654b 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float16_t subgroupExclusiveAdd_4a1568() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupExclusiveAdd_4a1568()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupExclusiveAdd_4a1568()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002893BF7CE00(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001CEE364F950(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.fxc.hlsl index 6ae6323d725..aa1227adebb 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002D3FA2E9BA0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000206D37AAB10(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.fxc.hlsl index 9a25cef7dd1..2089efd2ca0 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float2 subgroupExclusiveAdd_4c8024() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_4c8024())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_4c8024())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001BD577EF2F0(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001E40D745650(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.fxc.hlsl index 974bd6a749c..9a24b293902 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000215F4E2EF20(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001F9A738BDA0(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.fxc.hlsl index 427b2b13b90..940c08c4926 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float4 subgroupExclusiveAdd_71ad0f() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_71ad0f())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_71ad0f())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000019D312F7D40(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001B47D8499D0(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.fxc.hlsl index f717a52aac9..7fa7de2bc68 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002E4BB6500F0(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000016759F2FDE0(5,16-35): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.fxc.hlsl index db7f2897f5b..05573472aa4 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupExclusiveAdd_95e984() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveAdd_95e984()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveAdd_95e984()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002C70D7B6B10(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000184B0DF38C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.ir.fxc.hlsl index c9c550b75c1..3cea5b8e2bb 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DDCB2A92E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A5AA4738D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.fxc.hlsl index a1fc75550e3..5d2037ddf35 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float subgroupExclusiveAdd_967e38() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_967e38())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_967e38())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002CD1519A860(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x00000231E49E4E80(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.ir.fxc.hlsl index 4af98d90e79..5ca2d60c0a4 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024AA38A3450(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000020B702EF7A0(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.fxc.hlsl index 0ca6f538883..da436926649 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int subgroupExclusiveAdd_b0c261() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_b0c261())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveAdd_b0c261())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000015B056AC640(5,13-32): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000023E5CE146C0(5,13-32): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.fxc.hlsl index 7db2c7ae0d7..56fcd52a52f 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022624A1F390(5,13-32): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000022C66B3FB80(5,13-32): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.fxc.hlsl index d1c2ada4747..81d6ade62a1 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupExclusiveAdd_c08160() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_c08160())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveAdd_c08160())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001E796C6F3F0(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001BE61194ED0(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.ir.fxc.hlsl index 420cca33b70..ef78769052f 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024428A3F2A0(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000002818C1A6B60(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.fxc.hlsl index 4f408015e9b..9bd434c5d5f 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupExclusiveAdd_e58e23() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveAdd_e58e23()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveAdd_e58e23()); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000218B4A18C50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026F52DF5F20(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.fxc.hlsl index aa03a9e932e..2c94a857fae 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018E37DB92C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027FF35F38F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.fxc.hlsl index 0fb9ad4ae2c..544d106bb2a 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint4 subgroupExclusiveAdd_ec300f() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_ec300f())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveAdd_ec300f())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002EF15578210(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001FB6730D4C0(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.fxc.hlsl index 678430835e0..786741e07d6 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ABC4BC8ED0(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000022B5A57DCD0(5,15-34): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.fxc.hlsl index bad746d1aca..c7d6b64251d 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupExclusiveAdd_f0f712() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_f0f712())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveAdd_f0f712())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001A5F2BA0120(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x0000014506B146C0(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.fxc.hlsl index 462ca8ddafe..8d6e53c4251 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020F30C90310(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' +C:\src\dawn\Shader@0x000001E4A67AFDF0(5,14-33): error X3004: undeclared identifier 'WavePrefixSum' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.fxc.hlsl index 302ce5827f6..1f56630147a 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint4 subgroupExclusiveMul_000b92() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_000b92())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_000b92())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001777B86C6C0(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001CA2ACA4710(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.ir.fxc.hlsl index 1386700bb15..092ebe9b1d6 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026E90E4EEA0(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x00000210408BFDD0(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.fxc.hlsl index e37337593f7..22ebf259483 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupExclusiveMul_019660() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_019660())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_019660())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001FE2E29D430(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000026B9938FD80(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.ir.fxc.hlsl index e47083e3ebc..106d4ca8148 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022A8B08FB30(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x00000161DFD146E0(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.fxc.hlsl index 5ab948a1819..00099842507 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float3 subgroupExclusiveMul_0a04d5() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_0a04d5())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_0a04d5())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000235DDB1D430(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x00000228485D6EF0(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.fxc.hlsl index ae2f381b2b4..4ba1f0228ae 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021852E48FA0(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000024487D24C90(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.fxc.hlsl index 0c6c203103f..686be300d81 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupExclusiveMul_13ba26() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveMul_13ba26()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveMul_13ba26()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002043BD7D1A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019029ED6220(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.ir.fxc.hlsl index 83b065516b4..1215778674e 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029C620B92E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000234CE41E190(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.fxc.hlsl index 366636d8ed0..c7ffbfa194f 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float2 subgroupExclusiveMul_25d1b9() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_25d1b9())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_25d1b9())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001E3784F6740(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001C6C330F860(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.fxc.hlsl index b7988b66059..a140b2fc641 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024B22E0EEA0(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000012AF6CB3D30(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.fxc.hlsl index 25f0373e8c6..13580a5f7bd 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupExclusiveMul_4525a3() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_4525a3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_4525a3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001AA39901970(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001EE62E446D0(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.ir.fxc.hlsl index b3826f5540b..d83ad2208e8 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000226BF920360(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000002A1412AC260(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.fxc.hlsl index 5ff4f265b33..cbbdcbb004b 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float16_t subgroupExclusiveMul_6f431e() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupExclusiveMul_6f431e()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupExclusiveMul_6f431e()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001C0F2921970(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000019B447346B0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.ir.fxc.hlsl index 1b0f4d6b0f5..60dc6d29de6 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023FD7919170(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001AB3EF75010(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.fxc.hlsl index f9b8be45138..8019b548b5a 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float4 subgroupExclusiveMul_7b5f57() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_7b5f57())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupExclusiveMul_7b5f57())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001868919D5F0(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x00000159721AC3E0(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.fxc.hlsl index 11b975e5e28..036a160b9e9 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F4B2D5DE20(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000021FB9009BB0(5,16-39): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.fxc.hlsl index da1c1eb4359..84a73d27016 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupExclusiveMul_87f23e() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_87f23e())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_87f23e())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000027E5CD61490(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001A8E8530ED0(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.ir.fxc.hlsl index 97403b0905f..d9fde5e259c 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022F4AE6D980(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000018BC23846E0(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.fxc.hlsl index 7e74ebebb34..6f21028c422 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float subgroupExclusiveMul_98b2e4() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveMul_98b2e4())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveMul_98b2e4())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000012F140BEFF0(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000024FC358A000(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.fxc.hlsl index eff2203e2a6..5f5d763a16c 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001945A319260(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000013E919146B0(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.fxc.hlsl index 9dbbebb1af3..e661589025d 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupExclusiveMul_a07956() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveMul_a07956()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveMul_a07956()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001ABD42A6D10(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023C6D394DB0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.ir.fxc.hlsl index 118b8d6915c..d45501e0109 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000237F39092E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FEB2E56F80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.fxc.hlsl index 0916ebf6392..744d3baad91 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int subgroupExclusiveMul_a23002() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveMul_a23002())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveMul_a23002())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002022064D400(5,13-36): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000028AFF618A20(5,13-36): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.ir.fxc.hlsl index f1e515a9935..562598b08cb 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021B01BFEF10(5,13-36): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001886B8D8640(5,13-36): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.fxc.hlsl index 24eacaf8ee1..48b80bef3b4 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint2 subgroupExclusiveMul_d1d490() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_d1d490())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupExclusiveMul_d1d490())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000117D6E9D1B0(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001A32CC746C0(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.ir.fxc.hlsl index bfd65779539..0a0fb2214f3 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019CDBB7D980(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000002E93EA35190(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.fxc.hlsl index bb787890f95..501a3b4c632 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint subgroupExclusiveMul_dc51f8() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupExclusiveMul_dc51f8())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupExclusiveMul_dc51f8())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001DD5D333B80(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001F9517FBA50(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.fxc.hlsl index 1295c6f5636..318768af636 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EA7B9CF960(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001DD3063FDE0(5,14-37): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.fxc.hlsl index 7acc82dba50..226d5aa1d6b 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupExclusiveMul_e88d1c() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupExclusiveMul_e88d1c()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupExclusiveMul_e88d1c()); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000143BC5A8A30(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DF8E73FC00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.fxc.hlsl index dcdfac01817..39c70b643ae 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CE31CB92E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000190A27AFC00(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.fxc.hlsl index 43392abd0d2..9fffbbe81c6 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint3 subgroupExclusiveMul_f039f4() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_f039f4())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupExclusiveMul_f039f4())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000026D3A9EEFF0(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x0000015AAFA746C0(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.ir.fxc.hlsl index b099c5075f4..aa7c2667452 100644 --- a/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002159A751290(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' +C:\src\dawn\Shader@0x000001608EDBC2B0(5,15-38): error X3004: undeclared identifier 'WavePrefixProduct' diff --git a/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.fxc.hlsl index 30a32d9efa6..e3e8fd435ab 100644 --- a/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ float4 subgroupMax_0b0375() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMax_0b0375())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMax_0b0375())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023362E746E0(5,16-35): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.ir.fxc.hlsl index f241a17ed9e..097e55c2817 100644 --- a/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002267850E4F0(5,16-35): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000001FB2FD59B00(5,16-35): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.fxc.hlsl index 5a26c8c3d03..f58f8693926 100644 --- a/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ uint4 subgroupMax_15ccbf() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMax_15ccbf())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMax_15ccbf())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017210400610(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.ir.fxc.hlsl index 2c83fdbfff8..76cdcbad1f4 100644 --- a/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023E6D2192A0(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x00000282A9C14690(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.fxc.hlsl index 60b2935666e..fe324dcc05e 100644 --- a/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ float subgroupMax_1a1a5f() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMax_1a1a5f())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMax_1a1a5f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023128255350(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.ir.fxc.hlsl index aa13560b687..15002a7b9e7 100644 --- a/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CE9AB9F0D0(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x0000013396EBFB50(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.fxc.hlsl index 41fb23f2902..4ec7392523a 100644 --- a/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ float2 subgroupMax_1fc846() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMax_1fc846())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMax_1fc846())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021B90B1AAF0(5,16-35): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.ir.fxc.hlsl index 4fe31fb5cc7..f6fd1db4eb7 100644 --- a/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018FE8089070(5,16-35): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x0000028C329DD100(5,16-35): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.fxc.hlsl index 40b7f41797b..b7789982a0f 100644 --- a/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ uint3 subgroupMax_23f502() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMax_23f502())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMax_23f502())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D907F49B10(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.ir.fxc.hlsl index 378bf986d41..a0cab90c221 100644 --- a/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002328D859730(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000002D30258BC10(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.fxc.hlsl index d81abbff756..1f0dbab3b05 100644 --- a/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ vector subgroupMax_33e339() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMax_33e339()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMax_33e339()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022B49CA46F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.ir.fxc.hlsl index 2b7f21ca707..ee9caa6b208 100644 --- a/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000012D31F29670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021E3ADCFBE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.fxc.hlsl index aeb1349b773..70d7b7ec7e2 100644 --- a/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ int3 subgroupMax_4ea90e() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMax_4ea90e())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMax_4ea90e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018544A49B10(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.ir.fxc.hlsl index c962bf5eac1..29aa280c379 100644 --- a/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000268925E8FF0(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x0000026DCFBDBBC0(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.fxc.hlsl index f8a4d75dfcd..b623f2af482 100644 --- a/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ float16_t subgroupMax_5611a5() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupMax_5611a5()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupMax_5611a5()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024D81454A40(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.ir.fxc.hlsl index c8682ee5f30..671bec744fd 100644 --- a/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000281927F9800(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002057317FCB0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.fxc.hlsl index 4a33a7bad25..6ceebb6828f 100644 --- a/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ int subgroupMax_6c913e() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMax_6c913e())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMax_6c913e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E40ECD0600(5,13-32): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.ir.fxc.hlsl index 387fb5f21c7..647efd0fbb6 100644 --- a/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002138BB99010(5,13-32): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000001DD40494D20(5,13-32): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.fxc.hlsl index c8428382288..4f58d009a09 100644 --- a/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ vector subgroupMax_7c934c() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMax_7c934c()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMax_7c934c()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021070BA0130(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.ir.fxc.hlsl index d2cf3ecd38d..2df8a8ffbec 100644 --- a/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E1F9D0F780(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002436377FBE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.fxc.hlsl index bcfa07fdb2c..831767244d3 100644 --- a/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ float3 subgroupMax_7e81ea() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMax_7e81ea())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMax_7e81ea())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EF66D646A0(5,16-35): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.ir.fxc.hlsl index 969a2136ab7..e3cf6f36cda 100644 --- a/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000278B07BEEE0(5,16-35): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000001FD05909B00(5,16-35): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.fxc.hlsl index b852fe1425a..d1c0dea77c7 100644 --- a/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ int2 subgroupMax_932164() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMax_932164())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMax_932164())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000212E78E08D0(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.ir.fxc.hlsl index d2ab1782df1..42c1670394c 100644 --- a/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000161C52094A0(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x0000028092367790(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.fxc.hlsl index 2c706b68b42..b9ee570b525 100644 --- a/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ vector subgroupMax_a3afe3() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMax_a3afe3()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMax_a3afe3()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000253C719D730(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.ir.fxc.hlsl index c754532e485..3cf048a6ce6 100644 --- a/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026C3886A1A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024C3B494FD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.fxc.hlsl index 7e13d47763f..12286c48ddc 100644 --- a/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ int4 subgroupMax_a3d5f7() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMax_a3d5f7())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMax_a3d5f7())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E4BFC34CE0(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.ir.fxc.hlsl index 445c8072009..9563441e7ad 100644 --- a/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000282D72C12B0(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000001D7C9DA9B00(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.fxc.hlsl index 2fb323e988b..f7064accdcf 100644 --- a/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ uint subgroupMax_b58cbf() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMax_b58cbf())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMax_b58cbf())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021134D28DD0(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.ir.fxc.hlsl index 10739fd3023..829e59302f1 100644 --- a/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D728271130(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x000002AB5D30D540(5,14-33): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.fxc.hlsl index 7c9cf14eb5e..8f1c1928628 100644 --- a/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ uint2 subgroupMax_b8fb0e() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMax_b8fb0e())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMax_b8fb0e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025E04B6A830(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' + diff --git a/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.ir.fxc.hlsl index 8d954e68b83..a86ba2e8b79 100644 --- a/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016ABFD50150(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' +C:\src\dawn\Shader@0x00000215CA957390(5,15-34): error X3004: undeclared identifier 'WaveActiveMax' diff --git a/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.fxc.hlsl index 299556fc912..17afcda7be9 100644 --- a/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ int3 subgroupMin_030ad6() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMin_030ad6())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMin_030ad6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EB7856AE70(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.ir.fxc.hlsl index 8f8fb771ba5..e923e78d168 100644 --- a/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002429FBB13E0(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000001D287B100F0(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.fxc.hlsl index 39ab016a011..575ca960cec 100644 --- a/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ int2 subgroupMin_0bc13a() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMin_0bc13a())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMin_0bc13a())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002615D7C9B60(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.ir.fxc.hlsl index 73972f98d6b..104b032340a 100644 --- a/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028832E58E40(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x00000214E07C46E0(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.fxc.hlsl index a1c87effa11..ea32c12cdcf 100644 --- a/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ int4 subgroupMin_1de104() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMin_1de104())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMin_1de104())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E7AAB201D0(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.ir.fxc.hlsl index 07eb6a80b8c..e8b9ca0d348 100644 --- a/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DFB4F68FF0(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x00000285E518BC10(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.fxc.hlsl index 4ad15557041..d82c33921a3 100644 --- a/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ uint subgroupMin_2493ab() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMin_2493ab())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMin_2493ab())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002099D898D50(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.ir.fxc.hlsl index 005108942b7..7eb343df0aa 100644 --- a/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E8F54CCA00(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000002803F0CBB20(5,14-33): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.fxc.hlsl index ba820a10edc..0a3e5945d2d 100644 --- a/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ float2 subgroupMin_2d8828() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMin_2d8828())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMin_2d8828())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E7231B9B30(5,16-35): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.ir.fxc.hlsl index 4dfc1cbe15f..d0eaac6b0e6 100644 --- a/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000279099B9070(5,16-35): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000002290D1306D0(5,16-35): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.fxc.hlsl index 67879b802ed..4f7767d879c 100644 --- a/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ uint3 subgroupMin_337a21() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMin_337a21())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMin_337a21())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023AE6016030(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.ir.fxc.hlsl index 10f560d9b9e..51c56a099b4 100644 --- a/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FCB6FD92E0(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000001EEEFF0BCA0(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.fxc.hlsl index 2a615e5b34d..154118dd700 100644 --- a/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ float subgroupMin_7def0a() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMin_7def0a())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMin_7def0a())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B768A6F8D0(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.ir.fxc.hlsl index b3c5fe433e2..1a1bf0d3921 100644 --- a/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020BCA139550(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x00000217FC725200(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.fxc.hlsl index 476a88efd9f..bf9c9f80e26 100644 --- a/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ uint4 subgroupMin_82ef23() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMin_82ef23())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMin_82ef23())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021CFF1C9B10(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.ir.fxc.hlsl index 33cff6a6ec4..657f58caa02 100644 --- a/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001932213F560(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000002B84868D100(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.fxc.hlsl index fac34093b19..bd4c3fdceda 100644 --- a/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ float3 subgroupMin_836960() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMin_836960())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMin_836960())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002951C045C60(5,16-35): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.ir.fxc.hlsl index 9cfb5c4932e..cd51806e9eb 100644 --- a/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F10F14EF10(5,16-35): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000001765FFDBE00(5,16-35): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.fxc.hlsl index 599c3cbccd0..aa8f7e28949 100644 --- a/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ uint2 subgroupMin_8bb8c1() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMin_8bb8c1())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMin_8bb8c1())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002654EA3B080(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.ir.fxc.hlsl index 0d79e1b64a7..a1be26d611f 100644 --- a/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E695AB9170(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000002A70D646460(5,15-34): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.fxc.hlsl index c0ec26d02ce..2e920f6b66c 100644 --- a/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ float16_t subgroupMin_8ffadc() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupMin_8ffadc()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupMin_8ffadc()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BB93954690(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.ir.fxc.hlsl index 59da4316af8..859bab459cc 100644 --- a/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000256EAF9EFD0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001D702745210(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.fxc.hlsl index 3eea297c715..d04d41993cf 100644 --- a/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ int subgroupMin_a96a2e() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMin_a96a2e())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMin_a96a2e())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EB208453E0(5,13-32): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.ir.fxc.hlsl index 7461cacf130..014e4c332fe 100644 --- a/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FFE6B0CA00(5,13-32): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x000001738D104E70(5,13-32): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.fxc.hlsl index 2f46daf6fa2..a0ed6d48cea 100644 --- a/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ float4 subgroupMin_bbd9b0() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMin_bbd9b0())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMin_bbd9b0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019E4353FCC0(5,16-35): error X3004: undeclared identifier 'WaveActiveMin' + diff --git a/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.ir.fxc.hlsl index 2865a9f62fa..219a8b9d34e 100644 --- a/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DADF22CA00(5,16-35): error X3004: undeclared identifier 'WaveActiveMin' +C:\src\dawn\Shader@0x00000144B05E0540(5,16-35): error X3004: undeclared identifier 'WaveActiveMin' diff --git a/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.fxc.hlsl index 20d96edf287..5515645322b 100644 --- a/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ vector subgroupMin_c6da7c() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMin_c6da7c()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMin_c6da7c()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018DAAFA0130(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.ir.fxc.hlsl index 310c848dbf4..9a257919cd0 100644 --- a/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A81ECFECD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000283F639FD90(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.fxc.hlsl index 2ab05dda828..87ff381a897 100644 --- a/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ vector subgroupMin_cd3b9d() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMin_cd3b9d()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMin_cd3b9d()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020021CBD730(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.ir.fxc.hlsl index 673c6d6dd6d..b9256077f07 100644 --- a/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EC25BAF6C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018D3DAA4FD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.fxc.hlsl index 9424fc6058f..74f7f994215 100644 --- a/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not support before SM6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -8,8 +8,16 @@ vector subgroupMin_d85be6() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMin_d85be6()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMin_d85be6()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022DE1C474C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.ir.fxc.hlsl index 6422e102e0d..57c01f4cd15 100644 --- a/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EEB582E2E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016C13B0FBE0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.fxc.hlsl index b11ee0fc154..f61a61d8190 100644 --- a/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float subgroupMul_0de9d3() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMul_0de9d3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMul_0de9d3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000190E3105D30(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x00000188CAA59510(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.ir.fxc.hlsl index cf33ad5846a..ba99634f0e7 100644 --- a/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D9EB94E090(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x00000193E371AFA0(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.fxc.hlsl index 490cf2771c9..df4e527c56c 100644 --- a/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float16_t subgroupMul_2941a2() { return res; } +void fragment_main() { + prevent_dce.Store(0u, subgroupMul_2941a2()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, subgroupMul_2941a2()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000011FF4B81950(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E3545F4FB0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.ir.fxc.hlsl index 9162a8573eb..4fb8b7a5d8c 100644 --- a/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D56B67E9E0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000016825B811D0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.fxc.hlsl index 7392c5f3b7e..9521f5b00b8 100644 --- a/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int subgroupMul_3fe886() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMul_3fe886())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMul_3fe886())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000017E9396C570(5,13-36): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000023E858B01D0(5,13-36): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.ir.fxc.hlsl index 15de49a3c1a..e3ff3c5d14b 100644 --- a/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F6D978EC90(5,13-36): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000017B97AC5360(5,13-36): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.fxc.hlsl index be530fe0d50..4b612face06 100644 --- a/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint subgroupMul_4f8ee6() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupMul_4f8ee6())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupMul_4f8ee6())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000226A729C5D0(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000027332258960(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.ir.fxc.hlsl index 12880654061..aad2051c10f 100644 --- a/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028CC21FCB00(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000018F8A44B5F0(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.fxc.hlsl index a7879f34b44..5c7b6162a14 100644 --- a/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupMul_53aee2() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMul_53aee2()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMul_53aee2()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002D5AAE986E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F86D1AD6B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.ir.fxc.hlsl index 3c88a297928..c694bd94b5e 100644 --- a/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BE17B192F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000203162DBFA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.fxc.hlsl index 531a5d1106b..023848c3eed 100644 --- a/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupMul_5a8c86() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMul_5a8c86())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMul_5a8c86())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002DD34B2CA40(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x00000210AD5E4670(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.ir.fxc.hlsl index 9fea7ff02c8..251b43b1420 100644 --- a/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000245A1758F20(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000021855744690(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.fxc.hlsl index 158c9b6f2f0..7de157e6f65 100644 --- a/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float4 subgroupMul_66c813() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMul_66c813())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMul_66c813())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000150F0556020(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001AD901ED900(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.ir.fxc.hlsl index 39ec88baec5..cb2c209b0fe 100644 --- a/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000014EA12B9310(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x00000192A06BFD80(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.fxc.hlsl index 1737c740923..d441e858ee7 100644 --- a/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupMul_6aaaf3() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMul_6aaaf3()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMul_6aaaf3()); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000017C08E7C980(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019EB3B49BF0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.ir.fxc.hlsl index bad6d766ad8..028565a8712 100644 --- a/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000013CBABBF2A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C171B3FD90(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.fxc.hlsl index ea6f6fd9611..d77788875ae 100644 --- a/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float3 subgroupMul_93eccd() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMul_93eccd())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMul_93eccd())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000019046D0CA40(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000024989E701D0(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.ir.fxc.hlsl index a01f8648769..a41cb3e562c 100644 --- a/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002045369FF10(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000002D9752CBDC0(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.fxc.hlsl index 5ccc3f3837e..a11b11fa882 100644 --- a/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupMul_d584a2() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMul_d584a2())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMul_d584a2())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001A764FA2270(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000012B698F01D0(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.ir.fxc.hlsl index 6c6537a5158..a3701b3c3ea 100644 --- a/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025757622DC0(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000002228A814FC0(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.fxc.hlsl index 801a0132b44..1915fbd3632 100644 --- a/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint2 subgroupMul_dc672a() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMul_dc672a())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMul_dc672a())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000012085D71720(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000002C5A061CEF0(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.ir.fxc.hlsl index 3181a5494b8..280b7043575 100644 --- a/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D3A47730D0(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000022CE2CD46E0(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.fxc.hlsl index 59bcc91a344..f3bf607e4f9 100644 --- a/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint4 subgroupMul_dd1333() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMul_dd1333())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMul_dd1333())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001D174918BC0(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001EB52178CF0(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.ir.fxc.hlsl index a1a21c78c86..c88afdf8c18 100644 --- a/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002036B9C9CB0(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000025EE496F9F0(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.fxc.hlsl index cee0f2efd79..8a26fed7d10 100644 --- a/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ vector subgroupMul_f2ac5b() { return res; } +void fragment_main() { + prevent_dce.Store >(0u, subgroupMul_f2ac5b()); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store >(0u, subgroupMul_f2ac5b()); return; } FXC validation failure: -C:\src\dawn\Shader@0x000002BF0EFF69B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F20FCE46A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.ir.fxc.hlsl index 35155ce53ca..275fe12eb95 100644 --- a/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A7AABC9670(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D7F545B080(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.fxc.hlsl index 23cf20a493e..ba2b37e7c3f 100644 --- a/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ float2 subgroupMul_f78398() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupMul_f78398())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupMul_f78398())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000018B58DD0AC0(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x0000022EC64601D0(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.ir.fxc.hlsl index 097cceba618..9dfb60b8827 100644 --- a/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015029818F30(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001DB21D646E0(5,16-39): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.fxc.hlsl index b5b5c326628..a461142b802 100644 --- a/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint3 subgroupMul_fa781b() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupMul_fa781b())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupMul_fa781b())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000194394D0A40(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001FB659601D0(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.ir.fxc.hlsl index 9605a39f9e5..6aa965c91c0 100644 --- a/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000233CD078F50(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000002C90358FD50(5,15-38): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.fxc.hlsl index efeda15e8c8..bf18753f8c8 100644 --- a/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupMul_fab258() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupMul_fab258())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupMul_fab258())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000026A1C714740(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000002F0B5CA99D0(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.ir.fxc.hlsl index 70fbdb14be6..f15ce14b084 100644 --- a/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024AC5428F20(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' +C:\src\dawn\Shader@0x000001EA948046C0(5,14-37): error X3004: undeclared identifier 'WaveActiveProduct' diff --git a/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.fxc.hlsl index 79c3767152e..2a3477d3772 100644 --- a/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupOr_03343f() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupOr_03343f())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupOr_03343f())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001F388990A60(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001DF18C79B00(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.ir.fxc.hlsl index ae4e4a64fef..8c92ff57e59 100644 --- a/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026C20409070(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000002A12029BBC0(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.fxc.hlsl index dd1069760dd..9c376e1eaae 100644 --- a/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint subgroupOr_0bc264() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupOr_0bc264())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupOr_0bc264())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000276B3B416D0(5,14-35): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x00000298AC36D9D0(5,14-35): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.ir.fxc.hlsl index 7eaeffb00c3..409c6fc8c0e 100644 --- a/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000010AC5B3CA00(5,14-35): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001CCA107A000(5,14-35): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.fxc.hlsl index c0f57327694..55283802749 100644 --- a/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupOr_3f60e0() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupOr_3f60e0())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupOr_3f60e0())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000163904B6B50(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x0000024ECF5A4CE0(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.ir.fxc.hlsl index 1c5fe8e6039..3ec0643320d 100644 --- a/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017C61388F30(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001D872B7BE40(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.fxc.hlsl index 6c7c4465140..073517cc16c 100644 --- a/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupOr_4d4eb0() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupOr_4d4eb0())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupOr_4d4eb0())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000017424300340(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001417B354AD0(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.ir.fxc.hlsl index 51112c00283..c7ed9af9ebc 100644 --- a/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019729B49070(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x00000180836EB000(5,20-49): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.fxc.hlsl index 53d269faa8b..fda650be954 100644 --- a/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint3 subgroupOr_663a21() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupOr_663a21())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupOr_663a21())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000021C1887D010(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001B1474174D0(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.ir.fxc.hlsl index a17813902d1..b57f535a48f 100644 --- a/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002058257ED10(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x00000200EFC8B540(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.fxc.hlsl index dbe25669273..61204ad3e74 100644 --- a/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint2 subgroupOr_aa74f7() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupOr_aa74f7())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupOr_aa74f7())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000245F48D0340(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x00000207020D6EE0(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.ir.fxc.hlsl index dd4589568d3..57e240e3dbb 100644 --- a/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027E8CBA8F30(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x0000019BD9BD4690(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.fxc.hlsl index 8e9b1f5481f..da39ef846cf 100644 --- a/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int subgroupOr_ae58b6() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupOr_ae58b6())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupOr_ae58b6())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000198A2958DD0(5,19-48): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x0000027AB88B69F0(5,19-48): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.ir.fxc.hlsl index 3c88eeec798..7e0d6b1ba11 100644 --- a/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D7AF889310(5,19-48): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001FD342CAF40(5,19-48): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.fxc.hlsl index 48b081af247..a23efb7a722 100644 --- a/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint4 subgroupOr_f915e3() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupOr_f915e3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupOr_f915e3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001CF09C586C0(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x000001FCE32A6030(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.ir.fxc.hlsl index 6139dbeb28d..1c12f6e3bf2 100644 --- a/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000295D52A30B0(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' +C:\src\dawn\Shader@0x00000180B3740C50(5,15-36): error X3004: undeclared identifier 'WaveActiveBitOr' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.fxc.hlsl index 66e0f70e9c2..039c9d852ec 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_030422())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F7BC25A470(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.ir.fxc.hlsl index 9d6d49e3303..cacd5cae68e 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B930899340(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000227CF71D540(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.fxc.hlsl index bfaef344e26..37ec96fa61e 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_1f664c())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F9BBACDF40(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.ir.fxc.hlsl index 0c3acc2c0b2..a8981ee1d47 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FAC897F210(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001BAC8D28A90(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.fxc.hlsl index 3b0cfa31252..7538650a982 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_21f083())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CB9BFD4AF0(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.ir.fxc.hlsl index 02e95597084..0dcf39ab512 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002322CF0D710(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000029061AEFDB0(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.fxc.hlsl index bc46adb5cb8..16dfda8742b 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_2ee993())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021040709DD0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.ir.fxc.hlsl index df7212dae90..e1c7f0d33b3 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027C563AAF00(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000029AF646C250(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.fxc.hlsl index 83111a8b39f..f673d6be723 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_323416())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000283DD274AF0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.ir.fxc.hlsl index 775000ae058..df2da4a29df 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019DE44B12E0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000213832D5C20(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.fxc.hlsl index 3f98e9b35dc..02436a1e200 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_4752bd())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000229DAD86B80(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.ir.fxc.hlsl index fa5dc88bccb..4c66f52c78e 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020D67C491D0(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002668F68FC20(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.fxc.hlsl index 3eb9cb40bac..a496c90a45c 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_4cbb69())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B08E1CFDA0(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.ir.fxc.hlsl index c2691106d23..c92b1f26b54 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002250DA8EF50(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000261FB407E30(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.fxc.hlsl index 559891120da..01baa2db590 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_4f5711())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F9DC5BFDE0(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.ir.fxc.hlsl index 64d3878bf31..88d841283a6 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002590BD7F4C0(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001D15CC25190(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.fxc.hlsl index 98f81d8a5e9..86171912248 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_54f328())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000130891A5260(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.ir.fxc.hlsl index dca53914eba..e2ccdb1c350 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002857D1A0510(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000002581DCCF890(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.fxc.hlsl index 2781c495004..f88c9482485 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_5dfeab())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C1062A60F0(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.ir.fxc.hlsl index 75f1bb195b8..712560eb066 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000221FFD7D710(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000203FF04B850(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.fxc.hlsl index 6f9021b3de1..66caa6ec4db 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_5ef5a2())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021BB8440780(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.ir.fxc.hlsl index a6ceee6c4df..50a637f6ed8 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A965718EB0(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000029E7C455320(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.fxc.hlsl index e38dcd20d7b..93a377784cd 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_647034()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A339A4FC40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.ir.fxc.hlsl index fbbe4bb6919..d7d8a5d75b1 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B895F116B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002AD196438C0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.fxc.hlsl index e2f7fac671b..079066f7d3d 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_7ba2d5()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029019940A70(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.ir.fxc.hlsl index 89ce1fedac9..d549aba5d9f 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025978B1F9A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027607A361E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.fxc.hlsl index 6e279be2bba..5770281477f 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_7c5d64())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B6CF5F2890(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.ir.fxc.hlsl index 1f31653ee4a..342c550ba43 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024F5846FFD0(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001C427F9BE30(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.fxc.hlsl index de4ee802b55..59f0a572467 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffle_7d7b1e()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019646CC82B0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.ir.fxc.hlsl index cc3eb507c41..7f615bb59f3 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B9D90CFEF0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000017B1C05AFF0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.fxc.hlsl index b2ecb65ecdd..502aa9d258c 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_821df9()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000012439A528E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.ir.fxc.hlsl index e0e5654559e..78fa3ea45ef 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001816C6DF340(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B3857261E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.fxc.hlsl index 9b1ac5e2c2f..28415a25621 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_824702())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EB71B71000(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.ir.fxc.hlsl index 06a59effa02..8406cc25ca1 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000169C09C8EF0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001A8F4B50ED0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.fxc.hlsl index 0d76e0b8768..3cff18f0abc 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_84f261())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000223234CD690(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.ir.fxc.hlsl index 0a258e7dee8..17485260f07 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025F343812E0(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000012F3FED6500(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.fxc.hlsl index 6908103857e..d097c9d8a56 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_85587b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002A5E238F9C0(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.ir.fxc.hlsl index a1012cebe79..912bcf726d6 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024D450444A0(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000023685E673D0(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.fxc.hlsl index c19632d7bd3..5be1454fa46 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_8890a5())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E2E8124720(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.ir.fxc.hlsl index 6dbc3ddce9d..d4146da1586 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C4ED509A50(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000021730937430(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.fxc.hlsl index 036c93be4de..94f4a9ee951 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_8bfbcd())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017609FB9C20(6,13-40): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.ir.fxc.hlsl index dde8197850e..93850b92ca5 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EA64549210(6,13-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000025E7C09DF40(6,13-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.fxc.hlsl index 7fc8472a293..7aed0adee6e 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_8c3fd2()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BFAD0770A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.ir.fxc.hlsl index 6eaae94ba34..86349805494 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015FC5730360(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025E76C9C6F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.fxc.hlsl index bfcf17066f1..8db3e923b80 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_aa1d5c()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EC0BC4FC40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.ir.fxc.hlsl index f9fd2f2e15c..dc9d9a7c55c 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002414D039200(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D60BFB68A0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.fxc.hlsl index 7007ec51441..4e02078eede 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffle_b0f28d()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B697514710(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.ir.fxc.hlsl index 5ce414bad70..bb4a832ecfc 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000214002A35F0(3,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002EAB04361E0(3,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.fxc.hlsl index 6efe13304cf..57bab527727 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffle_b4bbb7())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020538528DF0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.ir.fxc.hlsl index 437471f754e..a7aab8e0c91 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C9B789F320(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000016DC19EBDD0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.fxc.hlsl index f18a523464b..6ef4103dd3e 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_bbb06c())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000015AFB08F840(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.ir.fxc.hlsl index 513ba472270..cef548d32de 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000209A9DE9350(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000295E288B6A0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.fxc.hlsl index db6cbfe0b4d..435e020f25b 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_d4a772())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016008130260(6,13-40): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.ir.fxc.hlsl index 9946b01c5cf..f13b65102f6 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002473A111470(6,13-40): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x0000025A965546C0(6,13-40): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.fxc.hlsl index ab4713c9d75..3f51dc3bf93 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffle_d9ff67())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024204F89C50(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.ir.fxc.hlsl index 02b0872b2eb..7c4f9f8c423 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001297CD212E0(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001AC4A21B6A0(6,16-43): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.fxc.hlsl index 42b46747592..8db63ac905b 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_e13c81())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A6DCCC5660(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.ir.fxc.hlsl index 0d820cf44f1..b0e3bfac3d1 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000230444612A0(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000205118AFAA0(6,15-42): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.fxc.hlsl index 592fb89d8fb..803415d0af5 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffle_e854d5())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002464A1FB660(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.ir.fxc.hlsl index cadedef353f..6d06baafbeb 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CE9F41A0A0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x000001BFB60CFAA0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.fxc.hlsl index a9ba9128f81..f08b9e4f57a 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffle_f194f5())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017540A45ED0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.ir.fxc.hlsl index 37c831e35ab..c6a1b97d624 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015C304C9340(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' +C:\src\dawn\Shader@0x00000223EFCB59D0(6,14-41): error X3004: undeclared identifier 'WaveReadLaneAt' diff --git a/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.fxc.hlsl index 9225eaddac3..a05fa70e46f 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffle_fb4ab9()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002AF06DCD3F0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.ir.fxc.hlsl index 3331d8084b0..1e85269b159 100644 --- a/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EC72EAE5B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000216812FD3E0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.fxc.hlsl index 4540de54c10..8ac97751bd8 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_10eb45()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E99437FEA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.ir.fxc.hlsl index deacce5a92e..7c1677888cc 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_10eb45()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001B46D496680(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.fxc.hlsl index eaaaf04065f..18dbc443f07 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleDown_1b530f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D59113B9A0(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.ir.fxc.hlsl index 97ac3c71d35..88f9a9bbcdc 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleDown_1b530f())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000141E4AE4800(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.fxc.hlsl index c3c12462227..961c588855d 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleDown_257ff0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002657675FB70(6,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.ir.fxc.hlsl index d6ee63b2e93..6b9fb2735ff 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleDown_257ff0())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000225895B4000(8,35-52): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.fxc.hlsl index c79d6379a48..b64b8d0aef5 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleDown_313d9b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F622D4BED0(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.ir.fxc.hlsl index b2a70a3af4e..83f15bcf41b 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleDown_313d9b())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001617B41BC40(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.fxc.hlsl index fc77414c0a1..099720ceb1f 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_57b1e8()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002172343BD80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.ir.fxc.hlsl index bbfb17b649f..c2f203a029e 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_57b1e8()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001DE03014FD0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.fxc.hlsl index 7511a350594..9ac54dfd1a9 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleDown_5d8b9f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002419D8F02B0(6,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.fxc.hlsl index 1861fe3dbac..6b290b6c256 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleDown_5d8b9f())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000021D9B578CE0(8,35-52): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.fxc.hlsl index 0fd4233f3d6..ee2d84db0d1 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_63fdb0()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029C7D1CFC60(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.ir.fxc.hlsl index 583d3b7d020..ba174eebad0 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleDown_63fdb0()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C625E54FA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.fxc.hlsl index 471b011b575..018cd1f884f 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleDown_642789())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F11F4BBC70(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.ir.fxc.hlsl index fb396055a84..71c3a059398 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store3(0u, subgroupShuffleDown_642789()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001D9AB628CE0(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.fxc.hlsl index 66676ecdaf8..531c59a0052 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleDown_7a0cf5())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F5D6D940F0(6,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.fxc.hlsl index 6c7010a93e6..d8306cfbb4d 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleDown_7a0cf5())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001EBA51D5110(8,35-52): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.fxc.hlsl index b7b6adcff4d..b0eff10921e 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleDown_7f8886())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022DDB8246B0(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.ir.fxc.hlsl index c19db9de42d..755c6a23ed9 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleDown_7f8886())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000023670EDFDB0(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.fxc.hlsl index e0088d1eaa7..38ed8b95cfb 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleDown_9c6714()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002CBAD3CFBE0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.ir.fxc.hlsl index 4cc67ea45a7..e9a632f3f0b 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleDown_9c6714()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000203A2AFB9F0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.fxc.hlsl index 97749e690cd..6e5c02ca035 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleDown_b41899())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F4CDD402B0(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.ir.fxc.hlsl index 0f84db77cf9..28f309f6e91 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleDown_b41899())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001794F1D6050(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.fxc.hlsl index 344ac81d253..ee7a83bdb4d 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleDown_c9f1c4())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B159E46730(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.fxc.hlsl index bd502fe2af2..d47445efe22 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store2(0u, subgroupShuffleDown_c9f1c4()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000024F97305C40(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.fxc.hlsl index 9387ec52d1d..3a66f66b995 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleDown_d269eb())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019D9F79BBD0(6,36-53): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.ir.fxc.hlsl index 079e8d15d49..87ce910addd 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleDown_d269eb())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000020C85FDFB60(8,32-49): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.fxc.hlsl index 37f9fda1a2e..febc0939941 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleDown_d46304())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000284552640B0(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.ir.fxc.hlsl index e7178e77ad1..0cb5756200a 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store4(0u, subgroupShuffleDown_d46304()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019FA60B4C90(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.fxc.hlsl index dfb387bb1be..56fb247c1b9 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleDown_d90c2f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D8E29660F0(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.ir.fxc.hlsl index 9432a22b593..52c8a91095b 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleDown_d90c2f()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001794C685C40(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.fxc.hlsl index 179928f4b51..1fe52580a88 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_0990cd()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019B8DFF2760(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.ir.fxc.hlsl index ba6cc921562..da27d41356d 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_0990cd()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002B24948E0B0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.fxc.hlsl index 2fb7b88c439..0cd62c990b8 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleUp_1bb93f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000221542D5230(6,36-53): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.ir.fxc.hlsl index e0542aae3d2..b93a0b12a78 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleUp_1bb93f())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000016DF5A846C0(8,32-49): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.fxc.hlsl index 9393283b51f..5ebf5d1f373 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleUp_23c7ca())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000248690C60F0(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.ir.fxc.hlsl index 5c606d47b06..959f4f5bf6e 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleUp_23c7ca())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027272D24620(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.fxc.hlsl index 3e53deecc05..368d86a5097 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleUp_3242a6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002459FD05090(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.ir.fxc.hlsl index 6639655932c..8db39593594 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleUp_3242a6()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002AC3EA5F6E0(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.fxc.hlsl index a7dbc61faed..e9cc8f5025f 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleUp_33d495())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BC83FB56A0(6,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.ir.fxc.hlsl index e5c3cea4c60..18014c7ce5c 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleUp_33d495())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000193DF38B910(8,35-52): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.fxc.hlsl index 23475b29e3b..1118d2fae13 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleUp_3e609f())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020A3197B660(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.ir.fxc.hlsl index c5b8190dc8e..fca976dde03 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleUp_3e609f())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C01A080850(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.fxc.hlsl index dc106bf87eb..4e968b1a762 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleUp_58de69())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002490FFF0E40(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.ir.fxc.hlsl index cf0f346a651..f29f1d1032d 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store2(0u, subgroupShuffleUp_58de69()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002693B21B8B0(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.fxc.hlsl index f6104af4d12..b8dd290e842 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_868e52()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000276F7694E60(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.ir.fxc.hlsl index 9a8707d9d50..6364550e723 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_868e52()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000022F3934BE50(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.fxc.hlsl index 4f60426f1f2..9d2054014d6 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleUp_87c9d6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EB479556C0(6,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.ir.fxc.hlsl index d41165095b1..2820e245cbd 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleUp_87c9d6())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001DF6BD40680(8,35-52): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.fxc.hlsl index cb65cbcd1d3..b714e578af1 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleUp_88eb07())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000026CD0BABE80(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.ir.fxc.hlsl index 4daf37921b2..f1dcaf13009 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store4(0u, subgroupShuffleUp_88eb07()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000144F3A65EB0(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.fxc.hlsl index f9d22db5a89..a9551428002 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleUp_8a63f3())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B3C609CA10(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.ir.fxc.hlsl index cd034dc78b7..01766fe3eb2 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleUp_8a63f3())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002037C3E3F20(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.fxc.hlsl index e84e11a1f14..6c74a82ca72 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_a2075a()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000014AFC684E60(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.ir.fxc.hlsl index 60aefa7ea85..d11eff10c61 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleUp_a2075a()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000258959468D0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.fxc.hlsl index 19f815410b2..1d79a025bec 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleUp_abaea0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D30BA9AF80(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.ir.fxc.hlsl index de93727d6f8..69d4cd15a29 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store3(0u, subgroupShuffleUp_abaea0()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002B9A0F96070(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.fxc.hlsl index 1bf547de947..3727497a7f0 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleUp_b58804())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D9D919F7A0(6,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.ir.fxc.hlsl index 87b55a7fe59..951420f12c6 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleUp_b58804())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000017D2D4F5450(8,35-52): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.fxc.hlsl index 93a1646e1d6..94e841babf0 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleUp_bbf7f4()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016E17620180(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.fxc.hlsl index 79d2663bd8a..7cf3cf360d8 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleUp_bbf7f4()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C5DB3B0BC0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.fxc.hlsl index 3ced509a785..4711a2c4de8 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleUp_db5bcb())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D433585090(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.ir.fxc.hlsl index ce1593eed21..c4854d46b34 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleUp_db5bcb())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000025033D15600(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.fxc.hlsl index 021bb40f2c4..b90f8dcbb77 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleXor_071aa0())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001839C5402B0(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.ir.fxc.hlsl index f7b368514ae..a1ef2419826 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleXor_071aa0())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000018A844CF9D0(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.fxc.hlsl index 0e60ee201e6..3297e18cd16 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleXor_08f588())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002C64FEC02B0(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.ir.fxc.hlsl index cb7e26b15e4..f43262655d1 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store4(0u, subgroupShuffleXor_08f588()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000144791EB500(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.fxc.hlsl index 260e6ea1f81..0ab94bec6c2 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleXor_1d36b6())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D426A54BF0(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.ir.fxc.hlsl index 3189c033055..3329891c93c 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleXor_1d36b6())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001D1548BC250(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.fxc.hlsl index fb362796afa..4e2021bfd3f 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_1e247f()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000218F13CD220(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.ir.fxc.hlsl index 309cb4dbce4..bae0ad17d6d 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_1e247f()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002855A816680(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.fxc.hlsl index 5de7e787107..683d499a6cf 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_1f2590()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000203A466FC40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.ir.fxc.hlsl index f9be9f7bfcb..17f593c81b9 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_1f2590()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001EFC05EFD80(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.fxc.hlsl index e568860b50f..040920d844b 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_2e033d()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024B89E64E40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.ir.fxc.hlsl index d148efffe2d..6bf77bce658 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store >(0u, subgroupShuffleXor_2e033d()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F3BA5B4FA0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.fxc.hlsl index 0bafc61c6a2..3b1e26269d3 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleXor_445e83())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BEF1C860F0(6,36-53): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.ir.fxc.hlsl index fd11aac6bb6..d36ae1418b0 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleXor_445e83())); } +FXC validation failure: +C:\src\dawn\Shader@0x000002085FDB8CE0(8,32-49): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.fxc.hlsl index d09269d5e64..ee343079d9b 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleXor_7435fe())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002B79263BC70(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.ir.fxc.hlsl index bfb42f2302d..168d4a57e05 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleXor_7435fe())); } +FXC validation failure: +C:\src\dawn\Shader@0x0000024C685AFDB0(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.fxc.hlsl index 1130e197908..e41d34f10ee 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, asuint(subgroupShuffleXor_80b6e9())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A9E9D96310(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.ir.fxc.hlsl index c98ce5d8899..e62e219a290 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleXor_80b6e9()); } +FXC validation failure: +C:\src\dawn\Shader@0x000001D6AEB246C0(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.fxc.hlsl index abd39f02715..daa503dc6b3 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleXor_9f945a())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002388A7A95B0(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.ir.fxc.hlsl index 1adf2d43935..fa20d008b0f 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store3(0u, subgroupShuffleXor_9f945a()); } +FXC validation failure: +C:\src\dawn\Shader@0x00000197D951FFF0(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.fxc.hlsl index bbe0339510f..0825496a163 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleXor_bdddba())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000015EBF8C3F20(6,37-54): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.ir.fxc.hlsl index 67404089735..1be6c8ba776 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleXor_bdddba())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F9BB025C40(8,33-50): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.fxc.hlsl index addb1a3e107..5250b40bbd9 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleXor_c88290())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000227F383D2D0(6,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.ir.fxc.hlsl index 8e52073cec2..9e0def0d856 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store4(0u, asuint(subgroupShuffleXor_c88290())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000263701D4080(8,35-52): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.fxc.hlsl index 10bc1d88202..5351abeea2c 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleXor_caa816())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CE9CD240B0(6,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.ir.fxc.hlsl index b3118ff0311..8cb886b75e4 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store3(0u, asuint(subgroupShuffleXor_caa816())); } +FXC validation failure: +C:\src\dawn\Shader@0x00000215187E4080(8,35-52): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.fxc.hlsl index 693da0874a7..fc399a0248d 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleXor_d224ab()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A3BF77E150(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.ir.fxc.hlsl index 64adc304c02..f2c9e351fb2 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store(0u, subgroupShuffleXor_d224ab()); } +FXC validation failure: +C:\src\dawn\Shader@0x0000022EA6364F00(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.fxc.hlsl index bf55af85866..340b309df1e 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleXor_e3c10b())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016B7E9D02B0(6,38-55): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.ir.fxc.hlsl index 92a0c1a9122..f8bcb1e579c 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store2(0u, subgroupShuffleXor_e3c10b()); } +FXC validation failure: +C:\src\dawn\Shader@0x000002314EDEB500(8,34-51): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.fxc.hlsl index 9a271782926..3cddffb648b 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -19,3 +19,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleXor_f7b453())); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BC7EEF3F30(6,39-56): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.ir.fxc.hlsl index 6a8b230412c..d8a692b39a2 100644 --- a/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.ir.fxc.hlsl @@ -1,4 +1,4 @@ -SKIP: Wave ops not supported before SM 6.0 +SKIP: FAILED RWByteAddressBuffer prevent_dce : register(u0); @@ -20,3 +20,6 @@ void compute_main() { prevent_dce.Store2(0u, asuint(subgroupShuffleXor_f7b453())); } +FXC validation failure: +C:\src\dawn\Shader@0x000001937818B500(8,35-52): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.fxc.hlsl index 99d7e7648c2..7657c9b291b 100644 --- a/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint3 subgroupXor_468721() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupXor_468721())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupXor_468721())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000025503FCA700(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001CC7C2201D0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.ir.fxc.hlsl index 0cbc13d5651..d6d412a20c2 100644 --- a/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002888242EF30(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000023ACCF07F60(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.fxc.hlsl index a7086813e09..3011691393a 100644 --- a/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int2 subgroupXor_473de8() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupXor_473de8())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupXor_473de8())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000023FB7462020(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000016E77C2CC30(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.ir.fxc.hlsl index b52cd9c51a3..c52a7652562 100644 --- a/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BA757A9550(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000021686D046A0(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.fxc.hlsl index 10da165b006..09cf08f8c06 100644 --- a/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int subgroupXor_694b17() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupXor_694b17())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupXor_694b17())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000202AF560C30(5,19-49): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x00000132DFFFF0A0(5,19-49): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.ir.fxc.hlsl index 4353f82a589..ca028994b03 100644 --- a/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FB953CCA00(5,19-49): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001CE4BE485E0(5,19-49): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.fxc.hlsl index 58de8d59445..16dbe06ee81 100644 --- a/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint subgroupXor_7750d6() { return res; } +void fragment_main() { + prevent_dce.Store(0u, asuint(subgroupXor_7750d6())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store(0u, asuint(subgroupXor_7750d6())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000020C9D4871C0(5,14-36): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000016F2A5F53C0(5,14-36): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.ir.fxc.hlsl index 71dfc41d699..afc0d377179 100644 --- a/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016065DE9D80(5,14-36): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001FD72EFFF50(5,14-36): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.fxc.hlsl index 1127739889e..6c0e24c37fb 100644 --- a/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint2 subgroupXor_7f6672() { return res; } +void fragment_main() { + prevent_dce.Store2(0u, asuint(subgroupXor_7f6672())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store2(0u, asuint(subgroupXor_7f6672())); return; } FXC validation failure: -C:\src\dawn\Shader@0x000001CCB8D07A70(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000024659D37020(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.ir.fxc.hlsl index 5cc20994e20..e6ee731c01e 100644 --- a/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C479D2CA00(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x00000277E5BFA0A0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.fxc.hlsl index c99538526c0..529ca9dc98d 100644 --- a/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int4 subgroupXor_83b1f3() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupXor_83b1f3())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupXor_83b1f3())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000025DA8D81EB0(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001B4756D4E90(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.ir.fxc.hlsl index 4de4e4e4476..0c246d9bec8 100644 --- a/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026AA8139140(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000019503FD46E0(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.fxc.hlsl index b339ce8ca77..ee85c4fba63 100644 --- a/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ int3 subgroupXor_9c6e73() { return res; } +void fragment_main() { + prevent_dce.Store3(0u, asuint(subgroupXor_9c6e73())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store3(0u, asuint(subgroupXor_9c6e73())); return; } FXC validation failure: -C:\src\dawn\Shader@0x0000026409513030(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000023F42699B60(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.ir.fxc.hlsl index bc526f1f094..ebd4a68d853 100644 --- a/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000296647197F0(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001D5345D4690(5,20-50): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.fxc.hlsl index 35ab082514b..32d6f9eded6 100644 --- a/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.fxc.hlsl @@ -8,11 +8,16 @@ uint4 subgroupXor_9d77e4() { return res; } +void fragment_main() { + prevent_dce.Store4(0u, asuint(subgroupXor_9d77e4())); + return; +} + [numthreads(1, 1, 1)] void compute_main() { prevent_dce.Store4(0u, asuint(subgroupXor_9d77e4())); return; } FXC validation failure: -C:\src\dawn\Shader@0x00000218D8F23750(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x000001FA5C5B7BD0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.ir.fxc.hlsl index 849f7e160db..19a56a9d3fb 100644 --- a/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void compute_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000199EE28EED0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' +C:\src\dawn\Shader@0x0000022169D6BBC0(5,15-37): error X3004: undeclared identifier 'WaveActiveBitXor' diff --git a/test/tint/builtins/gen/var/tan/539e54.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tan/539e54.wgsl.expected.fxc.hlsl index 5e664c4c24f..b6c706f3c15 100644 --- a/test/tint/builtins/gen/var/tan/539e54.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/tan/539e54.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tan_539e54() { +vector tan_539e54() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = tan(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tan_539e54(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tan_539e54(); + prevent_dce.Store >(0u, tan_539e54()); return; } [numthreads(1, 1, 1)] void compute_main() { - tan_539e54(); + prevent_dce.Store >(0u, tan_539e54()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tan_539e54(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000025276568540(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/tan/539e54.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/tan/539e54.wgsl.expected.ir.fxc.hlsl index a0eee36d34c..110df29a8d0 100644 --- a/test/tint/builtins/gen/var/tan/539e54.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/tan/539e54.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001837691F240(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E075156630(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/tan/9f7c9c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tan/9f7c9c.wgsl.expected.fxc.hlsl index 68c0998008c..27918089b2c 100644 --- a/test/tint/builtins/gen/var/tan/9f7c9c.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/tan/9f7c9c.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tan_9f7c9c() { +vector tan_9f7c9c() { vector arg_0 = (float16_t(1.0h)).xx; vector res = tan(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tan_9f7c9c(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tan_9f7c9c(); + prevent_dce.Store >(0u, tan_9f7c9c()); return; } [numthreads(1, 1, 1)] void compute_main() { - tan_9f7c9c(); + prevent_dce.Store >(0u, tan_9f7c9c()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tan_9f7c9c(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000233CD268380(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/tan/9f7c9c.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/tan/9f7c9c.wgsl.expected.ir.fxc.hlsl index c4028dd5b71..bf77b60d27e 100644 --- a/test/tint/builtins/gen/var/tan/9f7c9c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/tan/9f7c9c.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D6F06EED00(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E6D0B85470(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/tan/d4d491.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tan/d4d491.wgsl.expected.fxc.hlsl index d16807c7a2a..aacdfc87e52 100644 --- a/test/tint/builtins/gen/var/tan/d4d491.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/tan/d4d491.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tan_d4d491() { +float16_t tan_d4d491() { float16_t arg_0 = float16_t(1.0h); float16_t res = tan(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tan_d4d491(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tan_d4d491(); + prevent_dce.Store(0u, tan_d4d491()); return; } [numthreads(1, 1, 1)] void compute_main() { - tan_d4d491(); + prevent_dce.Store(0u, tan_d4d491()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tan_d4d491(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001E8BE759F90(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/tan/d4d491.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/tan/d4d491.wgsl.expected.ir.fxc.hlsl index 17f760f2746..942a478c42c 100644 --- a/test/tint/builtins/gen/var/tan/d4d491.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/tan/d4d491.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000269CD96F940(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000228C8778F70(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/tan/db0456.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tan/db0456.wgsl.expected.fxc.hlsl index 433d86f83f4..cdce68dc044 100644 --- a/test/tint/builtins/gen/var/tan/db0456.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/tan/db0456.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tan_db0456() { +vector tan_db0456() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = tan(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tan_db0456(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tan_db0456(); + prevent_dce.Store >(0u, tan_db0456()); return; } [numthreads(1, 1, 1)] void compute_main() { - tan_db0456(); + prevent_dce.Store >(0u, tan_db0456()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tan_db0456(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001AE9295C840(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/tan/db0456.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/tan/db0456.wgsl.expected.ir.fxc.hlsl index 983a3f335b0..2671cccbf68 100644 --- a/test/tint/builtins/gen/var/tan/db0456.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/tan/db0456.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002AF2BEF5050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021DA7658BF0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/tanh/06a4fe.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tanh/06a4fe.wgsl.expected.fxc.hlsl index e59caaf6cfe..d9dceace15a 100644 --- a/test/tint/builtins/gen/var/tanh/06a4fe.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/tanh/06a4fe.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tanh_06a4fe() { +vector tanh_06a4fe() { vector arg_0 = (float16_t(1.0h)).xxx; vector res = tanh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tanh_06a4fe(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tanh_06a4fe(); + prevent_dce.Store >(0u, tanh_06a4fe()); return; } [numthreads(1, 1, 1)] void compute_main() { - tanh_06a4fe(); + prevent_dce.Store >(0u, tanh_06a4fe()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tanh_06a4fe(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001A92C355750(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/tanh/06a4fe.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/tanh/06a4fe.wgsl.expected.ir.fxc.hlsl index 04e32fca203..a866a5723b8 100644 --- a/test/tint/builtins/gen/var/tanh/06a4fe.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/tanh/06a4fe.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D25E055050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F1EFF25970(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/tanh/5b19af.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tanh/5b19af.wgsl.expected.fxc.hlsl index 5954aefe060..557fbee76a4 100644 --- a/test/tint/builtins/gen/var/tanh/5b19af.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/tanh/5b19af.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tanh_5b19af() { +float16_t tanh_5b19af() { float16_t arg_0 = float16_t(1.0h); float16_t res = tanh(arg_0); - prevent_dce.Store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tanh_5b19af(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tanh_5b19af(); + prevent_dce.Store(0u, tanh_5b19af()); return; } [numthreads(1, 1, 1)] void compute_main() { - tanh_5b19af(); + prevent_dce.Store(0u, tanh_5b19af()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tanh_5b19af(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000160E2362CF0(3,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/tanh/5b19af.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/tanh/5b19af.wgsl.expected.ir.fxc.hlsl index a372673b760..1c4ef7a77cc 100644 --- a/test/tint/builtins/gen/var/tanh/5b19af.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/tanh/5b19af.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BA583512C0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001AB5AD48F70(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/tanh/6d105a.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tanh/6d105a.wgsl.expected.fxc.hlsl index 066d4023c4b..b281c1653f0 100644 --- a/test/tint/builtins/gen/var/tanh/6d105a.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/tanh/6d105a.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tanh_6d105a() { +vector tanh_6d105a() { vector arg_0 = (float16_t(1.0h)).xx; vector res = tanh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tanh_6d105a(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tanh_6d105a(); + prevent_dce.Store >(0u, tanh_6d105a()); return; } [numthreads(1, 1, 1)] void compute_main() { - tanh_6d105a(); + prevent_dce.Store >(0u, tanh_6d105a()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tanh_6d105a(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001749CE35DF0(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/tanh/6d105a.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/tanh/6d105a.wgsl.expected.ir.fxc.hlsl index f31a8859023..43015f9b18c 100644 --- a/test/tint/builtins/gen/var/tanh/6d105a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/tanh/6d105a.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CD667164C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014B5ED88500(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/tanh/e8efb3.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/tanh/e8efb3.wgsl.expected.fxc.hlsl index e82e88b4eaf..69bf4f474c4 100644 --- a/test/tint/builtins/gen/var/tanh/e8efb3.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/tanh/e8efb3.wgsl.expected.fxc.hlsl @@ -1,36 +1,47 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void tanh_e8efb3() { +vector tanh_e8efb3() { vector arg_0 = (float16_t(1.0h)).xxxx; vector res = tanh(arg_0); - prevent_dce.Store >(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - tanh_e8efb3(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return res; } void fragment_main() { - tanh_e8efb3(); + prevent_dce.Store >(0u, tanh_e8efb3()); return; } [numthreads(1, 1, 1)] void compute_main() { - tanh_e8efb3(); + prevent_dce.Store >(0u, tanh_e8efb3()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = tanh_e8efb3(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002529D7FDF40(3,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/tanh/e8efb3.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/tanh/e8efb3.wgsl.expected.ir.fxc.hlsl index 0e1f17fb4e0..21c40816e41 100644 --- a/test/tint/builtins/gen/var/tanh/e8efb3.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/tanh/e8efb3.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A4B259FD50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020F83095230(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSample/193203.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSample/193203.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSample/193203.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSample/193203.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSample/4703d0.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSample/4703d0.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSample/4703d0.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSample/4703d0.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.ir.dxc.hlsl index 58230f6ec85..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.fxc.hlsl index 08f1b4336f5..91b51fe596a 100644 --- a/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.fxc.hlsl @@ -176,6 +176,6 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D7375AF640(55,137-143): error X3000: syntax error: unexpected token 'sampler' -C:\src\dawn\Shader@0x000001D7375AF640(56,27-32): error X3004: undeclared identifier 'coords' +C:\src\dawn\Shader@0x0000011C881F5890(55,137-143): error X3000: syntax error: unexpected token 'sampler' +C:\src\dawn\Shader@0x0000011C881F5890(56,27-32): error X3004: undeclared identifier 'coords' diff --git a/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.ir.dxc.hlsl index 49d2f50d402..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleBias -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleBias/87915c.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/87915c.wgsl.expected.ir.dxc.hlsl index 49d2f50d402..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/87915c.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleBias/87915c.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleBias -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.ir.dxc.hlsl index 49d2f50d402..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleBias -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.ir.dxc.hlsl index 49d2f50d402..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleBias -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleCompare/7b5025.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/7b5025.wgsl.expected.ir.dxc.hlsl index b7acf20186d..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/7b5025.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/7b5025.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompare -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.ir.dxc.hlsl index b7acf20186d..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompare -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.ir.dxc.hlsl index b7acf20186d..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompare -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.dxc.hlsl index f8e283a8c67..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompareLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.dxc.hlsl index f8e283a8c67..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompareLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.dxc.hlsl index f8e283a8c67..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleCompareLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.ir.dxc.hlsl index 2729ab61a04..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleGrad -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleGrad/7cd6de.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/7cd6de.wgsl.expected.ir.dxc.hlsl index 2729ab61a04..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/7cd6de.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/7cd6de.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleGrad -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.ir.dxc.hlsl index 2729ab61a04..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleGrad -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.ir.dxc.hlsl index 2729ab61a04..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleGrad -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleLevel/f3b2c8.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/f3b2c8.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/f3b2c8.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/f3b2c8.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/textureSampleLevel/faa6d7.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/textureSampleLevel/faa6d7.wgsl.expected.ir.dxc.hlsl index cf26da30364..b8b88c6d85d 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/faa6d7.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/faa6d7.wgsl.expected.ir.dxc.hlsl @@ -1,9 +1,3 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +exit status 0xe0000001 \ No newline at end of file diff --git a/test/tint/builtins/gen/var/transpose/06794e.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/06794e.wgsl.expected.fxc.hlsl index 2f4fddef616..122c185c718 100644 --- a/test/tint/builtins/gen/var/transpose/06794e.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/06794e.wgsl.expected.fxc.hlsl @@ -1,42 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); - prevent_dce.Store >((offset + 16u), value[2u]); -} - -void transpose_06794e() { +int transpose_06794e() { matrix arg_0 = matrix((float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx); matrix res = transpose(arg_0); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_06794e(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_06794e(); + prevent_dce.Store(0u, asuint(transpose_06794e())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_06794e(); + prevent_dce.Store(0u, asuint(transpose_06794e())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_06794e(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001EEB6D657A0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EEB6D657A0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EEB6D657A0(6,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/var/transpose/06794e.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/transpose/06794e.wgsl.expected.ir.fxc.hlsl index 927d169cf22..d8e921bb7f2 100644 --- a/test/tint/builtins/gen/var/transpose/06794e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/06794e.wgsl.expected.ir.fxc.hlsl @@ -44,7 +44,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002BA07A6EBC0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002BA07A6EBC0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002BA07A6EBC0(16,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x000001E3279897F0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E3279897F0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E3279897F0(16,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/var/transpose/5edd96.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/5edd96.wgsl.expected.fxc.hlsl index 0b9b8b825a7..b4b5383c31c 100644 --- a/test/tint/builtins/gen/var/transpose/5edd96.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/5edd96.wgsl.expected.fxc.hlsl @@ -1,41 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); -} - -void transpose_5edd96() { +int transpose_5edd96() { matrix arg_0 = matrix((float16_t(1.0h)).xx, (float16_t(1.0h)).xx, (float16_t(1.0h)).xx, (float16_t(1.0h)).xx); matrix res = transpose(arg_0); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_5edd96(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_5edd96(); + prevent_dce.Store(0u, asuint(transpose_5edd96())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_5edd96(); + prevent_dce.Store(0u, asuint(transpose_5edd96())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_5edd96(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000189ABF36650(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000189ABF36650(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000189ABF36650(6,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/var/transpose/5edd96.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/transpose/5edd96.wgsl.expected.ir.fxc.hlsl index 287d9473c53..b338b140b35 100644 --- a/test/tint/builtins/gen/var/transpose/5edd96.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/5edd96.wgsl.expected.ir.fxc.hlsl @@ -44,7 +44,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A864FEEA80(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002A864FEEA80(15,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002A864FEEA80(16,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x000001CE32F841D0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CE32F841D0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CE32F841D0(16,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/var/transpose/5f36bf.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/5f36bf.wgsl.expected.fxc.hlsl index 49f0186e748..a54e0c27dce 100644 --- a/test/tint/builtins/gen/var/transpose/5f36bf.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/5f36bf.wgsl.expected.fxc.hlsl @@ -1,42 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); - prevent_dce.Store >((offset + 16u), value[2u]); -} - -void transpose_5f36bf() { +int transpose_5f36bf() { matrix arg_0 = matrix((float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx); matrix res = transpose(arg_0); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_5f36bf(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_5f36bf(); + prevent_dce.Store(0u, asuint(transpose_5f36bf())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_5f36bf(); + prevent_dce.Store(0u, asuint(transpose_5f36bf())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_5f36bf(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x0000022E04964710(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022E04964710(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022E04964710(6,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/var/transpose/5f36bf.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/transpose/5f36bf.wgsl.expected.ir.fxc.hlsl index d8f499b8ab1..c8880d4707e 100644 --- a/test/tint/builtins/gen/var/transpose/5f36bf.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/5f36bf.wgsl.expected.ir.fxc.hlsl @@ -44,7 +44,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021A8AC40030(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000021A8AC40030(15,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000021A8AC40030(16,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x000001B91C1D4130(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B91C1D4130(15,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B91C1D4130(16,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/var/transpose/7be8b2.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/7be8b2.wgsl.expected.fxc.hlsl index 4dcea8fb27e..693917537ad 100644 --- a/test/tint/builtins/gen/var/transpose/7be8b2.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/7be8b2.wgsl.expected.fxc.hlsl @@ -1,41 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 4u), value[1u]); -} - -void transpose_7be8b2() { +int transpose_7be8b2() { matrix arg_0 = matrix((float16_t(1.0h)).xx, (float16_t(1.0h)).xx); matrix res = transpose(arg_0); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_7be8b2(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_7be8b2(); + prevent_dce.Store(0u, asuint(transpose_7be8b2())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_7be8b2(); + prevent_dce.Store(0u, asuint(transpose_7be8b2())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_7be8b2(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000279010DD290(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000279010DD290(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000279010DD290(6,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/var/transpose/7be8b2.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/transpose/7be8b2.wgsl.expected.ir.fxc.hlsl index ebf9d2f190f..5938fe324ab 100644 --- a/test/tint/builtins/gen/var/transpose/7be8b2.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/7be8b2.wgsl.expected.ir.fxc.hlsl @@ -44,7 +44,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026A91FBF190(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000026A91FBF190(15,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000026A91FBF190(16,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x00000216C0C26490(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000216C0C26490(15,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000216C0C26490(16,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/var/transpose/844869.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/844869.wgsl.expected.fxc.hlsl index c5a3b3bbff5..b573451dbca 100644 --- a/test/tint/builtins/gen/var/transpose/844869.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/844869.wgsl.expected.fxc.hlsl @@ -1,43 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); - prevent_dce.Store >((offset + 16u), value[2u]); - prevent_dce.Store >((offset + 24u), value[3u]); -} - -void transpose_844869() { +int transpose_844869() { matrix arg_0 = matrix((float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx); matrix res = transpose(arg_0); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_844869(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_844869(); + prevent_dce.Store(0u, asuint(transpose_844869())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_844869(); + prevent_dce.Store(0u, asuint(transpose_844869())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_844869(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000146AF16DEE0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000146AF16DEE0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000146AF16DEE0(6,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/var/transpose/844869.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/transpose/844869.wgsl.expected.ir.fxc.hlsl index e7c3221473e..e16c72084bc 100644 --- a/test/tint/builtins/gen/var/transpose/844869.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/844869.wgsl.expected.ir.fxc.hlsl @@ -44,7 +44,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000162B4DBE2B0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000162B4DBE2B0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000162B4DBE2B0(16,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x000002787BA75150(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002787BA75150(15,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002787BA75150(16,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/var/transpose/8c06ce.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/8c06ce.wgsl.expected.fxc.hlsl index a3ac992ebc4..e8cb8876d20 100644 --- a/test/tint/builtins/gen/var/transpose/8c06ce.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/8c06ce.wgsl.expected.fxc.hlsl @@ -1,43 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); - prevent_dce.Store >((offset + 16u), value[2u]); - prevent_dce.Store >((offset + 24u), value[3u]); -} - -void transpose_8c06ce() { +int transpose_8c06ce() { matrix arg_0 = matrix((float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx); matrix res = transpose(arg_0); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_8c06ce(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_8c06ce(); + prevent_dce.Store(0u, asuint(transpose_8c06ce())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_8c06ce(); + prevent_dce.Store(0u, asuint(transpose_8c06ce())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_8c06ce(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002E241234710(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002E241234710(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002E241234710(6,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/var/transpose/8c06ce.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/transpose/8c06ce.wgsl.expected.ir.fxc.hlsl index ff41617dbfe..d3f424a4506 100644 --- a/test/tint/builtins/gen/var/transpose/8c06ce.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/8c06ce.wgsl.expected.ir.fxc.hlsl @@ -44,7 +44,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000262203AE0F0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000262203AE0F0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000262203AE0F0(16,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x000001D216E09250(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D216E09250(15,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D216E09250(16,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/var/transpose/b9ad1f.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/b9ad1f.wgsl.expected.fxc.hlsl index 7eb271f4799..e8240bf9ac0 100644 --- a/test/tint/builtins/gen/var/transpose/b9ad1f.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/b9ad1f.wgsl.expected.fxc.hlsl @@ -1,41 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 8u), value[1u]); -} - -void transpose_b9ad1f() { +int transpose_b9ad1f() { matrix arg_0 = matrix((float16_t(1.0h)).xx, (float16_t(1.0h)).xx, (float16_t(1.0h)).xx); matrix res = transpose(arg_0); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_b9ad1f(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_b9ad1f(); + prevent_dce.Store(0u, asuint(transpose_b9ad1f())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_b9ad1f(); + prevent_dce.Store(0u, asuint(transpose_b9ad1f())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_b9ad1f(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000222C6CD6640(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000222C6CD6640(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000222C6CD6640(6,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/var/transpose/b9ad1f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/transpose/b9ad1f.wgsl.expected.ir.fxc.hlsl index ba67e0ccd8e..b856a4f9b19 100644 --- a/test/tint/builtins/gen/var/transpose/b9ad1f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/b9ad1f.wgsl.expected.ir.fxc.hlsl @@ -44,7 +44,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D7E31C65C0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001D7E31C65C0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001D7E31C65C0(16,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x0000022FC69E68A0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022FC69E68A0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022FC69E68A0(16,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/var/transpose/d6faec.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/d6faec.wgsl.expected.fxc.hlsl index d60cde243a4..c26aaeeec33 100644 --- a/test/tint/builtins/gen/var/transpose/d6faec.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/d6faec.wgsl.expected.fxc.hlsl @@ -1,42 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 4u), value[1u]); - prevent_dce.Store >((offset + 8u), value[2u]); -} - -void transpose_d6faec() { +int transpose_d6faec() { matrix arg_0 = matrix((float16_t(1.0h)).xxx, (float16_t(1.0h)).xxx); matrix res = transpose(arg_0); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_d6faec(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_d6faec(); + prevent_dce.Store(0u, asuint(transpose_d6faec())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_d6faec(); + prevent_dce.Store(0u, asuint(transpose_d6faec())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_d6faec(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000002960D005790(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002960D005790(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002960D005790(6,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/var/transpose/d6faec.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/transpose/d6faec.wgsl.expected.ir.fxc.hlsl index 036fa97ffb2..36e674c0706 100644 --- a/test/tint/builtins/gen/var/transpose/d6faec.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/d6faec.wgsl.expected.ir.fxc.hlsl @@ -44,7 +44,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022BF14504A0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000022BF14504A0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000022BF14504A0(16,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x0000018BDF5F52C0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018BDF5F52C0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018BDF5F52C0(16,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/var/transpose/faeb05.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/transpose/faeb05.wgsl.expected.fxc.hlsl index bc40fc3a636..40d9b86d2dd 100644 --- a/test/tint/builtins/gen/var/transpose/faeb05.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/faeb05.wgsl.expected.fxc.hlsl @@ -1,43 +1,49 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void prevent_dce_store(uint offset, matrix value) { - prevent_dce.Store >((offset + 0u), value[0u]); - prevent_dce.Store >((offset + 4u), value[1u]); - prevent_dce.Store >((offset + 8u), value[2u]); - prevent_dce.Store >((offset + 12u), value[3u]); -} - -void transpose_faeb05() { +int transpose_faeb05() { matrix arg_0 = matrix((float16_t(1.0h)).xxxx, (float16_t(1.0h)).xxxx); matrix res = transpose(arg_0); - prevent_dce_store(0u, res); -} - -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - transpose_faeb05(); - return (0.0f).xxxx; -} - -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; + return ((res[0][0] == float16_t(0.0h)) ? 1 : 0); } void fragment_main() { - transpose_faeb05(); + prevent_dce.Store(0u, asuint(transpose_faeb05())); return; } [numthreads(1, 1, 1)] void compute_main() { - transpose_faeb05(); + prevent_dce.Store(0u, asuint(transpose_faeb05())); return; } + +struct VertexOutput { + float4 pos; + int prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation int prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = transpose_faeb05(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001F802F5E050(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F802F5E050(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F802F5E050(6,12-14): error X3004: undeclared identifier 'res' + diff --git a/test/tint/builtins/gen/var/transpose/faeb05.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/transpose/faeb05.wgsl.expected.ir.fxc.hlsl index 83029130be3..91e7d9ac594 100644 --- a/test/tint/builtins/gen/var/transpose/faeb05.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/transpose/faeb05.wgsl.expected.ir.fxc.hlsl @@ -44,7 +44,7 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001784198EBD0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001784198EBD0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001784198EBD0(16,13-15): error X3004: undeclared identifier 'res' +C:\src\dawn\Shader@0x00000267F5A952D0(14,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000267F5A952D0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000267F5A952D0(16,13-15): error X3004: undeclared identifier 'res' diff --git a/test/tint/builtins/gen/var/trunc/103ab8.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/trunc/103ab8.wgsl.expected.fxc.hlsl index a27423eff89..bb34ef43b63 100644 --- a/test/tint/builtins/gen/var/trunc/103ab8.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/trunc/103ab8.wgsl.expected.fxc.hlsl @@ -1,36 +1,51 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); - -void trunc_103ab8() { - vector arg_0 = (float16_t(1.5h)).xxx; - vector res = trunc(arg_0); - prevent_dce.Store >(0u, res); +vector tint_trunc(vector param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - trunc_103ab8(); - return (0.0f).xxxx; -} +RWByteAddressBuffer prevent_dce : register(u0); -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; +vector trunc_103ab8() { + vector arg_0 = (float16_t(1.5h)).xxx; + vector res = tint_trunc(arg_0); + return res; } void fragment_main() { - trunc_103ab8(); + prevent_dce.Store >(0u, trunc_103ab8()); return; } [numthreads(1, 1, 1)] void compute_main() { - trunc_103ab8(); + prevent_dce.Store >(0u, trunc_103ab8()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = trunc_103ab8(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001AD5A160390(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/trunc/103ab8.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/trunc/103ab8.wgsl.expected.ir.fxc.hlsl index d787319c25b..f0fd2c7acb7 100644 --- a/test/tint/builtins/gen/var/trunc/103ab8.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/trunc/103ab8.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001629C1CE6F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B3E9CDA960(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/trunc/a56109.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/trunc/a56109.wgsl.expected.fxc.hlsl index ef6431e19ae..1b8e41e1a91 100644 --- a/test/tint/builtins/gen/var/trunc/a56109.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/trunc/a56109.wgsl.expected.fxc.hlsl @@ -1,36 +1,51 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); - -void trunc_a56109() { - vector arg_0 = (float16_t(1.5h)).xx; - vector res = trunc(arg_0); - prevent_dce.Store >(0u, res); +vector tint_trunc(vector param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - trunc_a56109(); - return (0.0f).xxxx; -} +RWByteAddressBuffer prevent_dce : register(u0); -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; +vector trunc_a56109() { + vector arg_0 = (float16_t(1.5h)).xx; + vector res = tint_trunc(arg_0); + return res; } void fragment_main() { - trunc_a56109(); + prevent_dce.Store >(0u, trunc_a56109()); return; } [numthreads(1, 1, 1)] void compute_main() { - trunc_a56109(); + prevent_dce.Store >(0u, trunc_a56109()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = trunc_a56109(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001C0973AD2B0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/trunc/a56109.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/trunc/a56109.wgsl.expected.ir.fxc.hlsl index 6b48a5d4b35..8ecc683b209 100644 --- a/test/tint/builtins/gen/var/trunc/a56109.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/trunc/a56109.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020E373854D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BB380A6600(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/trunc/cc2b0d.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/trunc/cc2b0d.wgsl.expected.fxc.hlsl index 9d3687b867a..4aa59a469b7 100644 --- a/test/tint/builtins/gen/var/trunc/cc2b0d.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/trunc/cc2b0d.wgsl.expected.fxc.hlsl @@ -1,36 +1,51 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); - -void trunc_cc2b0d() { - float16_t arg_0 = float16_t(1.5h); - float16_t res = trunc(arg_0); - prevent_dce.Store(0u, res); +float16_t tint_trunc(float16_t param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - trunc_cc2b0d(); - return (0.0f).xxxx; -} +RWByteAddressBuffer prevent_dce : register(u0); -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; +float16_t trunc_cc2b0d() { + float16_t arg_0 = float16_t(1.5h); + float16_t res = tint_trunc(arg_0); + return res; } void fragment_main() { - trunc_cc2b0d(); + prevent_dce.Store(0u, trunc_cc2b0d()); return; } [numthreads(1, 1, 1)] void compute_main() { - trunc_cc2b0d(); + prevent_dce.Store(0u, trunc_cc2b0d()); return; } + +struct VertexOutput { + float4 pos; + float16_t prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation float16_t prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = trunc_cc2b0d(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x000001BB57F0FE30(1,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/trunc/cc2b0d.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/trunc/cc2b0d.wgsl.expected.ir.fxc.hlsl index 8f3d8970bbd..6e1d3f88eef 100644 --- a/test/tint/builtins/gen/var/trunc/cc2b0d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/trunc/cc2b0d.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000175C9485020(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022619057F80(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/gen/var/trunc/ce7c17.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/trunc/ce7c17.wgsl.expected.fxc.hlsl index 98b431bdc8a..4f1da058e8d 100644 --- a/test/tint/builtins/gen/var/trunc/ce7c17.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/trunc/ce7c17.wgsl.expected.fxc.hlsl @@ -1,36 +1,51 @@ SKIP: FAILED -RWByteAddressBuffer prevent_dce : register(u0, space2); - -void trunc_ce7c17() { - vector arg_0 = (float16_t(1.5h)).xxxx; - vector res = trunc(arg_0); - prevent_dce.Store >(0u, res); +vector tint_trunc(vector param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); } -struct tint_symbol { - float4 value : SV_Position; -}; - -float4 vertex_main_inner() { - trunc_ce7c17(); - return (0.0f).xxxx; -} +RWByteAddressBuffer prevent_dce : register(u0); -tint_symbol vertex_main() { - const float4 inner_result = vertex_main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.value = inner_result; - return wrapper_result; +vector trunc_ce7c17() { + vector arg_0 = (float16_t(1.5h)).xxxx; + vector res = tint_trunc(arg_0); + return res; } void fragment_main() { - trunc_ce7c17(); + prevent_dce.Store >(0u, trunc_ce7c17()); return; } [numthreads(1, 1, 1)] void compute_main() { - trunc_ce7c17(); + prevent_dce.Store >(0u, trunc_ce7c17()); return; } + +struct VertexOutput { + float4 pos; + vector prevent_dce; +}; +struct tint_symbol_1 { + nointerpolation vector prevent_dce : TEXCOORD0; + float4 pos : SV_Position; +}; + +VertexOutput vertex_main_inner() { + VertexOutput tint_symbol = (VertexOutput)0; + tint_symbol.pos = (0.0f).xxxx; + tint_symbol.prevent_dce = trunc_ce7c17(); + return tint_symbol; +} + +tint_symbol_1 vertex_main() { + VertexOutput inner_result = vertex_main_inner(); + tint_symbol_1 wrapper_result = (tint_symbol_1)0; + wrapper_result.pos = inner_result.pos; + wrapper_result.prevent_dce = inner_result.prevent_dce; + return wrapper_result; +} +FXC validation failure: +C:\src\dawn\Shader@0x00000211E28A5870(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/builtins/gen/var/trunc/ce7c17.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/trunc/ce7c17.wgsl.expected.ir.fxc.hlsl index 3eebec98a66..95a75498edf 100644 --- a/test/tint/builtins/gen/var/trunc/ce7c17.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/trunc/ce7c17.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ vertex_main_outputs vertex_main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000195E334F1D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014CF57C4D20(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/builtins/gen/var/workgroupUniformLoad/e07d08.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/var/workgroupUniformLoad/e07d08.wgsl.expected.fxc.hlsl index 9fe9c3e8015..c85babe42cf 100644 --- a/test/tint/builtins/gen/var/workgroupUniformLoad/e07d08.wgsl.expected.fxc.hlsl +++ b/test/tint/builtins/gen/var/workgroupUniformLoad/e07d08.wgsl.expected.fxc.hlsl @@ -1,18 +1,26 @@ SKIP: FAILED -float16_t tint_workgroupUniformLoad(inout float16_t p) { +groupshared float16_t arg_0; + +void tint_zero_workgroup_memory(uint local_idx) { + if ((local_idx < 1u)) { + arg_0 = float16_t(0.0h); + } + GroupMemoryBarrierWithGroupSync(); +} + +float16_t tint_workgroupUniformLoad_arg_0() { GroupMemoryBarrierWithGroupSync(); - const float16_t result = p; + float16_t result = arg_0; GroupMemoryBarrierWithGroupSync(); return result; } -groupshared float16_t arg_0; -RWByteAddressBuffer prevent_dce : register(u0, space2); +RWByteAddressBuffer prevent_dce : register(u0); -void workgroupUniformLoad_e07d08() { - float16_t res = tint_workgroupUniformLoad(arg_0); - prevent_dce.Store(0u, res); +float16_t workgroupUniformLoad_e07d08() { + float16_t res = tint_workgroupUniformLoad_arg_0(); + return res; } struct tint_symbol_1 { @@ -20,11 +28,8 @@ struct tint_symbol_1 { }; void compute_main_inner(uint local_invocation_index) { - { - arg_0 = float16_t(0.0h); - } - GroupMemoryBarrierWithGroupSync(); - workgroupUniformLoad_e07d08(); + tint_zero_workgroup_memory(local_invocation_index); + prevent_dce.Store(0u, workgroupUniformLoad_e07d08()); } [numthreads(1, 1, 1)] @@ -32,3 +37,6 @@ void compute_main(tint_symbol_1 tint_symbol) { compute_main_inner(tint_symbol.local_invocation_index); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001EC48056240(1,13-21): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/builtins/gen/var/workgroupUniformLoad/e07d08.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/workgroupUniformLoad/e07d08.wgsl.expected.ir.fxc.hlsl index d3166cbac0f..723e5373643 100644 --- a/test/tint/builtins/gen/var/workgroupUniformLoad/e07d08.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/gen/var/workgroupUniformLoad/e07d08.wgsl.expected.ir.fxc.hlsl @@ -29,5 +29,5 @@ void compute_main(compute_main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000002D599389150(7,13-21): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001690BC9F950(7,13-21): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/builtins/modf/scalar/mixed.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/modf/scalar/mixed.wgsl.expected.ir.fxc.hlsl index afa0add3925..478199f6cc5 100644 --- a/test/tint/builtins/modf/scalar/mixed.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/modf/scalar/mixed.wgsl.expected.ir.fxc.hlsl @@ -19,7 +19,7 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E25A098F80(11,23-38): error X3013: 'modf': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x000001E25A098F80(11,23-38): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x000001E25A098F80(11,23-38): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) +C:\src\dawn\Shader@0x000001F2F72202E0(11,23-38): error X3013: 'modf': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000001F2F72202E0(11,23-38): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000001F2F72202E0(11,23-38): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) diff --git a/test/tint/builtins/modf/scalar/runtime.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/modf/scalar/runtime.wgsl.expected.ir.fxc.hlsl index 3f4ad737af2..3223e857949 100644 --- a/test/tint/builtins/modf/scalar/runtime.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/modf/scalar/runtime.wgsl.expected.ir.fxc.hlsl @@ -17,7 +17,7 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025CF9E0CB00(10,23-39): error X3013: 'modf': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x0000025CF9E0CB00(10,23-39): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x0000025CF9E0CB00(10,23-39): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) +C:\src\dawn\Shader@0x000001C2E27E0880(10,23-39): error X3013: 'modf': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000001C2E27E0880(10,23-39): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000001C2E27E0880(10,23-39): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) diff --git a/test/tint/builtins/modf/vector/mixed.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/modf/vector/mixed.wgsl.expected.ir.fxc.hlsl index 2fb7ca890d4..e171df99ff2 100644 --- a/test/tint/builtins/modf/vector/mixed.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/modf/vector/mixed.wgsl.expected.ir.fxc.hlsl @@ -19,7 +19,7 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000013591A8F780(11,28-43): error X3013: 'modf': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x0000013591A8F780(11,28-43): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x0000013591A8F780(11,28-43): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) +C:\src\dawn\Shader@0x000002820C3A9E00(11,28-43): error X3013: 'modf': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000002820C3A9E00(11,28-43): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000002820C3A9E00(11,28-43): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) diff --git a/test/tint/builtins/modf/vector/runtime.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/modf/vector/runtime.wgsl.expected.ir.fxc.hlsl index 8938af18dfa..ef73f2a1136 100644 --- a/test/tint/builtins/modf/vector/runtime.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/builtins/modf/vector/runtime.wgsl.expected.ir.fxc.hlsl @@ -17,7 +17,7 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018492943230(10,28-44): error X3013: 'modf': no matching 1 parameter intrinsic function -C:\src\dawn\Shader@0x0000018492943230(10,28-44): error X3013: Possible intrinsic functions are: -C:\src\dawn\Shader@0x0000018492943230(10,28-44): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) +C:\src\dawn\Shader@0x000002195B17D370(10,28-44): error X3013: 'modf': no matching 1 parameter intrinsic function +C:\src\dawn\Shader@0x000002195B17D370(10,28-44): error X3013: Possible intrinsic functions are: +C:\src\dawn\Shader@0x000002195B17D370(10,28-44): error X3013: modf(float|half|min10float|min16float, out float|half|min10float|min16float ip) diff --git a/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.fxc.hlsl b/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.fxc.hlsl index 9993a781233..0efde3c05c5 100644 --- a/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.fxc.hlsl +++ b/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.fxc.hlsl @@ -1,14 +1,14 @@ SKIP: FAILED -diagnostic_filtering/for_loop_body_attribute.wgsl:8:9 warning: 'textureSample' must only be called from uniform control flow +/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl:8:9 warning: 'textureSample' must only be called from uniform control flow v = textureSample(t, s, vec2(0, 0)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -diagnostic_filtering/for_loop_body_attribute.wgsl:7:3 note: control flow depends on possibly non-uniform value +/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl:7:3 note: control flow depends on possibly non-uniform value for (; x > v.x; ) @diagnostic(warning, derivative_uniformity) { ^^^ -diagnostic_filtering/for_loop_body_attribute.wgsl:8:9 note: return value of 'textureSample' may be non-uniform +/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl:8:9 note: return value of 'textureSample' may be non-uniform v = textureSample(t, s, vec2(0, 0)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -32,3 +32,7 @@ void main(tint_symbol_1 tint_symbol) { main_inner(tint_symbol.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C7E09040B0(12,11-32): warning X3570: gradient instruction used in a loop with varying iteration, attempting to unroll the loop +C:\src\dawn\Shader@0x000001C7E09040B0(11,5-22): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (1024 iterations) + diff --git a/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.ir.fxc.hlsl b/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.ir.fxc.hlsl index 075cac304c6..ac9ce878a81 100644 --- a/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.ir.fxc.hlsl @@ -40,6 +40,6 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000183CAA85530(16,11-32): warning X3570: gradient instruction used in a loop with varying iteration, attempting to unroll the loop -C:\src\dawn\Shader@0x00000183CAA85530(11,5-15): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (1024 iterations) +C:\src\dawn\Shader@0x000001F31C489200(16,11-32): warning X3570: gradient instruction used in a loop with varying iteration, attempting to unroll the loop +C:\src\dawn\Shader@0x000001F31C489200(11,5-15): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (1024 iterations) diff --git a/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.fxc.hlsl b/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.fxc.hlsl index 6cf84eb00d7..fd191451437 100644 --- a/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.fxc.hlsl +++ b/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.fxc.hlsl @@ -1,14 +1,14 @@ SKIP: FAILED -diagnostic_filtering/while_loop_body_attribute.wgsl:8:9 warning: 'textureSample' must only be called from uniform control flow +/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl:8:9 warning: 'textureSample' must only be called from uniform control flow v = textureSample(t, s, vec2(0, 0)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -diagnostic_filtering/while_loop_body_attribute.wgsl:7:3 note: control flow depends on possibly non-uniform value +/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl:7:3 note: control flow depends on possibly non-uniform value while (x > v.x) @diagnostic(warning, derivative_uniformity) { ^^^^^ -diagnostic_filtering/while_loop_body_attribute.wgsl:8:9 note: return value of 'textureSample' may be non-uniform +/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl:8:9 note: return value of 'textureSample' may be non-uniform v = textureSample(t, s, vec2(0, 0)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -30,3 +30,7 @@ void main(tint_symbol_1 tint_symbol) { main_inner(tint_symbol.x); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000236C09AAFA0(11,9-30): warning X3570: gradient instruction used in a loop with varying iteration, attempting to unroll the loop +C:\src\dawn\Shader@0x00000236C09AAFA0(10,3-18): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (1024 iterations) + diff --git a/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.ir.fxc.hlsl b/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.ir.fxc.hlsl index da16adc4d95..fc1ae680f19 100644 --- a/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.ir.fxc.hlsl @@ -40,6 +40,6 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001BE0625E2F0(16,11-32): warning X3570: gradient instruction used in a loop with varying iteration, attempting to unroll the loop -C:\src\dawn\Shader@0x000001BE0625E2F0(11,5-15): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (1024 iterations) +C:\src\dawn\Shader@0x000002C2D238ED10(16,11-32): warning X3570: gradient instruction used in a loop with varying iteration, attempting to unroll the loop +C:\src\dawn\Shader@0x000002C2D238ED10(11,5-15): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (1024 iterations) diff --git a/test/tint/expressions/binary/add/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl index a788be382c5..162787445d9 100644 --- a/test/tint/expressions/binary/add/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/add/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const matrix a = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)), vector(float16_t(7.0h), float16_t(8.0h), float16_t(9.0h))); - const matrix b = matrix(vector(float16_t(-1.0h), float16_t(-2.0h), float16_t(-3.0h)), vector(float16_t(-4.0h), float16_t(-5.0h), float16_t(-6.0h)), vector(float16_t(-7.0h), float16_t(-8.0h), float16_t(-9.0h))); - const matrix r = (a + b); + matrix a = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)), vector(float16_t(7.0h), float16_t(8.0h), float16_t(9.0h))); + matrix b = matrix(vector(float16_t(-1.0h), float16_t(-2.0h), float16_t(-3.0h)), vector(float16_t(-4.0h), float16_t(-5.0h), float16_t(-6.0h)), vector(float16_t(-7.0h), float16_t(-8.0h), float16_t(-9.0h))); + matrix r = (a + b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001761DC9BD70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001761DC9BD70(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001761DC9BD70(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/add/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/add/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl index 2421d2b1930..4a8fe3cff8e 100644 --- a/test/tint/expressions/binary/add/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/add/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F9483A9530(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001F9483A9530(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001F9483A9530(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F897254410(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F897254410(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F897254410(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/add/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/scalar-scalar/f16.wgsl.expected.fxc.hlsl index e2ae399eb68..8e17fa7afa3 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/add/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,12 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(1.0h); - const float16_t b = float16_t(2.0h); - const float16_t r = (a + b); + float16_t a = float16_t(1.0h); + float16_t b = float16_t(2.0h); + float16_t r = (a + b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024EC78E7850(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000024EC78E7850(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/add/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/add/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index 463133b8512..73cabff726a 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/add/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002022D36ADA0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000002022D36ADA0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000002A052157710(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002A052157710(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/add/scalar-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/scalar-vec3/f16.wgsl.expected.fxc.hlsl index 5b718239ff0..8462890a403 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/add/scalar-vec3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,12 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(4.0h); - const vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector r = (a + b); + float16_t a = float16_t(4.0h); + vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector r = (a + b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F0B6290680(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001F0B6290680(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/add/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/add/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl index eda30c46f88..2a566283d70 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/add/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000249460506B0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000249460506B0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x00000220C6D62750(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000220C6D62750(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/add/vec3-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/vec3-scalar/f16.wgsl.expected.fxc.hlsl index 69338232a2d..ce47e415434 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/add/vec3-scalar/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const float16_t b = float16_t(4.0h); - const vector r = (a + b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + float16_t b = float16_t(4.0h); + vector r = (a + b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002B2973DFEA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B2973DFEA0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002B2973DFEA0(4,13): error X3000: unrecognized identifier 'b' + diff --git a/test/tint/expressions/binary/add/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/add/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl index ba3ce33132b..981a024b588 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/add/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BB7B511BD0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001BB7B511BD0(5,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001BB7B511BD0(5,13): error X3000: unrecognized identifier 'b' +C:\src\dawn\Shader@0x000002C0FF432B90(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002C0FF432B90(5,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002C0FF432B90(5,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/expressions/binary/add/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/add/vec3-vec3/f16.wgsl.expected.fxc.hlsl index d44bde9a2c0..1dca1a233b3 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/add/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector b = vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)); - const vector r = (a + b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector b = vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)); + vector r = (a + b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002D085F3FEC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002D085F3FEC0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002D085F3FEC0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/add/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/add/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index c574986141f..aec7802fd55 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/add/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002786D51A030(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002786D51A030(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002786D51A030(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B572F46090(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B572F46090(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B572F46090(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/div/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/scalar-scalar/f16.wgsl.expected.fxc.hlsl index 4ad12f8fd39..eacf8e482e2 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,12 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(1.0h); - const float16_t b = float16_t(2.0h); - const float16_t r = (a / b); + float16_t a = float16_t(1.0h); + float16_t b = float16_t(2.0h); + float16_t r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000177C72D87B0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000177C72D87B0(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/div/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index 5979db7ccb0..3161a0a4dc4 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E81633ADA0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001E81633ADA0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000001C15B9387D0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C15B9387D0(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/div/scalar-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/scalar-vec3/f16.wgsl.expected.fxc.hlsl index 7653afd332f..7ef3c6c4d89 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div/scalar-vec3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,12 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(4.0h); - const vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector r = (a / b); + float16_t a = float16_t(4.0h); + vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A379BCFA70(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001A379BCFA70(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/div/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl index f19aed35565..8c23007f098 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002508CF50AD0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000002508CF50AD0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000001BE2C621FE0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001BE2C621FE0(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/div/vec3-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/vec3-scalar/f16.wgsl.expected.fxc.hlsl index 45a869bce65..69178b13498 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div/vec3-scalar/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const float16_t b = float16_t(4.0h); - const vector r = (a / b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + float16_t b = float16_t(4.0h); + vector r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029B5799B0A0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029B5799B0A0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000029B5799B0A0(4,13): error X3000: unrecognized identifier 'b' + diff --git a/test/tint/expressions/binary/div/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl index e6490810a4d..3e823766762 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EE093B0580(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001EE093B0580(5,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001EE093B0580(5,13): error X3000: unrecognized identifier 'b' +C:\src\dawn\Shader@0x000001CF5B512860(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CF5B512860(5,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001CF5B512860(5,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/expressions/binary/div/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div/vec3-vec3/f16.wgsl.expected.fxc.hlsl index 8c621ccc586..54b89dc6dd4 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector b = vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)); - const vector r = (a / b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector b = vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)); + vector r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025D521538C0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025D521538C0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025D521538C0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/div/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index 88fb8bcc629..8b5771e8f19 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002527C1194A0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002527C1194A0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002527C1194A0(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EFDED1FCA0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EFDED1FCA0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EFDED1FCA0(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.fxc.hlsl index 4b5bc7cdae7..cf6e6a7728b 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,12 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(1.0h); - const float16_t b = float16_t(0.0h); - const float16_t r = (a / b); + float16_t a = float16_t(1.0h); + float16_t b = float16_t(0.0h); + float16_t r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E692990A00(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E692990A00(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index 0958c7c1d8d..dc5b2b635ac 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000168EC491480(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000168EC491480(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x00000197CDBABF20(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000197CDBABF20(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f16.wgsl.expected.fxc.hlsl index 3030ee6c0fc..88c50cdb22f 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,12 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(4.0h); - const vector b = vector(float16_t(0.0h), float16_t(2.0h), float16_t(0.0h)); - const vector r = (a / b); + float16_t a = float16_t(4.0h); + vector b = vector(float16_t(0.0h), float16_t(2.0h), float16_t(0.0h)); + vector r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000286CA54FAC0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000286CA54FAC0(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl index 0ff073abac0..d32e2740459 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022382421D40(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000022382421D40(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000001803E2E2240(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001803E2E2240(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f16.wgsl.expected.fxc.hlsl index b651f73290c..17adead86a4 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const float16_t b = float16_t(0.0h); - const vector r = (a / b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + float16_t b = float16_t(0.0h); + vector r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000177AFB0FA80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000177AFB0FA80(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000177AFB0FA80(4,13): error X3000: unrecognized identifier 'b' + diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl index a77f838dd11..002a2ffff61 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CCCBA808A0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001CCCBA808A0(5,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001CCCBA808A0(5,13): error X3000: unrecognized identifier 'b' +C:\src\dawn\Shader@0x000001C56C6B2020(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C56C6B2020(5,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C56C6B2020(5,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.fxc.hlsl index a3ba0845123..6f3e3dd8140 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector b = vector(float16_t(0.0h), float16_t(5.0h), float16_t(0.0h)); - const vector r = (a / b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector b = vector(float16_t(0.0h), float16_t(5.0h), float16_t(0.0h)); + vector r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000201B3936050(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000201B3936050(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000201B3936050(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index 764030f5036..68f41b998eb 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E104EEA030(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001E104EEA030(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001E104EEA030(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025974920B70(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025974920B70(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025974920B70(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.fxc.hlsl index 0ea49f848d5..304b43c9364 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -4,6 +4,10 @@ SKIP: FAILED void f() { float16_t a = float16_t(1.0h); float16_t b = float16_t(0.0h); - const float16_t r = (a / (b + b)); + float16_t r = (a / (b + b)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001DE7CF95EA0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001DE7CF95EA0(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index 9d75abc8e25..d36864e1050 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000235AE34AFE0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000235AE34AFE0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x00000272CBA58800(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000272CBA58800(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f16.wgsl.expected.fxc.hlsl index 88a509d8cc0..6f68a7fdc86 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f16.wgsl.expected.fxc.hlsl @@ -4,6 +4,10 @@ SKIP: FAILED void f() { float16_t a = float16_t(4.0h); vector b = vector(float16_t(0.0h), float16_t(2.0h), float16_t(0.0h)); - const vector r = (a / (b + b)); + vector r = (a / (b + b)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000197BD529480(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000197BD529480(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl index 644924f6748..e7ab29203d6 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016FB75FEA50(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000016FB75FEA50(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000002A714AB6420(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002A714AB6420(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f16.wgsl.expected.fxc.hlsl index 1f2b4daec87..70ecc6f7e91 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f16.wgsl.expected.fxc.hlsl @@ -4,6 +4,11 @@ SKIP: FAILED void f() { vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); float16_t b = float16_t(0.0h); - const vector r = (a / (b + b)); + vector r = (a / (b + b)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000156E52C41E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000156E52C41E0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000156E52C41E0(4,13): error X3000: unrecognized identifier 'b' + diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl index 0e5641773f0..7826ea63950 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000270BA789520(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000270BA789520(5,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000270BA789520(5,13): error X3000: unrecognized identifier 'b' +C:\src\dawn\Shader@0x000002E010466630(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002E010466630(5,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002E010466630(5,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.fxc.hlsl index 588d96fcb02..2edb148d6e9 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -4,6 +4,11 @@ SKIP: FAILED void f() { vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); vector b = vector(float16_t(0.0h), float16_t(5.0h), float16_t(0.0h)); - const vector r = (a / (b + b)); + vector r = (a / (b + b)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001FCF22D0FB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FCF22D0FB0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FCF22D0FB0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index 2e238eddf63..139635ad896 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023031BA97E0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000023031BA97E0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000023031BA97E0(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FA5B2D0440(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FA5B2D0440(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FA5B2D0440(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.fxc.hlsl index 8b1f507ee7c..f291fd86a88 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -4,6 +4,10 @@ SKIP: FAILED void f() { float16_t a = float16_t(1.0h); float16_t b = float16_t(0.0h); - const float16_t r = (a / b); + float16_t r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D6BBC50A20(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001D6BBC50A20(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index 0c2f1808e7c..79993d17dc6 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000177A7581A00(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000177A7581A00(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x0000021445930C30(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000021445930C30(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f16.wgsl.expected.fxc.hlsl index 9f591f4302d..49fb931142b 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f16.wgsl.expected.fxc.hlsl @@ -4,6 +4,10 @@ SKIP: FAILED void f() { float16_t a = float16_t(4.0h); vector b = vector(float16_t(0.0h), float16_t(2.0h), float16_t(0.0h)); - const vector r = (a / b); + vector r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000014BDA880F60(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000014BDA880F60(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl index 0a3de761684..1e925b0f80d 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E77D390D10(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001E77D390D10(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000002B7C34B2240(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002B7C34B2240(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f16.wgsl.expected.fxc.hlsl index a2aefbd483a..b25f6e54505 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f16.wgsl.expected.fxc.hlsl @@ -4,6 +4,11 @@ SKIP: FAILED void f() { vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); float16_t b = float16_t(0.0h); - const vector r = (a / b); + vector r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023A3D11FE80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023A3D11FE80(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000023A3D11FE80(4,13): error X3000: unrecognized identifier 'b' + diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl index b7781f1c7ab..4e0bf51829d 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017FFE732620(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000017FFE732620(5,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000017FFE732620(5,13): error X3000: unrecognized identifier 'b' +C:\src\dawn\Shader@0x00000247AD882680(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000247AD882680(5,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000247AD882680(5,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.fxc.hlsl index b87f9766ed6..dceb88360d6 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -4,6 +4,11 @@ SKIP: FAILED void f() { vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); vector b = vector(float16_t(0.0h), float16_t(5.0h), float16_t(0.0h)); - const vector r = (a / b); + vector r = (a / b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000168DD38B0D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000168DD38B0D0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000168DD38B0D0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index f57a3bc19c6..d8029004b58 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002312503DEA0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002312503DEA0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002312503DEA0(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027B6218FC80(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027B6218FC80(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027B6218FC80(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mod/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/scalar-scalar/f16.wgsl.expected.fxc.hlsl index 1d7f2c224d6..6ea331cc958 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mod/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +float16_t tint_trunc(float16_t param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); +} + float16_t tint_float_mod(float16_t lhs, float16_t rhs) { - return (lhs - (trunc((lhs / rhs)) * rhs)); + return (lhs - (tint_trunc((lhs / rhs)) * rhs)); } [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(1.0h); - const float16_t b = float16_t(2.0h); - const float16_t r = tint_float_mod(a, b); + float16_t a = float16_t(1.0h); + float16_t b = float16_t(2.0h); + float16_t r = tint_float_mod(a, b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BBFE5AB020(1,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/binary/mod/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mod/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index 311bab2e2b1..c941a1b84c8 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mod/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -11,6 +11,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E186F3F660(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001E186F3F660(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000001C5D29E3A80(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C5D29E3A80(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/mod/scalar-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/scalar-vec3/f16.wgsl.expected.fxc.hlsl index 216663a06d8..4780bd3149b 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/f16.wgsl.expected.fxc.hlsl @@ -1,14 +1,21 @@ SKIP: FAILED +vector tint_trunc(vector param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); +} + vector tint_float_mod(float16_t lhs, vector rhs) { - const vector l = vector((lhs).xxx); - return (l - (trunc((l / rhs)) * rhs)); + vector l = vector((lhs).xxx); + return (l - (tint_trunc((l / rhs)) * rhs)); } [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(4.0h); - const vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector r = tint_float_mod(a, b); + float16_t a = float16_t(4.0h); + vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector r = tint_float_mod(a, b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000206F864FF30(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mod/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mod/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl index dbedc3d6f8a..a7070406997 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -11,6 +11,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000248506A6AD0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000248506A6AD0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000001EC0CDDFD60(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001EC0CDDFD60(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/mod/vec3-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/vec3-scalar/f16.wgsl.expected.fxc.hlsl index 788ed1069de..bb410ca9177 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/f16.wgsl.expected.fxc.hlsl @@ -1,14 +1,21 @@ SKIP: FAILED +vector tint_trunc(vector param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); +} + vector tint_float_mod(vector lhs, float16_t rhs) { - const vector r = vector((rhs).xxx); - return (lhs - (trunc((lhs / r)) * r)); + vector r = vector((rhs).xxx); + return (lhs - (tint_trunc((lhs / r)) * r)); } [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const float16_t b = float16_t(4.0h); - const vector r = tint_float_mod(a, b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + float16_t b = float16_t(4.0h); + vector r = tint_float_mod(a, b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023102AC3D20(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mod/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mod/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl index 106bec9b799..ebb034e8909 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -11,7 +11,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020340630200(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000020340630200(5,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000020340630200(5,13): error X3000: unrecognized identifier 'b' +C:\src\dawn\Shader@0x00000201A913FCB0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000201A913FCB0(5,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000201A913FCB0(5,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/expressions/binary/mod/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod/vec3-vec3/f16.wgsl.expected.fxc.hlsl index 43dbce5994d..7f910a9e06c 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +vector tint_trunc(vector param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); +} + vector tint_float_mod(vector lhs, vector rhs) { - return (lhs - (trunc((lhs / rhs)) * rhs)); + return (lhs - (tint_trunc((lhs / rhs)) * rhs)); } [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector b = vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)); - const vector r = tint_float_mod(a, b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector b = vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)); + vector r = tint_float_mod(a, b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000280DD9345E0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mod/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mod/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index fca65d00bf1..037fec84483 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -11,9 +11,9 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026578D094A0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000026578D094A0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000026578D094A0(6,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000026578D094A0(7,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000026578D094A0(8,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001307B44F9A0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001307B44F9A0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001307B44F9A0(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001307B44F9A0(7,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001307B44F9A0(8,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.fxc.hlsl index c85f822af9b..8bdbc5fe95b 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +float16_t tint_trunc(float16_t param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); +} + float16_t tint_float_mod(float16_t lhs, float16_t rhs) { - return (lhs - (trunc((lhs / rhs)) * rhs)); + return (lhs - (tint_trunc((lhs / rhs)) * rhs)); } [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(1.0h); - const float16_t b = float16_t(0.0h); - const float16_t r = tint_float_mod(a, b); + float16_t a = float16_t(1.0h); + float16_t b = float16_t(0.0h); + float16_t r = tint_float_mod(a, b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BAA963FE00(1,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index 006590f33d9..90643410433 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -11,6 +11,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000180E6AE0010(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000180E6AE0010(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x00000299BA683710(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000299BA683710(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.fxc.hlsl index e213942b549..463b1ae97c7 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +vector tint_trunc(vector param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); +} + vector tint_float_mod(vector lhs, vector rhs) { - return (lhs - (trunc((lhs / rhs)) * rhs)); + return (lhs - (tint_trunc((lhs / rhs)) * rhs)); } [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector b = vector(float16_t(0.0h), float16_t(5.0h), float16_t(0.0h)); - const vector r = tint_float_mod(a, b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector b = vector(float16_t(0.0h), float16_t(5.0h), float16_t(0.0h)); + vector r = tint_float_mod(a, b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001788A4CFF50(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index efb24a55552..bc8a28187da 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -11,9 +11,9 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000214D1A9A010(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000214D1A9A010(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000214D1A9A010(6,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000214D1A9A010(7,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000214D1A9A010(8,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019069F7DC80(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019069F7DC80(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019069F7DC80(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019069F7DC80(7,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019069F7DC80(8,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.fxc.hlsl index 1002ebfb5e2..58978aa2b5e 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +float16_t tint_trunc(float16_t param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); +} + float16_t tint_float_mod(float16_t lhs, float16_t rhs) { - return (lhs - (trunc((lhs / rhs)) * rhs)); + return (lhs - (tint_trunc((lhs / rhs)) * rhs)); } [numthreads(1, 1, 1)] void f() { float16_t a = float16_t(1.0h); float16_t b = float16_t(0.0h); - const float16_t r = tint_float_mod(a, (b + b)); + float16_t r = tint_float_mod(a, (b + b)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D25595B000(1,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index 55a82c9269a..ea73c633c00 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -13,6 +13,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002816ADD92D0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000002816ADD92D0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x0000026D993F1760(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000026D993F1760(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.fxc.hlsl index 678c3662654..12dd1c30e90 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +vector tint_trunc(vector param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); +} + vector tint_float_mod(vector lhs, vector rhs) { - return (lhs - (trunc((lhs / rhs)) * rhs)); + return (lhs - (tint_trunc((lhs / rhs)) * rhs)); } [numthreads(1, 1, 1)] void f() { vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); vector b = vector(float16_t(0.0h), float16_t(5.0h), float16_t(0.0h)); - const vector r = tint_float_mod(a, (b + b)); + vector r = tint_float_mod(a, (b + b)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E0E8DA9A70(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index a4468f0cae0..f367dbd1c41 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -13,11 +13,11 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000290F11F9490(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000290F11F9490(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000290F11F9490(6,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000290F11F9490(7,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000290F11F9490(8,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000290F11F9490(9,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000290F11F9490(10,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025B5288B740(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025B5288B740(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025B5288B740(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025B5288B740(7,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025B5288B740(8,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025B5288B740(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025B5288B740(10,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.fxc.hlsl index 90a9f7ca3ed..7c2f5049d51 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +float16_t tint_trunc(float16_t param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); +} + float16_t tint_float_mod(float16_t lhs, float16_t rhs) { - return (lhs - (trunc((lhs / rhs)) * rhs)); + return (lhs - (tint_trunc((lhs / rhs)) * rhs)); } [numthreads(1, 1, 1)] void f() { float16_t a = float16_t(1.0h); float16_t b = float16_t(0.0h); - const float16_t r = tint_float_mod(a, b); + float16_t r = tint_float_mod(a, b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029CD1945E50(1,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index aeb5d584a84..ebe4a49f420 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -13,6 +13,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023541639820(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000023541639820(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x00000209855576E0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000209855576E0(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.fxc.hlsl index fe70abcd8d6..ce80949d6dc 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +vector tint_trunc(vector param_0) { + return param_0 < 0 ? ceil(param_0) : floor(param_0); +} + vector tint_float_mod(vector lhs, vector rhs) { - return (lhs - (trunc((lhs / rhs)) * rhs)); + return (lhs - (tint_trunc((lhs / rhs)) * rhs)); } [numthreads(1, 1, 1)] void f() { vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); vector b = vector(float16_t(0.0h), float16_t(5.0h), float16_t(0.0h)); - const vector r = tint_float_mod(a, b); + vector r = tint_float_mod(a, b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001FDFD960D30(1,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index 0d2503e17d0..ae2bdf42c74 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -13,11 +13,11 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000255B049CB80(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000255B049CB80(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000255B049CB80(6,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000255B049CB80(7,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000255B049CB80(8,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000255B049CB80(9,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000255B049CB80(10,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E789D4B100(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E789D4B100(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E789D4B100(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E789D4B100(7,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E789D4B100(8,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E789D4B100(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E789D4B100(10,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f16.wgsl.expected.fxc.hlsl index 1e858625485..8ecce9da93c 100644 --- a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const matrix a = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(4.0h)), vector(float16_t(5.0h), float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); - const matrix b = matrix(vector(float16_t(-1.0h), float16_t(-2.0h)), vector(float16_t(-3.0h), float16_t(-4.0h)), vector(float16_t(-5.0h), float16_t(-6.0h)), vector(float16_t(-7.0h), float16_t(-8.0h))); - const matrix r = mul(b, a); + matrix a = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(4.0h)), vector(float16_t(5.0h), float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); + matrix b = matrix(vector(float16_t(-1.0h), float16_t(-2.0h)), vector(float16_t(-3.0h), float16_t(-4.0h)), vector(float16_t(-5.0h), float16_t(-6.0h)), vector(float16_t(-7.0h), float16_t(-8.0h))); + matrix r = mul(b, a); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000262250CD3F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000262250CD3F0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000262250CD3F0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f16.wgsl.expected.ir.fxc.hlsl index efeb2849c36..3dfd983ef7b 100644 --- a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001905C92FA50(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001905C92FA50(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001905C92FA50(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002CEF4514010(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002CEF4514010(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002CEF4514010(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mul/mat3x2-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/mat3x2-vec3/f16.wgsl.expected.fxc.hlsl index 4d2e2cf2db1..b4f5edcbf99 100644 --- a/test/tint/expressions/binary/mul/mat3x2-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/mat3x2-vec3/f16.wgsl.expected.fxc.hlsl @@ -18,6 +18,9 @@ void main() { uint2 ubo_load_3 = data[1].xy; vector ubo_load_3_xz = vector(f16tof32(ubo_load_3 & 0xFFFF)); float16_t ubo_load_3_y = f16tof32(ubo_load_3[0] >> 16); - const vector x = mul(vector(ubo_load_3_xz[0], ubo_load_3_y, ubo_load_3_xz[1]), data_load(0u)); + vector x = mul(vector(ubo_load_3_xz[0], ubo_load_3_y, ubo_load_3_xz[1]), data_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027412C38FA0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mul/mat3x2-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/mat3x2-vec3/f16.wgsl.expected.ir.fxc.hlsl index 24ca992cd75..a0d50580a55 100644 --- a/test/tint/expressions/binary/mul/mat3x2-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/mat3x2-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -39,5 +39,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AAB424FCC0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E8ACCEB580(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl index 32d1ba3356f..f17115d7b5c 100644 --- a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const matrix a = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)), vector(float16_t(7.0h), float16_t(8.0h), float16_t(9.0h))); - const matrix b = matrix(vector(float16_t(-1.0h), float16_t(-2.0h), float16_t(-3.0h)), vector(float16_t(-4.0h), float16_t(-5.0h), float16_t(-6.0h)), vector(float16_t(-7.0h), float16_t(-8.0h), float16_t(-9.0h))); - const matrix r = mul(b, a); + matrix a = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)), vector(float16_t(7.0h), float16_t(8.0h), float16_t(9.0h))); + matrix b = matrix(vector(float16_t(-1.0h), float16_t(-2.0h), float16_t(-3.0h)), vector(float16_t(-4.0h), float16_t(-5.0h), float16_t(-6.0h)), vector(float16_t(-7.0h), float16_t(-8.0h), float16_t(-9.0h))); + matrix r = mul(b, a); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B96632CD70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B96632CD70(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B96632CD70(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl index 2ec2efbc908..0469146f8c5 100644 --- a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017E0C6EFC60(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000017E0C6EFC60(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000017E0C6EFC60(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023A11ED61C0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023A11ED61C0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023A11ED61C0(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mul/mat3x3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/mat3x3-vec3/f16.wgsl.expected.fxc.hlsl index 595fe7b857f..cc32d735ed7 100644 --- a/test/tint/expressions/binary/mul/mat3x3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/mat3x3-vec3/f16.wgsl.expected.fxc.hlsl @@ -27,6 +27,9 @@ void main() { uint2 ubo_load_6 = data[1].zw; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16); - const vector x = mul(vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]), data_load(0u)); + vector x = mul(vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1]), data_load(0u)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002318B3301E0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mul/mat3x3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/mat3x3-vec3/f16.wgsl.expected.ir.fxc.hlsl index f87d73297d8..dace40d5cbf 100644 --- a/test/tint/expressions/binary/mul/mat3x3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/mat3x3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -28,5 +28,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000012E5B9B0E90(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002540C28FCF0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f16.wgsl.expected.fxc.hlsl index 323c2e30848..c7b1c8549d1 100644 --- a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const matrix a = matrix(vector(float16_t(-1.0h), float16_t(-2.0h)), vector(float16_t(-3.0h), float16_t(-4.0h)), vector(float16_t(-5.0h), float16_t(-6.0h)), vector(float16_t(-7.0h), float16_t(-8.0h))); - const matrix b = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(4.0h)), vector(float16_t(5.0h), float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); - const matrix r = mul(b, a); + matrix a = matrix(vector(float16_t(-1.0h), float16_t(-2.0h)), vector(float16_t(-3.0h), float16_t(-4.0h)), vector(float16_t(-5.0h), float16_t(-6.0h)), vector(float16_t(-7.0h), float16_t(-8.0h))); + matrix b = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(4.0h)), vector(float16_t(5.0h), float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); + matrix r = mul(b, a); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000227FCAAF950(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000227FCAAF950(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000227FCAAF950(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f16.wgsl.expected.ir.fxc.hlsl index d879713fe3a..8989fce0a50 100644 --- a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002783818E590(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002783818E590(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002783818E590(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CE276D4080(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CE276D4080(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CE276D4080(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mul/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/scalar-scalar/f16.wgsl.expected.fxc.hlsl index ab740eb401e..02e253731a2 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,12 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(1.0h); - const float16_t b = float16_t(2.0h); - const float16_t r = (a * b); + float16_t a = float16_t(1.0h); + float16_t b = float16_t(2.0h); + float16_t r = (a * b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024BDD6A87B0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000024BDD6A87B0(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/mul/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index 11faa18d9ca..459e7176254 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A035A4ADA0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000002A035A4ADA0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000002180A2387D0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002180A2387D0(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/mul/scalar-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/scalar-vec3/f16.wgsl.expected.fxc.hlsl index 0986655d965..077ac5895c0 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,12 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(4.0h); - const vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector r = (a * b); + float16_t a = float16_t(4.0h); + vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector r = (a * b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002BEC19EFEA0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002BEC19EFEA0(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/mul/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl index c2b71f5895a..f7f0e971622 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000150D52425C0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000150D52425C0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000001FD8C3B2530(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001FD8C3B2530(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/mul/vec3-mat3x3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-mat3x3/f16.wgsl.expected.fxc.hlsl index 373a4b77802..9d1741df90a 100644 --- a/test/tint/expressions/binary/mul/vec3-mat3x3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/vec3-mat3x3/f16.wgsl.expected.fxc.hlsl @@ -27,6 +27,9 @@ void main() { uint2 ubo_load_6 = data[1].zw; vector ubo_load_6_xz = vector(f16tof32(ubo_load_6 & 0xFFFF)); float16_t ubo_load_6_y = f16tof32(ubo_load_6[0] >> 16); - const vector x = mul(data_load_1(0u), vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1])); + vector x = mul(data_load_1(0u), vector(ubo_load_6_xz[0], ubo_load_6_y, ubo_load_6_xz[1])); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001FA0C578FC0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mul/vec3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl index 5df32e941d1..2bb268933ec 100644 --- a/test/tint/expressions/binary/mul/vec3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/vec3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl @@ -28,5 +28,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C803D53130(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000196857B3C00(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mul/vec3-mat4x3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-mat4x3/f16.wgsl.expected.fxc.hlsl index 331b4398dca..5b5670e91ad 100644 --- a/test/tint/expressions/binary/mul/vec3-mat4x3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/vec3-mat4x3/f16.wgsl.expected.fxc.hlsl @@ -32,6 +32,9 @@ void main() { uint2 ubo_load_8 = data[2].xy; vector ubo_load_8_xz = vector(f16tof32(ubo_load_8 & 0xFFFF)); float16_t ubo_load_8_y = f16tof32(ubo_load_8[0] >> 16); - const vector x = mul(data_load_1(0u), vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1])); + vector x = mul(data_load_1(0u), vector(ubo_load_8_xz[0], ubo_load_8_y, ubo_load_8_xz[1])); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002250F313A40(5,8-16): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mul/vec3-mat4x3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-mat4x3/f16.wgsl.expected.ir.fxc.hlsl index 82c2d338dcc..b40a4faefe9 100644 --- a/test/tint/expressions/binary/mul/vec3-mat4x3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/vec3-mat4x3/f16.wgsl.expected.ir.fxc.hlsl @@ -29,5 +29,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000012B939325D0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E69A134CE0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/mul/vec3-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-scalar/f16.wgsl.expected.fxc.hlsl index dbd53411113..041d0a3fbd1 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const float16_t b = float16_t(4.0h); - const vector r = (a * b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + float16_t b = float16_t(4.0h); + vector r = (a * b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020440F5FA70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020440F5FA70(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000020440F5FA70(4,13): error X3000: unrecognized identifier 'b' + diff --git a/test/tint/expressions/binary/mul/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl index 8a2f03468c7..32b2b7ea2ab 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000260D2881C90(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000260D2881C90(5,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000260D2881C90(5,13): error X3000: unrecognized identifier 'b' +C:\src\dawn\Shader@0x0000018F96162970(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018F96162970(5,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000018F96162970(5,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/expressions/binary/mul/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-vec3/f16.wgsl.expected.fxc.hlsl index 358ea75e045..915705c8f34 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector b = vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)); - const vector r = (a * b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector b = vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)); + vector r = (a * b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024F645DBFE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024F645DBFE0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024F645DBFE0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/mul/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/mul/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index 3678f60278a..1606f372b5a 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000227F3E29FB0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000227F3E29FB0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000227F3E29FB0(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020C66BAFC40(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020C66BAFC40(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020C66BAFC40(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl index 5405489fee3..0b29f4c5d2a 100644 --- a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const matrix a = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)), vector(float16_t(7.0h), float16_t(8.0h), float16_t(9.0h))); - const matrix b = matrix(vector(float16_t(-1.0h), float16_t(-2.0h), float16_t(-3.0h)), vector(float16_t(-4.0h), float16_t(-5.0h), float16_t(-6.0h)), vector(float16_t(-7.0h), float16_t(-8.0h), float16_t(-9.0h))); - const matrix r = (a - b); + matrix a = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)), vector(float16_t(7.0h), float16_t(8.0h), float16_t(9.0h))); + matrix b = matrix(vector(float16_t(-1.0h), float16_t(-2.0h), float16_t(-3.0h)), vector(float16_t(-4.0h), float16_t(-5.0h), float16_t(-6.0h)), vector(float16_t(-7.0h), float16_t(-8.0h), float16_t(-9.0h))); + matrix r = (a - b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000228AF8CFEA0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000228AF8CFEA0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000228AF8CFEA0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl index f164794411a..0c809bb1f04 100644 --- a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029F5A330150(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000029F5A330150(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000029F5A330150(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017AFB44F9C0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017AFB44F9C0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017AFB44F9C0(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/binary/sub/scalar-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/scalar-scalar/f16.wgsl.expected.fxc.hlsl index 21842448a6e..e5ae50beba3 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/sub/scalar-scalar/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,12 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(1.0h); - const float16_t b = float16_t(2.0h); - const float16_t r = (a - b); + float16_t a = float16_t(1.0h); + float16_t b = float16_t(2.0h); + float16_t r = (a - b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000253FCC655E0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000253FCC655E0(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/sub/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/sub/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl index 22b5692949d..3905e1f5f06 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/sub/scalar-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CE9676ADA0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001CE9676ADA0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x0000018CF9DE87D0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000018CF9DE87D0(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/sub/scalar-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/scalar-vec3/f16.wgsl.expected.fxc.hlsl index 78f059f6683..2bc64fbc0a6 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,12 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(4.0h); - const vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector r = (a - b); + float16_t a = float16_t(4.0h); + vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector r = (a - b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B3B96F0B20(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001B3B96F0B20(3,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/binary/sub/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/sub/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl index 239c716c9dd..a03a2b53302 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,6 +9,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021F61462290(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000021F61462290(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x00000144449920F0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000144449920F0(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/binary/sub/vec3-scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/vec3-scalar/f16.wgsl.expected.fxc.hlsl index 5d359882503..6a13cb12d82 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const float16_t b = float16_t(4.0h); - const vector r = (a - b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + float16_t b = float16_t(4.0h); + vector r = (a - b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022507607F70(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022507607F70(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022507607F70(4,13): error X3000: unrecognized identifier 'b' + diff --git a/test/tint/expressions/binary/sub/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/sub/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl index a3dbd99f2ab..f298718ba4e 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AAA878DC20(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001AAA878DC20(5,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001AAA878DC20(5,13): error X3000: unrecognized identifier 'b' +C:\src\dawn\Shader@0x000002247C4420F0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002247C4420F0(5,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002247C4420F0(5,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/expressions/binary/sub/vec3-vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/binary/sub/vec3-vec3/f16.wgsl.expected.fxc.hlsl index 34cc807cc6c..728d95acc78 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/f16.wgsl.expected.fxc.hlsl @@ -2,8 +2,13 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector b = vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)); - const vector r = (a - b); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector b = vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)); + vector r = (a - b); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000146F1B338B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000146F1B338B0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000146F1B338B0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/binary/sub/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/binary/sub/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl index 5382f4502da..4860f604c41 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -9,7 +9,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AB6F3292C0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001AB6F3292C0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001AB6F3292C0(6,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002207F580040(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002207F580040(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002207F580040(6,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/16bit/f16-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/const/16bit/f16-f16.wgsl.expected.fxc.hlsl index fcec2d03edb..64f812d2b12 100644 --- a/test/tint/expressions/bitcast/const/16bit/f16-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/16bit/f16-f16.wgsl.expected.fxc.hlsl @@ -2,9 +2,10 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t b = float16_t(1.0h); + float16_t b = float16_t(1.0h); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x00000174D90470D0(3,9-17): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001FD010977A0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001FD010977A0(3,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/expressions/bitcast/const/16bit/f16-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/const/16bit/f16-f16.wgsl.expected.ir.fxc.hlsl index 693b2267289..d10953aec2c 100644 --- a/test/tint/expressions/bitcast/const/16bit/f16-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/16bit/f16-f16.wgsl.expected.ir.fxc.hlsl @@ -7,6 +7,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C50440C0A0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001C50440C0A0(4,13): error X3000: unrecognized identifier 'b' +C:\src\dawn\Shader@0x000001A75F525990(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001A75F525990(4,13): error X3000: unrecognized identifier 'b' diff --git a/test/tint/expressions/bitcast/const/32bit/f32-vec2f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/const/32bit/f32-vec2f16.wgsl.expected.fxc.hlsl index 65d4ffa8cfb..b80a5f2e1d9 100644 --- a/test/tint/expressions/bitcast/const/32bit/f32-vec2f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/32bit/f32-vec2f16.wgsl.expected.fxc.hlsl @@ -2,9 +2,9 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector b = vector(float16_t(1.0h), float16_t(2.0h)); + vector b = vector(float16_t(1.0h), float16_t(2.0h)); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000022D117788A0(3,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001159FB709D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/32bit/f32-vec2f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/const/32bit/f32-vec2f16.wgsl.expected.ir.fxc.hlsl index 28fe6de62f9..1e5333ab269 100644 --- a/test/tint/expressions/bitcast/const/32bit/f32-vec2f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/32bit/f32-vec2f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027DBF0B4DD0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002882FE25E90(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/32bit/i32-vec2f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/const/32bit/i32-vec2f16.wgsl.expected.fxc.hlsl index de09eaf9927..9d1b4a1f5ba 100644 --- a/test/tint/expressions/bitcast/const/32bit/i32-vec2f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/32bit/i32-vec2f16.wgsl.expected.fxc.hlsl @@ -2,9 +2,9 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector b = vector(float16_t(1.0h), float16_t(2.0h)); + vector b = vector(float16_t(1.0h), float16_t(2.0h)); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001ABDA989700(3,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000256F9DF09D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/32bit/i32-vec2f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/const/32bit/i32-vec2f16.wgsl.expected.ir.fxc.hlsl index e379532ae26..394676e79f9 100644 --- a/test/tint/expressions/bitcast/const/32bit/i32-vec2f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/32bit/i32-vec2f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B494B33590(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F6A4BF4970(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/32bit/u32-vec2f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/const/32bit/u32-vec2f16.wgsl.expected.fxc.hlsl index 60880d79bb4..0c7181b080f 100644 --- a/test/tint/expressions/bitcast/const/32bit/u32-vec2f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/32bit/u32-vec2f16.wgsl.expected.fxc.hlsl @@ -2,9 +2,9 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector b = vector(float16_t(1.0h), float16_t(2.0h)); + vector b = vector(float16_t(1.0h), float16_t(2.0h)); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000019F1F909150(3,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000018521B409D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/32bit/u32-vec2f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/const/32bit/u32-vec2f16.wgsl.expected.ir.fxc.hlsl index 13c53d32596..b9383a4d61b 100644 --- a/test/tint/expressions/bitcast/const/32bit/u32-vec2f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/32bit/u32-vec2f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002ACDD6343D0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020DBDEE09F0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/32bit/vec2f16-vec2f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/const/32bit/vec2f16-vec2f16.wgsl.expected.fxc.hlsl index badd02dce94..8f1be47654e 100644 --- a/test/tint/expressions/bitcast/const/32bit/vec2f16-vec2f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/32bit/vec2f16-vec2f16.wgsl.expected.fxc.hlsl @@ -2,9 +2,9 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector b = vector(float16_t(1.0h), float16_t(2.0h)); + vector b = vector(float16_t(1.0h), float16_t(2.0h)); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001479B346D10(3,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021F664E09E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/32bit/vec2f16-vec2f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/const/32bit/vec2f16-vec2f16.wgsl.expected.ir.fxc.hlsl index 95189297d91..0e3163cc176 100644 --- a/test/tint/expressions/bitcast/const/32bit/vec2f16-vec2f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/32bit/vec2f16-vec2f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021EB09B2120(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000226A8017F90(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/48bit/vec3f16-vec3f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/const/48bit/vec3f16-vec3f16.wgsl.expected.fxc.hlsl index 9af155f04db..b98a00592ce 100644 --- a/test/tint/expressions/bitcast/const/48bit/vec3f16-vec3f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/48bit/vec3f16-vec3f16.wgsl.expected.fxc.hlsl @@ -2,9 +2,9 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001DFC5A48C70(3,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016210BE80D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/48bit/vec3f16-vec3f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/const/48bit/vec3f16-vec3f16.wgsl.expected.ir.fxc.hlsl index 3adf3843d16..492a6d663bb 100644 --- a/test/tint/expressions/bitcast/const/48bit/vec3f16-vec3f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/48bit/vec3f16-vec3f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024AB92DADB0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B622C70740(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/64bit/vec2f32-vec4f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/const/64bit/vec2f32-vec4f16.wgsl.expected.fxc.hlsl index 4e1c19c1082..a623ae4620e 100644 --- a/test/tint/expressions/bitcast/const/64bit/vec2f32-vec4f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/64bit/vec2f32-vec4f16.wgsl.expected.fxc.hlsl @@ -2,9 +2,9 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); + vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001FA6B336DC0(3,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E48BEA4960(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/64bit/vec2f32-vec4f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/const/64bit/vec2f32-vec4f16.wgsl.expected.ir.fxc.hlsl index 16f4ef98c70..7b7a7b6fcb2 100644 --- a/test/tint/expressions/bitcast/const/64bit/vec2f32-vec4f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/64bit/vec2f32-vec4f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027FFE09ADB0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001283CEC52F0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/64bit/vec2i32-vec4f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/const/64bit/vec2i32-vec4f16.wgsl.expected.fxc.hlsl index f0ec511beaf..cb0a77e9d29 100644 --- a/test/tint/expressions/bitcast/const/64bit/vec2i32-vec4f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/64bit/vec2i32-vec4f16.wgsl.expected.fxc.hlsl @@ -2,9 +2,9 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); + vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000020858736DC0(3,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000212BB084960(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/64bit/vec2i32-vec4f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/const/64bit/vec2i32-vec4f16.wgsl.expected.ir.fxc.hlsl index 41f5e2409cf..0a91c4f4738 100644 --- a/test/tint/expressions/bitcast/const/64bit/vec2i32-vec4f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/64bit/vec2i32-vec4f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002D39C7DADB0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A5F2D20A00(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/64bit/vec2u32-vec4f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/const/64bit/vec2u32-vec4f16.wgsl.expected.fxc.hlsl index cc3251ff30f..336befca05e 100644 --- a/test/tint/expressions/bitcast/const/64bit/vec2u32-vec4f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/64bit/vec2u32-vec4f16.wgsl.expected.fxc.hlsl @@ -2,9 +2,9 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); + vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001E2E40D90C0(3,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001735F3D4440(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/64bit/vec2u32-vec4f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/const/64bit/vec2u32-vec4f16.wgsl.expected.ir.fxc.hlsl index 434f623bd21..404f6d5d7b9 100644 --- a/test/tint/expressions/bitcast/const/64bit/vec2u32-vec4f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/64bit/vec2u32-vec4f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CB747C2680(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025967A20A00(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/64bit/vec4f16-vec4f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/const/64bit/vec4f16-vec4f16.wgsl.expected.fxc.hlsl index 54ac9c8fdb4..8b1f2ba3330 100644 --- a/test/tint/expressions/bitcast/const/64bit/vec4f16-vec4f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/64bit/vec4f16-vec4f16.wgsl.expected.fxc.hlsl @@ -2,9 +2,9 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); + vector b = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000002A182AC9D70(3,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001994EAE4960(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/const/64bit/vec4f16-vec4f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/const/64bit/vec4f16-vec4f16.wgsl.expected.ir.fxc.hlsl index 6c1d95d526e..c98aa366bcc 100644 --- a/test/tint/expressions/bitcast/const/64bit/vec4f16-vec4f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/const/64bit/vec4f16-vec4f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015BFE4119E0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EC2C8BE9A0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.fxc.hlsl index 55657e267ff..aaa37da8ec0 100644 --- a/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.fxc.hlsl @@ -2,10 +2,11 @@ SKIP: FAILED [numthreads(1, 1, 1)] void f() { - const float16_t a = float16_t(1.0h); - const float16_t b = a; + float16_t a = float16_t(1.0h); + float16_t b = a; return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000023BEF017690(3,9-17): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C74E726820(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001C74E726820(3,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.ir.fxc.hlsl index c7eb52e71ab..b9ec242d67f 100644 --- a/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.ir.fxc.hlsl @@ -8,6 +8,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E096A1ABC0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001E096A1ABC0(4,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x0000015C4A665530(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000015C4A665530(4,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.fxc.hlsl index 8729fa0b4b7..18c7d16a567 100644 --- a/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.fxc.hlsl @@ -9,10 +9,10 @@ vector tint_bitcast_to_f16(float src) { [numthreads(1, 1, 1)] void f() { - const float a = 2.003662109375f; - const vector b = tint_bitcast_to_f16(a); + float a = 2.003662109375f; + vector b = tint_bitcast_to_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000002C96174CDD0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EDC932B090(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.ir.fxc.hlsl index 7ba815ffc2c..ca8169c4444 100644 --- a/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000211E9CE96A0(2,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027574C90300(2,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.fxc.hlsl index f5c30dcd322..14ff7126903 100644 --- a/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.fxc.hlsl @@ -9,10 +9,10 @@ vector tint_bitcast_to_f16(int src) { [numthreads(1, 1, 1)] void f() { - const int a = 1073757184; - const vector b = tint_bitcast_to_f16(a); + int a = 1073757184; + vector b = tint_bitcast_to_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x00000234EF107030(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025F1588EBD0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.ir.fxc.hlsl index b2e28319133..cb147096b40 100644 --- a/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016A1BD696A0(2,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000209BEFCCFC0(2,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.fxc.hlsl index d34b347b329..0b514a90717 100644 --- a/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.fxc.hlsl @@ -9,10 +9,10 @@ vector tint_bitcast_to_f16(uint src) { [numthreads(1, 1, 1)] void f() { - const uint a = 1073757184u; - const vector b = tint_bitcast_to_f16(a); + uint a = 1073757184u; + vector b = tint_bitcast_to_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000020E6D499E20(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002384388F9A0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.ir.fxc.hlsl index f7618b41579..75310f91c63 100644 --- a/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000265758494F0(2,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002757546FF10(2,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.fxc.hlsl index 9dc5eb049eb..16eb4dea666 100644 --- a/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.fxc.hlsl @@ -7,12 +7,12 @@ float tint_bitcast_from_f16(vector src) { [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h)); - const float b = tint_bitcast_from_f16(a); + vector a = vector(float16_t(1.0h), float16_t(2.0h)); + float b = tint_bitcast_from_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001EDAADDFBA0(1,36-44): error X3000: syntax error: unexpected token 'float16_t' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001EDAADDFBA0(2,29-31): error X3004: undeclared identifier 'src' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001EDAADDFBA0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000001F968923C90(1,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F968923C90(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000001F968923C90(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.ir.fxc.hlsl index 81c69b69fe0..72374fc6750 100644 --- a/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.ir.fxc.hlsl @@ -13,7 +13,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002FA6AC89B70(2,36-44): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000002FA6AC89B70(3,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x000002FA6AC89B70(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x0000028C24748BD0(2,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028C24748BD0(3,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x0000028C24748BD0(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.fxc.hlsl index 856bedc53d8..50c056c2003 100644 --- a/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.fxc.hlsl @@ -7,12 +7,12 @@ int tint_bitcast_from_f16(vector src) { [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h)); - const int b = tint_bitcast_from_f16(a); + vector a = vector(float16_t(1.0h), float16_t(2.0h)); + int b = tint_bitcast_from_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001DC9BD890B0(1,34-42): error X3000: syntax error: unexpected token 'float16_t' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001DC9BD890B0(2,29-31): error X3004: undeclared identifier 'src' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001DC9BD890B0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000002542ED2FAA0(1,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002542ED2FAA0(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000002542ED2FAA0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.ir.fxc.hlsl index 29dcecedcfa..1f1d423f659 100644 --- a/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.ir.fxc.hlsl @@ -13,7 +13,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FBAB6D9510(2,34-42): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001FBAB6D9510(3,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x000001FBAB6D9510(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x0000017E7B38FBF0(2,34-42): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017E7B38FBF0(3,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x0000017E7B38FBF0(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.fxc.hlsl index 8d2c1cb327f..4d00cdef192 100644 --- a/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.fxc.hlsl @@ -7,12 +7,12 @@ uint tint_bitcast_from_f16(vector src) { [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h)); - const uint b = tint_bitcast_from_f16(a); + vector a = vector(float16_t(1.0h), float16_t(2.0h)); + uint b = tint_bitcast_from_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000011D0C566F70(1,35-43): error X3000: syntax error: unexpected token 'float16_t' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000011D0C566F70(2,29-31): error X3004: undeclared identifier 'src' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000011D0C566F70(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x0000019D79A38020(1,35-43): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019D79A38020(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x0000019D79A38020(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.ir.fxc.hlsl index 3bd0673d6b4..fb3182e5e37 100644 --- a/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.ir.fxc.hlsl @@ -13,7 +13,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B5ABF3FE30(2,35-43): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001B5ABF3FE30(3,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x000001B5ABF3FE30(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000001DE4802B720(2,35-43): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DE4802B720(3,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000001DE4802B720(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.fxc.hlsl index 4dd9a7ae15a..ec98ba97315 100644 --- a/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.fxc.hlsl @@ -2,11 +2,11 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h)); - const vector b = a; + vector a = vector(float16_t(1.0h), float16_t(2.0h)); + vector b = a; return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000019B1F6BF7B0(3,16-24): error X3000: syntax error: unexpected token 'float16_t' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000019B1F6BF7B0(4,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019FDF204960(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019FDF204960(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.ir.fxc.hlsl index eb225dd2fca..3f4d5899050 100644 --- a/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.ir.fxc.hlsl @@ -8,6 +8,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000205AE98ADA0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000205AE98ADA0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E6EF884970(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E6EF884970(5,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.fxc.hlsl index ffb96adb30a..21089ca725f 100644 --- a/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.fxc.hlsl @@ -2,11 +2,11 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); - const vector b = a; + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); + vector b = a; return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001B8F32394E0(3,16-24): error X3000: syntax error: unexpected token 'float16_t' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001B8F32394E0(4,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014F49224960(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014F49224960(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.ir.fxc.hlsl index 52bf4e2cde2..896862c14a4 100644 --- a/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.ir.fxc.hlsl @@ -8,6 +8,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000228BECEFB80(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000228BECEFB80(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028A0A134970(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028A0A134970(5,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.fxc.hlsl index 030bf107d46..c3642f6a79f 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.fxc.hlsl @@ -9,10 +9,10 @@ vector tint_bitcast_to_f16(float2 src) { [numthreads(1, 1, 1)] void f() { - const float2 a = float2(2.003662109375f, -513.03125f); - const vector b = tint_bitcast_to_f16(a); + float2 a = float2(2.003662109375f, -513.03125f); + vector b = tint_bitcast_to_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001B7D61710A0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EB94E7B090(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.ir.fxc.hlsl index 46018486a48..bd59c8eab3a 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CA80A29530(2,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D6C99EA830(2,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.fxc.hlsl index b80982d871c..91f61351307 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.fxc.hlsl @@ -9,10 +9,10 @@ vector tint_bitcast_to_f16(int2 src) { [numthreads(1, 1, 1)] void f() { - const int2 a = int2(1073757184, -1006616064); - const vector b = tint_bitcast_to_f16(a); + int2 a = int2(1073757184, -1006616064); + vector b = tint_bitcast_to_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x000001D4589575D0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024D21470BD0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.ir.fxc.hlsl index 694d6f35872..f7dbaad844c 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025DF2F5F7F0(2,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002792A077FD0(2,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.fxc.hlsl index d9be8ec0758..68b0581ca18 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.fxc.hlsl @@ -9,10 +9,10 @@ vector tint_bitcast_to_f16(uint2 src) { [numthreads(1, 1, 1)] void f() { - const uint2 a = uint2(1073757184u, 3288351232u); - const vector b = tint_bitcast_to_f16(a); + uint2 a = uint2(1073757184u, 3288351232u); + vector b = tint_bitcast_to_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000025566ACBF30(1,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B7C93DB0C0(1,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.ir.fxc.hlsl index f40f4bc7afb..464a60766d9 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019B48F996F0(2,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000206F37ED230(2,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.fxc.hlsl index 8a8efb29fc1..d1115b3c545 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.fxc.hlsl @@ -7,12 +7,12 @@ float2 tint_bitcast_from_f16(vector src) { [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); - const float2 b = tint_bitcast_from_f16(a); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); + float2 b = tint_bitcast_from_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000020C6564D210(1,37-45): error X3000: syntax error: unexpected token 'float16_t' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000020C6564D210(2,29-31): error X3004: undeclared identifier 'src' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000020C6564D210(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000001DCBDFAF9E0(1,37-45): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DCBDFAF9E0(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000001DCBDFAF9E0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.ir.fxc.hlsl index 335d518f215..9ab00e7e25c 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.ir.fxc.hlsl @@ -13,7 +13,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D6B4E2DE70(2,37-45): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001D6B4E2DE70(3,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x000001D6B4E2DE70(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x00000281077B0640(2,37-45): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000281077B0640(3,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x00000281077B0640(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.fxc.hlsl index a2a9919d251..9dd3c920860 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.fxc.hlsl @@ -7,12 +7,12 @@ int2 tint_bitcast_from_f16(vector src) { [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); - const int2 b = tint_bitcast_from_f16(a); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); + int2 b = tint_bitcast_from_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x00000239A5C0BF60(1,35-43): error X3000: syntax error: unexpected token 'float16_t' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x00000239A5C0BF60(2,29-31): error X3004: undeclared identifier 'src' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x00000239A5C0BF60(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000002331529FE50(1,35-43): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002331529FE50(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000002331529FE50(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.ir.fxc.hlsl index 9cde268ca04..9b0b3194eb6 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.ir.fxc.hlsl @@ -13,7 +13,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029AEA57A800(2,35-43): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000029AEA57A800(3,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x0000029AEA57A800(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x0000028DA42846C0(2,35-43): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028DA42846C0(3,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x0000028DA42846C0(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.fxc.hlsl index 214da547c40..436f5a6ec6f 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.fxc.hlsl @@ -7,12 +7,12 @@ uint2 tint_bitcast_from_f16(vector src) { [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); - const uint2 b = tint_bitcast_from_f16(a); + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); + uint2 b = tint_bitcast_from_f16(a); return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000024F04F3BED0(1,36-44): error X3000: syntax error: unexpected token 'float16_t' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000024F04F3BED0(2,29-31): error X3004: undeclared identifier 'src' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000024F04F3BED0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x000001D8F200B0C0(1,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D8F200B0C0(2,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x000001D8F200B0C0(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.ir.fxc.hlsl index 20114ccc18e..f7fd646de63 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.ir.fxc.hlsl @@ -13,7 +13,7 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F70665DE70(2,36-44): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001F70665DE70(3,29-31): error X3004: undeclared identifier 'src' -C:\src\dawn\Shader@0x000001F70665DE70(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x00000257BCBEB0E0(2,36-44): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000257BCBEB0E0(3,29-31): error X3004: undeclared identifier 'src' +C:\src\dawn\Shader@0x00000257BCBEB0E0(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.fxc.hlsl index 9311773ba8d..bf182a1549a 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.fxc.hlsl @@ -2,11 +2,11 @@ SKIP: INVALID [numthreads(1, 1, 1)] void f() { - const vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); - const vector b = a; + vector a = vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(-4.0h)); + vector b = a; return; } FXC validation failure: -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000021AD80372B0(3,16-24): error X3000: syntax error: unexpected token 'float16_t' -D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000021AD80372B0(4,16-24): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B14C691FE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B14C691FE0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.ir.fxc.hlsl index 1f0d130a1ae..c1ac3f542ab 100644 --- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.ir.fxc.hlsl @@ -8,6 +8,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FD0A9E19B0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001FD0A9E19B0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001785F350C10(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001785F350C10(5,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/splat/call/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/call/f16.wgsl.expected.fxc.hlsl index 03e4a6d8979..b48bf144826 100644 --- a/test/tint/expressions/splat/call/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/splat/call/f16.wgsl.expected.fxc.hlsl @@ -10,10 +10,13 @@ float16_t get_f16() { } void f() { - const float16_t tint_symbol = get_f16(); + float16_t tint_symbol = get_f16(); vector v2 = vector((tint_symbol).xx); - const float16_t tint_symbol_1 = get_f16(); + float16_t tint_symbol_1 = get_f16(); vector v3 = vector((tint_symbol_1).xxx); - const float16_t tint_symbol_2 = get_f16(); + float16_t tint_symbol_2 = get_f16(); vector v4 = vector((tint_symbol_2).xxxx); } +FXC validation failure: +C:\src\dawn\Shader@0x00000271C0F8AFA0(6,1-9): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/splat/call/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/splat/call/f16.wgsl.expected.ir.fxc.hlsl index 69ae0e5c2ce..04f5e588ec7 100644 --- a/test/tint/expressions/splat/call/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/splat/call/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000014ED81C9710(2,1-9): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000214A6370220(2,1-9): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/splat/expression/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/expression/f16.wgsl.expected.fxc.hlsl index d2b49ea9620..19609f10667 100644 --- a/test/tint/expressions/splat/expression/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/splat/expression/f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,8 @@ void f() { vector v3 = (float16_t(3.0h)).xxx; vector v4 = (float16_t(3.0h)).xxxx; } +FXC validation failure: +C:\src\dawn\Shader@0x00000252D2573B10(7,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000252D2573B10(8,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000252D2573B10(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/splat/expression/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/splat/expression/f16.wgsl.expected.ir.fxc.hlsl index d4c399c91e6..59468bba7fe 100644 --- a/test/tint/expressions/splat/expression/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/splat/expression/f16.wgsl.expected.ir.fxc.hlsl @@ -12,7 +12,7 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022FAD369770(3,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000022FAD369770(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000022FAD369770(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DF760CBBD0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DF760CBBD0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DF760CBBD0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/splat/immediate/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/immediate/f16.wgsl.expected.fxc.hlsl index 8daf8c4c106..3c978c80ea9 100644 --- a/test/tint/expressions/splat/immediate/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/splat/immediate/f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,8 @@ void f() { vector v3 = (float16_t(1.0h)).xxx; vector v4 = (float16_t(1.0h)).xxxx; } +FXC validation failure: +C:\src\dawn\Shader@0x0000011E8A753C40(7,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000011E8A753C40(8,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000011E8A753C40(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/splat/immediate/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/splat/immediate/f16.wgsl.expected.ir.fxc.hlsl index 6eb2357efda..1395f6d7bf9 100644 --- a/test/tint/expressions/splat/immediate/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/splat/immediate/f16.wgsl.expected.ir.fxc.hlsl @@ -12,7 +12,7 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000211573C9A10(3,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000211573C9A10(4,10-18): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000211573C9A10(5,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002ED0D320FC0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002ED0D320FC0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002ED0D320FC0(5,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/splat/var/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/var/f16.wgsl.expected.fxc.hlsl index 5f897a21e77..87510812641 100644 --- a/test/tint/expressions/splat/var/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/splat/var/f16.wgsl.expected.fxc.hlsl @@ -11,3 +11,7 @@ void f() { vector v3 = vector((v).xxx); vector v4 = vector((v).xxxx); } +FXC validation failure: +C:\src\dawn\Shader@0x00000252B6A50660(7,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000252B6A50660(7,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/splat/var/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/splat/var/f16.wgsl.expected.ir.fxc.hlsl index d9731eb4ece..0a7a2b71fbb 100644 --- a/test/tint/expressions/splat/var/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/splat/var/f16.wgsl.expected.ir.fxc.hlsl @@ -13,6 +13,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DFA0D696D0(3,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001DFA0D696D0(3,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x000001D950C3BA80(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001D950C3BA80(3,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/splat/with_swizzle/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/splat/with_swizzle/f16.wgsl.expected.fxc.hlsl index ffeafd0c27c..fc54b1fb527 100644 --- a/test/tint/expressions/splat/with_swizzle/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/splat/with_swizzle/f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,7 @@ void f() { float16_t b = float16_t(1.0h); float16_t c = float16_t(1.0h); } +FXC validation failure: +C:\src\dawn\Shader@0x000001DBBCD44970(7,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001DBBCD44970(7,13): error X3000: unrecognized identifier 'a' + diff --git a/test/tint/expressions/splat/with_swizzle/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/splat/with_swizzle/f16.wgsl.expected.ir.fxc.hlsl index d93867977cd..f15de030af0 100644 --- a/test/tint/expressions/splat/with_swizzle/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/splat/with_swizzle/f16.wgsl.expected.ir.fxc.hlsl @@ -12,6 +12,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E09555FB60(3,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001E09555FB60(3,13): error X3000: unrecognized identifier 'a' +C:\src\dawn\Shader@0x000001ADE9240BE0(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001ADE9240BE0(3,13): error X3000: unrecognized identifier 'a' diff --git a/test/tint/expressions/swizzle/read/packed_vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/read/packed_vec3/f16.wgsl.expected.fxc.hlsl index b52d9c7d94a..cef6b410bad 100644 --- a/test/tint/expressions/swizzle/read/packed_vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/swizzle/read/packed_vec3/f16.wgsl.expected.fxc.hlsl @@ -486,3 +486,8 @@ void f() { float16_t ubo_load_117_y = f16tof32(ubo_load_117[0] >> 16); vector zzzz = vector(ubo_load_117_xz[0], ubo_load_117_y, ubo_load_117_xz[1]).zzzz; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017F857CD000(12,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017F857CD000(13,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000017F857CD000(13,13-22): error X3000: unrecognized identifier 'ubo_load_y' + diff --git a/test/tint/expressions/swizzle/read/packed_vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/swizzle/read/packed_vec3/f16.wgsl.expected.ir.fxc.hlsl index 2031a4f8bda..d6194dd3192 100644 --- a/test/tint/expressions/swizzle/read/packed_vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/swizzle/read/packed_vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -145,5 +145,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019D98502F10(5,8-16): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000140DC344FB0(5,8-16): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/swizzle/read/vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/read/vec3/f16.wgsl.expected.fxc.hlsl index 0a08677dd22..7ce2f8fd3d6 100644 --- a/test/tint/expressions/swizzle/read/vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/swizzle/read/vec3/f16.wgsl.expected.fxc.hlsl @@ -134,3 +134,6 @@ void f() { vector zzzy = P.v.zzzy; vector zzzz = P.v.zzzz; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025B4D09AA20(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/swizzle/read/vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/swizzle/read/vec3/f16.wgsl.expected.ir.fxc.hlsl index 352565bace7..9a1a84470ff 100644 --- a/test/tint/expressions/swizzle/read/vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/swizzle/read/vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -135,5 +135,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001767F0B0150(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B856221EF0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/swizzle/write/packed_vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/write/packed_vec3/f16.wgsl.expected.fxc.hlsl index 207ecc7958c..82ac7a50914 100644 --- a/test/tint/expressions/swizzle/write/packed_vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/swizzle/write/packed_vec3/f16.wgsl.expected.fxc.hlsl @@ -13,3 +13,6 @@ void f() { U.Store(2u, float16_t(2.0h)); U.Store(4u, float16_t(3.0h)); } +FXC validation failure: +C:\src\dawn\Shader@0x0000028B6B9F0CB0(9,3-9): error X3018: invalid subscript 'Store' + diff --git a/test/tint/expressions/swizzle/write/packed_vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/swizzle/write/packed_vec3/f16.wgsl.expected.ir.fxc.hlsl index b7ebdf588f0..17404a3723c 100644 --- a/test/tint/expressions/swizzle/write/packed_vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/swizzle/write/packed_vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B6193EF610(4,3-9): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001E62D2C0200(4,3-9): error X3018: invalid subscript 'Store' diff --git a/test/tint/expressions/swizzle/write/vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/swizzle/write/vec3/f16.wgsl.expected.fxc.hlsl index c2e8fc2990c..1f3b150751c 100644 --- a/test/tint/expressions/swizzle/write/vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/swizzle/write/vec3/f16.wgsl.expected.fxc.hlsl @@ -17,3 +17,6 @@ void f() { P.v.y = float16_t(2.0h); P.v.z = float16_t(3.0h); } +FXC validation failure: +C:\src\dawn\Shader@0x0000026EEAE10070(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/swizzle/write/vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/swizzle/write/vec3/f16.wgsl.expected.ir.fxc.hlsl index fc94028c57f..a76ed7492a2 100644 --- a/test/tint/expressions/swizzle/write/vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/swizzle/write/vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F75A94CC30(2,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BB0295F3C0(2,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.fxc.hlsl index d51a368dac5..47ace158487 100644 --- a/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ matrix m() { } void f() { - const matrix tint_symbol = m(); + matrix tint_symbol = m(); float2x2 v = float2x2(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C818CADC80(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl index a97839de3d2..052135f8331 100644 --- a/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025D45DB9800(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000202343C0AB0(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.fxc.hlsl index f7d416aefb8..591da5f9efc 100644 --- a/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float2x2 m() { } void f() { - const float2x2 tint_symbol = m(); + float2x2 tint_symbol = m(); matrix v = matrix(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027B6804FFE0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 56dc7bdcbcb..879651e8dae 100644 --- a/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000170929DF7B0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020D920D3A60(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x2/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x2/literal/f32-f16.wgsl.expected.fxc.hlsl index 38461f85606..05735aef8f7 100644 --- a/test/tint/expressions/type_conv/mat2x2/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x2/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static matrix u = matrix(vector(float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h))); +FXC validation failure: +C:\src\dawn\Shader@0x0000026D34C933B0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index e39252a243d..db13bd41299 100644 --- a/test/tint/expressions/type_conv/mat2x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029ED5FBF060(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FCC53236F0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.fxc.hlsl index 778637fb467..de7b268cac7 100644 --- a/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static matrix u = matrix(vector( void f() { float2x2 v = float2x2(u); } +FXC validation failure: +C:\src\dawn\Shader@0x00000277DA915FE0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl index c4d4e2f5bce..a39ef15da87 100644 --- a/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D7CD8192C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016D4EDBC220(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.fxc.hlsl index c78385ec864..80a92470462 100644 --- a/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static float2x2 u = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f)); void f() { matrix v = matrix(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F3ACF12670(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl index da0f0249567..90c922400a1 100644 --- a/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025B11311190(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000182F8A32210(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.fxc.hlsl index 171cffa7d79..ea0b2752b9c 100644 --- a/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ matrix m() { } void f() { - const matrix tint_symbol = m(); + matrix tint_symbol = m(); float2x3 v = float2x3(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000002C22E0E9680(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl index 35bf67f4e68..d0f94ab9106 100644 --- a/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B9DCD19660(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002596954C3B0(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.fxc.hlsl index 63e88c50a45..bf870ec3912 100644 --- a/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float2x3 m() { } void f() { - const float2x3 tint_symbol = m(); + float2x3 tint_symbol = m(); matrix v = matrix(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001ECE7BD09E0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 3560ef70350..18acc0fdf09 100644 --- a/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DD66809130(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002CFA396CFC0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x3/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x3/literal/f32-f16.wgsl.expected.fxc.hlsl index 9984a52f473..9be6ea189da 100644 --- a/test/tint/expressions/type_conv/mat2x3/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x3/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static matrix u = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h))); +FXC validation failure: +C:\src\dawn\Shader@0x000001A568525240(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index d44e7222068..88529e21f94 100644 --- a/test/tint/expressions/type_conv/mat2x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F14002F290(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A9C9DB6280(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.fxc.hlsl index 6ea7f4d7f47..e6f240e98e6 100644 --- a/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static matrix u = matrix(vector( void f() { float2x3 v = float2x3(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001DEFE1905C0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl index 8ecd27e1210..e87fed6d0aa 100644 --- a/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019B24029FC0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F8D08FA830(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.fxc.hlsl index 59d55c1d1b6..aebcd144a92 100644 --- a/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static float2x3 u = float2x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f)) void f() { matrix v = matrix(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019B137F5FB0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl index a011216e268..8ad66e2c50c 100644 --- a/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020BDB01DF20(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002BF429241E0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.fxc.hlsl index 2a6ea8018a1..5a693350292 100644 --- a/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ matrix m() { } void f() { - const matrix tint_symbol = m(); + matrix tint_symbol = m(); float2x4 v = float2x4(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C75FCEF060(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl index afbe79bb2c0..7ea6c31dfbe 100644 --- a/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023E66831340(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001B3822D5D10(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.fxc.hlsl index d112af6a02b..61a60abfe84 100644 --- a/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float2x4 m() { } void f() { - const float2x4 tint_symbol = m(); + float2x4 tint_symbol = m(); matrix v = matrix(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000022D1FBE0730(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 9a49a2d7a2f..8ded1e1bcdf 100644 --- a/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020B8267EF30(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000177447AFBD0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x4/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x4/literal/f32-f16.wgsl.expected.fxc.hlsl index da3df094c42..74a6a8bb368 100644 --- a/test/tint/expressions/type_conv/mat2x4/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x4/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static matrix u = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(4.0h)), vector(float16_t(5.0h), float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); +FXC validation failure: +C:\src\dawn\Shader@0x00000210519FF970(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index 70267478d85..c2be23e5e23 100644 --- a/test/tint/expressions/type_conv/mat2x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000251CFE1DE20(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DCF81EB0E0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.fxc.hlsl index 4c5201bbe7c..0ecb0f3332f 100644 --- a/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static matrix u = matrix(vector( void f() { float2x4 v = float2x4(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000018A6592B0C0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl index 28d71e21083..b4f94e0bc3b 100644 --- a/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018C975FF9C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F7E536B720(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.fxc.hlsl index be1f3bc418d..58c53a2c29d 100644 --- a/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static float2x4 u = float2x4(float4(1.0f, 2.0f, 3.0f, 4.0f), float4(5.0f, 6.0f, void f() { matrix v = matrix(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001BAD1284050(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl index 6f9207d6776..398c4a45fb6 100644 --- a/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat2x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000216AA276D90(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BF346E0780(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.fxc.hlsl index 0966d1b2567..26ce26bc72f 100644 --- a/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ matrix m() { } void f() { - const matrix tint_symbol = m(); + matrix tint_symbol = m(); float3x2 v = float3x2(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000024EBE5AB0E0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl index 4ec56bdb39a..04904ddff81 100644 --- a/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C27D8C9710(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000015A66D65330(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.fxc.hlsl index 0ba26c06a17..a31a9f0ad75 100644 --- a/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float3x2 m() { } void f() { - const float3x2 tint_symbol = m(); + float3x2 tint_symbol = m(); matrix v = matrix(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000229D08AFEA0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 0a8dee0bebd..8e85ae124f8 100644 --- a/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002BD436ADA60(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002400B5682F0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x2/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x2/literal/f32-f16.wgsl.expected.fxc.hlsl index 41b07e0d1d7..0224d64ad70 100644 --- a/test/tint/expressions/type_conv/mat3x2/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x2/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static matrix u = matrix(vector(float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h)), vector(float16_t(5.0h), float16_t(6.0h))); +FXC validation failure: +C:\src\dawn\Shader@0x000001E42C2E84A0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index 7c33c451a94..89247ccb71f 100644 --- a/test/tint/expressions/type_conv/mat3x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028A28179320(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000029F3610F980(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.fxc.hlsl index 5ad6db7e80c..98173514c19 100644 --- a/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static matrix u = matrix(vector( void f() { float3x2 v = float3x2(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001985D52FEA0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl index 879a98ffe59..f3e2fcbad06 100644 --- a/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020DB91F90C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D543DBFBC0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.fxc.hlsl index 1c7b7fc0ecd..1b35940b0d6 100644 --- a/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static float3x2 u = float3x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f), float2(5.0f void f() { matrix v = matrix(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000002379ED842B0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl index 1899278d7a2..bc4b148afaa 100644 --- a/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002390FA79410(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D28DDD0000(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.fxc.hlsl index d2b71ccbc83..d18bf3e0310 100644 --- a/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ matrix m() { } void f() { - const matrix tint_symbol = m(); + matrix tint_symbol = m(); float3x3 v = float3x3(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019348C85BE0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl index af726fd420d..ba7948e1072 100644 --- a/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002534B5906B0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002215BF44D00(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.fxc.hlsl index 7940b578f2c..414de34f53a 100644 --- a/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float3x3 m() { } void f() { - const float3x3 tint_symbol = m(); + float3x3 tint_symbol = m(); matrix v = matrix(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000223859641D0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 2c5bbd93ed7..29cada662b7 100644 --- a/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002107AA09240(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023AE4BAB0E0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x3/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x3/literal/f32-f16.wgsl.expected.fxc.hlsl index ab64d60b829..5c1e0c18700 100644 --- a/test/tint/expressions/type_conv/mat3x3/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x3/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static matrix u = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)), vector(float16_t(7.0h), float16_t(8.0h), float16_t(9.0h))); +FXC validation failure: +C:\src\dawn\Shader@0x000001B66AED8F90(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index 2ce3ec996f2..156c1bb8c4a 100644 --- a/test/tint/expressions/type_conv/mat3x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020768C59200(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000217B68AB130(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.fxc.hlsl index bb46c81d90a..2b360294dbb 100644 --- a/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static matrix u = matrix(vector( void f() { float3x3 v = float3x3(u); } +FXC validation failure: +C:\src\dawn\Shader@0x00000172E846B830(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl index c29eb283460..9937899b94c 100644 --- a/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023B046E02B0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000191846E6810(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.fxc.hlsl index d9d45b7ece0..9d4d336884c 100644 --- a/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static float3x3 u = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), void f() { matrix v = matrix(u); } +FXC validation failure: +C:\src\dawn\Shader@0x00000251E310FA70(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl index 5f4cb189945..536e49755cb 100644 --- a/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B10D75E6D0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000266118A41A0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.fxc.hlsl index 2339b2c6c3b..51449df987a 100644 --- a/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ matrix m() { } void f() { - const matrix tint_symbol = m(); + matrix tint_symbol = m(); float3x4 v = float3x4(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001DF4FEAFEE0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl index 19dfedfe806..112ed3fc0b7 100644 --- a/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CC59680080(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001F41F693C80(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.fxc.hlsl index 60e79c6c471..a88d8a04d14 100644 --- a/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float3x4 m() { } void f() { - const float3x4 tint_symbol = m(); + float3x4 tint_symbol = m(); matrix v = matrix(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000197630AAF90(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 4fba8c674bc..3b464a729c3 100644 --- a/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000259E4AF9210(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000284C0D60CF0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x4/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x4/literal/f32-f16.wgsl.expected.fxc.hlsl index 072b96d87a9..8f0e0cb0e9f 100644 --- a/test/tint/expressions/type_conv/mat3x4/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x4/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static matrix u = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(4.0h)), vector(float16_t(5.0h), float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h), float16_t(12.0h))); +FXC validation failure: +C:\src\dawn\Shader@0x00000226E7897470(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index 0d5bc1c45c9..9b52c901bea 100644 --- a/test/tint/expressions/type_conv/mat3x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000282305B0090(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001887117CFC0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.fxc.hlsl index 0ad32aa3165..f9b6c0b29ee 100644 --- a/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static matrix u = matrix(vector( void f() { float3x4 v = float3x4(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001163D5CFA70(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl index a4d06639097..c5871607f8d 100644 --- a/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024169EBDE70(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000245460A0A50(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.fxc.hlsl index fb69b54ed8e..ba21c66d06e 100644 --- a/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static float3x4 u = float3x4(float4(1.0f, 2.0f, 3.0f, 4.0f), float4(5.0f, 6.0f, void f() { matrix v = matrix(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001A610E3B0C0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl index 01ba610fd41..c6c202ba7b9 100644 --- a/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat3x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026B6EA29390(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B011B638B0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.fxc.hlsl index da029f47db4..c76a5f05f84 100644 --- a/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ matrix m() { } void f() { - const matrix tint_symbol = m(); + matrix tint_symbol = m(); float4x2 v = float4x2(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C164D6E8B0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl index e69661b54de..467e7869294 100644 --- a/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x2/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B4C069ECC0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000023F1767B170(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.fxc.hlsl index f07921864d9..f106b1655b9 100644 --- a/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float4x2 m() { } void f() { - const float4x2 tint_symbol = m(); + float4x2 tint_symbol = m(); matrix v = matrix(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000171C434FE00(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl index bc40275bf0b..bffcf1f8c2d 100644 --- a/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x2/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AC5737FAD0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000210F6F7A830(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x2/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x2/literal/f32-f16.wgsl.expected.fxc.hlsl index e492db3b805..3184b709108 100644 --- a/test/tint/expressions/type_conv/mat4x2/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x2/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static matrix u = matrix(vector(float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h)), vector(float16_t(5.0h), float16_t(6.0h)), vector(float16_t(7.0h), float16_t(8.0h))); +FXC validation failure: +C:\src\dawn\Shader@0x000002D0529F0020(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index 132be5320e1..9fbd42190e8 100644 --- a/test/tint/expressions/type_conv/mat4x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000276E1ECF4A0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014C6003F9C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.fxc.hlsl index 490bada9d14..dabcb9c19b3 100644 --- a/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static matrix u = matrix(vector( void f() { float4x2 v = float4x2(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000024A00690810(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl index 0e6028d691b..904b310bed2 100644 --- a/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x2/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000204CD0CD9B0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BDB3C5B890(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.fxc.hlsl index bb0564b37fe..45e350c7cb7 100644 --- a/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static float4x2 u = float4x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f), float2(5.0f void f() { matrix v = matrix(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000002862E027920(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl index 59d26ca4684..3a3e3565375 100644 --- a/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x2/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D32C83EE30(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002F381D34070(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.fxc.hlsl index 4c5d5d5b67b..533670dc840 100644 --- a/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ matrix m() { } void f() { - const matrix tint_symbol = m(); + matrix tint_symbol = m(); float4x3 v = float4x3(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000002ABA1F8E8A0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl index 28958404b1e..6a80354d42f 100644 --- a/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x3/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000011E2D93F7B0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002589541BA10(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.fxc.hlsl index fd96078dcd2..011b70c594d 100644 --- a/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float4x3 m() { } void f() { - const float4x3 tint_symbol = m(); + float4x3 tint_symbol = m(); matrix v = matrix(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000153070545C0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 739b663d505..822106016aa 100644 --- a/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x3/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000224E3C9DE70(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002112C915040(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x3/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x3/literal/f32-f16.wgsl.expected.fxc.hlsl index eecefef56e5..f92495e0bd1 100644 --- a/test/tint/expressions/type_conv/mat4x3/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x3/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static matrix u = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h)), vector(float16_t(7.0h), float16_t(8.0h), float16_t(9.0h)), vector(float16_t(10.0h), float16_t(11.0h), float16_t(12.0h))); +FXC validation failure: +C:\src\dawn\Shader@0x0000023E5D675AA0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index 16d54060cf2..160191ccc26 100644 --- a/test/tint/expressions/type_conv/mat4x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A069599350(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D659054F50(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.fxc.hlsl index 2defbe4db5c..0a8f41e8c24 100644 --- a/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static matrix u = matrix(vector( void f() { float4x3 v = float4x3(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000025804D58FA0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl index 49977fdf2b8..43e1e81cd88 100644 --- a/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x3/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FF8F95A3B0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000218045403A0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.fxc.hlsl index 517eeb21ac6..206f2c67b0e 100644 --- a/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static float4x3 u = float4x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), void f() { matrix v = matrix(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001A86F860720(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl index ec029905224..3a8f7d277ae 100644 --- a/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x3/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018B5F29DF20(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000013DB5F343A0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.fxc.hlsl index f095d838f55..708f98c17b1 100644 --- a/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ matrix m() { } void f() { - const matrix tint_symbol = m(); + matrix tint_symbol = m(); float4x4 v = float4x4(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000116B273D370(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl index c37c9921769..a2ea28e8ae1 100644 --- a/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x4/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B0163A2CF0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000023FBD0654D0(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.fxc.hlsl index 6344b7fb143..2957c236762 100644 --- a/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float4x4 m() { } void f() { - const float4x4 tint_symbol = m(); + float4x4 tint_symbol = m(); matrix v = matrix(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000262C81DE080(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 7847261c3dd..f93336314ee 100644 --- a/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x4/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FD09F60060(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000147DCFEB0E0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x4/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x4/literal/f32-f16.wgsl.expected.fxc.hlsl index f3f9bc306c8..69855ab072b 100644 --- a/test/tint/expressions/type_conv/mat4x4/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x4/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static matrix u = matrix(vector(float16_t(1.0h), float16_t(2.0h), float16_t(3.0h), float16_t(4.0h)), vector(float16_t(5.0h), float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h), float16_t(12.0h)), vector(float16_t(13.0h), float16_t(14.0h), float16_t(15.0h), float16_t(16.0h))); +FXC validation failure: +C:\src\dawn\Shader@0x000001FDA92CC260(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index 31f8311883e..bd8d422a199 100644 --- a/test/tint/expressions/type_conv/mat4x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F196CEF9A0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B7E2617B20(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.fxc.hlsl index dd105553682..1f94b6926b2 100644 --- a/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static matrix u = matrix(vector( void f() { float4x4 v = float4x4(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000002190FA538C0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl index fefad78061d..460ca13c1b5 100644 --- a/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x4/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000240EC879220(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001AAADF5B8F0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.fxc.hlsl index 71b8bdd6020..76e23175d98 100644 --- a/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.fxc.hlsl @@ -10,3 +10,6 @@ static float4x4 u = float4x4(float4(1.0f, 2.0f, 3.0f, 4.0f), float4(5.0f, 6.0f, void f() { matrix v = matrix(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001A6A89AF9E0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl index 6d2b9e92318..7ffa80a732d 100644 --- a/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/mat4x4/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FA2C059F50(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A7D3BCB8D0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.fxc.hlsl index 678ec32f970..ffb51494758 100644 --- a/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,10 @@ bool m() { } void f() { - const bool tint_symbol = m(); + bool tint_symbol = m(); float16_t v = float16_t(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000002C5748C6760(15,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002C5748C6760(15,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.ir.fxc.hlsl index b252d2ed3cb..7df08b5188b 100644 --- a/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -16,6 +16,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021699710A70(9,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000021699710A70(9,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x0000029126C70D60(9,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000029126C70D60(9,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.fxc.hlsl index e8723e17996..00b16f808aa 100644 --- a/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float16_t m() { } void f() { - const float16_t tint_symbol = m(); + float16_t tint_symbol = m(); bool v = bool(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000002584AD8B720(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.ir.fxc.hlsl index 931272f12bf..79f8104d69b 100644 --- a/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/f16-bool.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F06ABF1F60(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002CF783D2540(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.fxc.hlsl index 0c32e4424db..13aadb68e23 100644 --- a/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float16_t m() { } void f() { - const float16_t tint_symbol = m(); + float16_t tint_symbol = m(); float v = float(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000002547F4B4DC0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.ir.fxc.hlsl index cb4484cdae5..83bd9bf0b59 100644 --- a/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000181063D3290(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000202F4AE2980(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/function/f16-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/f16-i32.wgsl.expected.fxc.hlsl index 30e83313b5d..acaa2fc6452 100644 --- a/test/tint/expressions/type_conv/scalar/function/f16-i32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/f16-i32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float16_t m() { } void f() { - const float16_t tint_symbol = m(); + float16_t tint_symbol = m(); int v = int(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000027C6C9D3E00(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/function/f16-i32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/f16-i32.wgsl.expected.ir.fxc.hlsl index 8b5d39ced12..986fd81c08e 100644 --- a/test/tint/expressions/type_conv/scalar/function/f16-i32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/f16-i32.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025FF42194C0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000012FD90EFDE0(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/function/f16-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/f16-u32.wgsl.expected.fxc.hlsl index c7aa7816706..8fa7b3bee01 100644 --- a/test/tint/expressions/type_conv/scalar/function/f16-u32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/f16-u32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float16_t m() { } void f() { - const float16_t tint_symbol = m(); + float16_t tint_symbol = m(); uint v = uint(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000019DBAA1FD80(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/function/f16-u32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/f16-u32.wgsl.expected.ir.fxc.hlsl index 7fd952b21db..9e244bd35a0 100644 --- a/test/tint/expressions/type_conv/scalar/function/f16-u32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/f16-u32.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023D411FF6F0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002BF2BD90B10(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.fxc.hlsl index f726dfec942..2f61ea42d40 100644 --- a/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,10 @@ float m() { } void f() { - const float tint_symbol = m(); + float tint_symbol = m(); float16_t v = float16_t(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000296C5376650(15,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000296C5376650(15,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 44cde3806d1..316894e1636 100644 --- a/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,6 +16,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023AF1C4F370(9,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000023AF1C4F370(9,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x0000018946914450(9,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000018946914450(9,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.fxc.hlsl index cd14b08d2f7..d7ffb36a2fe 100644 --- a/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,10 @@ int m() { } void f() { - const int tint_symbol = m(); + int tint_symbol = m(); float16_t v = float16_t(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000182D9E420F0(15,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000182D9E420F0(15,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.ir.fxc.hlsl index 66a862de034..49f2995141c 100644 --- a/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,6 +16,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D767F6ADA0(9,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001D767F6ADA0(9,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x000002896A95EE50(9,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002896A95EE50(9,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.fxc.hlsl index 062d9f68909..4857bff3568 100644 --- a/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,10 @@ uint m() { } void f() { - const uint tint_symbol = m(); + uint tint_symbol = m(); float16_t v = float16_t(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F609F82CA0(15,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001F609F82CA0(15,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.ir.fxc.hlsl index e0c6baffa27..3a9be74aed2 100644 --- a/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/function/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,6 +16,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F3916CFB80(9,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000001F3916CFB80(9,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x0000028CB40960A0(9,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000028CB40960A0(9,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/type_conv/scalar/literal/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/literal/bool-f16.wgsl.expected.fxc.hlsl index fc506c1911b..5ed4499af6f 100644 --- a/test/tint/expressions/type_conv/scalar/literal/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/literal/bool-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static float16_t u = float16_t(1.0h); +FXC validation failure: +C:\src\dawn\Shader@0x000002815FE66110(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/literal/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/literal/bool-f16.wgsl.expected.ir.fxc.hlsl index 6b700239225..3909e1d4da8 100644 --- a/test/tint/expressions/type_conv/scalar/literal/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/literal/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BBDE9A99E0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001FD404EB180(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/literal/f32-f16.wgsl.expected.fxc.hlsl index fc506c1911b..d1473af237e 100644 --- a/test/tint/expressions/type_conv/scalar/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static float16_t u = float16_t(1.0h); +FXC validation failure: +C:\src\dawn\Shader@0x0000024BB5946340(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index a39ed1bc214..84be6ed35bf 100644 --- a/test/tint/expressions/type_conv/scalar/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A1AD4DB750(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000182CECAA7A0(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/literal/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/literal/i32-f16.wgsl.expected.fxc.hlsl index fc506c1911b..1fa48d65811 100644 --- a/test/tint/expressions/type_conv/scalar/literal/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/literal/i32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static float16_t u = float16_t(1.0h); +FXC validation failure: +C:\src\dawn\Shader@0x00000214E76D6130(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/literal/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/literal/i32-f16.wgsl.expected.ir.fxc.hlsl index 4f6e9df2e48..e238b507f63 100644 --- a/test/tint/expressions/type_conv/scalar/literal/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/literal/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001918D7AA860(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001D7C678AE60(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/literal/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/literal/u32-f16.wgsl.expected.fxc.hlsl index fc506c1911b..d15b24dc5fe 100644 --- a/test/tint/expressions/type_conv/scalar/literal/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/literal/u32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static float16_t u = float16_t(1.0h); +FXC validation failure: +C:\src\dawn\Shader@0x00000240FC956970(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/literal/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/literal/u32-f16.wgsl.expected.ir.fxc.hlsl index a1085959948..325b58972cc 100644 --- a/test/tint/expressions/type_conv/scalar/literal/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/literal/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D75262AAB0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000029866E40E30(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.fxc.hlsl index 12e11d299dc..d0fca87159c 100644 --- a/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,9 @@ void unused_entry_point() { static bool u = true; void f() { - const float16_t v = float16_t(u); + float16_t v = float16_t(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000002781C1909D0(9,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002781C1909D0(9,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.ir.fxc.hlsl index ca0122114e9..dfb4e002a1c 100644 --- a/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -11,6 +11,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022F106B3C90(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000022F106B3C90(4,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x00000289B04E7F60(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000289B04E7F60(4,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.fxc.hlsl index 715f75193a1..abb2e9f1f24 100644 --- a/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static float16_t u = float16_t(1.0h); void f() { - const bool v = bool(u); + bool v = bool(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000029A3F2B87B0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.ir.fxc.hlsl index 60ae1754c72..bcd556088ef 100644 --- a/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/f16-bool.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019CA88018A0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000246F25C5510(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.fxc.hlsl index edfdc828304..ddfb99a39f2 100644 --- a/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static float16_t u = float16_t(1.0h); void f() { - const float v = float(u); + float v = float(u); } +FXC validation failure: +C:\src\dawn\Shader@0x00000224E6AD5E80(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.ir.fxc.hlsl index 525fcad0d27..e4ac3b8496d 100644 --- a/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000271581CFBA0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001AC70DF5710(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/var/f16-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/f16-i32.wgsl.expected.fxc.hlsl index 8c8eae750fd..239efdc3278 100644 --- a/test/tint/expressions/type_conv/scalar/var/f16-i32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/f16-i32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static float16_t u = float16_t(1.0h); void f() { - const int v = int(u); + int v = int(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001C6030F4430(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/var/f16-i32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/f16-i32.wgsl.expected.ir.fxc.hlsl index d6f7ac6af33..b0afcecadf5 100644 --- a/test/tint/expressions/type_conv/scalar/var/f16-i32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/f16-i32.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001733E99DE70(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000023E4544FFF0(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/var/f16-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/f16-u32.wgsl.expected.fxc.hlsl index 9cdd3b4f7f6..0e1ff11244f 100644 --- a/test/tint/expressions/type_conv/scalar/var/f16-u32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/f16-u32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static float16_t u = float16_t(1.0h); void f() { - const uint v = uint(u); + uint v = uint(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000025E5FDC4950(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/scalar/var/f16-u32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/f16-u32.wgsl.expected.ir.fxc.hlsl index 550911a098a..606dc6d2d9f 100644 --- a/test/tint/expressions/type_conv/scalar/var/f16-u32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/f16-u32.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001564A2791C0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000211367E0300(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.fxc.hlsl index da1cac2133f..a054c2865f5 100644 --- a/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,9 @@ void unused_entry_point() { static float u = 1.0f; void f() { - const float16_t v = float16_t(u); + float16_t v = float16_t(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001B952550980(9,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001B952550980(9,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.ir.fxc.hlsl index 7e56c0721f5..02961c3f1f7 100644 --- a/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,6 +11,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B297F9C730(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x000002B297F9C730(4,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x0000022CE9B609F0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000022CE9B609F0(4,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.fxc.hlsl index dd829149113..aca4d965581 100644 --- a/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,9 @@ void unused_entry_point() { static int u = 1; void f() { - const float16_t v = float16_t(u); + float16_t v = float16_t(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001D609400980(9,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001D609400980(9,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.ir.fxc.hlsl index d8b975714e2..7dbded42528 100644 --- a/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,6 +11,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000208DA33AFB0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000208DA33AFB0(4,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x000001EB8A2909F0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001EB8A2909F0(4,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.fxc.hlsl index 4477cc67296..78e95ab78e3 100644 --- a/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,9 @@ void unused_entry_point() { static uint u = 1u; void f() { - const float16_t v = float16_t(u); + float16_t v = float16_t(u); } +FXC validation failure: +C:\src\dawn\Shader@0x00000218582B09D0(9,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000218582B09D0(9,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.ir.fxc.hlsl index fa72384d797..3e6b1752c60 100644 --- a/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/scalar/var/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,6 +11,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000151CC81CEB0(4,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x00000151CC81CEB0(4,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x000001FA34C46ED0(4,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001FA34C46ED0(4,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.fxc.hlsl index 1192fc7373d..9e31d22790d 100644 --- a/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ bool2 m() { } void f() { - const bool2 tint_symbol = m(); + bool2 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000161EB49FF00(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.ir.fxc.hlsl index 20c6db565c7..910333efa02 100644 --- a/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002282F921AC0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B564092540(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.fxc.hlsl index 2cd41d958f3..040885cac49 100644 --- a/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); bool2 v = bool2(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001EEF730B170(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.ir.fxc.hlsl index c04bc80e2d8..0c97afa94a3 100644 --- a/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/f16-bool.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DE650FDCD0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000021129364210(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.fxc.hlsl index 10f9cdb1760..c9f7e61fc6c 100644 --- a/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); float2 v = float2(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000023765C55050(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.ir.fxc.hlsl index 3eb11a91434..8639967f50c 100644 --- a/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EC146DF9E0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E659253390(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/function/f16-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/f16-i32.wgsl.expected.fxc.hlsl index 94472f9c8a1..f27e5d7e881 100644 --- a/test/tint/expressions/type_conv/vec2/function/f16-i32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/f16-i32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); int2 v = int2(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000020721951B30(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/function/f16-i32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/f16-i32.wgsl.expected.ir.fxc.hlsl index 1725c1df379..5912f4028da 100644 --- a/test/tint/expressions/type_conv/vec2/function/f16-i32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/f16-i32.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029680ACF6F0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000276424B38B0(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/function/f16-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/f16-u32.wgsl.expected.fxc.hlsl index d0f5dd5014d..c35c0f0b300 100644 --- a/test/tint/expressions/type_conv/vec2/function/f16-u32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/f16-u32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); uint2 v = uint2(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000155F7AFFCE0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/function/f16-u32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/f16-u32.wgsl.expected.ir.fxc.hlsl index caa4287949d..981959b79ba 100644 --- a/test/tint/expressions/type_conv/vec2/function/f16-u32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/f16-u32.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000218A504F6F0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001BCF37B38F0(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.fxc.hlsl index a8fdd2e3ae5..d38467e04df 100644 --- a/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float2 m() { } void f() { - const float2 tint_symbol = m(); + float2 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000167840EFDC0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 9fc9effdaa2..d6a6298f0ca 100644 --- a/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016B68CB1C10(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A283402A90(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.fxc.hlsl index 44c9bd7f4e3..b70857d056f 100644 --- a/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ int2 m() { } void f() { - const int2 tint_symbol = m(); + int2 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000028D9A413470(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.ir.fxc.hlsl index 6302b04e8fe..f1d0eaf25ea 100644 --- a/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002379AF09150(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D194464740(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.fxc.hlsl index 50445e5ec6c..eb953ba182d 100644 --- a/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ uint2 m() { } void f() { - const uint2 tint_symbol = m(); + uint2 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001817ACC37F0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.ir.fxc.hlsl index b9b18d3fa77..136044abdd8 100644 --- a/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/function/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B32F3FDE20(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A83A851050(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/literal/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/literal/bool-f16.wgsl.expected.fxc.hlsl index c2afd915e2f..3ceb2f3efaa 100644 --- a/test/tint/expressions/type_conv/vec2/literal/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/literal/bool-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xx; +FXC validation failure: +C:\src\dawn\Shader@0x000001E601108A70(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/literal/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/literal/bool-f16.wgsl.expected.ir.fxc.hlsl index 189416c32fa..69ab7d64e10 100644 --- a/test/tint/expressions/type_conv/vec2/literal/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/literal/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002568DF40A10(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F6A55161C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/literal/f32-f16.wgsl.expected.fxc.hlsl index c2afd915e2f..31dd6d8f3d9 100644 --- a/test/tint/expressions/type_conv/vec2/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xx; +FXC validation failure: +C:\src\dawn\Shader@0x000001AE1A3F5E80(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index 7148d67b90f..20b9a8ed026 100644 --- a/test/tint/expressions/type_conv/vec2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018EB878FCF0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021831395FE0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/literal/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/literal/i32-f16.wgsl.expected.fxc.hlsl index c2afd915e2f..5fc8d3feca8 100644 --- a/test/tint/expressions/type_conv/vec2/literal/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/literal/i32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xx; +FXC validation failure: +C:\src\dawn\Shader@0x0000022A1F345E80(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/literal/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/literal/i32-f16.wgsl.expected.ir.fxc.hlsl index 604ec6c1102..8256a255653 100644 --- a/test/tint/expressions/type_conv/vec2/literal/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/literal/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023A5D260130(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000244E26E6AB0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/literal/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/literal/u32-f16.wgsl.expected.fxc.hlsl index c2afd915e2f..85f5c3511b7 100644 --- a/test/tint/expressions/type_conv/vec2/literal/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/literal/u32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xx; +FXC validation failure: +C:\src\dawn\Shader@0x000001FD2D7980C0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/literal/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/literal/u32-f16.wgsl.expected.ir.fxc.hlsl index 84576ddd1ba..32c915443be 100644 --- a/test/tint/expressions/type_conv/vec2/literal/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/literal/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020C044EFAC0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000211A13D6CF0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.fxc.hlsl index 4d9ad80c180..097d4635f8b 100644 --- a/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static bool2 u = (true).xx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000016E08D087A0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.ir.fxc.hlsl index d4780413b86..e480bfbc87d 100644 --- a/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029707EAADA0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F8025187D0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.fxc.hlsl index 78c6cd4c419..40363ee34a8 100644 --- a/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xx; void f() { - const bool2 v = bool2(u); + bool2 v = bool2(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000002731BDF77E0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.ir.fxc.hlsl index 065978bbd34..f97a0eb7e76 100644 --- a/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/f16-bool.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F79C33ADA0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014E21C45E90(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.fxc.hlsl index 0fdee11c68d..3207dfb52ad 100644 --- a/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xx; void f() { - const float2 v = float2(u); + float2 v = float2(u); } +FXC validation failure: +C:\src\dawn\Shader@0x00000256EB320930(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.ir.fxc.hlsl index 96c8e4902a4..289605c5b1e 100644 --- a/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000261DBE61670(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000015A6E6577C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/var/f16-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/f16-i32.wgsl.expected.fxc.hlsl index 62a73b8e316..6763b3ad4b1 100644 --- a/test/tint/expressions/type_conv/vec2/var/f16-i32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/f16-i32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xx; void f() { - const int2 v = int2(u); + int2 v = int2(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001747A490930(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/var/f16-i32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/f16-i32.wgsl.expected.ir.fxc.hlsl index f017dff65e9..98d3258abfb 100644 --- a/test/tint/expressions/type_conv/vec2/var/f16-i32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/f16-i32.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020D6A17DE10(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021547BAE2C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/var/f16-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/f16-u32.wgsl.expected.fxc.hlsl index a1ac83f4f4b..d52482b4a73 100644 --- a/test/tint/expressions/type_conv/vec2/var/f16-u32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/f16-u32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xx; void f() { - const uint2 v = uint2(u); + uint2 v = uint2(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001997EC480B0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/var/f16-u32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/f16-u32.wgsl.expected.ir.fxc.hlsl index 4e500ee4165..439b82a5ee7 100644 --- a/test/tint/expressions/type_conv/vec2/var/f16-u32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/f16-u32.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002314E159200(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E441330C80(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.fxc.hlsl index f8e969ee161..490a708fb8c 100644 --- a/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static float2 u = (1.0f).xx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000002882F605420(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.ir.fxc.hlsl index cd1144ae731..3b5d9c01c27 100644 --- a/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B248ED0E60(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000253DBF387C0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.fxc.hlsl index 266e0240873..5a9efcf5478 100644 --- a/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static int2 u = (1).xx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x00000237BC110970(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.ir.fxc.hlsl index 9d7c2504717..88797a35dbe 100644 --- a/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000173900C0E60(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EE032009E0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.fxc.hlsl index 3b72afab3ec..03f741fb31e 100644 --- a/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static uint2 u = (1u).xx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000002104E5D5420(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.ir.fxc.hlsl index 496f8ddfbb0..bde3cba5015 100644 --- a/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec2/var/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E8505F0E60(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DB869F80D0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.fxc.hlsl index df95d8c46c9..e54cd5dd849 100644 --- a/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ bool3 m() { } void f() { - const bool3 tint_symbol = m(); + bool3 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000002C85D0DB170(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.ir.fxc.hlsl index dbdbf4a5f70..dd9439b21cf 100644 --- a/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021A08581AC0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020970D32210(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.fxc.hlsl index 01f50cb27ba..aca28f0b01d 100644 --- a/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); bool3 v = bool3(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000002B8ADA9F840(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.ir.fxc.hlsl index 32454a42cc7..e5ab5815152 100644 --- a/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/f16-bool.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023BAE9D9200(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000021712ACFA40(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.fxc.hlsl index 34d2d23caf9..46a75f052f0 100644 --- a/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); float3 v = float3(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000147AC091880(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.ir.fxc.hlsl index 7d27868fc99..56ad87b0666 100644 --- a/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FACDBDFD80(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000015013102590(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/function/f16-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/f16-i32.wgsl.expected.fxc.hlsl index df43267a105..b9886bbaf91 100644 --- a/test/tint/expressions/type_conv/vec3/function/f16-i32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/f16-i32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); int3 v = int3(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F7CBACFCE0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/function/f16-i32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/f16-i32.wgsl.expected.ir.fxc.hlsl index bf82b612aa8..2a63ea97680 100644 --- a/test/tint/expressions/type_conv/vec3/function/f16-i32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/f16-i32.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000218D236F6F0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001BC62A18840(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/function/f16-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/f16-u32.wgsl.expected.fxc.hlsl index 177dc3a5cc4..1a97bf7807f 100644 --- a/test/tint/expressions/type_conv/vec3/function/f16-u32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/f16-u32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); uint3 v = uint3(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001A167725050(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/function/f16-u32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/f16-u32.wgsl.expected.ir.fxc.hlsl index ab0ffad6f45..5b5041c8127 100644 --- a/test/tint/expressions/type_conv/vec3/function/f16-u32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/f16-u32.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000220F54CEC90(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000271EB0CD190(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.fxc.hlsl index 8538ab63d0c..8a5f9a86f4e 100644 --- a/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float3 m() { } void f() { - const float3 tint_symbol = m(); + float3 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000146F0F3B150(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 1685b1a6d97..c7fa13896ea 100644 --- a/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000192048C1B40(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C20D2D2540(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.fxc.hlsl index b127e08b37b..865c98be0dd 100644 --- a/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ int3 m() { } void f() { - const int3 tint_symbol = m(); + int3 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000020F55F33B90(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.ir.fxc.hlsl index e911c71d023..5cb848df3bd 100644 --- a/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000203C54C2180(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000287BE711AC0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.fxc.hlsl index eaabaffa1fd..32322b229be 100644 --- a/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ uint3 m() { } void f() { - const uint3 tint_symbol = m(); + uint3 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000181757542B0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.ir.fxc.hlsl index d3465f20987..9f8a2a9b75d 100644 --- a/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/function/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020C180F1080(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002175FF92980(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/literal/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/literal/bool-f16.wgsl.expected.fxc.hlsl index aa68910d607..44e5abb220f 100644 --- a/test/tint/expressions/type_conv/vec3/literal/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/literal/bool-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xxx; +FXC validation failure: +C:\src\dawn\Shader@0x00000254445980C0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/literal/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/literal/bool-f16.wgsl.expected.ir.fxc.hlsl index 4868d69dde1..80eca083e18 100644 --- a/test/tint/expressions/type_conv/vec3/literal/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/literal/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E4E53B0DE0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A3BE6E6570(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/literal/f32-f16.wgsl.expected.fxc.hlsl index aa68910d607..d0a8c9b8512 100644 --- a/test/tint/expressions/type_conv/vec3/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xxx; +FXC validation failure: +C:\src\dawn\Shader@0x0000021275FD5E80(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index 64babefb8ae..c50573cf8eb 100644 --- a/test/tint/expressions/type_conv/vec3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019DA84D0060(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000200F0276A20(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/literal/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/literal/i32-f16.wgsl.expected.fxc.hlsl index aa68910d607..7a36c697a75 100644 --- a/test/tint/expressions/type_conv/vec3/literal/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/literal/i32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xxx; +FXC validation failure: +C:\src\dawn\Shader@0x000002801B5E80C0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/literal/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/literal/i32-f16.wgsl.expected.ir.fxc.hlsl index ca45139a762..0b5a839fccf 100644 --- a/test/tint/expressions/type_conv/vec3/literal/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/literal/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002384D71FEA0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FC05846AE0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/literal/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/literal/u32-f16.wgsl.expected.fxc.hlsl index aa68910d607..02f93346ed5 100644 --- a/test/tint/expressions/type_conv/vec3/literal/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/literal/u32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xxx; +FXC validation failure: +C:\src\dawn\Shader@0x00000213CD2A92A0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/literal/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/literal/u32-f16.wgsl.expected.ir.fxc.hlsl index 9b6cf2fe381..25a2f15be1d 100644 --- a/test/tint/expressions/type_conv/vec3/literal/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/literal/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023442C10D90(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000250D23F76A0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.fxc.hlsl index 7ee9ea82e5a..8eddce9b8c6 100644 --- a/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static bool3 u = (true).xxx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000029887735400(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.ir.fxc.hlsl index ee27e3d3114..2387e27db96 100644 --- a/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027E5C4BC600(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017AFCCF80E0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.fxc.hlsl index 7fd35e33378..8629e8ca9ea 100644 --- a/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xxx; void f() { - const bool3 v = bool3(u); + bool3 v = bool3(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000026432F787A0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.ir.fxc.hlsl index b5ab5a1e27c..c0b592c6b47 100644 --- a/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/f16-bool.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000211A142ADA0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002BF9D4A87D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.fxc.hlsl index 3b4849a0525..75e22c13c4f 100644 --- a/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xxx; void f() { - const float3 v = float3(u); + float3 v = float3(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000026EC4235D20(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.ir.fxc.hlsl index b8e5450efaf..10cd6521ec4 100644 --- a/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028AA3EDAD90(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000281640D5E80(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/var/f16-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/f16-i32.wgsl.expected.fxc.hlsl index 30a25c3d52b..2373ad68c7e 100644 --- a/test/tint/expressions/type_conv/vec3/var/f16-i32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/f16-i32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xxx; void f() { - const int3 v = int3(u); + int3 v = int3(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000002F76AAF0970(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/var/f16-i32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/f16-i32.wgsl.expected.ir.fxc.hlsl index 0354c4dde11..d61c32efed6 100644 --- a/test/tint/expressions/type_conv/vec3/var/f16-i32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/f16-i32.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002BB45509200(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028AEFA00CD0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/var/f16-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/f16-u32.wgsl.expected.fxc.hlsl index cf2e63d9d16..6c810a0fa91 100644 --- a/test/tint/expressions/type_conv/vec3/var/f16-u32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/f16-u32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xxx; void f() { - const uint3 v = uint3(u); + uint3 v = uint3(u); } +FXC validation failure: +C:\src\dawn\Shader@0x00000220F8EF87A0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/var/f16-u32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/f16-u32.wgsl.expected.ir.fxc.hlsl index 8b4a3dc28f6..ad0bfe568a3 100644 --- a/test/tint/expressions/type_conv/vec3/var/f16-u32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/f16-u32.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C0475297D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000156F8D4FA90(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.fxc.hlsl index 6c49177df55..2e08a45ae6a 100644 --- a/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static float3 u = (1.0f).xxx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F7551765E0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.ir.fxc.hlsl index aa806ecbff6..b043c936130 100644 --- a/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FEDC9EAFA0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000172AEB909E0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.fxc.hlsl index 6ef2305b55a..33b73f1dc3f 100644 --- a/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static int3 u = (1).xxx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000002AF74EE3280(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.ir.fxc.hlsl index 12ce75ede38..94ed51997f3 100644 --- a/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E780CFAD90(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000243ABA087C0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.fxc.hlsl index 4d00fa894b1..d8d9b3c87d4 100644 --- a/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static uint3 u = (1u).xxx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001CBBCBC87A0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.ir.fxc.hlsl index 7ce33906ad0..7e31b2ae149 100644 --- a/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec3/var/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028EC8D8AD90(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000163F5945500(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.fxc.hlsl index 8785a91260d..3659213c2cd 100644 --- a/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ bool4 m() { } void f() { - const bool4 tint_symbol = m(); + bool4 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001E475F50020(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.ir.fxc.hlsl index 9f8d1553dfe..4c6a4eff95a 100644 --- a/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001AD31221750(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A483512BA0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.fxc.hlsl index 583f9f6d330..a5d1f40e874 100644 --- a/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); bool4 v = bool4(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000257AA2EFCE0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.ir.fxc.hlsl index f03c66d4379..33d1b586157 100644 --- a/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/f16-bool.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000123BA81F490(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002AAD6333BE0(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.fxc.hlsl index e7ef7d5008d..f6f18c3dcf0 100644 --- a/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); float4 v = float4(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000234F7A36C00(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.ir.fxc.hlsl index b255f447c6b..bd512c2fa70 100644 --- a/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002859BBFE810(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001BBB2BC3860(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/function/f16-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/f16-i32.wgsl.expected.fxc.hlsl index df89247f21a..01c5f317f1e 100644 --- a/test/tint/expressions/type_conv/vec4/function/f16-i32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/f16-i32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); int4 v = int4(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F2207803B0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/function/f16-i32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/f16-i32.wgsl.expected.ir.fxc.hlsl index 6ccea7a128f..c947b68aaec 100644 --- a/test/tint/expressions/type_conv/vec4/function/f16-i32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/f16-i32.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A316FB92C0(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E46B16B170(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/function/f16-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/f16-u32.wgsl.expected.fxc.hlsl index da8639cabed..41f6524b113 100644 --- a/test/tint/expressions/type_conv/vec4/function/f16-u32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/f16-u32.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ vector m() { } void f() { - const vector tint_symbol = m(); + vector tint_symbol = m(); uint4 v = uint4(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001675E6403B0(6,8-16): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/function/f16-u32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/f16-u32.wgsl.expected.ir.fxc.hlsl index 78eaf0a05ba..a3521217d14 100644 --- a/test/tint/expressions/type_conv/vec4/function/f16-u32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/f16-u32.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027013CEF420(2,8-16): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E7B612AF30(2,8-16): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.fxc.hlsl index a57362d6b4b..2af39b8490e 100644 --- a/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ float4 m() { } void f() { - const float4 tint_symbol = m(); + float4 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x000001405770FC50(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.ir.fxc.hlsl index 2a82eb98e5d..ba621497381 100644 --- a/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002427BF11190(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014154F22980(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.fxc.hlsl index 56fca67bf6d..af9be8905f1 100644 --- a/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ int4 m() { } void f() { - const int4 tint_symbol = m(); + int4 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x0000025D14963470(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.ir.fxc.hlsl index 905e2634ef7..2badb0e1240 100644 --- a/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020463E712F0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023A44C4FC00(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.fxc.hlsl index f752da27697..215839dc72c 100644 --- a/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.fxc.hlsl @@ -13,6 +13,9 @@ uint4 m() { } void f() { - const uint4 tint_symbol = m(); + uint4 tint_symbol = m(); vector v = vector(tint_symbol); } +FXC validation failure: +C:\src\dawn\Shader@0x00000242E9073AF0(15,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.ir.fxc.hlsl index fcc1a2ae410..9325d7c61a4 100644 --- a/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/function/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EC48200B30(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028752972A90(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/literal/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/literal/bool-f16.wgsl.expected.fxc.hlsl index 38006b72cd0..2869d0c802b 100644 --- a/test/tint/expressions/type_conv/vec4/literal/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/literal/bool-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xxxx; +FXC validation failure: +C:\src\dawn\Shader@0x000002628B444470(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/literal/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/literal/bool-f16.wgsl.expected.ir.fxc.hlsl index 740937368b6..e98359e3830 100644 --- a/test/tint/expressions/type_conv/vec4/literal/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/literal/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000233D37BF8D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000246371D6170(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/literal/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/literal/f32-f16.wgsl.expected.fxc.hlsl index 38006b72cd0..5d9f2685e7a 100644 --- a/test/tint/expressions/type_conv/vec4/literal/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/literal/f32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xxxx; +FXC validation failure: +C:\src\dawn\Shader@0x000001A74E175E80(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl index ea595ec3daa..2b5c4560e79 100644 --- a/test/tint/expressions/type_conv/vec4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/literal/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F47EB7F560(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DAC84B6500(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/literal/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/literal/i32-f16.wgsl.expected.fxc.hlsl index 38006b72cd0..3d507418cea 100644 --- a/test/tint/expressions/type_conv/vec4/literal/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/literal/i32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xxxx; +FXC validation failure: +C:\src\dawn\Shader@0x0000014448A26170(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/literal/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/literal/i32-f16.wgsl.expected.ir.fxc.hlsl index f2d7c08b57b..e90722af634 100644 --- a/test/tint/expressions/type_conv/vec4/literal/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/literal/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029E54930820(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019F3F896F50(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/literal/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/literal/u32-f16.wgsl.expected.fxc.hlsl index 38006b72cd0..3959a2d98c8 100644 --- a/test/tint/expressions/type_conv/vec4/literal/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/literal/u32-f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector u = (float16_t(1.0h)).xxxx; +FXC validation failure: +C:\src\dawn\Shader@0x000001C556C380C0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/literal/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/literal/u32-f16.wgsl.expected.ir.fxc.hlsl index 1ea1a24c5f8..7b9c6328787 100644 --- a/test/tint/expressions/type_conv/vec4/literal/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/literal/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022304D1F790(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CEABF55E50(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.fxc.hlsl index 5e5bd003a14..ad02cb2a83d 100644 --- a/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static bool4 u = (true).xxxx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001546821FE50(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.ir.fxc.hlsl index 5e239bab814..855533be3a8 100644 --- a/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/bool-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BD77ECAFB0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001AFEAED6610(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.fxc.hlsl index d97c0d254d9..3156f8cc632 100644 --- a/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xxxx; void f() { - const bool4 v = bool4(u); + bool4 v = bool4(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000024E514187A0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.ir.fxc.hlsl index 080d8197130..9ce88b91f54 100644 --- a/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/f16-bool.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A1008CADA0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A1D89587D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.fxc.hlsl index eae465b701d..7d2a87b5f58 100644 --- a/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xxxx; void f() { - const float4 v = float4(u); + float4 v = float4(u); } +FXC validation failure: +C:\src\dawn\Shader@0x00000253BF1D87A0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.ir.fxc.hlsl index 10ede293f1d..e28ab1262de 100644 --- a/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/f16-f32.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022E7AD4AD90(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000026B01F987C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/var/f16-i32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/f16-i32.wgsl.expected.fxc.hlsl index 3d4b0a3aa20..d9b60a83864 100644 --- a/test/tint/expressions/type_conv/vec4/var/f16-i32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/f16-i32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xxxx; void f() { - const int4 v = int4(u); + int4 v = int4(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000024C55FB0930(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/var/f16-i32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/f16-i32.wgsl.expected.ir.fxc.hlsl index bc0756a6fa9..b046f98aa09 100644 --- a/test/tint/expressions/type_conv/vec4/var/f16-i32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/f16-i32.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B6013FDD60(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000222FDEEF9A0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/var/f16-u32.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/f16-u32.wgsl.expected.fxc.hlsl index 55625088075..45ea42f3ab1 100644 --- a/test/tint/expressions/type_conv/vec4/var/f16-u32.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/f16-u32.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static vector u = (float16_t(1.0h)).xxxx; void f() { - const uint4 v = uint4(u); + uint4 v = uint4(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000023B79CDE610(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/var/f16-u32.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/f16-u32.wgsl.expected.ir.fxc.hlsl index eb1addb313c..c0c71325e16 100644 --- a/test/tint/expressions/type_conv/vec4/var/f16-u32.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/f16-u32.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027F7D239200(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002A4C05DFE30(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.fxc.hlsl index 63dbc39a910..80c3188ee50 100644 --- a/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static float4 u = (1.0f).xxxx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001FEEC6F4940(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.ir.fxc.hlsl index 423cdc50e08..e2b7456a7d2 100644 --- a/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/f32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CE0BCFAFA0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E2003D6890(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.fxc.hlsl index 307f250e2cb..eb14d466e94 100644 --- a/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static int4 u = (1).xxxx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x0000020C110987A0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.ir.fxc.hlsl index 6a99bb6aca9..b530e2d0a9e 100644 --- a/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/i32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F93E2428F0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002442AEDB2B0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.fxc.hlsl index 4d54ab4b4d7..765585b0a07 100644 --- a/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.fxc.hlsl @@ -8,5 +8,8 @@ void unused_entry_point() { static uint4 u = (1u).xxxx; void f() { - const vector v = vector(u); + vector v = vector(u); } +FXC validation failure: +C:\src\dawn\Shader@0x000001BCF14E0930(9,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.ir.fxc.hlsl index 73073a01baf..1fdfc19bf47 100644 --- a/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_conv/vec4/var/u32-f16.wgsl.expected.ir.fxc.hlsl @@ -11,5 +11,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B7C2411820(4,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B5A4CC77C0(4,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f16.wgsl.expected.fxc.hlsl index 7b064f9c57e..ce7ba4715a1 100644 --- a/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002448F324C60(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl index 46f20bbbfea..7016c6b1717 100644 --- a/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000243BFE62D10(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B35008E090(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl index a03b5ac3ea2..dc9f7a1cc01 100644 --- a/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BDCC74FFA0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl index aa8f1694537..1f6500bcfbd 100644 --- a/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015E6173F7D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D768A0FB40(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl index a03b5ac3ea2..0b92c5bd113 100644 --- a/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001927D0BC730(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl index 00cb502fa24..5579a43c7f7 100644 --- a/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002926B43E320(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000209DA7E4020(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f16.wgsl.expected.fxc.hlsl index 7b064f9c57e..43edfa85e28 100644 --- a/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002A8FCDE3CB0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl index f2f5547541e..64929ea522d 100644 --- a/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D2B07C1480(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020C3D7D8D10(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl index a03b5ac3ea2..c279342db8c 100644 --- a/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002262DE94D00(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl index 98748acbc2e..a1d6ccd274e 100644 --- a/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BB21C09770(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A1F2976F60(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl index a03b5ac3ea2..aea7bf0e907 100644 --- a/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028AED2DBC10(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl index f184a3aef48..fb7449f437c 100644 --- a/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022589EFFA00(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019C3597AFE0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x2/load/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/load/f16.wgsl.expected.fxc.hlsl index e9f39c64bf6..b343f97304a 100644 --- a/test/tint/expressions/type_ctor/mat2x2/load/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/load/f16.wgsl.expected.fxc.hlsl @@ -1,11 +1,19 @@ SKIP: FAILED -[numthreads(1, 1, 1)] -void unused_entry_point() { - return; +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); } +[numthreads(1, 1, 1)] void f() { matrix m = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx); - const matrix m_1 = matrix(m); + tint_symbol_store(0u, matrix(m)); + return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017659C5FC80(3,44-52): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000017659C5FC80(4,3-19): error X3018: invalid subscript 'Store' + diff --git a/test/tint/expressions/type_ctor/mat2x2/load/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/load/f16.wgsl.expected.ir.fxc.hlsl index c2b2674db4e..a7bf9947aac 100644 --- a/test/tint/expressions/type_ctor/mat2x2/load/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/load/f16.wgsl.expected.ir.fxc.hlsl @@ -14,6 +14,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000011B6F83A1C0(3,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000011B6F83A1C0(4,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x00000133CAB6B1B0(3,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000133CAB6B1B0(4,3-19): error X3018: invalid subscript 'Store' diff --git a/test/tint/expressions/type_ctor/mat2x2/zero/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/zero/f16.wgsl.expected.fxc.hlsl index 4bb1e3a553b..accbb4d5137 100644 --- a/test/tint/expressions/type_ctor/mat2x2/zero/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/zero/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002CABFF74540(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx); diff --git a/test/tint/expressions/type_ctor/mat2x2/zero/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x2/zero/f16.wgsl.expected.ir.fxc.hlsl index f7601fabe86..7f83e8b9eb1 100644 --- a/test/tint/expressions/type_ctor/mat2x2/zero/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/zero/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C9AE0D67E0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A7776DFFE0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f16.wgsl.expected.fxc.hlsl index c2826478494..49b41f0f5da 100644 --- a/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D954180600(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl index f554b40a1ae..13bcc8113a8 100644 --- a/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BF360D9440(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000020C5C5D8FB0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl index 36509037768..da587d25a04 100644 --- a/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020AEE69D620(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl index 377aea80c0c..6abbfe0444c 100644 --- a/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024C022AF7D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019D66B7DCA0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl index 36509037768..53c9a122737 100644 --- a/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000262AF9C0D60(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl index 721dd3d5cf4..1370a04615d 100644 --- a/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CA6B72E760(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CDF6013E00(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f16.wgsl.expected.fxc.hlsl index c2826478494..7fc0e73ede0 100644 --- a/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022BD5341EA0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl index 3ca31020c9f..33b59e8ec23 100644 --- a/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C9B95716E0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025CF6693BE0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl index 36509037768..7adccdce2a6 100644 --- a/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001754B20D700(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl index 6ef4588724d..92db43304c0 100644 --- a/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020D4CD8F7C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014F616D53A0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl index 36509037768..b3bb89d1160 100644 --- a/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B776D207E0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl index d23012e3907..c53002e3403 100644 --- a/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021B28E201D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001DD504585B0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x3/load/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/load/f16.wgsl.expected.fxc.hlsl index 218711ad104..d82afa8cad4 100644 --- a/test/tint/expressions/type_ctor/mat2x3/load/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/load/f16.wgsl.expected.fxc.hlsl @@ -1,11 +1,19 @@ SKIP: FAILED -[numthreads(1, 1, 1)] -void unused_entry_point() { - return; +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); } +[numthreads(1, 1, 1)] void f() { matrix m = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); - const matrix m_1 = matrix(m); + tint_symbol_store(0u, matrix(m)); + return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000012C8259FEE0(3,44-52): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000012C8259FEE0(4,3-19): error X3018: invalid subscript 'Store' + diff --git a/test/tint/expressions/type_ctor/mat2x3/load/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/load/f16.wgsl.expected.ir.fxc.hlsl index d320b1a2aad..8f373f8ee60 100644 --- a/test/tint/expressions/type_ctor/mat2x3/load/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/load/f16.wgsl.expected.ir.fxc.hlsl @@ -14,6 +14,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020C74CC9B90(3,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000020C74CC9B90(4,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x00000183D74EB8A0(3,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000183D74EB8A0(4,3-19): error X3018: invalid subscript 'Store' diff --git a/test/tint/expressions/type_ctor/mat2x3/zero/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/zero/f16.wgsl.expected.fxc.hlsl index 8a70a8af06b..278e512f912 100644 --- a/test/tint/expressions/type_ctor/mat2x3/zero/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/zero/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017E7DCB19F0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); diff --git a/test/tint/expressions/type_ctor/mat2x3/zero/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x3/zero/f16.wgsl.expected.ir.fxc.hlsl index 40364e3fff3..2f6f2a97cec 100644 --- a/test/tint/expressions/type_ctor/mat2x3/zero/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/zero/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027886A5DE60(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028B73740E10(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f16.wgsl.expected.fxc.hlsl index 240183e53d1..f5681c9ae85 100644 --- a/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001B6A6D00FB0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl index 8270408f3ac..40d492cb1ca 100644 --- a/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E688CAFB70(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000280BD2D3C20(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl index 81cbdd10e00..86081437ccc 100644 --- a/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022DB716B8D0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl index e6999f0806a..3babe3a915f 100644 --- a/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D1CBE7FB70(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BFB26AB1C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl index 81cbdd10e00..b206653783f 100644 --- a/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F086793AF0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl index 6dea3cae2c2..dfd8d5c2dae 100644 --- a/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000205F034FB70(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A552AF47F0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f16.wgsl.expected.fxc.hlsl index 240183e53d1..6dcc4d78945 100644 --- a/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000013D2FF14CC0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl index 6012a70c8c5..43d7e46913b 100644 --- a/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000167D8EDF5B0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000025463C73BF0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl index 81cbdd10e00..066a3393596 100644 --- a/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A90E51FE40(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl index 09a9c7a6a65..01b525387f8 100644 --- a/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002432597F9C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E5DC86BBA0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl index 81cbdd10e00..167f775ded1 100644 --- a/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000107AC56B820(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h))); diff --git a/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl index f77454e615a..97083688b92 100644 --- a/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000029EA5B012B0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C498B63E00(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat2x4/load/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/load/f16.wgsl.expected.fxc.hlsl index f9bf1f326f0..5314b41e030 100644 --- a/test/tint/expressions/type_ctor/mat2x4/load/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/load/f16.wgsl.expected.fxc.hlsl @@ -1,11 +1,19 @@ SKIP: FAILED -[numthreads(1, 1, 1)] -void unused_entry_point() { - return; +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); } +[numthreads(1, 1, 1)] void f() { matrix m = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); - const matrix m_1 = matrix(m); + tint_symbol_store(0u, matrix(m)); + return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000166E0AB4590(3,44-52): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000166E0AB4590(4,3-19): error X3018: invalid subscript 'Store' + diff --git a/test/tint/expressions/type_ctor/mat2x4/load/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/load/f16.wgsl.expected.ir.fxc.hlsl index beb0f587b42..cee5d2bfc75 100644 --- a/test/tint/expressions/type_ctor/mat2x4/load/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/load/f16.wgsl.expected.ir.fxc.hlsl @@ -14,6 +14,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DFC55FF3C0(3,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001DFC55FF3C0(4,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000027332780690(3,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027332780690(4,3-19): error X3018: invalid subscript 'Store' diff --git a/test/tint/expressions/type_ctor/mat2x4/zero/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/zero/f16.wgsl.expected.fxc.hlsl index d0de80aafc1..af2e1c47eee 100644 --- a/test/tint/expressions/type_ctor/mat2x4/zero/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/zero/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,18 @@ SKIP: FAILED +static matrix m = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002ABB8586E20(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); diff --git a/test/tint/expressions/type_ctor/mat2x4/zero/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat2x4/zero/f16.wgsl.expected.ir.fxc.hlsl index 2e7670601e1..298d1b6e209 100644 --- a/test/tint/expressions/type_ctor/mat2x4/zero/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/zero/f16.wgsl.expected.ir.fxc.hlsl @@ -14,5 +14,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000153495B96E0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000024B6A72CFB0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f16.wgsl.expected.fxc.hlsl index e6b2ea49def..494c95a897d 100644 --- a/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023774F6DDB0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl index 486899df02b..132a76190a8 100644 --- a/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001616922F9C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022EE0133C10(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl index d40eae84a9f..6e24d6539f4 100644 --- a/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021662718120(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl index c3512f979ad..6058d6626c3 100644 --- a/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000011010DCF7D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002188E95B9C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl index d40eae84a9f..407aa1b4b0b 100644 --- a/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F500BBFF80(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl index b45e80a1ffe..cae86ad453d 100644 --- a/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C5E4390DF0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E8F1B25ED0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f16.wgsl.expected.fxc.hlsl index e6b2ea49def..cdff9b724b3 100644 --- a/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001199821A970(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl index d69a7396e6f..6bd680c99ed 100644 --- a/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F7734C4860(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000141CBCF8FB0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl index d40eae84a9f..0ed32e3ff9f 100644 --- a/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020B2984D620(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl index 6e9f96f6542..79c5009e714 100644 --- a/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000298C3DFF7C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F56F2660A0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl index d40eae84a9f..d3ef8fcaa07 100644 --- a/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020C3D71D4D0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl index d0e71f38a08..754eed67e4b 100644 --- a/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EF833B0430(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F511F79140(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x2/load/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/load/f16.wgsl.expected.fxc.hlsl index 8df684e7e9f..2da58f16d45 100644 --- a/test/tint/expressions/type_ctor/mat3x2/load/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/load/f16.wgsl.expected.fxc.hlsl @@ -1,11 +1,20 @@ SKIP: FAILED -[numthreads(1, 1, 1)] -void unused_entry_point() { - return; +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); } +[numthreads(1, 1, 1)] void f() { matrix m = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); - const matrix m_1 = matrix(m); + tint_symbol_store(0u, matrix(m)); + return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F6DB8DBA70(3,44-52): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F6DB8DBA70(4,3-19): error X3018: invalid subscript 'Store' + diff --git a/test/tint/expressions/type_ctor/mat3x2/load/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/load/f16.wgsl.expected.ir.fxc.hlsl index 1635d9ce4cb..3882401c12c 100644 --- a/test/tint/expressions/type_ctor/mat3x2/load/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/load/f16.wgsl.expected.ir.fxc.hlsl @@ -15,6 +15,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022D7D77A150(3,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000022D7D77A150(4,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000023D21FA2BA0(3,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023D21FA2BA0(4,3-19): error X3018: invalid subscript 'Store' diff --git a/test/tint/expressions/type_ctor/mat3x2/zero/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/zero/f16.wgsl.expected.fxc.hlsl index 46094960229..fb73494c7ac 100644 --- a/test/tint/expressions/type_ctor/mat3x2/zero/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/zero/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028E8190AF90(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); diff --git a/test/tint/expressions/type_ctor/mat3x2/zero/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x2/zero/f16.wgsl.expected.ir.fxc.hlsl index cec0c7fa801..caadfd03c6c 100644 --- a/test/tint/expressions/type_ctor/mat3x2/zero/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/zero/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028EDF099F50(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B71E9448F0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f16.wgsl.expected.fxc.hlsl index ba83be16ac6..a709effba64 100644 --- a/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000024382675CD0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl index ff07ca3a0d6..b3dc3aa14e7 100644 --- a/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019E663E9690(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000266EEC7AFE0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl index ee1d957f7ac..9ec843f07e7 100644 --- a/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000257763ED5C0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl index 04ebe0e63b3..05e4d43c497 100644 --- a/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024FDA57F160(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001855535D280(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl index ee1d957f7ac..fe2c51fcaf5 100644 --- a/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000198A0614110(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl index c5bd97d9e11..0d80a2de4f7 100644 --- a/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D524841730(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B09DC25C20(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f16.wgsl.expected.fxc.hlsl index ba83be16ac6..a7bf0c5bc4e 100644 --- a/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A8733B5CC0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl index 210a3a022ce..729939d0b96 100644 --- a/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021E1C9D9660(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000187531338C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl index ee1d957f7ac..1cb7853ab9e 100644 --- a/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020DCA5B5CD0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl index 393f5892bd9..9e4963cdfa6 100644 --- a/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001C790119380(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D9AAB39000(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl index ee1d957f7ac..355b4b97d63 100644 --- a/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000283842CD4E0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl index 9abfb0c7907..b7b6e64e137 100644 --- a/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000179C6E2F7C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001736A659BD0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x3/load/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/load/f16.wgsl.expected.fxc.hlsl index 5895271610d..41f0a7d0c08 100644 --- a/test/tint/expressions/type_ctor/mat3x3/load/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/load/f16.wgsl.expected.fxc.hlsl @@ -1,11 +1,20 @@ SKIP: FAILED -[numthreads(1, 1, 1)] -void unused_entry_point() { - return; +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); } +[numthreads(1, 1, 1)] void f() { matrix m = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); - const matrix m_1 = matrix(m); + tint_symbol_store(0u, matrix(m)); + return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000224CCD35C10(3,44-52): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000224CCD35C10(4,3-19): error X3018: invalid subscript 'Store' + diff --git a/test/tint/expressions/type_ctor/mat3x3/load/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/load/f16.wgsl.expected.ir.fxc.hlsl index 225f60e66a4..97f17ade0c8 100644 --- a/test/tint/expressions/type_ctor/mat3x3/load/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/load/f16.wgsl.expected.ir.fxc.hlsl @@ -15,6 +15,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E1E8819500(3,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001E1E8819500(4,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001C467C00760(3,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C467C00760(4,3-19): error X3018: invalid subscript 'Store' diff --git a/test/tint/expressions/type_ctor/mat3x3/zero/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/zero/f16.wgsl.expected.fxc.hlsl index a6189431d66..b82980feba7 100644 --- a/test/tint/expressions/type_ctor/mat3x3/zero/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/zero/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C56B2CD510(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); diff --git a/test/tint/expressions/type_ctor/mat3x3/zero/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x3/zero/f16.wgsl.expected.ir.fxc.hlsl index 3c730b25fbb..358ab086475 100644 --- a/test/tint/expressions/type_ctor/mat3x3/zero/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/zero/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000218244AFB70(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EB793764D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f16.wgsl.expected.fxc.hlsl index 0791b2e2253..0f9a4b37472 100644 --- a/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CA3F84D510(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl index 908d8c46bdb..84bfec5c597 100644 --- a/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019E3FF4F130(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000016975533ED0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl index 97fccc142cb..b9117ea61ca 100644 --- a/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020939548F50(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl index fda05518d31..06414d097cf 100644 --- a/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FD9B8EF0F0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027CE2FAE050(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl index 97fccc142cb..fed305ff5e1 100644 --- a/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017C123EFE80(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl index 149064188c1..308a1321d97 100644 --- a/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000230D871EEF0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000262D25CFC10(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f16.wgsl.expected.fxc.hlsl index 0791b2e2253..2f6001bc6e9 100644 --- a/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000238F0BC8360(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl index ccdb3517f22..676917c7f74 100644 --- a/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000294E05CF540(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001EE83EA5680(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl index 97fccc142cb..752e67d28ed 100644 --- a/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000014C12E4D600(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl index 6cca4425bb0..8a9ecbd7a16 100644 --- a/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017725129C20(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000216C18CAFE0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl index 97fccc142cb..af8bc0407fc 100644 --- a/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001C8D6FBFAC0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); diff --git a/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl index b049a541b4c..b7372bd38ab 100644 --- a/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002189623EEE0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000028942EA6E60(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat3x4/load/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/load/f16.wgsl.expected.fxc.hlsl index 0381851b078..7d19804bdcd 100644 --- a/test/tint/expressions/type_ctor/mat3x4/load/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/load/f16.wgsl.expected.fxc.hlsl @@ -1,11 +1,20 @@ SKIP: FAILED -[numthreads(1, 1, 1)] -void unused_entry_point() { - return; +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); } +[numthreads(1, 1, 1)] void f() { matrix m = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); - const matrix m_1 = matrix(m); + tint_symbol_store(0u, matrix(m)); + return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BB4645FA60(3,44-52): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BB4645FA60(4,3-19): error X3018: invalid subscript 'Store' + diff --git a/test/tint/expressions/type_ctor/mat3x4/load/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/load/f16.wgsl.expected.ir.fxc.hlsl index 2a05b3d7619..174f8a2995f 100644 --- a/test/tint/expressions/type_ctor/mat3x4/load/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/load/f16.wgsl.expected.ir.fxc.hlsl @@ -15,6 +15,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000224354C9700(3,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x00000224354C9700(4,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000002D0CE96C140(3,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002D0CE96C140(4,3-19): error X3018: invalid subscript 'Store' diff --git a/test/tint/expressions/type_ctor/mat3x4/zero/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/zero/f16.wgsl.expected.fxc.hlsl index 8df74eea0dc..1edcb2ae26e 100644 --- a/test/tint/expressions/type_ctor/mat3x4/zero/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/zero/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,19 @@ SKIP: FAILED +static matrix m = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000221FEA3F970(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); diff --git a/test/tint/expressions/type_ctor/mat3x4/zero/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat3x4/zero/f16.wgsl.expected.ir.fxc.hlsl index a6d5f852a95..31c495ccaf6 100644 --- a/test/tint/expressions/type_ctor/mat3x4/zero/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/zero/f16.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000207A4C0A200(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000134C55E6320(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f16.wgsl.expected.fxc.hlsl index 040984ab45f..820b3a58965 100644 --- a/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); + tint_symbol.Store >((offset + 12u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D43F35BA20(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl index e820ca5fbd4..7675600c46f 100644 --- a/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017BC207EF70(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FAEAB52A90(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl index b6f8540ff16..0392e42ca82 100644 --- a/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); + tint_symbol.Store >((offset + 12u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F5F2BD38F0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl index 7e7a2875134..ffe199d0597 100644 --- a/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000230351CF690(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000021B4AE21760(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl index b6f8540ff16..c6949c14db9 100644 --- a/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); + tint_symbol.Store >((offset + 12u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025A444D3B00(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl index 7eaf4833d81..ff49c6d7472 100644 --- a/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EA7348E650(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001F2BED64FC0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f16.wgsl.expected.fxc.hlsl index 040984ab45f..ce53875945b 100644 --- a/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); + tint_symbol.Store >((offset + 12u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000025A7308B1E0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl index 9bd3c329bd8..df507481e93 100644 --- a/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000279E023FB70(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002369E888FB0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl index b6f8540ff16..b4b1640ddb4 100644 --- a/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); + tint_symbol.Store >((offset + 12u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002A94FB9BB10(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl index 8fca60e2868..3ad6c02a1da 100644 --- a/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C345AAF7C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D8E9DE5A50(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl index b6f8540ff16..c7988e1ddff 100644 --- a/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); + tint_symbol.Store >((offset + 12u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018A247E6620(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h)), vector(float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl index e1922be8627..1883bafa6f2 100644 --- a/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000175EB7924C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022159A5B920(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x2/load/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/load/f16.wgsl.expected.fxc.hlsl index 6429ca07b2c..018a0aa5391 100644 --- a/test/tint/expressions/type_ctor/mat4x2/load/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/load/f16.wgsl.expected.fxc.hlsl @@ -1,11 +1,21 @@ SKIP: FAILED -[numthreads(1, 1, 1)] -void unused_entry_point() { - return; +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); + tint_symbol.Store >((offset + 12u), value[3u]); } +[numthreads(1, 1, 1)] void f() { matrix m = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); - const matrix m_1 = matrix(m); + tint_symbol_store(0u, matrix(m)); + return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022019755E50(3,44-52): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022019755E50(4,3-19): error X3018: invalid subscript 'Store' + diff --git a/test/tint/expressions/type_ctor/mat4x2/load/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/load/f16.wgsl.expected.ir.fxc.hlsl index 3a16cea0576..01364f7d8cc 100644 --- a/test/tint/expressions/type_ctor/mat4x2/load/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/load/f16.wgsl.expected.ir.fxc.hlsl @@ -16,6 +16,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028D7F46F7B0(3,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000028D7F46F7B0(4,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x0000015E03F48DE0(3,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000015E03F48DE0(4,3-19): error X3018: invalid subscript 'Store' diff --git a/test/tint/expressions/type_ctor/mat4x2/zero/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/zero/f16.wgsl.expected.fxc.hlsl index b8120024b11..c27055d6d9a 100644 --- a/test/tint/expressions/type_ctor/mat4x2/zero/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/zero/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 4u), value[1u]); + tint_symbol.Store >((offset + 8u), value[2u]); + tint_symbol.Store >((offset + 12u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000247EABECFC0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); diff --git a/test/tint/expressions/type_ctor/mat4x2/zero/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x2/zero/f16.wgsl.expected.ir.fxc.hlsl index 67a113cafcd..20fbf96982b 100644 --- a/test/tint/expressions/type_ctor/mat4x2/zero/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/zero/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A25C4D9150(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000260AAC8BAF0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f16.wgsl.expected.fxc.hlsl index b00229e968d..f62ee93f47b 100644 --- a/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001328C3A34D0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl index 3d8ca52b08f..04408c94b8e 100644 --- a/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E29AA8F7F0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A88AB0E090(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl index 7e5aa836273..66c9b0c7f55 100644 --- a/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000198287C19B0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl index 70ac06e1920..72d7969dfe1 100644 --- a/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DE12F19B10(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001A8B9298FB0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl index 7e5aa836273..0889353a61f 100644 --- a/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000146044A6C80(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl index 0b7d68fcb62..2bbc1036dba 100644 --- a/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000026F678E2EA0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002934A059570(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f16.wgsl.expected.fxc.hlsl index b00229e968d..4c0d330c72f 100644 --- a/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000193EB424910(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl index d3477179b6b..b2453855ecd 100644 --- a/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002B96067E770(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FD7AF24E50(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl index 7e5aa836273..b56fc11a47f 100644 --- a/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018D623356F0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl index efd4e908b4b..2e1f0e5c694 100644 --- a/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x00000241F14AF7C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002811AB0D2B0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl index 7e5aa836273..9f69a463929 100644 --- a/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CC9A2F3B50(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)), vector(float16_t(3.0h), float16_t(4.0h), float16_t(5.0h)), vector(float16_t(6.0h), float16_t(7.0h), float16_t(8.0h)), vector(float16_t(9.0h), float16_t(10.0h), float16_t(11.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl index 2cc9bd7cc14..bdf9d2c3081 100644 --- a/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000002464266FB50(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000014829E23A60(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x3/load/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/load/f16.wgsl.expected.fxc.hlsl index cf0aa2c3f3d..dd27d40e88e 100644 --- a/test/tint/expressions/type_ctor/mat4x3/load/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/load/f16.wgsl.expected.fxc.hlsl @@ -1,11 +1,21 @@ SKIP: FAILED -[numthreads(1, 1, 1)] -void unused_entry_point() { - return; +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); } +[numthreads(1, 1, 1)] void f() { matrix m = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); - const matrix m_1 = matrix(m); + tint_symbol_store(0u, matrix(m)); + return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023B41E45F40(3,44-52): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000023B41E45F40(4,3-19): error X3018: invalid subscript 'Store' + diff --git a/test/tint/expressions/type_ctor/mat4x3/load/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/load/f16.wgsl.expected.ir.fxc.hlsl index 98ccb7fc633..984141b164e 100644 --- a/test/tint/expressions/type_ctor/mat4x3/load/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/load/f16.wgsl.expected.ir.fxc.hlsl @@ -16,6 +16,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000015641DCA030(3,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x0000015641DCA030(4,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000002B15E7EB170(3,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B15E7EB170(4,3-19): error X3018: invalid subscript 'Store' diff --git a/test/tint/expressions/type_ctor/mat4x3/zero/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/zero/f16.wgsl.expected.fxc.hlsl index 819bef3be0d..be751d4a210 100644 --- a/test/tint/expressions/type_ctor/mat4x3/zero/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/zero/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021C0BA5B6E0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); diff --git a/test/tint/expressions/type_ctor/mat4x3/zero/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x3/zero/f16.wgsl.expected.ir.fxc.hlsl index 6dd08496d36..add0c24e5a4 100644 --- a/test/tint/expressions/type_ctor/mat4x3/zero/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/zero/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023B11BB9200(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001C51E35BB00(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f16.wgsl.expected.fxc.hlsl index d144fd9ce79..2e9cbe615a3 100644 --- a/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CF0B070CB0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl index 2c5982971ef..f372a2caaae 100644 --- a/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/explicit/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001752AD6E510(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000235DA797810(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl index 197e408b209..a8e3ba91af5 100644 --- a/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002CC958A09B0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl index bb61dcfc309..d0892b16fdd 100644 --- a/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/explicit/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020EBA7C1590(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000227135CB3E0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl index 197e408b209..eaaef3f8a28 100644 --- a/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001FA8F343B80(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl index d048faf745a..75dbda72565 100644 --- a/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/explicit/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027440F6FD20(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D262C37190(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f16.wgsl.expected.fxc.hlsl index d144fd9ce79..a13ef299325 100644 --- a/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f16.wgsl.expected.fxc.hlsl @@ -1,13 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, matrix(m)); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000163EA28BC30(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); - -matrix f() { - const matrix m_1 = matrix(m); - return m_1; -} diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl index 75af5ddd54c..a767440a393 100644 --- a/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/identity/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DDB22AF410(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000027EF57D6000(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl index 197e408b209..4b76e3e918c 100644 --- a/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002296E140FF0(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl index 1ed5f1bda19..520770faf79 100644 --- a/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/scalars/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x0000020E3348F9D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E44A0E3C00(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl index 197e408b209..b3d25755883 100644 --- a/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018429F7B050(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix(vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)), vector(float16_t(4.0h), float16_t(5.0h), float16_t(6.0h), float16_t(7.0h)), vector(float16_t(8.0h), float16_t(9.0h), float16_t(10.0h), float16_t(11.0h)), vector(float16_t(12.0h), float16_t(13.0h), float16_t(14.0h), float16_t(15.0h))); diff --git a/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl index 584c88bbf9c..8a60467106a 100644 --- a/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/inferred/vectors/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E08CFFE260(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000019700504900(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/mat4x4/load/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/load/f16.wgsl.expected.fxc.hlsl index e087223e0ee..2e4f4500d0f 100644 --- a/test/tint/expressions/type_ctor/mat4x4/load/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/load/f16.wgsl.expected.fxc.hlsl @@ -1,11 +1,21 @@ SKIP: FAILED -[numthreads(1, 1, 1)] -void unused_entry_point() { - return; +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); } +[numthreads(1, 1, 1)] void f() { matrix m = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); - const matrix m_1 = matrix(m); + tint_symbol_store(0u, matrix(m)); + return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002E19E52FD80(3,44-52): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002E19E52FD80(4,3-19): error X3018: invalid subscript 'Store' + diff --git a/test/tint/expressions/type_ctor/mat4x4/load/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/load/f16.wgsl.expected.ir.fxc.hlsl index 34499b0953f..17fbd3948e2 100644 --- a/test/tint/expressions/type_ctor/mat4x4/load/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/load/f16.wgsl.expected.ir.fxc.hlsl @@ -16,6 +16,6 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B7425992F0(3,28-36): error X3000: syntax error: unexpected token 'float16_t' -C:\src\dawn\Shader@0x000001B7425992F0(4,3-19): error X3018: invalid subscript 'Store' +C:\src\dawn\Shader@0x000001BA7AA66AA0(3,28-36): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001BA7AA66AA0(4,3-19): error X3018: invalid subscript 'Store' diff --git a/test/tint/expressions/type_ctor/mat4x4/zero/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/zero/f16.wgsl.expected.fxc.hlsl index 9b27b6ac361..67c5ff626a0 100644 --- a/test/tint/expressions/type_ctor/mat4x4/zero/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/zero/f16.wgsl.expected.fxc.hlsl @@ -1,8 +1,20 @@ SKIP: FAILED +static matrix m = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); +RWByteAddressBuffer tint_symbol : register(u0); + +void tint_symbol_store(uint offset, matrix value) { + tint_symbol.Store >((offset + 0u), value[0u]); + tint_symbol.Store >((offset + 8u), value[1u]); + tint_symbol.Store >((offset + 16u), value[2u]); + tint_symbol.Store >((offset + 24u), value[3u]); +} + [numthreads(1, 1, 1)] -void unused_entry_point() { +void f() { + tint_symbol_store(0u, m); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000220452F0110(1,15-23): error X3000: syntax error: unexpected token 'float16_t' -static matrix m = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); diff --git a/test/tint/expressions/type_ctor/mat4x4/zero/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/mat4x4/zero/f16.wgsl.expected.ir.fxc.hlsl index 9044739c831..a141d08638c 100644 --- a/test/tint/expressions/type_ctor/mat4x4/zero/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/zero/f16.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001275A159200(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000186954C38C0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/vec2/explicit/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec2/explicit/f16.wgsl.expected.fxc.hlsl index 3b215425b75..1e56546ce82 100644 --- a/test/tint/expressions/type_ctor/vec2/explicit/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec2/explicit/f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector v = vector(float16_t(0.0h), float16_t(1.0h)); +FXC validation failure: +C:\src\dawn\Shader@0x00000179878F5E70(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_ctor/vec2/explicit/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/vec2/explicit/f16.wgsl.expected.ir.fxc.hlsl index 0521b3a988f..8120f6b56cb 100644 --- a/test/tint/expressions/type_ctor/vec2/explicit/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec2/explicit/f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000134E6B7AFB0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000117167E80E0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/vec2/inferred/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/f16.wgsl.expected.fxc.hlsl index 3b215425b75..3aeedc6d212 100644 --- a/test/tint/expressions/type_ctor/vec2/inferred/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec2/inferred/f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector v = vector(float16_t(0.0h), float16_t(1.0h)); +FXC validation failure: +C:\src\dawn\Shader@0x000001CB275387A0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_ctor/vec2/inferred/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/vec2/inferred/f16.wgsl.expected.ir.fxc.hlsl index adf1096d358..4f048314fbd 100644 --- a/test/tint/expressions/type_ctor/vec2/inferred/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec2/inferred/f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BE878CADA0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002AD19956760(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/vec3/explicit/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec3/explicit/f16.wgsl.expected.fxc.hlsl index 4d1b912c498..b657dfc08c8 100644 --- a/test/tint/expressions/type_ctor/vec3/explicit/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec3/explicit/f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector v = vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)); +FXC validation failure: +C:\src\dawn\Shader@0x000001FC463A4940(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_ctor/vec3/explicit/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/vec3/explicit/f16.wgsl.expected.ir.fxc.hlsl index b0664ccad23..d3329429383 100644 --- a/test/tint/expressions/type_ctor/vec3/explicit/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec3/explicit/f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EF2BE3AFB0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002895B664970(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/vec3/inferred/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/f16.wgsl.expected.fxc.hlsl index 4d1b912c498..7c562198479 100644 --- a/test/tint/expressions/type_ctor/vec3/inferred/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec3/inferred/f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector v = vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h)); +FXC validation failure: +C:\src\dawn\Shader@0x000002709ECE4940(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_ctor/vec3/inferred/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/vec3/inferred/f16.wgsl.expected.ir.fxc.hlsl index 187aaf5da2e..4abb23e30a1 100644 --- a/test/tint/expressions/type_ctor/vec3/inferred/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec3/inferred/f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000226124FAFB0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002BCAF5487D0(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/vec4/explicit/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec4/explicit/f16.wgsl.expected.fxc.hlsl index 6eae794b3b2..be6dba69d94 100644 --- a/test/tint/expressions/type_ctor/vec4/explicit/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec4/explicit/f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector v = vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); +FXC validation failure: +C:\src\dawn\Shader@0x0000023B35287600(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_ctor/vec4/explicit/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/vec4/explicit/f16.wgsl.expected.ir.fxc.hlsl index cb7004c1688..9198cbad342 100644 --- a/test/tint/expressions/type_ctor/vec4/explicit/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec4/explicit/f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F052751570(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000239679A7E90(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/type_ctor/vec4/inferred/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/f16.wgsl.expected.fxc.hlsl index 6eae794b3b2..750b2388e0a 100644 --- a/test/tint/expressions/type_ctor/vec4/inferred/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec4/inferred/f16.wgsl.expected.fxc.hlsl @@ -6,3 +6,6 @@ void unused_entry_point() { } static vector v = vector(float16_t(0.0h), float16_t(1.0h), float16_t(2.0h), float16_t(3.0h)); +FXC validation failure: +C:\src\dawn\Shader@0x0000026010BCFEB0(6,15-23): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/type_ctor/vec4/inferred/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/type_ctor/vec4/inferred/f16.wgsl.expected.ir.fxc.hlsl index 6cb6fbedd98..6c96b64994f 100644 --- a/test/tint/expressions/type_ctor/vec4/inferred/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/type_ctor/vec4/inferred/f16.wgsl.expected.ir.fxc.hlsl @@ -7,5 +7,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F094FD9150(2,15-23): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001FE7720FB50(2,15-23): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/array/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/array/f16.wgsl.expected.fxc.hlsl index 1c44d181931..db57b23a297 100644 --- a/test/tint/expressions/zero_init/array/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/array/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,7 @@ void unused_entry_point() { void f() { float16_t v[4] = (float16_t[4])0; } +FXC validation failure: +C:\src\dawn\Shader@0x00000273A5B065E0(7,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000273A5B065E0(7,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/zero_init/array/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/array/f16.wgsl.expected.ir.fxc.hlsl index 8d8922177a0..1647721dfd5 100644 --- a/test/tint/expressions/zero_init/array/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/array/f16.wgsl.expected.ir.fxc.hlsl @@ -10,6 +10,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023BFC8B0220(3,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000023BFC8B0220(3,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x000001E301426590(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E301426590(3,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/zero_init/mat2x2/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat2x2/f16.wgsl.expected.fxc.hlsl index 6a5e9af5973..f4417c6cc8f 100644 --- a/test/tint/expressions/zero_init/mat2x2/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat2x2/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { matrix v = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx); } +FXC validation failure: +C:\src\dawn\Shader@0x00000225ADAB4940(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/mat2x2/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/mat2x2/f16.wgsl.expected.ir.fxc.hlsl index 32cb9d793d6..358d0f1c978 100644 --- a/test/tint/expressions/zero_init/mat2x2/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat2x2/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CD0555FB60(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E2B3E809D0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/mat2x3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat2x3/f16.wgsl.expected.fxc.hlsl index d04d09d5e1f..d06a47c3a04 100644 --- a/test/tint/expressions/zero_init/mat2x3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat2x3/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { matrix v = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); } +FXC validation failure: +C:\src\dawn\Shader@0x000002959E451A00(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/mat2x3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/mat2x3/f16.wgsl.expected.ir.fxc.hlsl index 19d839e808b..34148567364 100644 --- a/test/tint/expressions/zero_init/mat2x3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat2x3/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000194216EFB60(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001CC6C240BE0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/mat2x4/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat2x4/f16.wgsl.expected.fxc.hlsl index 431ef8ea01b..3fc4a1e0d27 100644 --- a/test/tint/expressions/zero_init/mat2x4/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat2x4/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { matrix v = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); } +FXC validation failure: +C:\src\dawn\Shader@0x000001FDC6CFFE70(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/mat2x4/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/mat2x4/f16.wgsl.expected.ir.fxc.hlsl index 03fbb66389f..42df164439e 100644 --- a/test/tint/expressions/zero_init/mat2x4/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat2x4/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024EA5F81040(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002B2BE944950(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/mat3x2/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat3x2/f16.wgsl.expected.fxc.hlsl index 22a7119dab8..71f4bf778cf 100644 --- a/test/tint/expressions/zero_init/mat3x2/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat3x2/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { matrix v = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); } +FXC validation failure: +C:\src\dawn\Shader@0x000001D1924F2E20(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/mat3x2/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/mat3x2/f16.wgsl.expected.ir.fxc.hlsl index 21b51e96b26..c62bb5e4ef9 100644 --- a/test/tint/expressions/zero_init/mat3x2/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat3x2/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x00000253819191E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001B6B0B0B140(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/mat3x3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat3x3/f16.wgsl.expected.fxc.hlsl index 619fb073dc3..c02d9231b37 100644 --- a/test/tint/expressions/zero_init/mat3x3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat3x3/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { matrix v = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); } +FXC validation failure: +C:\src\dawn\Shader@0x0000010D9CDA25A0(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/mat3x3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/mat3x3/f16.wgsl.expected.ir.fxc.hlsl index b2ebab36837..e4627ce95c2 100644 --- a/test/tint/expressions/zero_init/mat3x3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat3x3/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002D301700800(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001ACFEFA2C90(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/mat3x4/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat3x4/f16.wgsl.expected.fxc.hlsl index 6a0e669cea8..3c8b3d14979 100644 --- a/test/tint/expressions/zero_init/mat3x4/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat3x4/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { matrix v = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); } +FXC validation failure: +C:\src\dawn\Shader@0x000001F3E51C26B0(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/mat3x4/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/mat3x4/f16.wgsl.expected.ir.fxc.hlsl index c37f742a58b..7cd7e5bf634 100644 --- a/test/tint/expressions/zero_init/mat3x4/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat3x4/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027CDD6C13F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002288DB61FD0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/mat4x2/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat4x2/f16.wgsl.expected.fxc.hlsl index bc445b6cbcd..1fea50e8150 100644 --- a/test/tint/expressions/zero_init/mat4x2/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat4x2/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { matrix v = matrix((float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx, (float16_t(0.0h)).xx); } +FXC validation failure: +C:\src\dawn\Shader@0x0000020ED8906540(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/mat4x2/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/mat4x2/f16.wgsl.expected.ir.fxc.hlsl index 163dba98a23..5a6467c7f94 100644 --- a/test/tint/expressions/zero_init/mat4x2/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat4x2/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019EF55A1150(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022DF467FE80(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/mat4x3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat4x3/f16.wgsl.expected.fxc.hlsl index c90fe14ab5e..253feabec65 100644 --- a/test/tint/expressions/zero_init/mat4x3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat4x3/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { matrix v = matrix((float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx, (float16_t(0.0h)).xxx); } +FXC validation failure: +C:\src\dawn\Shader@0x00000157D7E6F950(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/mat4x3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/mat4x3/f16.wgsl.expected.ir.fxc.hlsl index f53be586c9b..ffd551cde52 100644 --- a/test/tint/expressions/zero_init/mat4x3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat4x3/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A84CCE96E0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000002461C82FBB0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/mat4x4/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/mat4x4/f16.wgsl.expected.fxc.hlsl index 60b425620a2..d881911fc36 100644 --- a/test/tint/expressions/zero_init/mat4x4/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat4x4/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { matrix v = matrix((float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx, (float16_t(0.0h)).xxxx); } +FXC validation failure: +C:\src\dawn\Shader@0x000002A6BDF63E70(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/mat4x4/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/mat4x4/f16.wgsl.expected.ir.fxc.hlsl index 22e94840eff..28509fb134e 100644 --- a/test/tint/expressions/zero_init/mat4x4/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/mat4x4/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001CA84CB9180(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x00000183319D6800(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/scalar/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/scalar/f16.wgsl.expected.fxc.hlsl index 5de9529a22b..c32fda9cc1c 100644 --- a/test/tint/expressions/zero_init/scalar/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/scalar/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,7 @@ void unused_entry_point() { void f() { float16_t v = float16_t(0.0h); } +FXC validation failure: +C:\src\dawn\Shader@0x000001B65B3665B0(7,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001B65B3665B0(7,13): error X3000: unrecognized identifier 'v' + diff --git a/test/tint/expressions/zero_init/scalar/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/scalar/f16.wgsl.expected.ir.fxc.hlsl index 9264800bc1b..0fbe172e3ec 100644 --- a/test/tint/expressions/zero_init/scalar/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/scalar/f16.wgsl.expected.ir.fxc.hlsl @@ -10,6 +10,6 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022650BBFFD0(3,3-11): error X3000: unrecognized identifier 'float16_t' -C:\src\dawn\Shader@0x0000022650BBFFD0(3,13): error X3000: unrecognized identifier 'v' +C:\src\dawn\Shader@0x000002286ECA7890(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002286ECA7890(3,13): error X3000: unrecognized identifier 'v' diff --git a/test/tint/expressions/zero_init/vec2/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec2/f16.wgsl.expected.fxc.hlsl index 8ba295ae322..1d33a9fe975 100644 --- a/test/tint/expressions/zero_init/vec2/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/vec2/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { vector v = (float16_t(0.0h)).xx; } +FXC validation failure: +C:\src\dawn\Shader@0x000001780C680B30(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/vec2/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/vec2/f16.wgsl.expected.ir.fxc.hlsl index d3eea90a5fa..062f9b56f28 100644 --- a/test/tint/expressions/zero_init/vec2/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/vec2/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FD5DCA0330(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001588F010B40(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/vec3/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec3/f16.wgsl.expected.fxc.hlsl index dc53989baf3..c9bf6a2dd74 100644 --- a/test/tint/expressions/zero_init/vec3/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/vec3/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { vector v = (float16_t(0.0h)).xxx; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D424D46260(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/vec3/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/vec3/f16.wgsl.expected.ir.fxc.hlsl index 4f945e2ed4c..4ded198e8ee 100644 --- a/test/tint/expressions/zero_init/vec3/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/vec3/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x000001DF51E9DF50(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D486B580B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/expressions/zero_init/vec4/f16.wgsl.expected.fxc.hlsl b/test/tint/expressions/zero_init/vec4/f16.wgsl.expected.fxc.hlsl index 193c3391bb1..a5c31f6c2fc 100644 --- a/test/tint/expressions/zero_init/vec4/f16.wgsl.expected.fxc.hlsl +++ b/test/tint/expressions/zero_init/vec4/f16.wgsl.expected.fxc.hlsl @@ -8,3 +8,6 @@ void unused_entry_point() { void f() { vector v = (float16_t(0.0h)).xxxx; } +FXC validation failure: +C:\src\dawn\Shader@0x000002192FD055D0(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/expressions/zero_init/vec4/f16.wgsl.expected.ir.fxc.hlsl b/test/tint/expressions/zero_init/vec4/f16.wgsl.expected.ir.fxc.hlsl index 81fe2d3a435..82de4ed7d19 100644 --- a/test/tint/expressions/zero_init/vec4/f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/expressions/zero_init/vec4/f16.wgsl.expected.ir.fxc.hlsl @@ -10,5 +10,5 @@ void unused_entry_point() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024D295003F0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x0000022041C780B0(3,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.dxc.hlsl index 753dc3329ce..24db2044b26 100644 --- a/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.dxc.hlsl @@ -16,7 +16,7 @@ fn f(@builtin(position) pos : vec4f, @color(0) fbf : vec4f, tint_symbol : In) { g(pos.x, fbf.x, tint_symbol.uv.x); } -Failed to generate: extensions/texel_fetch/additional_params/a.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/a.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.fxc.hlsl index 753dc3329ce..24db2044b26 100644 --- a/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.fxc.hlsl @@ -16,7 +16,7 @@ fn f(@builtin(position) pos : vec4f, @color(0) fbf : vec4f, tint_symbol : In) { g(pos.x, fbf.x, tint_symbol.uv.x); } -Failed to generate: extensions/texel_fetch/additional_params/a.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/a.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.ir.fxc.hlsl index 6bb12f156e8..5554173b2ca 100644 --- a/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/a.wgsl.expected.ir.fxc.hlsl @@ -25,5 +25,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000002424654F860(19,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000001A73282A350(19,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.dxc.hlsl index e099cd703f9..0347dae5899 100644 --- a/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.dxc.hlsl @@ -11,7 +11,7 @@ fn f(@builtin(position) pos : vec4f, @location(0) uv : vec4f, @color(0) fbf : ve g(pos.x, uv.x, fbf.x); } -Failed to generate: extensions/texel_fetch/additional_params/b.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/b.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.fxc.hlsl index e099cd703f9..0347dae5899 100644 --- a/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.fxc.hlsl @@ -11,7 +11,7 @@ fn f(@builtin(position) pos : vec4f, @location(0) uv : vec4f, @color(0) fbf : ve g(pos.x, uv.x, fbf.x); } -Failed to generate: extensions/texel_fetch/additional_params/b.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/b.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.ir.fxc.hlsl index aae6cd4c63b..ba4996cd21c 100644 --- a/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/b.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000241CA6BE5C0(15,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000002196870B850(15,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.dxc.hlsl index 5d6590c2d24..8fff13de1d7 100644 --- a/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.dxc.hlsl @@ -20,7 +20,7 @@ fn f(tint_symbol : In) { g(tint_symbol.pos.x, tint_symbol.uv.x, tint_symbol.fbf.y); } -Failed to generate: extensions/texel_fetch/additional_params/c.wgsl:2:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/c.wgsl:2:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.fxc.hlsl index 5d6590c2d24..8fff13de1d7 100644 --- a/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.fxc.hlsl @@ -20,7 +20,7 @@ fn f(tint_symbol : In) { g(tint_symbol.pos.x, tint_symbol.uv.x, tint_symbol.fbf.y); } -Failed to generate: extensions/texel_fetch/additional_params/c.wgsl:2:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/c.wgsl:2:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.ir.fxc.hlsl index c555d92a196..0a2ff86ed23 100644 --- a/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/c.wgsl.expected.ir.fxc.hlsl @@ -26,5 +26,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000002660673A030(21,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000001A8DE766710(21,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.dxc.hlsl index 20d76e76efc..41794004784 100644 --- a/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.dxc.hlsl @@ -16,7 +16,7 @@ fn f(@color(2) fbf_2 : vec4i, tint_symbol : In, @location(0) uv : vec4f, @color( g(fbf_2.z, tint_symbol.pos.x, uv.x, fbf_0.y); } -Failed to generate: extensions/texel_fetch/additional_params/d.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/d.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.fxc.hlsl index 20d76e76efc..41794004784 100644 --- a/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.fxc.hlsl @@ -16,7 +16,7 @@ fn f(@color(2) fbf_2 : vec4i, tint_symbol : In, @location(0) uv : vec4f, @color( g(fbf_2.z, tint_symbol.pos.x, uv.x, fbf_0.y); } -Failed to generate: extensions/texel_fetch/additional_params/d.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/d.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.ir.fxc.hlsl index 3c4940f7cfa..b15cc112a8d 100644 --- a/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.ir.fxc.hlsl @@ -25,5 +25,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000002699D249180(20,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000002222367FB60(20,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.dxc.hlsl index 11c7c517811..4e0ea3bd596 100644 --- a/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.dxc.hlsl @@ -18,7 +18,7 @@ fn f(tint_symbol : In) { fn g(a : i32, b : f32) { } -Failed to generate: extensions/texel_fetch/additional_params/e.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/e.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.fxc.hlsl index 11c7c517811..4e0ea3bd596 100644 --- a/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.fxc.hlsl @@ -18,7 +18,7 @@ fn f(tint_symbol : In) { fn g(a : i32, b : f32) { } -Failed to generate: extensions/texel_fetch/additional_params/e.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/e.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.ir.fxc.hlsl index da20ab96c89..47837821b38 100644 --- a/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.ir.fxc.hlsl @@ -24,5 +24,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000022D4644F6D0(19,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x00000216F79A03E0(19,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.dxc.hlsl index a7c96513b6c..4bc4e9b097d 100644 --- a/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.dxc.hlsl @@ -16,7 +16,7 @@ fn f(tint_symbol : In, @color(2) fbf : vec4f) { g(tint_symbol.pos.x, fbf.g); } -Failed to generate: extensions/texel_fetch/additional_params/f.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/f.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.fxc.hlsl index a7c96513b6c..4bc4e9b097d 100644 --- a/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.fxc.hlsl @@ -16,7 +16,7 @@ fn f(tint_symbol : In, @color(2) fbf : vec4f) { g(tint_symbol.pos.x, fbf.g); } -Failed to generate: extensions/texel_fetch/additional_params/f.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/f.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.ir.fxc.hlsl index 629fb7d6223..aac82cae577 100644 --- a/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/f.wgsl.expected.ir.fxc.hlsl @@ -23,5 +23,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000002359560F6F0(18,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000001C985743FF0(18,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.dxc.hlsl index 3aed149cfd4..174bfaa9f16 100644 --- a/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.dxc.hlsl @@ -11,7 +11,7 @@ fn f(@color(3) fbf : vec4f, @builtin(position) pos : vec4f) { fn g(a : f32, b : f32) { } -Failed to generate: extensions/texel_fetch/additional_params/g.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/g.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.fxc.hlsl index 3aed149cfd4..174bfaa9f16 100644 --- a/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.fxc.hlsl @@ -11,7 +11,7 @@ fn f(@color(3) fbf : vec4f, @builtin(position) pos : vec4f) { fn g(a : f32, b : f32) { } -Failed to generate: extensions/texel_fetch/additional_params/g.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/g.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.ir.fxc.hlsl index 6e051c80f28..bfc7392834b 100644 --- a/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/g.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001EF83AEDEB0(14,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x0000024C1CD5D2B0(14,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.dxc.hlsl index 664d484db91..a2989e15c10 100644 --- a/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.dxc.hlsl @@ -18,7 +18,7 @@ fn f(@invariant @builtin(position) pos : vec4f, fbf : FBF) { fn g(a : f32, b : f32, c : i32) { } -Failed to generate: extensions/texel_fetch/additional_params/h.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/h.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.fxc.hlsl index 664d484db91..a2989e15c10 100644 --- a/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.fxc.hlsl @@ -18,7 +18,7 @@ fn f(@invariant @builtin(position) pos : vec4f, fbf : FBF) { fn g(a : f32, b : f32, c : i32) { } -Failed to generate: extensions/texel_fetch/additional_params/h.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/h.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.ir.fxc.hlsl index f45174e803d..3f7386b4591 100644 --- a/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.ir.fxc.hlsl @@ -26,5 +26,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000024797DF8F90(20,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000001F64F8AF860(20,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.dxc.hlsl index 8920f287192..bbaaa57bc01 100644 --- a/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.dxc.hlsl @@ -20,7 +20,7 @@ fn f(tint_symbol : In) { fn g(a : f32, b : f32, c : i32) { } -Failed to generate: extensions/texel_fetch/additional_params/i.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/i.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.fxc.hlsl index 8920f287192..bbaaa57bc01 100644 --- a/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.fxc.hlsl @@ -20,7 +20,7 @@ fn f(tint_symbol : In) { fn g(a : f32, b : f32, c : i32) { } -Failed to generate: extensions/texel_fetch/additional_params/i.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/i.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.ir.fxc.hlsl index a3e840d7819..9b48264b55d 100644 --- a/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.ir.fxc.hlsl @@ -26,5 +26,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000201CFD71870(21,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000001DBF0219000(21,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.dxc.hlsl index 13c910f2ae2..59cd673335a 100644 --- a/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.dxc.hlsl @@ -11,7 +11,7 @@ fn f(@location(0) a : vec4f, @interpolate(flat) @location(1) b : vec4f, @color(0 fn g(a : f32, b : f32, c : f32) { } -Failed to generate: extensions/texel_fetch/additional_params/j.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/j.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.fxc.hlsl index 13c910f2ae2..59cd673335a 100644 --- a/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.fxc.hlsl @@ -11,7 +11,7 @@ fn f(@location(0) a : vec4f, @interpolate(flat) @location(1) b : vec4f, @color(0 fn g(a : f32, b : f32, c : f32) { } -Failed to generate: extensions/texel_fetch/additional_params/j.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/additional_params/j.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.ir.fxc.hlsl index 6b6ae85b400..486b81c8a53 100644 --- a/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/additional_params/j.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000002B459F615D0(15,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x0000026B6F2A5D40(15,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.dxc.hlsl index fd054d5f4fd..9ddeed2c4df 100644 --- a/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.dxc.hlsl @@ -17,7 +17,7 @@ fn f(@color(1) fbf_1 : vec4f, @color(3) fbf_3 : vec4f) -> Out { return Out(fbf_1, vec4f(20), fbf_3); } -Failed to generate: extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.fxc.hlsl index fd054d5f4fd..9ddeed2c4df 100644 --- a/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.fxc.hlsl @@ -17,7 +17,7 @@ fn f(@color(1) fbf_1 : vec4f, @color(3) fbf_3 : vec4f) -> Out { return Out(fbf_1, vec4f(20), fbf_3); } -Failed to generate: extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.ir.fxc.hlsl index a7627f29f7d..8d1c56518d8 100644 --- a/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/multiple_outputs/multiple_inputs.wgsl.expected.ir.fxc.hlsl @@ -33,5 +33,5 @@ f_outputs f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000298CAECECE0(24,22-27): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000001EA84F05920(24,22-27): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.dxc.hlsl index 2b241969464..276b56674e1 100644 --- a/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.dxc.hlsl @@ -17,7 +17,7 @@ fn f(@color(0) fbf : vec4f) -> Out { return Out(vec4f(10), fbf, vec4f(30)); } -Failed to generate: extensions/texel_fetch/multiple_outputs/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.fxc.hlsl index 2b241969464..276b56674e1 100644 --- a/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.fxc.hlsl @@ -17,7 +17,7 @@ fn f(@color(0) fbf : vec4f) -> Out { return Out(vec4f(10), fbf, vec4f(30)); } -Failed to generate: extensions/texel_fetch/multiple_outputs/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.ir.fxc.hlsl index 2e74082138d..9d3e0e68839 100644 --- a/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/multiple_outputs/single_input.wgsl.expected.ir.fxc.hlsl @@ -32,5 +32,5 @@ f_outputs f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000028A17E49BD0(23,22-27): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x0000026B8A427FC0(23,22-27): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.dxc.hlsl index 5738e9c4dec..d7a1804bc6e 100644 --- a/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.dxc.hlsl @@ -8,7 +8,7 @@ fn f(@color(1) fbf_1 : vec4f, @color(3) fbf_3 : vec4f) -> @location(0) vec4f { return (fbf_1 + fbf_3); } -Failed to generate: extensions/texel_fetch/one_output/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.fxc.hlsl index 5738e9c4dec..d7a1804bc6e 100644 --- a/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.fxc.hlsl @@ -8,7 +8,7 @@ fn f(@color(1) fbf_1 : vec4f, @color(3) fbf_3 : vec4f) -> @location(0) vec4f { return (fbf_1 + fbf_3); } -Failed to generate: extensions/texel_fetch/one_output/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.ir.fxc.hlsl index 687f88eb461..247df1fb16d 100644 --- a/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/one_output/multiple_inputs.wgsl.expected.ir.fxc.hlsl @@ -20,5 +20,5 @@ f_outputs f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000221B6B449B0(15,22-27): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000001793A5A3740(15,22-27): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.dxc.hlsl index 1f7c39d80d4..9699fa80b94 100644 --- a/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.dxc.hlsl @@ -8,7 +8,7 @@ fn f(@color(0) fbf : vec4f) -> @location(0) vec4f { return fbf; } -Failed to generate: extensions/texel_fetch/one_output/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/one_output/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.fxc.hlsl index 1f7c39d80d4..9699fa80b94 100644 --- a/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.fxc.hlsl @@ -8,7 +8,7 @@ fn f(@color(0) fbf : vec4f) -> @location(0) vec4f { return fbf; } -Failed to generate: extensions/texel_fetch/one_output/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/one_output/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.ir.fxc.hlsl index f4f8a4e0745..54eacf19867 100644 --- a/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/one_output/single_input.wgsl.expected.ir.fxc.hlsl @@ -19,5 +19,5 @@ f_outputs f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000173F83B28A0(14,22-27): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x0000023A4A433F80(14,22-27): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.dxc.hlsl index fdbfaa4ff70..fd9a11f4fe4 100644 --- a/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.dxc.hlsl @@ -11,7 +11,7 @@ fn f(@color(1) fbf_1 : vec4f, @color(3) fbf_3 : vec4f) { fn g(a : f32, b : f32) { } -Failed to generate: extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.fxc.hlsl index fdbfaa4ff70..fd9a11f4fe4 100644 --- a/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.fxc.hlsl @@ -11,7 +11,7 @@ fn f(@color(1) fbf_1 : vec4f, @color(3) fbf_3 : vec4f) { fn g(a : f32, b : f32) { } -Failed to generate: extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.ir.fxc.hlsl index 540c8fbcce4..22cfeaed2c0 100644 --- a/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/zero_outputs/multiple_inputs.wgsl.expected.ir.fxc.hlsl @@ -18,5 +18,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000234BECCE570(14,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000001F9120D3D40(14,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.dxc.hlsl b/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.dxc.hlsl index 783f662244f..c3ff97cbec2 100644 --- a/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.dxc.hlsl +++ b/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.dxc.hlsl @@ -11,7 +11,7 @@ fn f(@color(0) fbf : vec4f) { fn g(a : f32) { } -Failed to generate: extensions/texel_fetch/zero_outputs/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.fxc.hlsl b/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.fxc.hlsl index 783f662244f..c3ff97cbec2 100644 --- a/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.fxc.hlsl @@ -11,7 +11,7 @@ fn f(@color(0) fbf : vec4f) { fn g(a : f32) { } -Failed to generate: extensions/texel_fetch/zero_outputs/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' +Failed to generate: /test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl:1:8 error: HLSL backend does not support extension 'chromium_experimental_framebuffer_fetch' enable chromium_experimental_framebuffer_fetch; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.ir.fxc.hlsl b/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.ir.fxc.hlsl index eafe82c5997..13adfb4ca28 100644 --- a/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/extensions/texel_fetch/zero_outputs/single_input.wgsl.expected.ir.fxc.hlsl @@ -17,5 +17,5 @@ void f(f_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000232C264AD50(13,17-22): error X3502: 'f': input parameter 'inputs' missing semantics +C:\src\dawn\Shader@0x000001E428EA8090(13,17-22): error X3502: 'f': input parameter 'inputs' missing semantics diff --git a/test/tint/loops/continue_in_switch.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/continue_in_switch.wgsl.expected.ir.fxc.hlsl index 690295428b7..f3bf6437a93 100644 --- a/test/tint/loops/continue_in_switch.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/loops/continue_in_switch.wgsl.expected.ir.fxc.hlsl @@ -32,5 +32,5 @@ void f() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B9FF4F9140(17,11-19): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x000001AF5634FF40(17,11-19): error X3708: continue cannot be used in a switch diff --git a/test/tint/loops/multiple_continues.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/multiple_continues.wgsl.expected.ir.fxc.hlsl index fe61de1b50c..02bc43aceba 100644 --- a/test/tint/loops/multiple_continues.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/loops/multiple_continues.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000206AD467490(17,11-19): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x000002A83953CA90(17,11-19): error X3708: continue cannot be used in a switch diff --git a/test/tint/loops/multiple_switch.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/multiple_switch.wgsl.expected.ir.fxc.hlsl index 22118f7e7ca..3aac2ecbf9c 100644 --- a/test/tint/loops/multiple_switch.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/loops/multiple_switch.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002147B899140(18,11-19): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x000002A37D126860(18,11-19): error X3708: continue cannot be used in a switch diff --git a/test/tint/loops/nested_loop_loop_switch.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/nested_loop_loop_switch.wgsl.expected.ir.fxc.hlsl index 169363df291..deee6b13f31 100644 --- a/test/tint/loops/nested_loop_loop_switch.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/loops/nested_loop_loop_switch.wgsl.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C00EB60320(24,15-23): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x000001A2B2C82510(24,15-23): error X3708: continue cannot be used in a switch diff --git a/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.fxc.hlsl index 09bf8cd7dd1..b70b6c59831 100644 --- a/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.fxc.hlsl @@ -58,5 +58,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000021283A4F7B0(27,19-27): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x000001F4D3284CD0(27,19-27): error X3708: continue cannot be used in a switch diff --git a/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.fxc.hlsl index 9d5f909cd07..1fa5cb759e7 100644 --- a/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.fxc.hlsl @@ -76,5 +76,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019AC515E120(28,19-27): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x000001D508175330(28,19-27): error X3708: continue cannot be used in a switch diff --git a/test/tint/loops/nested_loop_switch_switch.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/nested_loop_switch_switch.wgsl.expected.ir.fxc.hlsl index 6b07a1128e4..6cf4510a245 100644 --- a/test/tint/loops/nested_loop_switch_switch.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/loops/nested_loop_switch_switch.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019B15A419E0(21,15-23): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x00000267BF47D1C0(21,15-23): error X3708: continue cannot be used in a switch diff --git a/test/tint/loops/single_continue.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/single_continue.wgsl.expected.ir.fxc.hlsl index c18b71bce53..233b2d485b6 100644 --- a/test/tint/loops/single_continue.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/loops/single_continue.wgsl.expected.ir.fxc.hlsl @@ -32,5 +32,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000223BDAD9310(17,11-19): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x0000029B2F096FB0(17,11-19): error X3708: continue cannot be used in a switch diff --git a/test/tint/shadowing/loop.wgsl.expected.ir.fxc.hlsl b/test/tint/shadowing/loop.wgsl.expected.ir.fxc.hlsl index 5c976a624c0..b1934933355 100644 --- a/test/tint/shadowing/loop.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/shadowing/loop.wgsl.expected.ir.fxc.hlsl @@ -20,6 +20,6 @@ void foo() { } FXC validation failure: -C:\src\dawn\Shader@0x000001993FACC9C0(10,42-53): warning X4000: use of potentially uninitialized variable (x) -C:\src\dawn\Shader@0x000001993FACC9C0(10,42-53): error X4575: reading uninitialized value +C:\src\dawn\Shader@0x000002396B306810(10,42-53): warning X4000: use of potentially uninitialized variable (x) +C:\src\dawn\Shader@0x000002396B306810(10,42-53): error X4575: reading uninitialized value diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.ir.fxc.hlsl index dbd85a872b3..49b8b3169c5 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.ir.fxc.hlsl @@ -34,6 +34,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000222895AE2D0(25,7-27): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x00000222895AE2D0(19,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x00000191EFCB4470(25,7-27): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000191EFCB4470(19,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.ir.fxc.hlsl index ceb226e8beb..8704beb0962 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.ir.fxc.hlsl @@ -34,6 +34,6 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019C788DFD90(27,9-29): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x0000019C788DFD90(19,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x00000158652C6080(27,9-29): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000158652C6080(19,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.ir.fxc.hlsl index 4624be6a4fc..99e27957b15 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.ir.fxc.hlsl @@ -34,5 +34,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002265C81F120(20,5-25): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000012F5A901540(20,5-25): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.ir.fxc.hlsl index 7748e25c3d7..8f6da1526b6 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.ir.fxc.hlsl @@ -32,5 +32,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CD9F38DE90(29,3-30): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000267D79FF9E0(29,3-30): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.ir.fxc.hlsl index f4049f93ea5..5b05b6f79f9 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.ir.fxc.hlsl @@ -21,5 +21,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018CCB83D8F0(18,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000002029BE0BBB0(18,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.ir.fxc.hlsl index 67d96583d91..74b2bed6d7c 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.ir.fxc.hlsl @@ -21,5 +21,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002A19993CC50(18,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000024BF7880550(18,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.ir.fxc.hlsl index 41f7b0c7919..6dbe7feebd1 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.ir.fxc.hlsl @@ -25,5 +25,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002412A61DF20(22,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000130DA6F0920(22,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.ir.fxc.hlsl index ce08e4addfe..6f77e36bb3e 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.ir.fxc.hlsl @@ -25,5 +25,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E59CCFDED0(22,3-22): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000021CB7D17B40(22,3-22): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.ir.fxc.hlsl index 04c20a99d51..0092ff7e421 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.ir.fxc.hlsl @@ -16,5 +16,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F780DAA050(12,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001D6169354E0(12,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.ir.fxc.hlsl index 9dbcd1a4995..f1e4385d06a 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.ir.fxc.hlsl @@ -24,5 +24,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A37A65F9B0(19,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000268F85D7490(19,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.ir.fxc.hlsl index abcb5952814..2d0390d3429 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.ir.fxc.hlsl @@ -25,5 +25,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D004D41E80(22,3-25): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000230F10E7550(22,3-25): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.ir.fxc.hlsl index 0dda5c2892d..e942ca93671 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.ir.fxc.hlsl @@ -15,5 +15,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002E9F7C92A00(12,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000024C292020F0(12,3-23): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.ir.fxc.hlsl index 65c30e805a4..9b135d1a7ae 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.ir.fxc.hlsl @@ -25,5 +25,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002821A3E9250(16,3-22): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000002032D1FBE60(16,3-22): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/types/functions/shader_io/compute_input_builtins.wgsl.expected.ir.dxc.hlsl b/test/tint/types/functions/shader_io/compute_input_builtins.wgsl.expected.ir.dxc.hlsl index 216c1288508..e08863d43e8 100644 --- a/test/tint/types/functions/shader_io/compute_input_builtins.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/types/functions/shader_io/compute_input_builtins.wgsl.expected.ir.dxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1452 internal compiler error: TINT_ASSERT(!name.empty()) +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1505 internal compiler error: TINT_ASSERT(!name.empty()) ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/types/functions/shader_io/compute_input_builtins.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/compute_input_builtins.wgsl.expected.ir.fxc.hlsl index 7b5ce80e90d..e08863d43e8 100644 --- a/test/tint/types/functions/shader_io/compute_input_builtins.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/compute_input_builtins.wgsl.expected.ir.fxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1493 internal compiler error: TINT_ASSERT(!name.empty()) +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1505 internal compiler error: TINT_ASSERT(!name.empty()) ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/types/functions/shader_io/compute_input_builtins_struct.wgsl.expected.ir.dxc.hlsl b/test/tint/types/functions/shader_io/compute_input_builtins_struct.wgsl.expected.ir.dxc.hlsl index 216c1288508..e08863d43e8 100644 --- a/test/tint/types/functions/shader_io/compute_input_builtins_struct.wgsl.expected.ir.dxc.hlsl +++ b/test/tint/types/functions/shader_io/compute_input_builtins_struct.wgsl.expected.ir.dxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1452 internal compiler error: TINT_ASSERT(!name.empty()) +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1505 internal compiler error: TINT_ASSERT(!name.empty()) ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/types/functions/shader_io/compute_input_builtins_struct.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/compute_input_builtins_struct.wgsl.expected.ir.fxc.hlsl index 7b5ce80e90d..e08863d43e8 100644 --- a/test/tint/types/functions/shader_io/compute_input_builtins_struct.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/compute_input_builtins_struct.wgsl.expected.ir.fxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1493 internal compiler error: TINT_ASSERT(!name.empty()) +..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1505 internal compiler error: TINT_ASSERT(!name.empty()) ******************************************************************** * The tint shader compiler has encountered an unexpected error. * * * diff --git a/test/tint/types/functions/shader_io/compute_subgroup_builtins.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/compute_subgroup_builtins.wgsl.expected.fxc.hlsl index 0bbfaeab89b..e77d45fd91b 100644 --- a/test/tint/types/functions/shader_io/compute_subgroup_builtins.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/compute_subgroup_builtins.wgsl.expected.fxc.hlsl @@ -11,3 +11,6 @@ void main() { main_inner(WaveGetLaneIndex(), WaveGetLaneCount()); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A2A5FE6E80(9,14-31): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/types/functions/shader_io/compute_subgroup_builtins_struct.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/compute_subgroup_builtins_struct.wgsl.expected.fxc.hlsl index 830f68fe42c..b0d87a2a4f4 100644 --- a/test/tint/types/functions/shader_io/compute_subgroup_builtins_struct.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/compute_subgroup_builtins_struct.wgsl.expected.fxc.hlsl @@ -13,7 +13,10 @@ void main_inner(ComputeInputs inputs) { [numthreads(1, 1, 1)] void main() { - const ComputeInputs tint_symbol = {WaveGetLaneIndex(), WaveGetLaneCount()}; + ComputeInputs tint_symbol = {WaveGetLaneIndex(), WaveGetLaneCount()}; main_inner(tint_symbol); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A6A617D380(14,32-49): error X3004: undeclared identifier 'WaveGetLaneIndex' + diff --git a/test/tint/types/functions/shader_io/fragment_f16_io_polyfill.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_f16_io_polyfill.wgsl.expected.fxc.hlsl index 98230ce1cc1..7413714241e 100644 --- a/test/tint/types/functions/shader_io/fragment_f16_io_polyfill.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_f16_io_polyfill.wgsl.expected.fxc.hlsl @@ -25,3 +25,6 @@ tint_symbol_2 frag_main(tint_symbol_1 tint_symbol) { wrapper_result.b = inner_result.b; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021D5A56D0B0(2,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/fragment_f16_io_polyfill.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_f16_io_polyfill.wgsl.expected.ir.fxc.hlsl index e0909a7a8db..1c435b1d050 100644 --- a/test/tint/types/functions/shader_io/fragment_f16_io_polyfill.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_f16_io_polyfill.wgsl.expected.ir.fxc.hlsl @@ -30,5 +30,5 @@ frag_main_outputs frag_main(frag_main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000021969D40070(2,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000027ACD768240(2,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/types/functions/shader_io/fragment_input_locations_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_input_locations_f16.wgsl.expected.fxc.hlsl index 50e64a3d9ec..5ea3b8e4057 100644 --- a/test/tint/types/functions/shader_io/fragment_input_locations_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_input_locations_f16.wgsl.expected.fxc.hlsl @@ -10,15 +10,18 @@ struct tint_symbol_1 { }; void main_inner(int loc0, uint loc1, float loc2, float4 loc3, float16_t loc4, vector loc5) { - const int i = loc0; - const uint u = loc1; - const float f = loc2; - const float4 v = loc3; - const float16_t x = loc4; - const vector y = loc5; + int i = loc0; + uint u = loc1; + float f = loc2; + float4 v = loc3; + float16_t x = loc4; + vector y = loc5; } void main(tint_symbol_1 tint_symbol) { main_inner(tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3, tint_symbol.loc4, tint_symbol.loc5); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023FB701C450(6,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/fragment_input_locations_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_input_locations_f16.wgsl.expected.ir.fxc.hlsl index a22cc8ff747..b2cd86e43c9 100644 --- a/test/tint/types/functions/shader_io/fragment_input_locations_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_input_locations_f16.wgsl.expected.ir.fxc.hlsl @@ -24,5 +24,5 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001D0843FF980(6,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002133E1A5640(6,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/types/functions/shader_io/fragment_input_locations_struct_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_input_locations_struct_f16.wgsl.expected.fxc.hlsl index f12683a2ce5..5d4e64c8675 100644 --- a/test/tint/types/functions/shader_io/fragment_input_locations_struct_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_input_locations_struct_f16.wgsl.expected.fxc.hlsl @@ -18,16 +18,19 @@ struct tint_symbol_1 { }; void main_inner(FragmentInputs inputs) { - const int i = inputs.loc0; - const uint u = inputs.loc1; - const float f = inputs.loc2; - const float4 v = inputs.loc3; - const float16_t x = inputs.loc4; - const vector y = inputs.loc5; + int i = inputs.loc0; + uint u = inputs.loc1; + float f = inputs.loc2; + float4 v = inputs.loc3; + float16_t x = inputs.loc4; + vector y = inputs.loc5; } void main(tint_symbol_1 tint_symbol) { - const FragmentInputs tint_symbol_2 = {tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3, tint_symbol.loc4, tint_symbol.loc5}; + FragmentInputs tint_symbol_2 = {tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3, tint_symbol.loc4, tint_symbol.loc5}; main_inner(tint_symbol_2); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022B56411420(6,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/fragment_input_locations_struct_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_input_locations_struct_f16.wgsl.expected.ir.fxc.hlsl index 67bcdcf4a89..d83f58a9839 100644 --- a/test/tint/types/functions/shader_io/fragment_input_locations_struct_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_input_locations_struct_f16.wgsl.expected.ir.fxc.hlsl @@ -34,5 +34,5 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000023338470940(6,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000238450610C0(6,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.fxc.hlsl index 2743a24aa0c..5f707284c58 100644 --- a/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.fxc.hlsl @@ -24,20 +24,23 @@ struct tint_symbol_1 { void main_inner(FragmentInputs0 inputs0, bool front_facing, uint loc1, uint sample_index, FragmentInputs1 inputs1, float loc2, float16_t loc4) { if (front_facing) { - const float4 foo = inputs0.position; - const uint bar = (sample_index + inputs1.sample_mask); - const int i = inputs0.loc0; - const uint u = loc1; - const float f = loc2; - const float4 v = inputs1.loc3; - const float16_t x = loc4; - const vector y = inputs1.loc5; + float4 foo = inputs0.position; + uint bar = (sample_index + inputs1.sample_mask); + int i = inputs0.loc0; + uint u = loc1; + float f = loc2; + float4 v = inputs1.loc3; + float16_t x = loc4; + vector y = inputs1.loc5; } } void main(tint_symbol_1 tint_symbol) { - const FragmentInputs0 tint_symbol_2 = {tint_symbol.position, tint_symbol.loc0}; - const FragmentInputs1 tint_symbol_3 = {tint_symbol.loc3, tint_symbol.loc5, tint_symbol.sample_mask}; + FragmentInputs0 tint_symbol_2 = {float4(tint_symbol.position.xyz, (1.0f / tint_symbol.position.w)), tint_symbol.loc0}; + FragmentInputs1 tint_symbol_3 = {tint_symbol.loc3, tint_symbol.loc5, tint_symbol.sample_mask}; main_inner(tint_symbol_2, tint_symbol.front_facing, tint_symbol.loc1, tint_symbol.sample_index, tint_symbol_3, tint_symbol.loc2, tint_symbol.loc4); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001F11CC0CE80(7,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.ir.fxc.hlsl index 1837c9b7050..cfb94a2f0a3 100644 --- a/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ void main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001C1D4504CD0(8,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001D031AD9510(8,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/types/functions/shader_io/fragment_output_locations_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_output_locations_f16.wgsl.expected.fxc.hlsl index 434d10cfaae..1ba00dc0f53 100644 --- a/test/tint/types/functions/shader_io/fragment_output_locations_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_output_locations_f16.wgsl.expected.fxc.hlsl @@ -9,7 +9,7 @@ int main0_inner() { } tint_symbol main0() { - const int inner_result = main0_inner(); + int inner_result = main0_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.value = inner_result; return wrapper_result; @@ -24,7 +24,7 @@ uint main1_inner() { } tint_symbol_1 main1() { - const uint inner_result_1 = main1_inner(); + uint inner_result_1 = main1_inner(); tint_symbol_1 wrapper_result_1 = (tint_symbol_1)0; wrapper_result_1.value = inner_result_1; return wrapper_result_1; @@ -39,7 +39,7 @@ float main2_inner() { } tint_symbol_2 main2() { - const float inner_result_2 = main2_inner(); + float inner_result_2 = main2_inner(); tint_symbol_2 wrapper_result_2 = (tint_symbol_2)0; wrapper_result_2.value = inner_result_2; return wrapper_result_2; @@ -54,7 +54,7 @@ float4 main3_inner() { } tint_symbol_3 main3() { - const float4 inner_result_3 = main3_inner(); + float4 inner_result_3 = main3_inner(); tint_symbol_3 wrapper_result_3 = (tint_symbol_3)0; wrapper_result_3.value = inner_result_3; return wrapper_result_3; @@ -69,7 +69,7 @@ float16_t main4_inner() { } tint_symbol_4 main4() { - const float16_t inner_result_4 = main4_inner(); + float16_t inner_result_4 = main4_inner(); tint_symbol_4 wrapper_result_4 = (tint_symbol_4)0; wrapper_result_4.value = inner_result_4; return wrapper_result_4; @@ -84,8 +84,11 @@ vector main5_inner() { } tint_symbol_5 main5() { - const vector inner_result_5 = main5_inner(); + vector inner_result_5 = main5_inner(); tint_symbol_5 wrapper_result_5 = (tint_symbol_5)0; wrapper_result_5.value = inner_result_5; return wrapper_result_5; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020687E36110(62,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/fragment_output_locations_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_output_locations_f16.wgsl.expected.ir.fxc.hlsl index 8b436f8e9d8..649c4b058ce 100644 --- a/test/tint/types/functions/shader_io/fragment_output_locations_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_output_locations_f16.wgsl.expected.ir.fxc.hlsl @@ -80,5 +80,5 @@ main5_outputs main5() { } FXC validation failure: -C:\src\dawn\Shader@0x00000205EC46E6C0(18,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E21FF0A010(18,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/types/functions/shader_io/fragment_output_locations_struct_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_output_locations_struct_f16.wgsl.expected.fxc.hlsl index 2190c4bf2d4..275ac0a6263 100644 --- a/test/tint/types/functions/shader_io/fragment_output_locations_struct_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_output_locations_struct_f16.wgsl.expected.fxc.hlsl @@ -18,12 +18,12 @@ struct tint_symbol { }; FragmentOutputs main_inner() { - const FragmentOutputs tint_symbol_1 = {1, 1u, 1.0f, float4(1.0f, 2.0f, 3.0f, 4.0f), float16_t(2.25h), vector(float16_t(3.0h), float16_t(5.0h), float16_t(8.0h))}; + FragmentOutputs tint_symbol_1 = {1, 1u, 1.0f, float4(1.0f, 2.0f, 3.0f, 4.0f), float16_t(2.25h), vector(float16_t(3.0h), float16_t(5.0h), float16_t(8.0h))}; return tint_symbol_1; } tint_symbol main() { - const FragmentOutputs inner_result = main_inner(); + FragmentOutputs inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.loc0 = inner_result.loc0; wrapper_result.loc1 = inner_result.loc1; @@ -33,3 +33,6 @@ tint_symbol main() { wrapper_result.loc5 = inner_result.loc5; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x0000022094813E30(6,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/fragment_output_locations_struct_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_output_locations_struct_f16.wgsl.expected.ir.fxc.hlsl index ce90bc81b76..43d71b9db6a 100644 --- a/test/tint/types/functions/shader_io/fragment_output_locations_struct_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_output_locations_struct_f16.wgsl.expected.ir.fxc.hlsl @@ -37,5 +37,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002014C26EF40(6,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000240DFC97A50(6,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.fxc.hlsl index 94e7e05d095..05fcf2bff18 100644 --- a/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.fxc.hlsl @@ -22,12 +22,12 @@ struct tint_symbol { }; FragmentOutputs main_inner() { - const FragmentOutputs tint_symbol_1 = {1, 2.0f, 1u, 1.0f, 2u, float4(1.0f, 2.0f, 3.0f, 4.0f), float16_t(2.25h), vector(float16_t(3.0h), float16_t(5.0h), float16_t(8.0h))}; + FragmentOutputs tint_symbol_1 = {1, 2.0f, 1u, 1.0f, 2u, float4(1.0f, 2.0f, 3.0f, 4.0f), float16_t(2.25h), vector(float16_t(3.0h), float16_t(5.0h), float16_t(8.0h))}; return tint_symbol_1; } tint_symbol main() { - const FragmentOutputs inner_result = main_inner(); + FragmentOutputs inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.loc0 = inner_result.loc0; wrapper_result.frag_depth = inner_result.frag_depth; @@ -39,3 +39,6 @@ tint_symbol main() { wrapper_result.loc5 = inner_result.loc5; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D8D77CE480(8,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.ir.fxc.hlsl index f3977375d23..10989e52409 100644 --- a/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.ir.fxc.hlsl @@ -43,5 +43,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024BAC2F6130(8,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002DAF0EB4770(8,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/types/functions/shader_io/shared_struct_different_stages_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/shared_struct_different_stages_f16.wgsl.expected.fxc.hlsl index f435d11ea19..be7c17686f5 100644 --- a/test/tint/types/functions/shader_io/shared_struct_different_stages_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/shared_struct_different_stages_f16.wgsl.expected.fxc.hlsl @@ -12,12 +12,12 @@ struct tint_symbol { }; Interface vert_main_inner() { - const Interface tint_symbol_3 = {0.400000006f, float16_t(0.599609375h), (0.0f).xxxx}; + Interface tint_symbol_3 = {0.40000000596046447754f, float16_t(0.599609375h), (0.0f).xxxx}; return tint_symbol_3; } tint_symbol vert_main() { - const Interface inner_result = vert_main_inner(); + Interface inner_result = vert_main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.col1 = inner_result.col1; wrapper_result.col2 = inner_result.col2; @@ -32,12 +32,15 @@ struct tint_symbol_2 { }; void frag_main_inner(Interface colors) { - const float r = colors.col1; - const float16_t g = colors.col2; + float r = colors.col1; + float16_t g = colors.col2; } void frag_main(tint_symbol_2 tint_symbol_1) { - const Interface tint_symbol_4 = {tint_symbol_1.col1, tint_symbol_1.col2, tint_symbol_1.pos}; + Interface tint_symbol_4 = {tint_symbol_1.col1, tint_symbol_1.col2, float4(tint_symbol_1.pos.xyz, (1.0f / tint_symbol_1.pos.w))}; frag_main_inner(tint_symbol_4); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000021F528FB720(3,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/shared_struct_different_stages_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/shared_struct_different_stages_f16.wgsl.expected.ir.fxc.hlsl index d2a422dc217..deb78eac206 100644 --- a/test/tint/types/functions/shader_io/shared_struct_different_stages_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/shared_struct_different_stages_f16.wgsl.expected.ir.fxc.hlsl @@ -44,5 +44,5 @@ void frag_main(frag_main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000270B6B3E730(3,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000023C6186FF90(3,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/types/functions/shader_io/shared_struct_storage_buffer_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/shared_struct_storage_buffer_f16.wgsl.expected.fxc.hlsl index 51ee218b914..7d4ef776b93 100644 --- a/test/tint/types/functions/shader_io/shared_struct_storage_buffer_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/shared_struct_storage_buffer_f16.wgsl.expected.fxc.hlsl @@ -27,16 +27,19 @@ void output_store(uint offset, S value) { } void frag_main_inner(S input) { - const float f = input.f; - const uint u = input.u; - const float4 v = input.v; - const float16_t x = input.x; - const vector y = input.y; + float f = input.f; + uint u = input.u; + float4 v = input.v; + float16_t x = input.x; + vector y = input.y; output_store(0u, input); } void frag_main(tint_symbol_1 tint_symbol) { - const S tint_symbol_2 = {tint_symbol.f, tint_symbol.u, tint_symbol.v, tint_symbol.x, tint_symbol.y}; + S tint_symbol_2 = {tint_symbol.f, tint_symbol.u, float4(tint_symbol.v.xyz, (1.0f / tint_symbol.v.w)), tint_symbol.x, tint_symbol.y}; frag_main_inner(tint_symbol_2); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000002CB4DDD3FA0(5,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/shared_struct_storage_buffer_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/shared_struct_storage_buffer_f16.wgsl.expected.ir.fxc.hlsl index 80891643e31..64500609f28 100644 --- a/test/tint/types/functions/shader_io/shared_struct_storage_buffer_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/shared_struct_storage_buffer_f16.wgsl.expected.ir.fxc.hlsl @@ -41,5 +41,5 @@ void frag_main(frag_main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001C00A5DF060(5,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x0000025F2124B2F0(5,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/types/functions/shader_io/vertex_input_locations_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/vertex_input_locations_f16.wgsl.expected.fxc.hlsl index e4c8ace8ca0..a7c908385fa 100644 --- a/test/tint/types/functions/shader_io/vertex_input_locations_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/vertex_input_locations_f16.wgsl.expected.fxc.hlsl @@ -13,18 +13,21 @@ struct tint_symbol_2 { }; float4 main_inner(int loc0, uint loc1, float loc2, float4 loc3, float16_t loc4, vector loc5) { - const int i = loc0; - const uint u = loc1; - const float f = loc2; - const float4 v = loc3; - const float16_t x = loc4; - const vector y = loc5; + int i = loc0; + uint u = loc1; + float f = loc2; + float4 v = loc3; + float16_t x = loc4; + vector y = loc5; return (0.0f).xxxx; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const float4 inner_result = main_inner(tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3, tint_symbol.loc4, tint_symbol.loc5); + float4 inner_result = main_inner(tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3, tint_symbol.loc4, tint_symbol.loc5); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.value = inner_result; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x00000295F9D26590(6,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/vertex_input_locations_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/vertex_input_locations_f16.wgsl.expected.ir.fxc.hlsl index 7aacb8a51d8..81c066b5d4b 100644 --- a/test/tint/types/functions/shader_io/vertex_input_locations_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/vertex_input_locations_f16.wgsl.expected.ir.fxc.hlsl @@ -30,5 +30,5 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000002BCED579660(10,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000002256CC690B0(10,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/types/functions/shader_io/vertex_input_locations_struct_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/vertex_input_locations_struct_f16.wgsl.expected.fxc.hlsl index 3425f1a4969..35c0bf0bc6a 100644 --- a/test/tint/types/functions/shader_io/vertex_input_locations_struct_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/vertex_input_locations_struct_f16.wgsl.expected.fxc.hlsl @@ -21,19 +21,22 @@ struct tint_symbol_2 { }; float4 main_inner(VertexInputs inputs) { - const int i = inputs.loc0; - const uint u = inputs.loc1; - const float f = inputs.loc2; - const float4 v = inputs.loc3; - const float16_t x = inputs.loc4; - const vector y = inputs.loc5; + int i = inputs.loc0; + uint u = inputs.loc1; + float f = inputs.loc2; + float4 v = inputs.loc3; + float16_t x = inputs.loc4; + vector y = inputs.loc5; return (0.0f).xxxx; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const VertexInputs tint_symbol_3 = {tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3, tint_symbol.loc4, tint_symbol.loc5}; - const float4 inner_result = main_inner(tint_symbol_3); + VertexInputs tint_symbol_3 = {tint_symbol.loc0, tint_symbol.loc1, tint_symbol.loc2, tint_symbol.loc3, tint_symbol.loc4, tint_symbol.loc5}; + float4 inner_result = main_inner(tint_symbol_3); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.value = inner_result; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CC999DCB80(6,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/vertex_input_locations_struct_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/vertex_input_locations_struct_f16.wgsl.expected.ir.fxc.hlsl index f48b06a18c1..4ef25d949da 100644 --- a/test/tint/types/functions/shader_io/vertex_input_locations_struct_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/vertex_input_locations_struct_f16.wgsl.expected.ir.fxc.hlsl @@ -40,5 +40,5 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000216969CEAD0(6,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x000001E2F8C7CC50(6,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.fxc.hlsl index bc03ac498eb..1ef01b22cd9 100644 --- a/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.fxc.hlsl @@ -24,21 +24,24 @@ struct tint_symbol_2 { }; float4 main_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1, float16_t loc4) { - const uint foo = (inputs0.vertex_index + instance_index); - const int i = inputs0.loc0; - const uint u = loc1; - const float f = inputs1.loc2; - const float4 v = inputs1.loc3; - const float16_t x = loc4; - const vector y = inputs1.loc5; + uint foo = (inputs0.vertex_index + instance_index); + int i = inputs0.loc0; + uint u = loc1; + float f = inputs1.loc2; + float4 v = inputs1.loc3; + float16_t x = loc4; + vector y = inputs1.loc5; return (0.0f).xxxx; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const VertexInputs0 tint_symbol_3 = {tint_symbol.vertex_index, tint_symbol.loc0}; - const VertexInputs1 tint_symbol_4 = {tint_symbol.loc2, tint_symbol.loc3, tint_symbol.loc5}; - const float4 inner_result = main_inner(tint_symbol_3, tint_symbol.loc1, tint_symbol.instance_index, tint_symbol_4, tint_symbol.loc4); + VertexInputs0 tint_symbol_3 = {tint_symbol.vertex_index, tint_symbol.loc0}; + VertexInputs1 tint_symbol_4 = {tint_symbol.loc2, tint_symbol.loc3, tint_symbol.loc5}; + float4 inner_result = main_inner(tint_symbol_3, tint_symbol.loc1, tint_symbol.instance_index, tint_symbol_4, tint_symbol.loc4); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.value = inner_result; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x000002570DCB7870(8,10-18): error X3000: syntax error: unexpected token 'float16_t' + diff --git a/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.ir.fxc.hlsl index c3d7524b90e..1bb71fb6e17 100644 --- a/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.ir.fxc.hlsl @@ -47,5 +47,5 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001FFABBD4780(9,10-18): error X3000: syntax error: unexpected token 'float16_t' +C:\src\dawn\Shader@0x000001E5E63626E0(9,10-18): error X3000: syntax error: unexpected token 'float16_t' diff --git a/test/tint/types/functions/shader_io/vertex_output_locations_struct_f16.wgsl.expected.fxc.hlsl b/test/tint/types/functions/shader_io/vertex_output_locations_struct_f16.wgsl.expected.fxc.hlsl index d93dd2c69e6..6a4c0491e29 100644 --- a/test/tint/types/functions/shader_io/vertex_output_locations_struct_f16.wgsl.expected.fxc.hlsl +++ b/test/tint/types/functions/shader_io/vertex_output_locations_struct_f16.wgsl.expected.fxc.hlsl @@ -20,12 +20,12 @@ struct tint_symbol { }; VertexOutputs main_inner() { - const VertexOutputs tint_symbol_1 = {1, 1u, 1.0f, float4(1.0f, 2.0f, 3.0f, 4.0f), (0.0f).xxxx, float16_t(2.25h), vector(float16_t(3.0h), float16_t(5.0h), float16_t(8.0h))}; + VertexOutputs tint_symbol_1 = {1, 1u, 1.0f, float4(1.0f, 2.0f, 3.0f, 4.0f), (0.0f).xxxx, float16_t(2.25h), vector(float16_t(3.0h), float16_t(5.0h), float16_t(8.0h))}; return tint_symbol_1; } tint_symbol main() { - const VertexOutputs inner_result = main_inner(); + VertexOutputs inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.loc0 = inner_result.loc0; wrapper_result.loc1 = inner_result.loc1; @@ -36,3 +36,6 @@ tint_symbol main() { wrapper_result.loc5 = inner_result.loc5; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x0000019F00EE4930(7,3-11): error X3000: unrecognized identifier 'float16_t' + diff --git a/test/tint/types/functions/shader_io/vertex_output_locations_struct_f16.wgsl.expected.ir.fxc.hlsl b/test/tint/types/functions/shader_io/vertex_output_locations_struct_f16.wgsl.expected.ir.fxc.hlsl index 0a152143f2f..3a1b1ba84a6 100644 --- a/test/tint/types/functions/shader_io/vertex_output_locations_struct_f16.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/types/functions/shader_io/vertex_output_locations_struct_f16.wgsl.expected.ir.fxc.hlsl @@ -40,5 +40,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028DC4F6F990(7,3-11): error X3000: unrecognized identifier 'float16_t' +C:\src\dawn\Shader@0x00000286984F7F70(7,3-11): error X3000: unrecognized identifier 'float16_t' diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.dxc.hlsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.dxc.hlsl index cf26da30364..489173a3e5a 100644 --- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.dxc.hlsl @@ -1,9 +1,37 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSampleLevel -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** + +SamplerState x_10 : register(s0); +Texture2D x_20 : register(t1, space2); +SamplerState x_30 : register(s1); +void main_1() { + float2 vf12 = float2(1.0f, 2.0f); + float2 vf21 = float2(2.0f, 1.0f); + float3 vf123 = float3(1.0f, 2.0f, 3.0f); + float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f); + int i1 = 1; + int2 vi12 = int2(1, 2); + int3 vi123 = int3(1, 2, 3); + int4 vi1234 = int4(1, 2, 3, 4); + uint u1 = 1u; + uint2 vu12 = uint2(1u, 2u); + uint3 vu123 = uint3(1u, 2u, 3u); + uint4 vu1234 = uint4(1u, 2u, 3u, 4u); + float coords1 = 1.0f; + float2 coords12 = vf12; + float3 coords123 = vf123; + float4 coords1234 = vf1234; + Texture2D v = x_20; + SamplerState v_1 = x_10; + float4 x_79 = float4(v.SampleLevel(v_1, vf12, float(1)), 0.0f, 0.0f, 0.0f); +} + +void main() { + main_1(); +} + +DXC validation failure: +hlsl.hlsl:24:24: error: too many elements in vector initialization (expected 4 elements, have 7) + float4 x_79 = float4(v.SampleLevel(v_1, vf12, float(1)), 0.0f, 0.0f, 0.0f); + ^ + diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.fxc.hlsl index 5ebd7fba8f8..6604fbe8ac3 100644 --- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028C2FED03D0(24,17-76): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x0000021CB5C05D00(24,17-76): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.dxc.hlsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.dxc.hlsl index 58230f6ec85..c1d61360aea 100644 --- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.dxc.hlsl @@ -1,9 +1,37 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** + +SamplerState x_10 : register(s0); +Texture2D x_20 : register(t1, space2); +SamplerComparisonState x_30 : register(s1); +void main_1() { + float f1 = 1.0f; + float2 vf12 = float2(1.0f, 2.0f); + float2 vf21 = float2(2.0f, 1.0f); + float3 vf123 = float3(1.0f, 2.0f, 3.0f); + float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f); + int i1 = 1; + int2 vi12 = int2(1, 2); + int3 vi123 = int3(1, 2, 3); + int4 vi1234 = int4(1, 2, 3, 4); + uint u1 = 1u; + uint2 vu12 = uint2(1u, 2u); + uint3 vu123 = uint3(1u, 2u, 3u); + uint4 vu1234 = uint4(1u, 2u, 3u, 4u); + float coords1 = 1.0f; + float2 coords12 = vf12; + float3 coords123 = vf123; + float4 coords1234 = vf1234; + float4 x_200 = float4(x_20.Sample(x_10, coords12), 0.0f, 0.0f, 0.0f); + float x_210 = x_20.SampleCmp(x_30, coords12, 0.20000000298023223877f); +} + +void main() { + main_1(); +} + +DXC validation failure: +hlsl.hlsl:23:25: error: too many elements in vector initialization (expected 4 elements, have 7) + float4 x_200 = float4(x_20.Sample(x_10, coords12), 0.0f, 0.0f, 0.0f); + ^ + diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.fxc.hlsl index 5784bc47a36..356abfbd50a 100644 --- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.fxc.hlsl @@ -31,5 +31,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ECC4C70640(23,18-70): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x0000020E2D0B1940(23,18-70): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.dxc.hlsl b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.dxc.hlsl index 58230f6ec85..4dc3e075ef6 100644 --- a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.dxc.hlsl @@ -1,9 +1,36 @@ SKIP: FAILED -..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1010 internal compiler error: TINT_UNREACHABLE unhandled: textureSample -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** + +SamplerState x_10 : register(s0); +Texture2D x_20 : register(t1, space2); +SamplerState x_30 : register(s1); +void main_1() { + float f1 = 1.0f; + float2 vf12 = float2(1.0f, 2.0f); + float2 vf21 = float2(2.0f, 1.0f); + float3 vf123 = float3(1.0f, 2.0f, 3.0f); + float4 vf1234 = float4(1.0f, 2.0f, 3.0f, 4.0f); + int i1 = 1; + int2 vi12 = int2(1, 2); + int3 vi123 = int3(1, 2, 3); + int4 vi1234 = int4(1, 2, 3, 4); + uint u1 = 1u; + uint2 vu12 = uint2(1u, 2u); + uint3 vu123 = uint3(1u, 2u, 3u); + uint4 vu1234 = uint4(1u, 2u, 3u, 4u); + float coords1 = 1.0f; + float2 coords12 = vf12; + float3 coords123 = vf123; + float4 coords1234 = vf1234; + float4 x_79 = float4(x_20.Sample(x_10, (coords123.xy / coords123[2u])), 0.0f, 0.0f, 0.0f); +} + +void main() { + main_1(); +} + +DXC validation failure: +hlsl.hlsl:23:24: error: too many elements in vector initialization (expected 4 elements, have 7) + float4 x_79 = float4(x_20.Sample(x_10, (coords123.xy / coords123[2u])), 0.0f, 0.0f, 0.0f); + ^ + diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.fxc.hlsl index 8b66c9303fa..0dba28dff2c 100644 --- a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.fxc.hlsl @@ -30,5 +30,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001EBC1D9F100(23,17-91): error X3014: incorrect number of arguments to numeric-type constructor +C:\src\dawn\Shader@0x00000284C692B050(23,17-91): error X3014: incorrect number of arguments to numeric-type constructor diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.dxc.hlsl index b406c6a59a2..fea5bf9b50a 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_ClassifyCFGEdges_LoopBreak_FromLoopHeader_SingleBlockLoop_TrueBranch.spvasm.expected.dxc.hlsl @@ -16,11 +16,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:12: error: Loop must have break. +hlsl.hlsl:12: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.dxc.hlsl index b406c6a59a2..fea5bf9b50a 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_ComputeBlockOrder_Loop_HeaderHasBreakUnless.spvasm.expected.dxc.hlsl @@ -16,11 +16,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:12: error: Loop must have break. +hlsl.hlsl:12: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl index a8c1f7f609b..2aae7c2b9ab 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl @@ -19,11 +19,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:15: error: Loop must have break. +hlsl.hlsl:15: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl index 46dcb3da85f..2c018dd74e5 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl @@ -18,3 +18,6 @@ void main() { main_1(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016653FB2300(5,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.ir.fxc.hlsl index 6bc74b3fa37..29ee324445b 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_MultiBlock_LoopBreak_OnTrue.spvasm.expected.ir.fxc.hlsl @@ -21,5 +21,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000243B153F1C0(6,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x0000013F105B86A0(6,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl index 8dba16c5815..061e0a5bc3f 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.dxc.hlsl @@ -19,11 +19,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:15: error: Loop must have break. +hlsl.hlsl:15: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl index c7b40eb32ef..169ad4a7dd7 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.fxc.hlsl @@ -18,3 +18,6 @@ void main() { main_1(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001E01B242490(5,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.ir.fxc.hlsl index 144156d377a..5f32d9a66c6 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_Back_SingleBlock_LoopBreak_OnTrue.spvasm.expected.ir.fxc.hlsl @@ -23,5 +23,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018B3E27F620(6,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x000001DA9BD640D0(6,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.dxc.hlsl index 0e85a757d5b..0a14f6bdad6 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.dxc.hlsl @@ -31,11 +31,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:27: error: Loop must have break. +hlsl.hlsl:27: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.fxc.hlsl index cd036c6960b..53a5b464cf5 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.fxc.hlsl @@ -30,3 +30,6 @@ void main() { main_1(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023C4CB4FAE0(5,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.ir.fxc.hlsl index c88bcde56a2..8770d8e07a1 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Continue_OnFalse.spvasm.expected.ir.fxc.hlsl @@ -33,5 +33,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CB50827330(6,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x0000021005EF8CA0(6,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.dxc.hlsl index b99754af740..8bcadcc1684 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.dxc.hlsl @@ -24,11 +24,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:20: error: Loop must have break. +hlsl.hlsl:20: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.fxc.hlsl index 2008cf67386..6dfa6cdad5c 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.fxc.hlsl @@ -23,3 +23,6 @@ void main() { main_1(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000018A859A6D50(5,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.ir.fxc.hlsl index 686a5e30e6a..6f9108f8af6 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_BranchConditional_LoopBreak_Forward_OnFalse.spvasm.expected.ir.fxc.hlsl @@ -26,5 +26,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002CAFFE9D940(6,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x000001922AEBCA50(6,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.dxc.hlsl index b406c6a59a2..fea5bf9b50a 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_IfSelection_TrueBranch_LoopBreak.spvasm.expected.dxc.hlsl @@ -16,11 +16,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:12: error: Loop must have break. +hlsl.hlsl:12: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.dxc.hlsl index fe9cd64a454..d223598ce0d 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.dxc.hlsl @@ -20,11 +20,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:16: error: Loop must have break. +hlsl.hlsl:16: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.fxc.hlsl index 6a8669f9ff9..263796e8e75 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.fxc.hlsl @@ -19,3 +19,6 @@ void main() { main_1(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000017172EA2550(4,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.ir.fxc.hlsl index df8102d8aa5..4a24abff455 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue.spvasm.expected.ir.fxc.hlsl @@ -22,5 +22,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000151A1D40EF0(5,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x000001ACDE127270(5,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.dxc.hlsl index ea1f61cc835..09da3365e72 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.dxc.hlsl @@ -21,11 +21,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:17: error: Loop must have break. +hlsl.hlsl:17: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.fxc.hlsl index e86a2d87954..a373093ff0b 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.fxc.hlsl @@ -20,3 +20,6 @@ void main() { main_1(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027C3A2D6100(4,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.ir.fxc.hlsl index 3edd37dfaf3..66290c254e4 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromTrue_Early.spvasm.expected.ir.fxc.hlsl @@ -23,5 +23,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D88978F1E0(5,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x000001A4C0FB3880(5,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.dxc.hlsl index 5315678331a..94c4d436c2e 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.dxc.hlsl @@ -19,11 +19,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:15: error: Loop must have break. +hlsl.hlsl:15: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.fxc.hlsl index e982c172968..d00ec6d87db 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.fxc.hlsl @@ -18,3 +18,6 @@ void main() { main_1(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001D3E6732650(5,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.ir.fxc.hlsl index 8a7986171fb..429556d64a3 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_EmitBody_Loop_SingleBlock_FalseBackedge.spvasm.expected.ir.fxc.hlsl @@ -23,5 +23,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001A09E02E850(6,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x00000296341533A0(6,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.dxc.hlsl index b406c6a59a2..fea5bf9b50a 100644 --- a/test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_LoopBreak_Ok.spvasm.expected.dxc.hlsl @@ -16,11 +16,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:12: error: Loop must have break. +hlsl.hlsl:12: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.dxc.hlsl index e924932ef69..3caecd4a4f7 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.dxc.hlsl @@ -31,11 +31,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:27: error: Loop must have break. +hlsl.hlsl:27: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.fxc.hlsl index f81ef245429..c0d2d6c58d4 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.fxc.hlsl @@ -30,3 +30,6 @@ void main() { main_1(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x0000029BD8C54850(5,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.ir.fxc.hlsl index 5def0cb6753..6db7a4c255c 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_CombinatorialNonPointer_DefConstruct_DoesNotEncloseAllUses.spvasm.expected.ir.fxc.hlsl @@ -33,5 +33,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B21A17E630(6,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x000001FB5DE494D0(6,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.dxc.hlsl index fbd0205e1a1..cd343b3e2d1 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.dxc.hlsl @@ -5,8 +5,8 @@ static bool x_7 = false; static bool x_8 = false; void main_1() { - const bool x_101 = x_7; - const bool x_102 = x_8; + bool x_101 = x_7; + bool x_102 = x_8; while (true) { uint x_2 = 0u; if (x_101) { @@ -37,11 +37,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:33: error: Loop must have break. +hlsl.hlsl:33: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.fxc.hlsl index e81e9858351..03595e96bac 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.fxc.hlsl @@ -5,8 +5,8 @@ static bool x_7 = false; static bool x_8 = false; void main_1() { - const bool x_101 = x_7; - const bool x_102 = x_8; + bool x_101 = x_7; + bool x_102 = x_8; while (true) { uint x_2 = 0u; if (x_101) { @@ -36,3 +36,6 @@ void main() { main_1(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x00000136FE5AA0E0(8,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.ir.fxc.hlsl index 9c2d7b7e153..ddfb950a493 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromElseAndThen.spvasm.expected.ir.fxc.hlsl @@ -36,5 +36,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000018D7371F3F0(9,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x000001F83386F200(9,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.dxc.hlsl index d7adb1e7379..4eb06ba2c82 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.dxc.hlsl @@ -5,8 +5,8 @@ static bool x_7 = false; static bool x_8 = false; void main_1() { - const bool x_101 = x_7; - const bool x_102 = x_8; + bool x_101 = x_7; + bool x_102 = x_8; while (true) { uint x_2 = 0u; if (x_101) { @@ -37,11 +37,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:33: error: Loop must have break. +hlsl.hlsl:33: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.fxc.hlsl index 70a7e8802f6..05325144a66 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.fxc.hlsl @@ -5,8 +5,8 @@ static bool x_7 = false; static bool x_8 = false; void main_1() { - const bool x_101 = x_7; - const bool x_102 = x_8; + bool x_101 = x_7; + bool x_102 = x_8; while (true) { uint x_2 = 0u; if (x_101) { @@ -36,3 +36,6 @@ void main() { main_1(); return; } +FXC validation failure: +C:\src\dawn\Shader@0x000001CF86763560(8,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.ir.fxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.ir.fxc.hlsl index 885eedf4d99..5907ac74093 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_FromHeaderAndThen.spvasm.expected.ir.fxc.hlsl @@ -36,5 +36,5 @@ void main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001E6C10E6C70(9,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x0000018B9B876050(9,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.dxc.hlsl index 78365ea8b52..fd71d5de4d6 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_MultiBlockLoopIndex.spvasm.expected.dxc.hlsl @@ -8,8 +8,8 @@ void main_1() { while (true) { uint x_2 = 0u; uint x_3 = 0u; - const bool x_101 = x_7; - const bool x_102 = x_8; + bool x_101 = x_7; + bool x_102 = x_8; x_2 = 0u; x_3 = 1u; if (x_101) { @@ -22,7 +22,7 @@ void main_1() { } { x_4 = (x_2 + 1u); - const uint x_3_c30 = x_3; + uint x_3_c30 = x_3; x_2 = x_4; x_3 = x_3_c30; } @@ -36,11 +36,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:32: error: Loop must have break. +hlsl.hlsl:32: error: Loop must have break. Validation failed. - diff --git a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.dxc.hlsl b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.dxc.hlsl index 2b52fe63573..3851b4e53ae 100644 --- a/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.dxc.hlsl +++ b/test/tint/unittest/reader/spirv/SpvParserFunctionVarTest_EmitStatement_Phi_SingleBlockLoopIndex.spvasm.expected.dxc.hlsl @@ -8,15 +8,15 @@ void main_1() { while (true) { uint x_2 = 0u; uint x_3 = 0u; - const bool x_101 = x_7; - const bool x_102 = x_8; + bool x_101 = x_7; + bool x_102 = x_8; x_2 = 0u; x_3 = 1u; if (x_101) { break; } while (true) { - const uint x_3_c20 = x_3; + uint x_3_c20 = x_3; x_2 = (x_2 + 1u); x_3 = x_3_c20; if (x_102) { @@ -32,11 +32,8 @@ void main() { return; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:28: error: Loop must have break. +hlsl.hlsl:28: error: Loop must have break. Validation failed. - diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.spvasm.expected.ir.fxc.hlsl index 552c9db6907..bb11b53f572 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.spvasm.expected.ir.fxc.hlsl @@ -170,6 +170,6 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001FB3FC131E0(32,9-19): error X3511: forced to unroll loop, but unrolling failed. -C:\src\dawn\Shader@0x000001FB3FC131E0(30,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x00000194851AA9E0(32,9-19): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x00000194851AA9E0(30,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.wgsl.expected.ir.fxc.hlsl index 5357db17cde..5a6343fc2fe 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.wgsl.expected.ir.fxc.hlsl @@ -188,6 +188,6 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001F4D44166B0(32,9-19): error X3511: forced to unroll loop, but unrolling failed. -C:\src\dawn\Shader@0x000001F4D44166B0(30,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000016D973ABEC0(32,9-19): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000016D973ABEC0(30,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.spvasm.expected.ir.fxc.hlsl index 2004a6e8e06..4f4c45eb09d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.spvasm.expected.ir.fxc.hlsl @@ -73,6 +73,6 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000027EAAA71750(42,9-15): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x0000027EAAA71750(26,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000028C42CE0C60(42,9-15): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000028C42CE0C60(26,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl.expected.ir.fxc.hlsl index 4b167d9dabb..71fe4baa576 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl.expected.ir.fxc.hlsl @@ -94,6 +94,6 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028B4E916D20(54,9-15): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x0000028B4E916D20(31,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000002624714B3A0(54,9-15): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000002624714B3A0(31,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.spvasm.expected.ir.fxc.hlsl index e3ffbe1539e..95d04682384 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.spvasm.expected.ir.fxc.hlsl @@ -45,5 +45,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000211051DFF10(23,3-16): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001CC70509F90(23,3-16): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.wgsl.expected.ir.fxc.hlsl index ca09884b4f6..918d2b0c236 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.wgsl.expected.ir.fxc.hlsl @@ -49,5 +49,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024B4E32EC80(23,3-16): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001F0FA8DEF40(23,3-16): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.spvasm.expected.ir.fxc.hlsl index 1dc0ea15c5e..76f0e8f2180 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.spvasm.expected.ir.fxc.hlsl @@ -60,6 +60,6 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000229147EEA50(27,7-32): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x00000229147EEA50(20,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000001DEF43C0470(27,7-32): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001DEF43C0470(20,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl.expected.ir.fxc.hlsl index b3717fb6f3a..368a12b13e0 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl.expected.ir.fxc.hlsl @@ -76,6 +76,6 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016F05573CD0(32,7-32): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x0000016F05573CD0(23,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000020C53606840(32,7-32): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000020C53606840(23,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.fxc.hlsl index 3d93b12fffb..582837a88b4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.fxc.hlsl @@ -1,105 +1,3 @@ SKIP: FAILED -int tint_clamp(int e, int low, int high) { - return min(max(e, low), high); -} - -cbuffer cbuffer_x_7 : register(b0) { - uint4 x_7[1]; -}; -cbuffer cbuffer_x_10 : register(b1) { - uint4 x_10[4]; -}; -static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); -static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); - -void main_1() { - float4 data[2] = (float4[2])0; - int b = 0; - int y = 0; - int i = 0; - const float x_42 = asfloat(x_7[0].x); - const float x_45 = asfloat(x_7[0].x); - const float4 tint_symbol_5[2] = {float4(x_42, x_42, x_42, x_42), float4(x_45, x_45, x_45, x_45)}; - data = tint_symbol_5; - const int x_49 = asint(x_10[1].x); - b = x_49; - const float x_51 = gl_FragCoord.y; - const int x_54 = asint(x_10[1].x); - const float x_56 = gl_FragCoord.y; - const int x_60 = asint(x_10[1].x); - y = tint_clamp(int(x_51), (x_54 | int(x_56)), x_60); - const int x_63 = asint(x_10[1].x); - i = x_63; - while (true) { - bool x_82 = false; - bool x_83 = false; - const int x_68 = i; - const int x_70 = asint(x_10[0].x); - if ((x_68 < x_70)) { - } else { - break; - } - const int x_73 = b; - const int x_75 = asint(x_10[0].x); - const bool x_76 = (x_73 > x_75); - x_83 = x_76; - if (x_76) { - const int x_79 = y; - const int x_81 = asint(x_10[1].x); - x_82 = (x_79 > x_81); - x_83 = x_82; - } - if (x_83) { - break; - } - const int x_86 = b; - b = (x_86 + 1); - { - const int x_88 = i; - i = (x_88 + 1); - } - } - const int x_90 = b; - const int x_92 = asint(x_10[0].x); - if ((x_90 == x_92)) { - const int x_97 = asint(x_10[2].x); - const int x_99 = asint(x_10[1].x); - const int x_101 = asint(x_10[3].x); - const int x_104 = asint(x_10[1].x); - const int x_107 = asint(x_10[2].x); - const int x_110 = asint(x_10[2].x); - const int x_113 = asint(x_10[1].x); - const float4 tint_symbol_3 = float4(float(x_104), float(x_107), float(x_110), float(x_113)); - const int tint_symbol_4 = tint_clamp(x_97, x_99, x_101); - data[tint_symbol_4] = tint_symbol_3; - } - const int x_118 = asint(x_10[1].x); - const float4 x_120 = data[x_118]; - x_GLF_color = float4(x_120.x, x_120.y, x_120.z, x_120.w); - return; -} - -struct main_out { - float4 x_GLF_color_1; -}; -struct tint_symbol_1 { - float4 gl_FragCoord_param : SV_Position; -}; -struct tint_symbol_2 { - float4 x_GLF_color_1 : SV_Target0; -}; - -main_out main_inner(float4 gl_FragCoord_param) { - gl_FragCoord = gl_FragCoord_param; - main_1(); - const main_out tint_symbol_6 = {x_GLF_color}; - return tint_symbol_6; -} - -tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); - tint_symbol_2 wrapper_result = (tint_symbol_2)0; - wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; - return wrapper_result; -} +exit status 0xc00000fd \ No newline at end of file diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.fxc.hlsl index bceb472c1e5..582837a88b4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.fxc.hlsl @@ -1,106 +1,3 @@ SKIP: FAILED -int tint_clamp(int e, int low, int high) { - return min(max(e, low), high); -} - -cbuffer cbuffer_x_7 : register(b0) { - uint4 x_7[1]; -}; -cbuffer cbuffer_x_10 : register(b1) { - uint4 x_10[4]; -}; -static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); -static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); - -void main_1() { - float4 data[2] = (float4[2])0; - int b = 0; - int y = 0; - int i = 0; - const float x_42 = asfloat(x_7[0].x); - const float x_45 = asfloat(x_7[0].x); - const float4 tint_symbol_5[2] = {float4(x_42, x_42, x_42, x_42), float4(x_45, x_45, x_45, x_45)}; - data = tint_symbol_5; - const int x_49 = asint(x_10[1].x); - b = x_49; - const float x_51 = gl_FragCoord.y; - const int x_54 = asint(x_10[1].x); - const float x_56 = gl_FragCoord.y; - const int x_60 = asint(x_10[1].x); - y = tint_clamp(int(x_51), (x_54 | int(x_56)), x_60); - const int x_63 = asint(x_10[1].x); - i = x_63; - while (true) { - bool x_82 = false; - bool x_83_phi = false; - const int x_68 = i; - const int x_70 = asint(x_10[0].x); - if ((x_68 < x_70)) { - } else { - break; - } - const int x_73 = b; - const int x_75 = asint(x_10[0].x); - const bool x_76 = (x_73 > x_75); - x_83_phi = x_76; - if (x_76) { - const int x_79 = y; - const int x_81 = asint(x_10[1].x); - x_82 = (x_79 > x_81); - x_83_phi = x_82; - } - const bool x_83 = x_83_phi; - if (x_83) { - break; - } - const int x_86 = b; - b = (x_86 + 1); - { - const int x_88 = i; - i = (x_88 + 1); - } - } - const int x_90 = b; - const int x_92 = asint(x_10[0].x); - if ((x_90 == x_92)) { - const int x_97 = asint(x_10[2].x); - const int x_99 = asint(x_10[1].x); - const int x_101 = asint(x_10[3].x); - const int x_104 = asint(x_10[1].x); - const int x_107 = asint(x_10[2].x); - const int x_110 = asint(x_10[2].x); - const int x_113 = asint(x_10[1].x); - const float4 tint_symbol_3 = float4(float(x_104), float(x_107), float(x_110), float(x_113)); - const int tint_symbol_4 = tint_clamp(x_97, x_99, x_101); - data[tint_symbol_4] = tint_symbol_3; - } - const int x_118 = asint(x_10[1].x); - const float4 x_120 = data[x_118]; - x_GLF_color = float4(x_120.x, x_120.y, x_120.z, x_120.w); - return; -} - -struct main_out { - float4 x_GLF_color_1; -}; -struct tint_symbol_1 { - float4 gl_FragCoord_param : SV_Position; -}; -struct tint_symbol_2 { - float4 x_GLF_color_1 : SV_Target0; -}; - -main_out main_inner(float4 gl_FragCoord_param) { - gl_FragCoord = gl_FragCoord_param; - main_1(); - const main_out tint_symbol_6 = {x_GLF_color}; - return tint_symbol_6; -} - -tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); - tint_symbol_2 wrapper_result = (tint_symbol_2)0; - wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; - return wrapper_result; -} +exit status 0xc00000fd \ No newline at end of file diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.spvasm.expected.ir.fxc.hlsl index d1ee477875e..7b968a35449 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.spvasm.expected.ir.fxc.hlsl @@ -1,9 +1,129 @@ SKIP: FAILED -..\..\src\tint\lang\core\ir\transform\demote_to_helper.cc:208 internal compiler error: TINT_UNREACHABLE unexpected non-core instruction -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +struct main_out { + float4 x_GLF_color_1; +}; + +struct main_outputs { + float4 main_out_x_GLF_color_1 : SV_Target0; +}; + + +static int x_GLF_global_loop_count = 0; +cbuffer cbuffer_x_7 : register(b1) { + uint4 x_7[18]; +}; +cbuffer cbuffer_x_12 : register(b0) { + uint4 x_12[4]; +}; +cbuffer cbuffer_x_15 : register(b2) { + uint4 x_15[1]; +}; +static float4 x_GLF_color = (0.0f).xxxx; +static bool continue_execution = true; +void main_1() { + float4x4 m = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); + float4 v = (0.0f).xxxx; + float f = 0.0f; + int a = 0; + int b = 0; + float zero = 0.0f; + x_GLF_global_loop_count = 0; + float v_1 = asfloat(x_7[1u].x); + float v_2 = asfloat(x_7[2u].x); + float v_3 = asfloat(x_7[3u].x); + float4 v_4 = float4(v_1, v_2, v_3, asfloat(x_7[4u].x)); + float v_5 = asfloat(x_7[5u].x); + float v_6 = asfloat(x_7[6u].x); + float v_7 = asfloat(x_7[7u].x); + float4 v_8 = float4(v_5, v_6, v_7, asfloat(x_7[8u].x)); + float v_9 = asfloat(x_7[9u].x); + float v_10 = asfloat(x_7[10u].x); + float v_11 = asfloat(x_7[11u].x); + float4 v_12 = float4(v_9, v_10, v_11, asfloat(x_7[12u].x)); + float v_13 = asfloat(x_7[13u].x); + float v_14 = asfloat(x_7[14u].x); + float v_15 = asfloat(x_7[15u].x); + m = float4x4(v_4, v_8, v_12, float4(v_13, v_14, v_15, asfloat(x_7[16u].x))); + float v_16 = asfloat(x_7[1u].x); + float v_17 = asfloat(x_7[2u].x); + float v_18 = asfloat(x_7[3u].x); + v = float4(v_16, v_17, v_18, asfloat(x_7[4u].x)); + f = asfloat(x_7[1u].x); + a = asint(x_12[0u].x); + { + while(true) { + if ((x_GLF_global_loop_count < 10)) { + } else { + break; + } + x_GLF_global_loop_count = (x_GLF_global_loop_count + 1); + int x_121 = min(max(a, 0), 3); + float v_19 = v[x_121]; + v[x_121] = (v_19 + asfloat(x_7[1u].x)); + b = asint(x_12[2u].x); + { + while(true) { + if ((x_GLF_global_loop_count < 10)) { + } else { + break; + } + x_GLF_global_loop_count = (x_GLF_global_loop_count + 1); + float v_20 = f; + float v_21 = v[min(max(b, 0), 3)]; + float4 v_22 = m[min(max(b, 0), 3)]; + f = (v_20 + (v_21 * v_22[a])); + { + b = (b - 1); + } + continue; + } + } + int x_153 = a; + int v_23 = min(max(x_153, 0), 3); + m[1][v_23] = asfloat(x_7[1u].x); + int v_24 = asint(x_15[0u].x); + if ((v_24 == asint(x_12[0u].x))) { + continue_execution = false; + } + int v_25 = asint(x_15[0u].x); + if ((v_25 == asint(x_12[1u].x))) { + continue_execution = false; + } + { + a = (a + 1); + } + continue; + } + } + zero = asfloat(x_7[0u].x); + float v_26 = f; + if (!((v_26 == asfloat(x_7[17u].x)))) { + zero = asfloat(x_7[1u].x); + } + float v_27 = f; + float v_28 = zero; + float v_29 = float(asint(x_12[0u].x)); + x_GLF_color = float4(v_27, v_28, v_29, f); +} + +main_out main_inner() { + main_1(); + main_out v_30 = {x_GLF_color}; + return v_30; +} + +main_outputs main() { + main_out v_31 = main_inner(); + main_outputs v_32 = {v_31.x_GLF_color_1}; + if (!(continue_execution)) { + discard; + } + main_outputs v_33 = v_32; + return v_33; +} + +FXC validation failure: +C:\src\dawn\Shader@0x000001B1766D16B0(61,7-14): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001B1766D16B0(53,5-15): error X3511: forced to unroll loop, but unrolling failed. + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.wgsl.expected.ir.fxc.hlsl index d1ee477875e..58e27de7153 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.wgsl.expected.ir.fxc.hlsl @@ -1,9 +1,154 @@ SKIP: FAILED -..\..\src\tint\lang\core\ir\transform\demote_to_helper.cc:208 internal compiler error: TINT_UNREACHABLE unexpected non-core instruction -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +struct main_out { + float4 x_GLF_color_1; +}; + +struct main_outputs { + float4 main_out_x_GLF_color_1 : SV_Target0; +}; + + +static int x_GLF_global_loop_count = 0; +cbuffer cbuffer_x_7 : register(b1) { + uint4 x_7[18]; +}; +cbuffer cbuffer_x_12 : register(b0) { + uint4 x_12[4]; +}; +cbuffer cbuffer_x_15 : register(b2) { + uint4 x_15[1]; +}; +static float4 x_GLF_color = (0.0f).xxxx; +static bool continue_execution = true; +void main_1() { + float4x4 m = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); + float4 v = (0.0f).xxxx; + float f = 0.0f; + int a = 0; + int b = 0; + float zero = 0.0f; + x_GLF_global_loop_count = 0; + float x_62 = asfloat(x_7[1u].x); + float x_64 = asfloat(x_7[2u].x); + float x_66 = asfloat(x_7[3u].x); + float x_68 = asfloat(x_7[4u].x); + float x_70 = asfloat(x_7[5u].x); + float x_72 = asfloat(x_7[6u].x); + float x_74 = asfloat(x_7[7u].x); + float x_76 = asfloat(x_7[8u].x); + float x_78 = asfloat(x_7[9u].x); + float x_80 = asfloat(x_7[10u].x); + float x_82 = asfloat(x_7[11u].x); + float x_84 = asfloat(x_7[12u].x); + float x_86 = asfloat(x_7[13u].x); + float x_88 = asfloat(x_7[14u].x); + float x_90 = asfloat(x_7[15u].x); + float x_92 = asfloat(x_7[16u].x); + float4 v_1 = float4(x_62, x_64, x_66, x_68); + float4 v_2 = float4(x_70, x_72, x_74, x_76); + float4 v_3 = float4(x_78, x_80, x_82, x_84); + m = float4x4(v_1, v_2, v_3, float4(x_86, x_88, x_90, x_92)); + float x_99 = asfloat(x_7[1u].x); + float x_101 = asfloat(x_7[2u].x); + float x_103 = asfloat(x_7[3u].x); + float x_105 = asfloat(x_7[4u].x); + v = float4(x_99, x_101, x_103, x_105); + float x_108 = asfloat(x_7[1u].x); + f = x_108; + int x_110 = asint(x_12[0u].x); + a = x_110; + { + while(true) { + int x_115 = x_GLF_global_loop_count; + if ((x_115 < 10)) { + } else { + break; + } + int x_118 = x_GLF_global_loop_count; + x_GLF_global_loop_count = (x_118 + 1); + int x_120 = a; + int x_121 = min(max(x_120, 0), 3); + float x_123 = asfloat(x_7[1u].x); + float x_125 = v[x_121]; + v[x_121] = (x_125 + x_123); + int x_129 = asint(x_12[2u].x); + b = x_129; + { + while(true) { + int x_134 = x_GLF_global_loop_count; + if ((x_134 < 10)) { + } else { + break; + } + int x_137 = x_GLF_global_loop_count; + x_GLF_global_loop_count = (x_137 + 1); + int x_139 = b; + float x_142 = v[min(max(x_139, 0), 3)]; + int x_143 = b; + int x_145 = a; + float x_147 = m[min(max(x_143, 0), 3)][x_145]; + float x_149 = f; + f = (x_149 + (x_142 * x_147)); + { + int x_151 = b; + b = (x_151 - 1); + } + continue; + } + } + int x_153 = a; + float x_156 = asfloat(x_7[1u].x); + m[1][min(max(x_153, 0), 3)] = x_156; + int x_159 = asint(x_15[0u].x); + int x_161 = asint(x_12[0u].x); + if ((x_159 == x_161)) { + continue_execution = false; + } + int x_166 = asint(x_15[0u].x); + int x_168 = asint(x_12[1u].x); + if ((x_166 == x_168)) { + continue_execution = false; + } + { + int x_172 = a; + a = (x_172 + 1); + } + continue; + } + } + float x_175 = asfloat(x_7[0u].x); + zero = x_175; + float x_176 = f; + float x_178 = asfloat(x_7[17u].x); + if (!((x_176 == x_178))) { + float x_183 = asfloat(x_7[1u].x); + zero = x_183; + } + float x_184 = f; + float x_185 = zero; + int x_187 = asint(x_12[0u].x); + float x_189 = f; + x_GLF_color = float4(x_184, x_185, float(x_187), x_189); +} + +main_out main_inner() { + main_1(); + main_out v_4 = {x_GLF_color}; + return v_4; +} + +main_outputs main() { + main_out v_5 = main_inner(); + main_outputs v_6 = {v_5.x_GLF_color_1}; + if (!(continue_execution)) { + discard; + } + main_outputs v_7 = v_6; + return v_7; +} + +FXC validation failure: +C:\src\dawn\Shader@0x000001B5725DCF50(72,7-14): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001B5725DCF50(60,5-15): error X3511: forced to unroll loop, but unrolling failed. + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.spvasm.expected.ir.fxc.hlsl index 988a8a57dab..641e7fdfe48 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.spvasm.expected.ir.fxc.hlsl @@ -59,5 +59,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B3941E6550(29,3-9): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001052B93A4C0(29,3-9): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl.expected.ir.fxc.hlsl index d4bb3c3feea..634d7776db9 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl.expected.ir.fxc.hlsl @@ -77,5 +77,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023CCA122EF0(32,3-9): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000237BCA9FE90(32,3-9): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.spvasm.expected.ir.fxc.hlsl index 60d90d638a4..5351f995ff4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.spvasm.expected.ir.fxc.hlsl @@ -61,5 +61,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000185E815F580(30,3-9): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000225113265F0(30,3-9): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.wgsl.expected.ir.fxc.hlsl index 9a00bd15059..bafabcf1cfd 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.wgsl.expected.ir.fxc.hlsl @@ -74,5 +74,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001D7069CE980(33,3-9): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001C48DEC7160(33,3-9): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.spvasm.expected.ir.fxc.hlsl index f00ae7db674..c618e1cf63e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.spvasm.expected.ir.fxc.hlsl @@ -46,5 +46,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000268A9A99130(22,3-10): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001F714631D40(22,3-10): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.wgsl.expected.ir.fxc.hlsl index e31e00e8cef..68580ea0502 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.wgsl.expected.ir.fxc.hlsl @@ -50,5 +50,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000028A7C01EE30(23,3-10): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001476BEE5B40(23,3-10): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.ir.fxc.hlsl index 0a8a34adbef..18341cb4036 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.ir.fxc.hlsl @@ -89,6 +89,6 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001F6AC919D20(41,7-15): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x000001F6AC919D20(30,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x00000125C4D32760(41,7-15): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000125C4D32760(30,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl.expected.ir.fxc.hlsl index 03c61628b9c..0173013fab3 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl.expected.ir.fxc.hlsl @@ -108,6 +108,6 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000023DF1BB0640(43,7-15): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x0000023DF1BB0640(30,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000001BB487785C0(43,7-15): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001BB487785C0(30,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.spvasm.expected.fxc.hlsl index 444ce4de24d..90e9beff959 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.spvasm.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.spvasm.expected.fxc.hlsl @@ -1,741 +1,3 @@ SKIP: FAILED -void set_scalar_float2x3(inout float2x3 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[0]; - break; - case 1: - mat[1] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[1]; - break; - } -} - -void set_scalar_float2x4(inout float2x4 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; - break; - case 1: - mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; - break; - } -} - -void set_scalar_float3x2(inout float3x2 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xx == int2(0, 1)) ? val.xx : mat[0]; - break; - case 1: - mat[1] = (row.xx == int2(0, 1)) ? val.xx : mat[1]; - break; - case 2: - mat[2] = (row.xx == int2(0, 1)) ? val.xx : mat[2]; - break; - } -} - -void set_scalar_float3x3(inout float3x3 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[0]; - break; - case 1: - mat[1] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[1]; - break; - case 2: - mat[2] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[2]; - break; - } -} - -void set_scalar_float3x4(inout float3x4 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; - break; - case 1: - mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; - break; - case 2: - mat[2] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[2]; - break; - } -} - -void set_scalar_float4x2(inout float4x2 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xx == int2(0, 1)) ? val.xx : mat[0]; - break; - case 1: - mat[1] = (row.xx == int2(0, 1)) ? val.xx : mat[1]; - break; - case 2: - mat[2] = (row.xx == int2(0, 1)) ? val.xx : mat[2]; - break; - case 3: - mat[3] = (row.xx == int2(0, 1)) ? val.xx : mat[3]; - break; - } -} - -void set_scalar_float4x3(inout float4x3 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[0]; - break; - case 1: - mat[1] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[1]; - break; - case 2: - mat[2] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[2]; - break; - case 3: - mat[3] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[3]; - break; - } -} - -void set_scalar_float4x4(inout float4x4 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; - break; - case 1: - mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; - break; - case 2: - mat[2] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[2]; - break; - case 3: - mat[3] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[3]; - break; - } -} - -static int x_GLF_global_loop_count = 0; -static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); - -void main_1() { - float2x3 m23 = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float2x4 m24 = float2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float3x2 m32 = float3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float3x3 m33 = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float3x4 m34 = float3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float4x2 m42 = float4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float4x3 m43 = float4x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float4x4 m44 = float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - int i = 0; - int i_1 = 0; - int i_2 = 0; - int i_3 = 0; - int i_4 = 0; - int i_5 = 0; - int i_6 = 0; - int i_7 = 0; - int i_8 = 0; - int i_9 = 0; - int i_10 = 0; - int i_11 = 0; - int i_12 = 0; - int i_13 = 0; - int i_14 = 0; - int i_15 = 0; - int i_16 = 0; - int i_17 = 0; - int i_18 = 0; - int i_19 = 0; - int i_20 = 0; - int i_21 = 0; - int i_22 = 0; - int i_23 = 0; - int i_24 = 0; - int i_25 = 0; - int i_26 = 0; - int i_27 = 0; - int i_28 = 0; - int i_29 = 0; - int i_30 = 0; - int i_31 = 0; - int i_32 = 0; - int i_33 = 0; - int i_34 = 0; - int i_35 = 0; - int i_36 = 0; - int i_37 = 0; - float sum = 0.0f; - int r = 0; - x_GLF_global_loop_count = 0; - m23 = float2x3((0.0f).xxx, (0.0f).xxx); - m24 = float2x4((0.0f).xxxx, (0.0f).xxxx); - m32 = float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx); - m33 = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); - m34 = float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); - m42 = float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx); - m43 = float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); - m44 = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); - i = 0; - while (true) { - const int x_105 = i; - if ((x_105 < 1)) { - } else { - break; - } - i_1 = 0; - while (true) { - const int x_112 = i_1; - if ((x_112 < 1)) { - } else { - break; - } - i_2 = 0; - while (true) { - const int x_119 = i_2; - if ((x_119 < 1)) { - } else { - break; - } - i_3 = 0; - while (true) { - const int x_126 = i_3; - if ((x_126 < 1)) { - } else { - break; - } - i_4 = 0; - while (true) { - const int x_133 = i_4; - if ((x_133 < 1)) { - } else { - break; - } - i_5 = 0; - while (true) { - const int x_140 = i_5; - if ((x_140 < 1)) { - } else { - break; - } - i_6 = 0; - while (true) { - const int x_147 = i_6; - if ((x_147 < 1)) { - } else { - break; - } - i_7 = 0; - while (true) { - const int x_154 = i_7; - if ((x_154 < 1)) { - } else { - break; - } - i_8 = 0; - while (true) { - const int x_161 = i_8; - if ((x_161 < 1)) { - } else { - break; - } - i_9 = 0; - while (true) { - const int x_168 = i_9; - if ((x_168 < 1)) { - } else { - break; - } - i_10 = 0; - while (true) { - const int x_175 = i_10; - if ((x_175 < 1)) { - } else { - break; - } - i_11 = 0; - while (true) { - const int x_182 = i_11; - if ((x_182 < 1)) { - } else { - break; - } - i_12 = 0; - while (true) { - const int x_189 = i_12; - if ((x_189 < 1)) { - } else { - break; - } - i_13 = 0; - while (true) { - const int x_196 = i_13; - if ((x_196 < 1)) { - } else { - break; - } - i_14 = 0; - while (true) { - const int x_203 = i_14; - if ((x_203 < 1)) { - } else { - break; - } - i_15 = 0; - while (true) { - const int x_210 = i_15; - if ((x_210 < 1)) { - } else { - break; - } - i_16 = 0; - while (true) { - const int x_217 = i_16; - if ((x_217 < 1)) { - } else { - break; - } - i_17 = 0; - while (true) { - const int x_224 = i_17; - if ((x_224 < 1)) { - } else { - break; - } - i_18 = 0; - while (true) { - const int x_231 = i_18; - if ((x_231 < 1)) { - } else { - break; - } - i_19 = 0; - while (true) { - const int x_238 = i_19; - if ((x_238 < 1)) { - } else { - break; - } - i_20 = 0; - while (true) { - const int x_245 = i_20; - if ((x_245 < 1)) { - } else { - break; - } - i_21 = 0; - while (true) { - const int x_252 = i_21; - if ((x_252 < 1)) { - } else { - break; - } - i_22 = 0; - while (true) { - const int x_259 = i_22; - if ((x_259 < 1)) { - } else { - break; - } - i_23 = 0; - while (true) { - const int x_266 = i_23; - if ((x_266 < 1)) { - } else { - break; - } - i_24 = 0; - while (true) { - const int x_273 = i_24; - if ((x_273 < 1)) { - } else { - break; - } - i_25 = 0; - while (true) { - const int x_280 = i_25; - if ((x_280 < 1)) { - } else { - break; - } - i_26 = 0; - while (true) { - const int x_287 = i_26; - if ((x_287 < 1)) { - } else { - break; - } - i_27 = 0; - while (true) { - const int x_294 = i_27; - if ((x_294 < 1)) { - } else { - break; - } - i_28 = 0; - while (true) { - const int x_301 = i_28; - if ((x_301 < 1)) { - } else { - break; - } - i_29 = 0; - while (true) { - const int x_308 = i_29; - if ((x_308 < 1)) { - } else { - break; - } - i_30 = 0; - while (true) { - const int x_315 = i_30; - if ((x_315 < 1)) { - } else { - break; - } - i_31 = 0; - while (true) { - const int x_322 = i_31; - if ((x_322 < 1)) { - } else { - break; - } - i_32 = 0; - while (true) { - const int x_329 = i_32; - if ((x_329 < 1)) { - } else { - break; - } - i_33 = 0; - while (true) { - const int x_336 = i_33; - if ((x_336 < 1)) { - } else { - break; - } - i_34 = 0; - while (true) { - const int x_343 = i_34; - if ((x_343 < 1)) { - } else { - break; - } - i_35 = 0; - while (true) { - const int x_350 = i_35; - if ((x_350 < 1)) { - } else { - break; - } - i_36 = 0; - while (true) { - const int x_357 = i_36; - if ((x_357 < 1)) { - } else { - break; - } - i_37 = 0; - while (true) { - const int x_364 = i_37; - if ((x_364 < 1)) { - } else { - break; - } - while (true) { - const int x_371 = x_GLF_global_loop_count; - x_GLF_global_loop_count = (x_371 + 1); - { - const int x_373 = x_GLF_global_loop_count; - if (!((x_373 < 98))) { break; } - } - } - const int x_375 = i_37; - const int x_376 = i_37; - set_scalar_float2x3(m23, x_375, x_376, 1.0f); - const int x_378 = i_37; - const int x_379 = i_37; - set_scalar_float2x4(m24, x_378, x_379, 1.0f); - const int x_381 = i_37; - const int x_382 = i_37; - set_scalar_float3x2(m32, x_381, x_382, 1.0f); - const int x_384 = i_37; - const int x_385 = i_37; - set_scalar_float3x3(m33, x_384, x_385, 1.0f); - const int x_387 = i_37; - const int x_388 = i_37; - set_scalar_float3x4(m34, x_387, x_388, 1.0f); - const int x_390 = i_37; - const int x_391 = i_37; - set_scalar_float4x2(m42, x_390, x_391, 1.0f); - const int x_393 = i_37; - const int x_394 = i_37; - set_scalar_float4x3(m43, x_393, x_394, 1.0f); - const int x_396 = i_37; - const int x_397 = i_37; - set_scalar_float4x4(m44, x_396, x_397, 1.0f); - { - const int x_399 = i_37; - i_37 = (x_399 + 1); - } - } - { - const int x_401 = i_36; - i_36 = (x_401 + 1); - } - } - { - const int x_403 = i_35; - i_35 = (x_403 + 1); - } - } - { - const int x_405 = i_34; - i_34 = (x_405 + 1); - } - } - { - const int x_407 = i_33; - i_33 = (x_407 + 1); - } - } - { - const int x_409 = i_32; - i_32 = (x_409 + 1); - } - } - { - const int x_411 = i_31; - i_31 = (x_411 + 1); - } - } - { - const int x_413 = i_30; - i_30 = (x_413 + 1); - } - } - { - const int x_415 = i_29; - i_29 = (x_415 + 1); - } - } - { - const int x_417 = i_28; - i_28 = (x_417 + 1); - } - } - { - const int x_419 = i_27; - i_27 = (x_419 + 1); - } - } - { - const int x_421 = i_26; - i_26 = (x_421 + 1); - } - } - { - const int x_423 = i_25; - i_25 = (x_423 + 1); - } - } - { - const int x_425 = i_24; - i_24 = (x_425 + 1); - } - } - { - const int x_427 = i_23; - i_23 = (x_427 + 1); - } - } - { - const int x_429 = i_22; - i_22 = (x_429 + 1); - } - } - { - const int x_431 = i_21; - i_21 = (x_431 + 1); - } - } - { - const int x_433 = i_20; - i_20 = (x_433 + 1); - } - } - { - const int x_435 = i_19; - i_19 = (x_435 + 1); - } - } - { - const int x_437 = i_18; - i_18 = (x_437 + 1); - } - } - { - const int x_439 = i_17; - i_17 = (x_439 + 1); - } - } - { - const int x_441 = i_16; - i_16 = (x_441 + 1); - } - } - { - const int x_443 = i_15; - i_15 = (x_443 + 1); - } - } - { - const int x_445 = i_14; - i_14 = (x_445 + 1); - } - } - { - const int x_447 = i_13; - i_13 = (x_447 + 1); - } - } - { - const int x_449 = i_12; - i_12 = (x_449 + 1); - } - } - { - const int x_451 = i_11; - i_11 = (x_451 + 1); - } - } - { - const int x_453 = i_10; - i_10 = (x_453 + 1); - } - } - { - const int x_455 = i_9; - i_9 = (x_455 + 1); - } - } - { - const int x_457 = i_8; - i_8 = (x_457 + 1); - } - } - { - const int x_459 = i_7; - i_7 = (x_459 + 1); - } - } - { - const int x_461 = i_6; - i_6 = (x_461 + 1); - } - } - { - const int x_463 = i_5; - i_5 = (x_463 + 1); - } - } - { - const int x_465 = i_4; - i_4 = (x_465 + 1); - } - } - { - const int x_467 = i_3; - i_3 = (x_467 + 1); - } - } - { - const int x_469 = i_2; - i_2 = (x_469 + 1); - } - } - { - const int x_471 = i_1; - i_1 = (x_471 + 1); - } - } - { - const int x_473 = i; - i = (x_473 + 1); - } - } - sum = 0.0f; - r = 0; - while (true) { - const int x_479 = x_GLF_global_loop_count; - if ((x_479 < 100)) { - } else { - break; - } - const int x_482 = x_GLF_global_loop_count; - x_GLF_global_loop_count = (x_482 + 1); - const int x_484 = r; - const float x_486 = m23[0][x_484]; - const float x_487 = sum; - sum = (x_487 + x_486); - const int x_489 = r; - const float x_491 = m24[0][x_489]; - const float x_492 = sum; - sum = (x_492 + x_491); - const int x_494 = r; - const float x_496 = m32[0][x_494]; - const float x_497 = sum; - sum = (x_497 + x_496); - const int x_499 = r; - const float x_501 = m33[0][x_499]; - const float x_502 = sum; - sum = (x_502 + x_501); - const int x_504 = r; - const float x_506 = m34[0][x_504]; - const float x_507 = sum; - sum = (x_507 + x_506); - const int x_509 = r; - const float x_511 = m42[0][x_509]; - const float x_512 = sum; - sum = (x_512 + x_511); - const int x_514 = r; - const float x_516 = m43[0][x_514]; - const float x_517 = sum; - sum = (x_517 + x_516); - const int x_519 = r; - const float x_521 = m44[0][x_519]; - const float x_522 = sum; - sum = (x_522 + x_521); - { - const int x_524 = r; - r = (x_524 + 1); - } - } - const float x_526 = sum; - if ((x_526 == 8.0f)) { - x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); - } else { - x_GLF_color = (0.0f).xxxx; - } - return; -} - -struct main_out { - float4 x_GLF_color_1; -}; -struct tint_symbol { - float4 x_GLF_color_1 : SV_Target0; -}; - -main_out main_inner() { - main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; - return tint_symbol_1; -} - -tint_symbol main() { - const main_out inner_result = main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; - return wrapper_result; -} +test timed out after 2m0s \ No newline at end of file diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl.expected.fxc.hlsl index 444ce4de24d..90e9beff959 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl.expected.fxc.hlsl @@ -1,741 +1,3 @@ SKIP: FAILED -void set_scalar_float2x3(inout float2x3 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[0]; - break; - case 1: - mat[1] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[1]; - break; - } -} - -void set_scalar_float2x4(inout float2x4 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; - break; - case 1: - mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; - break; - } -} - -void set_scalar_float3x2(inout float3x2 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xx == int2(0, 1)) ? val.xx : mat[0]; - break; - case 1: - mat[1] = (row.xx == int2(0, 1)) ? val.xx : mat[1]; - break; - case 2: - mat[2] = (row.xx == int2(0, 1)) ? val.xx : mat[2]; - break; - } -} - -void set_scalar_float3x3(inout float3x3 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[0]; - break; - case 1: - mat[1] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[1]; - break; - case 2: - mat[2] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[2]; - break; - } -} - -void set_scalar_float3x4(inout float3x4 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; - break; - case 1: - mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; - break; - case 2: - mat[2] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[2]; - break; - } -} - -void set_scalar_float4x2(inout float4x2 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xx == int2(0, 1)) ? val.xx : mat[0]; - break; - case 1: - mat[1] = (row.xx == int2(0, 1)) ? val.xx : mat[1]; - break; - case 2: - mat[2] = (row.xx == int2(0, 1)) ? val.xx : mat[2]; - break; - case 3: - mat[3] = (row.xx == int2(0, 1)) ? val.xx : mat[3]; - break; - } -} - -void set_scalar_float4x3(inout float4x3 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[0]; - break; - case 1: - mat[1] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[1]; - break; - case 2: - mat[2] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[2]; - break; - case 3: - mat[3] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[3]; - break; - } -} - -void set_scalar_float4x4(inout float4x4 mat, int col, int row, float val) { - switch (col) { - case 0: - mat[0] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[0]; - break; - case 1: - mat[1] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[1]; - break; - case 2: - mat[2] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[2]; - break; - case 3: - mat[3] = (row.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : mat[3]; - break; - } -} - -static int x_GLF_global_loop_count = 0; -static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); - -void main_1() { - float2x3 m23 = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float2x4 m24 = float2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float3x2 m32 = float3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float3x3 m33 = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float3x4 m34 = float3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float4x2 m42 = float4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float4x3 m43 = float4x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - float4x4 m44 = float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - int i = 0; - int i_1 = 0; - int i_2 = 0; - int i_3 = 0; - int i_4 = 0; - int i_5 = 0; - int i_6 = 0; - int i_7 = 0; - int i_8 = 0; - int i_9 = 0; - int i_10 = 0; - int i_11 = 0; - int i_12 = 0; - int i_13 = 0; - int i_14 = 0; - int i_15 = 0; - int i_16 = 0; - int i_17 = 0; - int i_18 = 0; - int i_19 = 0; - int i_20 = 0; - int i_21 = 0; - int i_22 = 0; - int i_23 = 0; - int i_24 = 0; - int i_25 = 0; - int i_26 = 0; - int i_27 = 0; - int i_28 = 0; - int i_29 = 0; - int i_30 = 0; - int i_31 = 0; - int i_32 = 0; - int i_33 = 0; - int i_34 = 0; - int i_35 = 0; - int i_36 = 0; - int i_37 = 0; - float sum = 0.0f; - int r = 0; - x_GLF_global_loop_count = 0; - m23 = float2x3((0.0f).xxx, (0.0f).xxx); - m24 = float2x4((0.0f).xxxx, (0.0f).xxxx); - m32 = float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx); - m33 = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); - m34 = float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); - m42 = float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx); - m43 = float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); - m44 = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); - i = 0; - while (true) { - const int x_105 = i; - if ((x_105 < 1)) { - } else { - break; - } - i_1 = 0; - while (true) { - const int x_112 = i_1; - if ((x_112 < 1)) { - } else { - break; - } - i_2 = 0; - while (true) { - const int x_119 = i_2; - if ((x_119 < 1)) { - } else { - break; - } - i_3 = 0; - while (true) { - const int x_126 = i_3; - if ((x_126 < 1)) { - } else { - break; - } - i_4 = 0; - while (true) { - const int x_133 = i_4; - if ((x_133 < 1)) { - } else { - break; - } - i_5 = 0; - while (true) { - const int x_140 = i_5; - if ((x_140 < 1)) { - } else { - break; - } - i_6 = 0; - while (true) { - const int x_147 = i_6; - if ((x_147 < 1)) { - } else { - break; - } - i_7 = 0; - while (true) { - const int x_154 = i_7; - if ((x_154 < 1)) { - } else { - break; - } - i_8 = 0; - while (true) { - const int x_161 = i_8; - if ((x_161 < 1)) { - } else { - break; - } - i_9 = 0; - while (true) { - const int x_168 = i_9; - if ((x_168 < 1)) { - } else { - break; - } - i_10 = 0; - while (true) { - const int x_175 = i_10; - if ((x_175 < 1)) { - } else { - break; - } - i_11 = 0; - while (true) { - const int x_182 = i_11; - if ((x_182 < 1)) { - } else { - break; - } - i_12 = 0; - while (true) { - const int x_189 = i_12; - if ((x_189 < 1)) { - } else { - break; - } - i_13 = 0; - while (true) { - const int x_196 = i_13; - if ((x_196 < 1)) { - } else { - break; - } - i_14 = 0; - while (true) { - const int x_203 = i_14; - if ((x_203 < 1)) { - } else { - break; - } - i_15 = 0; - while (true) { - const int x_210 = i_15; - if ((x_210 < 1)) { - } else { - break; - } - i_16 = 0; - while (true) { - const int x_217 = i_16; - if ((x_217 < 1)) { - } else { - break; - } - i_17 = 0; - while (true) { - const int x_224 = i_17; - if ((x_224 < 1)) { - } else { - break; - } - i_18 = 0; - while (true) { - const int x_231 = i_18; - if ((x_231 < 1)) { - } else { - break; - } - i_19 = 0; - while (true) { - const int x_238 = i_19; - if ((x_238 < 1)) { - } else { - break; - } - i_20 = 0; - while (true) { - const int x_245 = i_20; - if ((x_245 < 1)) { - } else { - break; - } - i_21 = 0; - while (true) { - const int x_252 = i_21; - if ((x_252 < 1)) { - } else { - break; - } - i_22 = 0; - while (true) { - const int x_259 = i_22; - if ((x_259 < 1)) { - } else { - break; - } - i_23 = 0; - while (true) { - const int x_266 = i_23; - if ((x_266 < 1)) { - } else { - break; - } - i_24 = 0; - while (true) { - const int x_273 = i_24; - if ((x_273 < 1)) { - } else { - break; - } - i_25 = 0; - while (true) { - const int x_280 = i_25; - if ((x_280 < 1)) { - } else { - break; - } - i_26 = 0; - while (true) { - const int x_287 = i_26; - if ((x_287 < 1)) { - } else { - break; - } - i_27 = 0; - while (true) { - const int x_294 = i_27; - if ((x_294 < 1)) { - } else { - break; - } - i_28 = 0; - while (true) { - const int x_301 = i_28; - if ((x_301 < 1)) { - } else { - break; - } - i_29 = 0; - while (true) { - const int x_308 = i_29; - if ((x_308 < 1)) { - } else { - break; - } - i_30 = 0; - while (true) { - const int x_315 = i_30; - if ((x_315 < 1)) { - } else { - break; - } - i_31 = 0; - while (true) { - const int x_322 = i_31; - if ((x_322 < 1)) { - } else { - break; - } - i_32 = 0; - while (true) { - const int x_329 = i_32; - if ((x_329 < 1)) { - } else { - break; - } - i_33 = 0; - while (true) { - const int x_336 = i_33; - if ((x_336 < 1)) { - } else { - break; - } - i_34 = 0; - while (true) { - const int x_343 = i_34; - if ((x_343 < 1)) { - } else { - break; - } - i_35 = 0; - while (true) { - const int x_350 = i_35; - if ((x_350 < 1)) { - } else { - break; - } - i_36 = 0; - while (true) { - const int x_357 = i_36; - if ((x_357 < 1)) { - } else { - break; - } - i_37 = 0; - while (true) { - const int x_364 = i_37; - if ((x_364 < 1)) { - } else { - break; - } - while (true) { - const int x_371 = x_GLF_global_loop_count; - x_GLF_global_loop_count = (x_371 + 1); - { - const int x_373 = x_GLF_global_loop_count; - if (!((x_373 < 98))) { break; } - } - } - const int x_375 = i_37; - const int x_376 = i_37; - set_scalar_float2x3(m23, x_375, x_376, 1.0f); - const int x_378 = i_37; - const int x_379 = i_37; - set_scalar_float2x4(m24, x_378, x_379, 1.0f); - const int x_381 = i_37; - const int x_382 = i_37; - set_scalar_float3x2(m32, x_381, x_382, 1.0f); - const int x_384 = i_37; - const int x_385 = i_37; - set_scalar_float3x3(m33, x_384, x_385, 1.0f); - const int x_387 = i_37; - const int x_388 = i_37; - set_scalar_float3x4(m34, x_387, x_388, 1.0f); - const int x_390 = i_37; - const int x_391 = i_37; - set_scalar_float4x2(m42, x_390, x_391, 1.0f); - const int x_393 = i_37; - const int x_394 = i_37; - set_scalar_float4x3(m43, x_393, x_394, 1.0f); - const int x_396 = i_37; - const int x_397 = i_37; - set_scalar_float4x4(m44, x_396, x_397, 1.0f); - { - const int x_399 = i_37; - i_37 = (x_399 + 1); - } - } - { - const int x_401 = i_36; - i_36 = (x_401 + 1); - } - } - { - const int x_403 = i_35; - i_35 = (x_403 + 1); - } - } - { - const int x_405 = i_34; - i_34 = (x_405 + 1); - } - } - { - const int x_407 = i_33; - i_33 = (x_407 + 1); - } - } - { - const int x_409 = i_32; - i_32 = (x_409 + 1); - } - } - { - const int x_411 = i_31; - i_31 = (x_411 + 1); - } - } - { - const int x_413 = i_30; - i_30 = (x_413 + 1); - } - } - { - const int x_415 = i_29; - i_29 = (x_415 + 1); - } - } - { - const int x_417 = i_28; - i_28 = (x_417 + 1); - } - } - { - const int x_419 = i_27; - i_27 = (x_419 + 1); - } - } - { - const int x_421 = i_26; - i_26 = (x_421 + 1); - } - } - { - const int x_423 = i_25; - i_25 = (x_423 + 1); - } - } - { - const int x_425 = i_24; - i_24 = (x_425 + 1); - } - } - { - const int x_427 = i_23; - i_23 = (x_427 + 1); - } - } - { - const int x_429 = i_22; - i_22 = (x_429 + 1); - } - } - { - const int x_431 = i_21; - i_21 = (x_431 + 1); - } - } - { - const int x_433 = i_20; - i_20 = (x_433 + 1); - } - } - { - const int x_435 = i_19; - i_19 = (x_435 + 1); - } - } - { - const int x_437 = i_18; - i_18 = (x_437 + 1); - } - } - { - const int x_439 = i_17; - i_17 = (x_439 + 1); - } - } - { - const int x_441 = i_16; - i_16 = (x_441 + 1); - } - } - { - const int x_443 = i_15; - i_15 = (x_443 + 1); - } - } - { - const int x_445 = i_14; - i_14 = (x_445 + 1); - } - } - { - const int x_447 = i_13; - i_13 = (x_447 + 1); - } - } - { - const int x_449 = i_12; - i_12 = (x_449 + 1); - } - } - { - const int x_451 = i_11; - i_11 = (x_451 + 1); - } - } - { - const int x_453 = i_10; - i_10 = (x_453 + 1); - } - } - { - const int x_455 = i_9; - i_9 = (x_455 + 1); - } - } - { - const int x_457 = i_8; - i_8 = (x_457 + 1); - } - } - { - const int x_459 = i_7; - i_7 = (x_459 + 1); - } - } - { - const int x_461 = i_6; - i_6 = (x_461 + 1); - } - } - { - const int x_463 = i_5; - i_5 = (x_463 + 1); - } - } - { - const int x_465 = i_4; - i_4 = (x_465 + 1); - } - } - { - const int x_467 = i_3; - i_3 = (x_467 + 1); - } - } - { - const int x_469 = i_2; - i_2 = (x_469 + 1); - } - } - { - const int x_471 = i_1; - i_1 = (x_471 + 1); - } - } - { - const int x_473 = i; - i = (x_473 + 1); - } - } - sum = 0.0f; - r = 0; - while (true) { - const int x_479 = x_GLF_global_loop_count; - if ((x_479 < 100)) { - } else { - break; - } - const int x_482 = x_GLF_global_loop_count; - x_GLF_global_loop_count = (x_482 + 1); - const int x_484 = r; - const float x_486 = m23[0][x_484]; - const float x_487 = sum; - sum = (x_487 + x_486); - const int x_489 = r; - const float x_491 = m24[0][x_489]; - const float x_492 = sum; - sum = (x_492 + x_491); - const int x_494 = r; - const float x_496 = m32[0][x_494]; - const float x_497 = sum; - sum = (x_497 + x_496); - const int x_499 = r; - const float x_501 = m33[0][x_499]; - const float x_502 = sum; - sum = (x_502 + x_501); - const int x_504 = r; - const float x_506 = m34[0][x_504]; - const float x_507 = sum; - sum = (x_507 + x_506); - const int x_509 = r; - const float x_511 = m42[0][x_509]; - const float x_512 = sum; - sum = (x_512 + x_511); - const int x_514 = r; - const float x_516 = m43[0][x_514]; - const float x_517 = sum; - sum = (x_517 + x_516); - const int x_519 = r; - const float x_521 = m44[0][x_519]; - const float x_522 = sum; - sum = (x_522 + x_521); - { - const int x_524 = r; - r = (x_524 + 1); - } - } - const float x_526 = sum; - if ((x_526 == 8.0f)) { - x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); - } else { - x_GLF_color = (0.0f).xxxx; - } - return; -} - -struct main_out { - float4 x_GLF_color_1; -}; -struct tint_symbol { - float4 x_GLF_color_1 : SV_Target0; -}; - -main_out main_inner() { - main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; - return tint_symbol_1; -} - -tint_symbol main() { - const main_out inner_result = main_inner(); - tint_symbol wrapper_result = (tint_symbol)0; - wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; - return wrapper_result; -} +test timed out after 2m0s \ No newline at end of file diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.spvasm.expected.ir.fxc.hlsl index dde0014791d..f0dd30c55f6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.spvasm.expected.ir.fxc.hlsl @@ -87,7 +87,7 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002712F4D00F0(42,11-18): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x000002712F4D00F0(34,9-19): error X3511: forced to unroll loop, but unrolling failed. -C:\src\dawn\Shader@0x000002712F4D00F0(26,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000001BD40339FD0(42,11-18): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001BD40339FD0(34,9-19): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000001BD40339FD0(26,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.wgsl.expected.ir.fxc.hlsl index cfb54ba21b9..ade0520b294 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.wgsl.expected.ir.fxc.hlsl @@ -106,7 +106,7 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022794D365A0(50,11-18): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x0000022794D365A0(39,9-19): error X3511: forced to unroll loop, but unrolling failed. -C:\src\dawn\Shader@0x0000022794D365A0(29,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x00000206110E90F0(50,11-18): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000206110E90F0(39,9-19): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x00000206110E90F0(29,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.spvasm.expected.fxc.hlsl index 14b3bb237d9..fdbd4048b0f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.spvasm.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.spvasm.expected.fxc.hlsl @@ -29,262 +29,183 @@ void main_1() { float sum = 0.0f; int r = 0; x_GLF_global_loop_count = 0; - const float x_53 = asfloat(x_7[1].x); - f = x_53; - const int x_55 = asint(x_10[1].x); - i = x_55; + f = asfloat(x_7[1].x); + i = asint(x_10[1].x); while (true) { - const int x_60 = i; - const int x_62 = asint(x_10[0].x); - if ((x_60 < x_62)) { + if ((i < asint(x_10[0].x))) { } else { break; } - const int x_66 = asint(x_10[1].x); - i_1 = x_66; + i_1 = asint(x_10[1].x); while (true) { - const int x_71 = i_1; - const int x_73 = asint(x_10[0].x); - if ((x_71 < x_73)) { + if ((i_1 < asint(x_10[0].x))) { } else { break; } - const int x_77 = asint(x_10[1].x); - i_2 = x_77; + i_2 = asint(x_10[1].x); while (true) { - const int x_82 = i_2; - const int x_84 = asint(x_10[0].x); - if ((x_82 < x_84)) { + if ((i_2 < asint(x_10[0].x))) { } else { break; } - const int x_88 = asint(x_10[1].x); - i_3 = x_88; + i_3 = asint(x_10[1].x); while (true) { - const int x_93 = i_3; - const int x_95 = asint(x_10[0].x); - if ((x_93 < x_95)) { + if ((i_3 < asint(x_10[0].x))) { } else { break; } - const int x_99 = asint(x_10[1].x); - i_4 = x_99; + i_4 = asint(x_10[1].x); while (true) { - const int x_104 = i_4; - const int x_106 = asint(x_10[0].x); - if ((x_104 < x_106)) { + if ((i_4 < asint(x_10[0].x))) { } else { break; } - const int x_110 = asint(x_10[1].x); - i_5 = x_110; + i_5 = asint(x_10[1].x); while (true) { - const int x_115 = i_5; - const int x_117 = asint(x_10[0].x); - if ((x_115 < x_117)) { + if ((i_5 < asint(x_10[0].x))) { } else { break; } - const int x_121 = asint(x_10[1].x); - i_6 = x_121; + i_6 = asint(x_10[1].x); while (true) { - const int x_126 = i_6; - const int x_128 = asint(x_10[0].x); - if ((x_126 < x_128)) { + if ((i_6 < asint(x_10[0].x))) { } else { break; } - const int x_132 = asint(x_10[1].x); - i_7 = x_132; + i_7 = asint(x_10[1].x); while (true) { - const int x_137 = i_7; - const int x_139 = asint(x_10[0].x); - if ((x_137 < x_139)) { + if ((i_7 < asint(x_10[0].x))) { } else { break; } - const int x_143 = asint(x_10[1].x); - i_8 = x_143; + i_8 = asint(x_10[1].x); while (true) { - const int x_148 = i_8; - const int x_150 = asint(x_10[0].x); - if ((x_148 < x_150)) { + if ((i_8 < asint(x_10[0].x))) { } else { break; } - const int x_154 = asint(x_10[1].x); - i_9 = x_154; + i_9 = asint(x_10[1].x); while (true) { - const int x_159 = i_9; - const int x_161 = asint(x_10[0].x); - if ((x_159 < x_161)) { + if ((i_9 < asint(x_10[0].x))) { } else { break; } - const int x_165 = asint(x_10[1].x); - i_10 = x_165; + i_10 = asint(x_10[1].x); while (true) { - const int x_170 = i_10; - const int x_172 = asint(x_10[0].x); - if ((x_170 < x_172)) { + if ((i_10 < asint(x_10[0].x))) { } else { break; } - const int x_176 = asint(x_10[1].x); - i_11 = x_176; + i_11 = asint(x_10[1].x); while (true) { - const int x_181 = i_11; - const int x_183 = asint(x_10[2].x); - if ((x_181 < x_183)) { + if ((i_11 < asint(x_10[2].x))) { } else { break; } - const int x_187 = asint(x_10[1].x); - i_12 = x_187; + i_12 = asint(x_10[1].x); while (true) { - const int x_192 = i_12; - const int x_194 = asint(x_10[0].x); - if ((x_192 < x_194)) { + if ((i_12 < asint(x_10[0].x))) { } else { break; } - const int x_198 = asint(x_10[1].x); - i_13 = x_198; + i_13 = asint(x_10[1].x); while (true) { - const int x_203 = i_13; - const int x_205 = asint(x_10[0].x); - if ((x_203 < x_205)) { + if ((i_13 < asint(x_10[0].x))) { } else { break; } - const int x_209 = asint(x_10[1].x); - i_14 = x_209; + i_14 = asint(x_10[1].x); while (true) { - const int x_214 = i_14; - const int x_216 = asint(x_10[2].x); - if ((x_214 < x_216)) { + if ((i_14 < asint(x_10[2].x))) { } else { break; } while (true) { - const int x_223 = x_GLF_global_loop_count; - x_GLF_global_loop_count = (x_223 + 1); + x_GLF_global_loop_count = (x_GLF_global_loop_count + 1); { - const int x_225 = x_GLF_global_loop_count; - const int x_227 = asint(x_10[3].x); + int x_225 = x_GLF_global_loop_count; + int x_227 = asint(x_10[3].x); if (!((x_225 < (100 - x_227)))) { break; } } } - const float x_231 = asfloat(x_7[0].x); - const float x_232 = f; - f = (x_232 + x_231); + f = (f + asfloat(x_7[0].x)); { - const int x_234 = i_14; - i_14 = (x_234 + 1); + i_14 = (i_14 + 1); } } { - const int x_236 = i_13; - i_13 = (x_236 + 1); + i_13 = (i_13 + 1); } } { - const int x_238 = i_12; - i_12 = (x_238 + 1); + i_12 = (i_12 + 1); } } { - const int x_240 = i_11; - i_11 = (x_240 + 1); + i_11 = (i_11 + 1); } } { - const int x_242 = i_10; - i_10 = (x_242 + 1); + i_10 = (i_10 + 1); } } { - const int x_244 = i_9; - i_9 = (x_244 + 1); + i_9 = (i_9 + 1); } } { - const int x_246 = i_8; - i_8 = (x_246 + 1); + i_8 = (i_8 + 1); } } { - const int x_248 = i_7; - i_7 = (x_248 + 1); + i_7 = (i_7 + 1); } } { - const int x_250 = i_6; - i_6 = (x_250 + 1); + i_6 = (i_6 + 1); } } { - const int x_252 = i_5; - i_5 = (x_252 + 1); + i_5 = (i_5 + 1); } } { - const int x_254 = i_4; - i_4 = (x_254 + 1); + i_4 = (i_4 + 1); } } { - const int x_256 = i_3; - i_3 = (x_256 + 1); + i_3 = (i_3 + 1); } } { - const int x_258 = i_2; - i_2 = (x_258 + 1); + i_2 = (i_2 + 1); } } { - const int x_260 = i_1; - i_1 = (x_260 + 1); + i_1 = (i_1 + 1); } } { - const int x_262 = i; - i = (x_262 + 1); + i = (i + 1); } } - const float x_265 = asfloat(x_7[1].x); - sum = x_265; - const int x_267 = asint(x_10[1].x); - r = x_267; + sum = asfloat(x_7[1].x); + r = asint(x_10[1].x); while (true) { - const int x_272 = x_GLF_global_loop_count; - if ((x_272 < 100)) { + if ((x_GLF_global_loop_count < 100)) { } else { break; } - const int x_275 = x_GLF_global_loop_count; - x_GLF_global_loop_count = (x_275 + 1); - const float x_277 = f; - const float x_278 = sum; - sum = (x_278 + x_277); + x_GLF_global_loop_count = (x_GLF_global_loop_count + 1); + sum = (sum + f); { - const int x_280 = r; - r = (x_280 + 1); + r = (r + 1); } } - const float x_282 = sum; - const float x_284 = asfloat(x_7[2].x); - if ((x_282 == x_284)) { - const int x_290 = asint(x_10[0].x); - const int x_293 = asint(x_10[1].x); - const int x_296 = asint(x_10[1].x); - const int x_299 = asint(x_10[0].x); - x_GLF_color = float4(float(x_290), float(x_293), float(x_296), float(x_299)); + if ((sum == asfloat(x_7[2].x))) { + x_GLF_color = float4(float(asint(x_10[0].x)), float(asint(x_10[1].x)), float(asint(x_10[1].x)), float(asint(x_10[0].x))); } else { - const int x_303 = asint(x_10[1].x); - const float x_304 = float(x_303); - x_GLF_color = float4(x_304, x_304, x_304, x_304); + x_GLF_color = float4((float(asint(x_10[1].x))).xxxx); } return; } @@ -298,12 +219,12 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl.expected.fxc.hlsl index 14b3bb237d9..a16f57631a7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl.expected.fxc.hlsl @@ -29,261 +29,261 @@ void main_1() { float sum = 0.0f; int r = 0; x_GLF_global_loop_count = 0; - const float x_53 = asfloat(x_7[1].x); + float x_53 = asfloat(x_7[1].x); f = x_53; - const int x_55 = asint(x_10[1].x); + int x_55 = asint(x_10[1].x); i = x_55; while (true) { - const int x_60 = i; - const int x_62 = asint(x_10[0].x); + int x_60 = i; + int x_62 = asint(x_10[0].x); if ((x_60 < x_62)) { } else { break; } - const int x_66 = asint(x_10[1].x); + int x_66 = asint(x_10[1].x); i_1 = x_66; while (true) { - const int x_71 = i_1; - const int x_73 = asint(x_10[0].x); + int x_71 = i_1; + int x_73 = asint(x_10[0].x); if ((x_71 < x_73)) { } else { break; } - const int x_77 = asint(x_10[1].x); + int x_77 = asint(x_10[1].x); i_2 = x_77; while (true) { - const int x_82 = i_2; - const int x_84 = asint(x_10[0].x); + int x_82 = i_2; + int x_84 = asint(x_10[0].x); if ((x_82 < x_84)) { } else { break; } - const int x_88 = asint(x_10[1].x); + int x_88 = asint(x_10[1].x); i_3 = x_88; while (true) { - const int x_93 = i_3; - const int x_95 = asint(x_10[0].x); + int x_93 = i_3; + int x_95 = asint(x_10[0].x); if ((x_93 < x_95)) { } else { break; } - const int x_99 = asint(x_10[1].x); + int x_99 = asint(x_10[1].x); i_4 = x_99; while (true) { - const int x_104 = i_4; - const int x_106 = asint(x_10[0].x); + int x_104 = i_4; + int x_106 = asint(x_10[0].x); if ((x_104 < x_106)) { } else { break; } - const int x_110 = asint(x_10[1].x); + int x_110 = asint(x_10[1].x); i_5 = x_110; while (true) { - const int x_115 = i_5; - const int x_117 = asint(x_10[0].x); + int x_115 = i_5; + int x_117 = asint(x_10[0].x); if ((x_115 < x_117)) { } else { break; } - const int x_121 = asint(x_10[1].x); + int x_121 = asint(x_10[1].x); i_6 = x_121; while (true) { - const int x_126 = i_6; - const int x_128 = asint(x_10[0].x); + int x_126 = i_6; + int x_128 = asint(x_10[0].x); if ((x_126 < x_128)) { } else { break; } - const int x_132 = asint(x_10[1].x); + int x_132 = asint(x_10[1].x); i_7 = x_132; while (true) { - const int x_137 = i_7; - const int x_139 = asint(x_10[0].x); + int x_137 = i_7; + int x_139 = asint(x_10[0].x); if ((x_137 < x_139)) { } else { break; } - const int x_143 = asint(x_10[1].x); + int x_143 = asint(x_10[1].x); i_8 = x_143; while (true) { - const int x_148 = i_8; - const int x_150 = asint(x_10[0].x); + int x_148 = i_8; + int x_150 = asint(x_10[0].x); if ((x_148 < x_150)) { } else { break; } - const int x_154 = asint(x_10[1].x); + int x_154 = asint(x_10[1].x); i_9 = x_154; while (true) { - const int x_159 = i_9; - const int x_161 = asint(x_10[0].x); + int x_159 = i_9; + int x_161 = asint(x_10[0].x); if ((x_159 < x_161)) { } else { break; } - const int x_165 = asint(x_10[1].x); + int x_165 = asint(x_10[1].x); i_10 = x_165; while (true) { - const int x_170 = i_10; - const int x_172 = asint(x_10[0].x); + int x_170 = i_10; + int x_172 = asint(x_10[0].x); if ((x_170 < x_172)) { } else { break; } - const int x_176 = asint(x_10[1].x); + int x_176 = asint(x_10[1].x); i_11 = x_176; while (true) { - const int x_181 = i_11; - const int x_183 = asint(x_10[2].x); + int x_181 = i_11; + int x_183 = asint(x_10[2].x); if ((x_181 < x_183)) { } else { break; } - const int x_187 = asint(x_10[1].x); + int x_187 = asint(x_10[1].x); i_12 = x_187; while (true) { - const int x_192 = i_12; - const int x_194 = asint(x_10[0].x); + int x_192 = i_12; + int x_194 = asint(x_10[0].x); if ((x_192 < x_194)) { } else { break; } - const int x_198 = asint(x_10[1].x); + int x_198 = asint(x_10[1].x); i_13 = x_198; while (true) { - const int x_203 = i_13; - const int x_205 = asint(x_10[0].x); + int x_203 = i_13; + int x_205 = asint(x_10[0].x); if ((x_203 < x_205)) { } else { break; } - const int x_209 = asint(x_10[1].x); + int x_209 = asint(x_10[1].x); i_14 = x_209; while (true) { - const int x_214 = i_14; - const int x_216 = asint(x_10[2].x); + int x_214 = i_14; + int x_216 = asint(x_10[2].x); if ((x_214 < x_216)) { } else { break; } while (true) { - const int x_223 = x_GLF_global_loop_count; + int x_223 = x_GLF_global_loop_count; x_GLF_global_loop_count = (x_223 + 1); { - const int x_225 = x_GLF_global_loop_count; - const int x_227 = asint(x_10[3].x); + int x_225 = x_GLF_global_loop_count; + int x_227 = asint(x_10[3].x); if (!((x_225 < (100 - x_227)))) { break; } } } - const float x_231 = asfloat(x_7[0].x); - const float x_232 = f; + float x_231 = asfloat(x_7[0].x); + float x_232 = f; f = (x_232 + x_231); { - const int x_234 = i_14; + int x_234 = i_14; i_14 = (x_234 + 1); } } { - const int x_236 = i_13; + int x_236 = i_13; i_13 = (x_236 + 1); } } { - const int x_238 = i_12; + int x_238 = i_12; i_12 = (x_238 + 1); } } { - const int x_240 = i_11; + int x_240 = i_11; i_11 = (x_240 + 1); } } { - const int x_242 = i_10; + int x_242 = i_10; i_10 = (x_242 + 1); } } { - const int x_244 = i_9; + int x_244 = i_9; i_9 = (x_244 + 1); } } { - const int x_246 = i_8; + int x_246 = i_8; i_8 = (x_246 + 1); } } { - const int x_248 = i_7; + int x_248 = i_7; i_7 = (x_248 + 1); } } { - const int x_250 = i_6; + int x_250 = i_6; i_6 = (x_250 + 1); } } { - const int x_252 = i_5; + int x_252 = i_5; i_5 = (x_252 + 1); } } { - const int x_254 = i_4; + int x_254 = i_4; i_4 = (x_254 + 1); } } { - const int x_256 = i_3; + int x_256 = i_3; i_3 = (x_256 + 1); } } { - const int x_258 = i_2; + int x_258 = i_2; i_2 = (x_258 + 1); } } { - const int x_260 = i_1; + int x_260 = i_1; i_1 = (x_260 + 1); } } { - const int x_262 = i; + int x_262 = i; i = (x_262 + 1); } } - const float x_265 = asfloat(x_7[1].x); + float x_265 = asfloat(x_7[1].x); sum = x_265; - const int x_267 = asint(x_10[1].x); + int x_267 = asint(x_10[1].x); r = x_267; while (true) { - const int x_272 = x_GLF_global_loop_count; + int x_272 = x_GLF_global_loop_count; if ((x_272 < 100)) { } else { break; } - const int x_275 = x_GLF_global_loop_count; + int x_275 = x_GLF_global_loop_count; x_GLF_global_loop_count = (x_275 + 1); - const float x_277 = f; - const float x_278 = sum; + float x_277 = f; + float x_278 = sum; sum = (x_278 + x_277); { - const int x_280 = r; + int x_280 = r; r = (x_280 + 1); } } - const float x_282 = sum; - const float x_284 = asfloat(x_7[2].x); + float x_282 = sum; + float x_284 = asfloat(x_7[2].x); if ((x_282 == x_284)) { - const int x_290 = asint(x_10[0].x); - const int x_293 = asint(x_10[1].x); - const int x_296 = asint(x_10[1].x); - const int x_299 = asint(x_10[0].x); + int x_290 = asint(x_10[0].x); + int x_293 = asint(x_10[1].x); + int x_296 = asint(x_10[1].x); + int x_299 = asint(x_10[0].x); x_GLF_color = float4(float(x_290), float(x_293), float(x_296), float(x_299)); } else { - const int x_303 = asint(x_10[1].x); - const float x_304 = float(x_303); + int x_303 = asint(x_10[1].x); + float x_304 = float(x_303); x_GLF_color = float4(x_304, x_304, x_304, x_304); } return; @@ -298,12 +298,12 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.ir.fxc.hlsl index ef1d527efdc..ea730623e2e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.ir.fxc.hlsl @@ -83,7 +83,7 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F1F504F550(43,11-17): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x000001F1F504F550(33,9-19): error X3511: forced to unroll loop, but unrolling failed. -C:\src\dawn\Shader@0x000001F1F504F550(25,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000026BF2D2D730(43,11-17): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000026BF2D2D730(33,9-19): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000026BF2D2D730(25,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl.expected.ir.fxc.hlsl index aac1a271984..2fab403a3a1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl.expected.ir.fxc.hlsl @@ -103,7 +103,7 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000012918926630(50,11-17): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x0000012918926630(38,9-19): error X3511: forced to unroll loop, but unrolling failed. -C:\src\dawn\Shader@0x0000012918926630(28,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000022A3F426BD0(50,11-17): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000022A3F426BD0(38,9-19): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000022A3F426BD0(28,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.fxc.hlsl index 729f8492846..0cc29f73c01 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.fxc.hlsl @@ -6,21 +6,13 @@ cbuffer cbuffer_x_5 : register(b0) { }; void main_1() { - const int x_22 = asint(x_5[0].x); - const int x_25 = asint(x_5[1].x); - const int x_28 = asint(x_5[1].x); - const int x_31 = asint(x_5[0].x); - x_GLF_color = float4(float(x_22), float(x_25), float(x_28), float(x_31)); - const int x_35 = asint(x_5[1].x); - const int x_37 = asint(x_5[0].x); - if ((x_35 > x_37)) { + x_GLF_color = float4(float(asint(x_5[0].x)), float(asint(x_5[1].x)), float(asint(x_5[1].x)), float(asint(x_5[0].x))); + if ((asint(x_5[1].x) > asint(x_5[0].x))) { while (true) { - const int x_46 = asint(x_5[0].x); - const float x_47 = float(x_46); - x_GLF_color = float4(x_47, x_47, x_47, x_47); + x_GLF_color = float4((float(asint(x_5[0].x))).xxxx); { - const int x_50 = asint(x_5[1].x); - const int x_52 = asint(x_5[0].x); + int x_50 = asint(x_5[1].x); + int x_52 = asint(x_5[0].x); if (!((x_50 > x_52))) { break; } } } @@ -38,13 +30,16 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x000001BCBE360510(9,12-15): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.ir.fxc.hlsl index b71361ec5fa..03982e53125 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.spvasm.expected.ir.fxc.hlsl @@ -48,5 +48,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000025185E67510(22,13-16): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x000001E941FAF310(22,13-16): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.fxc.hlsl index 729f8492846..cc62fe16dc2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.fxc.hlsl @@ -6,21 +6,21 @@ cbuffer cbuffer_x_5 : register(b0) { }; void main_1() { - const int x_22 = asint(x_5[0].x); - const int x_25 = asint(x_5[1].x); - const int x_28 = asint(x_5[1].x); - const int x_31 = asint(x_5[0].x); + int x_22 = asint(x_5[0].x); + int x_25 = asint(x_5[1].x); + int x_28 = asint(x_5[1].x); + int x_31 = asint(x_5[0].x); x_GLF_color = float4(float(x_22), float(x_25), float(x_28), float(x_31)); - const int x_35 = asint(x_5[1].x); - const int x_37 = asint(x_5[0].x); + int x_35 = asint(x_5[1].x); + int x_37 = asint(x_5[0].x); if ((x_35 > x_37)) { while (true) { - const int x_46 = asint(x_5[0].x); - const float x_47 = float(x_46); + int x_46 = asint(x_5[0].x); + float x_47 = float(x_46); x_GLF_color = float4(x_47, x_47, x_47, x_47); { - const int x_50 = asint(x_5[1].x); - const int x_52 = asint(x_5[0].x); + int x_50 = asint(x_5[1].x); + int x_52 = asint(x_5[0].x); if (!((x_50 > x_52))) { break; } } } @@ -38,13 +38,16 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x00000236D3D741F0(15,12-15): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.ir.fxc.hlsl index fa24031a916..6f506fa7cbc 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl.expected.ir.fxc.hlsl @@ -55,5 +55,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001FD4D227010(27,13-16): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x000001724153F9A0(27,13-16): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.wgsl.expected.ir.fxc.hlsl index a973bad6357..c097554926b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.wgsl.expected.ir.fxc.hlsl @@ -92,5 +92,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000016A5F895D30(44,3-36): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001BA7BD5B630(44,3-36): error X3500: array reference cannot be used as an l-value; not natively addressable diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.spvasm.expected.ir.fxc.hlsl index 647c4333c8c..e5190f660b3 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.spvasm.expected.ir.fxc.hlsl @@ -99,5 +99,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000017FBC643C10(25,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000024D2CA165E0(25,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.wgsl.expected.ir.fxc.hlsl index deb572a4ea7..12fb663c14c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.wgsl.expected.ir.fxc.hlsl @@ -114,5 +114,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023C51E16140(26,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000001411AB93CD0(26,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.dxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.dxc.hlsl index cad1998d5be..e5807a1b44f 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.dxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.dxc.hlsl @@ -13,14 +13,10 @@ cbuffer cbuffer_x_10 : register(b0) { void main_1() { int i = 0; - const float x_38 = asfloat(x_5[0].x); - x_GLF_color = float4(x_38, x_38, x_38, x_38); - const float x_41 = asfloat(x_7[0].x); - const float x_43 = asfloat(x_5[0].x); - if ((x_41 > x_43)) { + x_GLF_color = float4((asfloat(x_5[0].x)).xxxx); + if ((asfloat(x_7[0].x) > asfloat(x_5[0].x))) { while (true) { - const float x_53 = asfloat(x_5[1].x); - x_GLF_color = float4(x_53, x_53, x_53, x_53); + x_GLF_color = float4((asfloat(x_5[1].x)).xxxx); { if (false) { break; } } @@ -32,30 +28,22 @@ void main_1() { } else { break; } - const int x_13 = asint(x_10[1].x); - i = x_13; + i = asint(x_10[1].x); while (true) { - const int x_14 = i; - const int x_15 = asint(x_10[0].x); - if ((x_14 < x_15)) { + if ((i < asint(x_10[0].x))) { } else { break; } - const float x_73 = asfloat(x_5[1].x); - const float x_75 = asfloat(x_5[0].x); - const float x_77 = asfloat(x_5[0].x); - const float x_79 = asfloat(x_5[1].x); - x_GLF_color = float4(x_73, x_75, x_77, x_79); + x_GLF_color = float4(asfloat(x_5[1].x), asfloat(x_5[0].x), asfloat(x_5[0].x), asfloat(x_5[1].x)); { - const int x_16 = i; - i = (x_16 + 1); + i = (i + 1); } } break; } { - const float x_82 = asfloat(x_7[0].x); - const float x_84 = asfloat(x_5[0].x); + float x_82 = asfloat(x_7[0].x); + float x_84 = asfloat(x_5[0].x); if (!((x_82 > x_84))) { break; } } } @@ -72,22 +60,19 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:77: error: Loop must have break. +hlsl.hlsl:65: error: Loop must have break. Validation failed. - diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.fxc.hlsl index 0323a1548ff..84958cb7d0e 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.fxc.hlsl @@ -13,14 +13,10 @@ cbuffer cbuffer_x_10 : register(b0) { void main_1() { int i = 0; - const float x_38 = asfloat(x_5[0].x); - x_GLF_color = float4(x_38, x_38, x_38, x_38); - const float x_41 = asfloat(x_7[0].x); - const float x_43 = asfloat(x_5[0].x); - if ((x_41 > x_43)) { + x_GLF_color = float4((asfloat(x_5[0].x)).xxxx); + if ((asfloat(x_7[0].x) > asfloat(x_5[0].x))) { while (true) { - const float x_53 = asfloat(x_5[1].x); - x_GLF_color = float4(x_53, x_53, x_53, x_53); + x_GLF_color = float4((asfloat(x_5[1].x)).xxxx); { if (false) { break; } } @@ -32,30 +28,22 @@ void main_1() { } else { break; } - const int x_13 = asint(x_10[1].x); - i = x_13; + i = asint(x_10[1].x); while (true) { - const int x_14 = i; - const int x_15 = asint(x_10[0].x); - if ((x_14 < x_15)) { + if ((i < asint(x_10[0].x))) { } else { break; } - const float x_73 = asfloat(x_5[1].x); - const float x_75 = asfloat(x_5[0].x); - const float x_77 = asfloat(x_5[0].x); - const float x_79 = asfloat(x_5[1].x); - x_GLF_color = float4(x_73, x_75, x_77, x_79); + x_GLF_color = float4(asfloat(x_5[1].x), asfloat(x_5[0].x), asfloat(x_5[0].x), asfloat(x_5[1].x)); { - const int x_16 = i; - i = (x_16 + 1); + i = (i + 1); } } break; } { - const float x_82 = asfloat(x_7[0].x); - const float x_84 = asfloat(x_5[0].x); + float x_82 = asfloat(x_7[0].x); + float x_84 = asfloat(x_5[0].x); if (!((x_82 > x_84))) { break; } } } @@ -72,13 +60,16 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020C03C34A30(16,12-15): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.ir.fxc.hlsl index 57f0bf0bf71..2fb9170680e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.spvasm.expected.ir.fxc.hlsl @@ -87,5 +87,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000149023C0AD0(26,13-16): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x0000021B71D338A0(26,13-16): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.dxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.dxc.hlsl index cad1998d5be..7e54a5f163c 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.dxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.dxc.hlsl @@ -13,13 +13,13 @@ cbuffer cbuffer_x_10 : register(b0) { void main_1() { int i = 0; - const float x_38 = asfloat(x_5[0].x); + float x_38 = asfloat(x_5[0].x); x_GLF_color = float4(x_38, x_38, x_38, x_38); - const float x_41 = asfloat(x_7[0].x); - const float x_43 = asfloat(x_5[0].x); + float x_41 = asfloat(x_7[0].x); + float x_43 = asfloat(x_5[0].x); if ((x_41 > x_43)) { while (true) { - const float x_53 = asfloat(x_5[1].x); + float x_53 = asfloat(x_5[1].x); x_GLF_color = float4(x_53, x_53, x_53, x_53); { if (false) { break; } @@ -32,30 +32,30 @@ void main_1() { } else { break; } - const int x_13 = asint(x_10[1].x); + int x_13 = asint(x_10[1].x); i = x_13; while (true) { - const int x_14 = i; - const int x_15 = asint(x_10[0].x); + int x_14 = i; + int x_15 = asint(x_10[0].x); if ((x_14 < x_15)) { } else { break; } - const float x_73 = asfloat(x_5[1].x); - const float x_75 = asfloat(x_5[0].x); - const float x_77 = asfloat(x_5[0].x); - const float x_79 = asfloat(x_5[1].x); + float x_73 = asfloat(x_5[1].x); + float x_75 = asfloat(x_5[0].x); + float x_77 = asfloat(x_5[0].x); + float x_79 = asfloat(x_5[1].x); x_GLF_color = float4(x_73, x_75, x_77, x_79); { - const int x_16 = i; + int x_16 = i; i = (x_16 + 1); } } break; } { - const float x_82 = asfloat(x_7[0].x); - const float x_84 = asfloat(x_5[0].x); + float x_82 = asfloat(x_7[0].x); + float x_84 = asfloat(x_5[0].x); if (!((x_82 > x_84))) { break; } } } @@ -72,22 +72,19 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:77: error: Loop must have break. +hlsl.hlsl:77: error: Loop must have break. Validation failed. - diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.fxc.hlsl index 0323a1548ff..8f3bea47fc4 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.fxc.hlsl @@ -13,13 +13,13 @@ cbuffer cbuffer_x_10 : register(b0) { void main_1() { int i = 0; - const float x_38 = asfloat(x_5[0].x); + float x_38 = asfloat(x_5[0].x); x_GLF_color = float4(x_38, x_38, x_38, x_38); - const float x_41 = asfloat(x_7[0].x); - const float x_43 = asfloat(x_5[0].x); + float x_41 = asfloat(x_7[0].x); + float x_43 = asfloat(x_5[0].x); if ((x_41 > x_43)) { while (true) { - const float x_53 = asfloat(x_5[1].x); + float x_53 = asfloat(x_5[1].x); x_GLF_color = float4(x_53, x_53, x_53, x_53); { if (false) { break; } @@ -32,30 +32,30 @@ void main_1() { } else { break; } - const int x_13 = asint(x_10[1].x); + int x_13 = asint(x_10[1].x); i = x_13; while (true) { - const int x_14 = i; - const int x_15 = asint(x_10[0].x); + int x_14 = i; + int x_15 = asint(x_10[0].x); if ((x_14 < x_15)) { } else { break; } - const float x_73 = asfloat(x_5[1].x); - const float x_75 = asfloat(x_5[0].x); - const float x_77 = asfloat(x_5[0].x); - const float x_79 = asfloat(x_5[1].x); + float x_73 = asfloat(x_5[1].x); + float x_75 = asfloat(x_5[0].x); + float x_77 = asfloat(x_5[0].x); + float x_79 = asfloat(x_5[1].x); x_GLF_color = float4(x_73, x_75, x_77, x_79); { - const int x_16 = i; + int x_16 = i; i = (x_16 + 1); } } break; } { - const float x_82 = asfloat(x_7[0].x); - const float x_84 = asfloat(x_5[0].x); + float x_82 = asfloat(x_7[0].x); + float x_84 = asfloat(x_5[0].x); if (!((x_82 > x_84))) { break; } } } @@ -72,13 +72,16 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x0000020D200749C0(19,12-15): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.ir.fxc.hlsl index 078e2456c31..aa2464b2581 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl.expected.ir.fxc.hlsl @@ -94,5 +94,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001B2EF347F10(28,13-16): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x00000239B1E474A0(28,13-16): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.ir.fxc.hlsl index 5c7dbc7196a..a611e86eaf6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.ir.fxc.hlsl @@ -97,7 +97,7 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001ABE73F2F70(19,19-25): warning X3556: integer divides may be much slower, try using uints if possible. -C:\src\dawn\Shader@0x000001ABE73F2F70(44,7-15): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x000001ABE73F2F70(33,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x00000278C6BACCE0(19,19-25): warning X3556: integer divides may be much slower, try using uints if possible. +C:\src\dawn\Shader@0x00000278C6BACCE0(44,7-15): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000278C6BACCE0(33,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl.expected.ir.fxc.hlsl index bc531f521e0..6506da0a8e7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl.expected.ir.fxc.hlsl @@ -125,7 +125,7 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002003EB20510(19,19-25): warning X3556: integer divides may be much slower, try using uints if possible. -C:\src\dawn\Shader@0x000002003EB20510(48,7-34): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x000002003EB20510(35,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000001C455097000(19,19-25): warning X3556: integer divides may be much slower, try using uints if possible. +C:\src\dawn\Shader@0x000001C455097000(48,7-34): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001C455097000(35,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.spvasm.expected.ir.fxc.hlsl index 5717edef059..ac27a605393 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.spvasm.expected.ir.fxc.hlsl @@ -108,5 +108,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F536260480(55,17-25): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x000001F51EF5CFE0(55,17-25): error X3708: continue cannot be used in a switch diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.wgsl.expected.ir.fxc.hlsl index 9758f574248..85d2f26dbea 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.wgsl.expected.ir.fxc.hlsl @@ -131,5 +131,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022CF32B5050(64,17-25): error X3708: continue cannot be used in a switch +C:\src\dawn\Shader@0x0000021F427EC580(64,17-25): error X3708: continue cannot be used in a switch diff --git a/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.spvasm.expected.ir.fxc.hlsl index d1ee477875e..b0469ea58fb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.spvasm.expected.ir.fxc.hlsl @@ -1,9 +1,112 @@ SKIP: FAILED -..\..\src\tint\lang\core\ir\transform\demote_to_helper.cc:208 internal compiler error: TINT_UNREACHABLE unexpected non-core instruction -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +struct main_out { + float4 x_GLF_color_1; +}; + +struct main_outputs { + float4 main_out_x_GLF_color_1 : SV_Target0; +}; + +struct main_inputs { + float4 gl_FragCoord_param : SV_Position; +}; + + +cbuffer cbuffer_x_9 : register(b0) { + uint4 x_9[1]; +}; +static float4 x_GLF_color = (0.0f).xxxx; +static float4 gl_FragCoord = (0.0f).xxxx; +static bool continue_execution = true; +int tint_f32_to_i32(float value) { + return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : (-2147483648))) : (2147483647)); +} + +void main_1() { + float2 v = (0.0f).xx; + float floats[9] = (float[9])0; + int one = 0; + int i = 0; + bool alwaysFalse = false; + v = (0.0f).xx; + floats[1] = 0.0f; + one = tint_f32_to_i32(asfloat(x_9[0u].y)); + { + while(true) { + i = 0; + { + while(true) { + if ((i < one)) { + } else { + break; + } + if ((i == 0)) { + float v_1 = asfloat(x_9[0u].x); + alwaysFalse = (v_1 > asfloat(x_9[0u].y)); + if (!(alwaysFalse)) { + int x_73 = one; + floats[x_73] = 1.0f; + x_GLF_color = float4(1.0f, 1.0f, 0.0f, 1.0f); + } + int x_75 = one; + v[x_75] = 1.0f; + if (alwaysFalse) { + continue_execution = false; + } + if ((asfloat(x_9[0u].y) < 0.0f)) { + x_GLF_color = float4(0.0f, 1.0f, 0.0f, 1.0f); + } + } + { + i = (i + 1); + } + continue; + } + } + { + int x_87 = one; + if (!((x_87 < 0))) { break; } + } + continue; + } + } + bool x_102 = false; + bool x_103 = false; + if ((gl_FragCoord.y >= 0.0f)) { + bool x_97 = (v.y == 1.0f); + x_103 = x_97; + if (x_97) { + x_102 = (floats[1] == 1.0f); + x_103 = x_102; + } + if (x_103) { + x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); + } + } else { + x_GLF_color = (0.0f).xxxx; + } +} + +main_out main_inner(float4 gl_FragCoord_param) { + gl_FragCoord = gl_FragCoord_param; + main_1(); + main_out v_2 = {x_GLF_color}; + return v_2; +} + +main_outputs main(main_inputs inputs) { + main_out v_3 = main_inner(float4(inputs.gl_FragCoord_param.xyz, (1.0f / inputs.gl_FragCoord_param[3u]))); + main_outputs v_4 = {v_3.x_GLF_color_1}; + if (!(continue_execution)) { + discard; + } + main_outputs v_5 = v_4; + return v_5; +} + +FXC validation failure: +C:\src\dawn\Shader@0x0000025F8E676850(51,13-19): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000025F8E676850(37,9-19): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000025F8E676850(34,5-15): error X3511: forced to unroll loop, but unrolling failed. + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.wgsl.expected.ir.fxc.hlsl index d1ee477875e..663d04acc0b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.wgsl.expected.ir.fxc.hlsl @@ -1,9 +1,125 @@ SKIP: FAILED -..\..\src\tint\lang\core\ir\transform\demote_to_helper.cc:208 internal compiler error: TINT_UNREACHABLE unexpected non-core instruction -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +struct main_out { + float4 x_GLF_color_1; +}; + +struct main_outputs { + float4 main_out_x_GLF_color_1 : SV_Target0; +}; + +struct main_inputs { + float4 gl_FragCoord_param : SV_Position; +}; + + +cbuffer cbuffer_x_9 : register(b0) { + uint4 x_9[1]; +}; +static float4 x_GLF_color = (0.0f).xxxx; +static float4 gl_FragCoord = (0.0f).xxxx; +static bool continue_execution = true; +int tint_f32_to_i32(float value) { + return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : (-2147483648))) : (2147483647)); +} + +void main_1() { + float2 v = (0.0f).xx; + float floats[9] = (float[9])0; + int one = 0; + int i = 0; + bool alwaysFalse = false; + v = (0.0f).xx; + floats[1] = 0.0f; + float x_46 = asfloat(x_9[0u].y); + one = tint_f32_to_i32(x_46); + { + while(true) { + i = 0; + { + while(true) { + int x_56 = i; + int x_57 = one; + if ((x_56 < x_57)) { + } else { + break; + } + int x_60 = i; + if ((x_60 == 0)) { + float x_65 = asfloat(x_9[0u].x); + float x_67 = asfloat(x_9[0u].y); + alwaysFalse = (x_65 > x_67); + bool x_69 = alwaysFalse; + if (!(x_69)) { + int x_73 = one; + floats[x_73] = 1.0f; + x_GLF_color = float4(1.0f, 1.0f, 0.0f, 1.0f); + } + int x_75 = one; + v[x_75] = 1.0f; + bool x_77 = alwaysFalse; + if (x_77) { + continue_execution = false; + } + float x_81 = asfloat(x_9[0u].y); + if ((x_81 < 0.0f)) { + x_GLF_color = float4(0.0f, 1.0f, 0.0f, 1.0f); + } + } + { + int x_85 = i; + i = (x_85 + 1); + } + continue; + } + } + { + int x_87 = one; + if (!((x_87 < 0))) { break; } + } + continue; + } + } + bool x_102 = false; + bool x_103_phi = false; + float x_90 = gl_FragCoord.y; + if ((x_90 >= 0.0f)) { + float x_96 = v.y; + bool x_97 = (x_96 == 1.0f); + x_103_phi = x_97; + if (x_97) { + float x_101 = floats[1]; + x_102 = (x_101 == 1.0f); + x_103_phi = x_102; + } + bool x_103 = x_103_phi; + if (x_103) { + x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); + } + } else { + x_GLF_color = (0.0f).xxxx; + } +} + +main_out main_inner(float4 gl_FragCoord_param) { + gl_FragCoord = gl_FragCoord_param; + main_1(); + main_out v_1 = {x_GLF_color}; + return v_1; +} + +main_outputs main(main_inputs inputs) { + main_out v_2 = main_inner(float4(inputs.gl_FragCoord_param.xyz, (1.0f / inputs.gl_FragCoord_param[3u]))); + main_outputs v_3 = {v_2.x_GLF_color_1}; + if (!(continue_execution)) { + discard; + } + main_outputs v_4 = v_3; + return v_4; +} + +FXC validation failure: +C:\src\dawn\Shader@0x00000245B4EF7500(57,13-19): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x00000245B4EF7500(38,9-19): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x00000245B4EF7500(35,5-15): error X3511: forced to unroll loop, but unrolling failed. + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.dxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.dxc.hlsl index c7e3d3309fd..50f8238c7d0 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.dxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.dxc.hlsl @@ -7,9 +7,8 @@ cbuffer cbuffer_x_7 : register(b0) { static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); float fx_() { - const float x_50 = gl_FragCoord.y; - if ((x_50 >= 0.0f)) { - const float x_55 = asfloat(x_7[0].y); + if ((gl_FragCoord.y >= 0.0f)) { + float x_55 = asfloat(x_7[0].y); return x_55; } while (true) { @@ -28,21 +27,18 @@ void main_1() { float k0 = 0.0f; x2 = 1.0f; B = 1.0f; - const float x_34 = fx_(); + float x_34 = fx_(); x_GLF_color = float4(x_34, 0.0f, 0.0f, 1.0f); while (true) { - const float x_40 = x2; - if ((x_40 > 2.0f)) { + if ((x2 > 2.0f)) { } else { break; } - const float x_43 = fx_(); - const float x_44 = fx_(); + float x_43 = fx_(); + float x_44 = fx_(); k0 = (x_43 - x_44); - const float x_46 = k0; - B = x_46; - const float x_47 = B; - x2 = x_47; + B = k0; + x2 = B; } return; } @@ -60,22 +56,19 @@ struct tint_symbol_2 { main_out main_inner(float4 gl_FragCoord_param) { gl_FragCoord = gl_FragCoord_param; main_1(); - const main_out tint_symbol_3 = {x_GLF_color}; + main_out tint_symbol_3 = {x_GLF_color}; return tint_symbol_3; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + main_out inner_result = main_inner(float4(tint_symbol.gl_FragCoord_param.xyz, (1.0f / tint_symbol.gl_FragCoord_param.w))); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:65: error: Loop must have break. +hlsl.hlsl:61: error: Loop must have break. Validation failed. - diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.fxc.hlsl index d31fcdbc5ff..d5068fa4d99 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.fxc.hlsl @@ -7,9 +7,8 @@ cbuffer cbuffer_x_7 : register(b0) { static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); float fx_() { - const float x_50 = gl_FragCoord.y; - if ((x_50 >= 0.0f)) { - const float x_55 = asfloat(x_7[0].y); + if ((gl_FragCoord.y >= 0.0f)) { + float x_55 = asfloat(x_7[0].y); return x_55; } while (true) { @@ -28,21 +27,18 @@ void main_1() { float k0 = 0.0f; x2 = 1.0f; B = 1.0f; - const float x_34 = fx_(); + float x_34 = fx_(); x_GLF_color = float4(x_34, 0.0f, 0.0f, 1.0f); while (true) { - const float x_40 = x2; - if ((x_40 > 2.0f)) { + if ((x2 > 2.0f)) { } else { break; } - const float x_43 = fx_(); - const float x_44 = fx_(); + float x_43 = fx_(); + float x_44 = fx_(); k0 = (x_43 - x_44); - const float x_46 = k0; - B = x_46; - const float x_47 = B; - x2 = x_47; + B = k0; + x2 = B; } return; } @@ -60,13 +56,16 @@ struct tint_symbol_2 { main_out main_inner(float4 gl_FragCoord_param) { gl_FragCoord = gl_FragCoord_param; main_1(); - const main_out tint_symbol_3 = {x_GLF_color}; + main_out tint_symbol_3 = {x_GLF_color}; return tint_symbol_3; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + main_out inner_result = main_inner(float4(tint_symbol.gl_FragCoord_param.xyz, (1.0f / tint_symbol.gl_FragCoord_param.w))); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x0000028AD381C760(12,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.ir.fxc.hlsl index dcc6ed477e6..4bd6acf843c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.spvasm.expected.ir.fxc.hlsl @@ -78,5 +78,5 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000023BDF9F0240(25,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x0000017AB77DAA00(25,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.dxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.dxc.hlsl index c7e3d3309fd..13bfec97ad3 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.dxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.dxc.hlsl @@ -7,9 +7,9 @@ cbuffer cbuffer_x_7 : register(b0) { static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); float fx_() { - const float x_50 = gl_FragCoord.y; + float x_50 = gl_FragCoord.y; if ((x_50 >= 0.0f)) { - const float x_55 = asfloat(x_7[0].y); + float x_55 = asfloat(x_7[0].y); return x_55; } while (true) { @@ -28,20 +28,20 @@ void main_1() { float k0 = 0.0f; x2 = 1.0f; B = 1.0f; - const float x_34 = fx_(); + float x_34 = fx_(); x_GLF_color = float4(x_34, 0.0f, 0.0f, 1.0f); while (true) { - const float x_40 = x2; + float x_40 = x2; if ((x_40 > 2.0f)) { } else { break; } - const float x_43 = fx_(); - const float x_44 = fx_(); + float x_43 = fx_(); + float x_44 = fx_(); k0 = (x_43 - x_44); - const float x_46 = k0; + float x_46 = k0; B = x_46; - const float x_47 = B; + float x_47 = B; x2 = x_47; } return; @@ -60,22 +60,19 @@ struct tint_symbol_2 { main_out main_inner(float4 gl_FragCoord_param) { gl_FragCoord = gl_FragCoord_param; main_1(); - const main_out tint_symbol_3 = {x_GLF_color}; + main_out tint_symbol_3 = {x_GLF_color}; return tint_symbol_3; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + main_out inner_result = main_inner(float4(tint_symbol.gl_FragCoord_param.xyz, (1.0f / tint_symbol.gl_FragCoord_param.w))); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:65: error: Loop must have break. +hlsl.hlsl:65: error: Loop must have break. Validation failed. - diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.fxc.hlsl index d31fcdbc5ff..b6d494e810b 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.fxc.hlsl @@ -7,9 +7,9 @@ cbuffer cbuffer_x_7 : register(b0) { static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); float fx_() { - const float x_50 = gl_FragCoord.y; + float x_50 = gl_FragCoord.y; if ((x_50 >= 0.0f)) { - const float x_55 = asfloat(x_7[0].y); + float x_55 = asfloat(x_7[0].y); return x_55; } while (true) { @@ -28,20 +28,20 @@ void main_1() { float k0 = 0.0f; x2 = 1.0f; B = 1.0f; - const float x_34 = fx_(); + float x_34 = fx_(); x_GLF_color = float4(x_34, 0.0f, 0.0f, 1.0f); while (true) { - const float x_40 = x2; + float x_40 = x2; if ((x_40 > 2.0f)) { } else { break; } - const float x_43 = fx_(); - const float x_44 = fx_(); + float x_43 = fx_(); + float x_44 = fx_(); k0 = (x_43 - x_44); - const float x_46 = k0; + float x_46 = k0; B = x_46; - const float x_47 = B; + float x_47 = B; x2 = x_47; } return; @@ -60,13 +60,16 @@ struct tint_symbol_2 { main_out main_inner(float4 gl_FragCoord_param) { gl_FragCoord = gl_FragCoord_param; main_1(); - const main_out tint_symbol_3 = {x_GLF_color}; + main_out tint_symbol_3 = {x_GLF_color}; return tint_symbol_3; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + main_out inner_result = main_inner(float4(tint_symbol.gl_FragCoord_param.xyz, (1.0f / tint_symbol.gl_FragCoord_param.w))); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x00000236E7DC9930(13,10-13): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.ir.fxc.hlsl index a446ab1ec27..9afa46f8f55 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl.expected.ir.fxc.hlsl @@ -82,5 +82,5 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x00000283BC8EE920(26,11-14): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x00000112870A5FF0(26,11-14): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.spvasm.expected.fxc.hlsl index fdea27b63a7..98b6ed0590b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.spvasm.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.spvasm.expected.fxc.hlsl @@ -1,5 +1,9 @@ SKIP: FAILED +int tint_ftoi(float v) { + return ((v < 2147483520.0f) ? ((v < -2147483648.0f) ? -2147483648 : int(v)) : 2147483647); +} + static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); cbuffer cbuffer_x_6 : register(b0) { uint4 x_6[1]; @@ -21,8 +25,8 @@ void main_1() { int x_120 = 0; int x_116 = 0; int x_161 = 0; - const float x_40 = asfloat(x_6[0].x); - const bool x_41 = (x_40 < -1.0f); + float x_40 = asfloat(x_6[0].x); + bool x_41 = (x_40 < -1.0f); x_45 = false; x_48 = 0; x_50 = 0; @@ -35,7 +39,7 @@ void main_1() { int x_63 = 0; int x_51 = 0; int x_53 = 0; - const float x_55 = gl_FragCoord.y; + float x_55 = gl_FragCoord.y; x_111 = x_48; x_112 = x_45; if ((x_52 < ((x_55 > -1.0f) ? 10 : 100))) { @@ -59,8 +63,7 @@ void main_1() { bool x_78 = false; int x_86 = 0; bool x_98 = false; - const float x_77 = gl_FragCoord.x; - x_78 = (x_77 < -1.0f); + x_78 = (gl_FragCoord.x < -1.0f); if (!((x_40 < 0.0f))) { if (x_78) { x_66 = 0; @@ -108,8 +111,7 @@ void main_1() { break; } { - const float x_105 = float(x_52); - x_GLF_color = float4(x_105, x_105, x_105, x_105); + x_GLF_color = float4((float(x_52)).xxxx); } } x_51 = x_66; @@ -152,9 +154,9 @@ void main_1() { int x_154 = 0; int x_119 = 0; int x_121 = 0; - const float x_123 = asfloat(x_6[0].y); + float x_123 = asfloat(x_6[0].y); x_161 = x_115; - if ((x_120 < int((x_123 + 1.0f)))) { + if ((x_120 < tint_ftoi((x_123 + 1.0f)))) { } else { break; } @@ -162,8 +164,7 @@ void main_1() { bool x_135 = false; int x_143 = 0; bool x_155 = false; - const float x_134 = gl_FragCoord.x; - x_135 = (x_134 < -1.0f); + x_135 = (gl_FragCoord.x < -1.0f); if (!((x_40 < 0.0f))) { if (x_135) { x_119 = 0; @@ -238,13 +239,21 @@ struct tint_symbol_2 { main_out main_inner(float4 gl_FragCoord_param) { gl_FragCoord = gl_FragCoord_param; main_1(); - const main_out tint_symbol_3 = {x_GLF_color}; + main_out tint_symbol_3 = {x_GLF_color}; return tint_symbol_3; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + main_out inner_result = main_inner(float4(tint_symbol.gl_FragCoord_param.xyz, (1.0f / tint_symbol.gl_FragCoord_param.w))); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x0000013D63676B20(12,3-14): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000013D63676B20(60,9-20): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000013D63676B20(161,7-18): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000013D63676B20(60,9-20): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000013D63676B20(161,7-18): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000013D63676B20(106,11-22): error X4029: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.fxc.hlsl index 36f4c592c5a..1e1a37f54f1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.fxc.hlsl @@ -1,5 +1,9 @@ SKIP: FAILED +int tint_ftoi(float v) { + return ((v < 2147483520.0f) ? ((v < -2147483648.0f) ? -2147483648 : int(v)) : 2147483647); +} + static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); cbuffer cbuffer_x_6 : register(b0) { uint4 x_6[1]; @@ -24,8 +28,8 @@ void main_1() { int x_118_phi = 0; int x_120_phi = 0; int x_161_phi = 0; - const float x_40 = asfloat(x_6[0].x); - const bool x_41 = (x_40 < -1.0f); + float x_40 = asfloat(x_6[0].x); + bool x_41 = (x_40 < -1.0f); x_45_phi = false; x_48_phi = 0; x_50_phi = 0; @@ -44,9 +48,9 @@ void main_1() { bool x_46_phi = false; x_45 = x_45_phi; x_48 = x_48_phi; - const int x_50 = x_50_phi; - const int x_52 = x_52_phi; - const float x_55 = gl_FragCoord.y; + int x_50 = x_50_phi; + int x_52 = x_52_phi; + float x_55 = gl_FragCoord.y; x_111_phi = x_48; x_112_phi = x_45; if ((x_52 < ((x_55 > -1.0f) ? 10 : 100))) { @@ -62,7 +66,7 @@ void main_1() { int x_66_phi = 0; x_62 = x_62_phi; x_65 = x_65_phi; - const int x_67 = x_67_phi; + int x_67 = x_67_phi; x_51_phi = x_65; x_49_phi = x_62; x_46_phi = x_45; @@ -75,7 +79,7 @@ void main_1() { int x_86_phi = 0; int x_97_phi = 0; bool x_98_phi = false; - const float x_77 = gl_FragCoord.x; + float x_77 = gl_FragCoord.x; x_78 = (x_77 < -1.0f); if (!((x_40 < 0.0f))) { if (x_78) { @@ -85,7 +89,7 @@ void main_1() { x_86_phi = 1; while (true) { int x_87 = 0; - const int x_86 = x_86_phi; + int x_86 = x_86_phi; x_97_phi = x_65; x_98_phi = false; if ((x_86 < 3)) { @@ -110,7 +114,7 @@ void main_1() { } } x_97 = x_97_phi; - const bool x_98 = x_98_phi; + bool x_98 = x_98_phi; x_66_phi = x_97; if (x_98) { break; @@ -120,7 +124,7 @@ void main_1() { break; } x_66 = x_66_phi; - x_63 = asint((x_62 + x_66)); + x_63 = (x_62 + x_66); if (x_41) { while (true) { if (x_41) { @@ -128,7 +132,7 @@ void main_1() { break; } { - const float x_105 = float(x_52); + float x_105 = float(x_52); x_GLF_color = float4(x_105, x_105, x_105, x_105); } } @@ -144,7 +148,7 @@ void main_1() { x_67_phi = x_68; } } - const int x_51 = x_51_phi; + int x_51 = x_51_phi; x_49 = x_49_phi; x_46 = x_46_phi; x_111_phi = x_49; @@ -165,8 +169,8 @@ void main_1() { x_52_phi = x_53; } } - const int x_111 = x_111_phi; - const bool x_112 = x_112_phi; + int x_111 = x_111_phi; + bool x_112 = x_112_phi; if (x_112) { break; } @@ -178,11 +182,11 @@ void main_1() { int x_121 = 0; int x_119_phi = 0; x_115 = x_115_phi; - const int x_118 = x_118_phi; - const int x_120 = x_120_phi; - const float x_123 = asfloat(x_6[0].y); + int x_118 = x_118_phi; + int x_120 = x_120_phi; + float x_123 = asfloat(x_6[0].y); x_161_phi = x_115; - if ((x_120 < int((x_123 + 1.0f)))) { + if ((x_120 < tint_ftoi((x_123 + 1.0f)))) { } else { break; } @@ -191,7 +195,7 @@ void main_1() { int x_143_phi = 0; int x_154_phi = 0; bool x_155_phi = false; - const float x_134 = gl_FragCoord.x; + float x_134 = gl_FragCoord.x; x_135 = (x_134 < -1.0f); if (!((x_40 < 0.0f))) { if (x_135) { @@ -201,7 +205,7 @@ void main_1() { x_143_phi = 1; while (true) { int x_144 = 0; - const int x_143 = x_143_phi; + int x_143 = x_143_phi; x_154_phi = x_118; x_155_phi = false; if ((x_143 < 3)) { @@ -226,7 +230,7 @@ void main_1() { } } x_154 = x_154_phi; - const bool x_155 = x_155_phi; + bool x_155 = x_155_phi; x_119_phi = x_154; if (x_155) { break; @@ -237,7 +241,7 @@ void main_1() { } int x_119 = 0; x_119 = x_119_phi; - x_116 = asint((x_115 + x_119)); + x_116 = (x_115 + x_119); if ((!(x_41) ? false : x_41)) { x_161_phi = x_116; break; @@ -249,7 +253,7 @@ void main_1() { x_120_phi = x_121; } } - const int x_161 = x_161_phi; + int x_161 = x_161_phi; if ((x_161 == 4)) { x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); } else { @@ -273,13 +277,21 @@ struct tint_symbol_2 { main_out main_inner(float4 gl_FragCoord_param) { gl_FragCoord = gl_FragCoord_param; main_1(); - const main_out tint_symbol_3 = {x_GLF_color}; + main_out tint_symbol_3 = {x_GLF_color}; return tint_symbol_3; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + main_out inner_result = main_inner(float4(tint_symbol.gl_FragCoord_param.xyz, (1.0f / tint_symbol.gl_FragCoord_param.w))); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x0000023E21838B10(12,3-14): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000023E21838B10(75,9-20): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000023E21838B10(191,7-18): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000023E21838B10(75,9-20): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000023E21838B10(191,7-18): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000023E21838B10(127,11-22): error X4029: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.spvasm.expected.ir.fxc.hlsl index 9946cf1a5c8..e231380febe 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.spvasm.expected.ir.fxc.hlsl @@ -102,9 +102,9 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000170BC63A020(70,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll -C:\src\dawn\Shader@0x00000170BC63A020(70,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll -C:\src\dawn\Shader@0x00000170BC63A020(70,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll -C:\src\dawn\Shader@0x00000170BC63A020(57,11-35): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x00000170BC63A020(48,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000017D197F0100(70,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll +C:\src\dawn\Shader@0x0000017D197F0100(70,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll +C:\src\dawn\Shader@0x0000017D197F0100(70,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll +C:\src\dawn\Shader@0x0000017D197F0100(57,11-35): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000017D197F0100(48,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.wgsl.expected.ir.fxc.hlsl index 2f325911e49..fb19eaee52f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.wgsl.expected.ir.fxc.hlsl @@ -113,9 +113,9 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000019ADAC81550(79,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll -C:\src\dawn\Shader@0x0000019ADAC81550(79,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll -C:\src\dawn\Shader@0x0000019ADAC81550(79,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll -C:\src\dawn\Shader@0x0000019ADAC81550(64,11-35): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x0000019ADAC81550(52,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000026C0F03CB40(79,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll +C:\src\dawn\Shader@0x0000026C0F03CB40(79,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll +C:\src\dawn\Shader@0x0000026C0F03CB40(79,9-19): warning X3557: loop doesn't seem to do anything, forcing loop to unroll +C:\src\dawn\Shader@0x0000026C0F03CB40(64,11-35): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000026C0F03CB40(52,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.spvasm.expected.ir.fxc.hlsl index eb2da9f33ee..90f5325fc7f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.spvasm.expected.ir.fxc.hlsl @@ -84,5 +84,5 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001A1FC82E740(25,5-15): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (435 iterations) or unrolled loop is too large, use the [unroll(n)] attribute to force an exact higher number +C:\src\dawn\Shader@0x0000014C0D024760(25,5-15): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (435 iterations) or unrolled loop is too large, use the [unroll(n)] attribute to force an exact higher number diff --git a/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.wgsl.expected.ir.fxc.hlsl index 21fb7918a05..9f6c2e1f498 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.wgsl.expected.ir.fxc.hlsl @@ -87,5 +87,5 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000017BE69B84F0(25,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000001EB67826FB0(25,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.fxc.hlsl index 4e77fb649d1..ea2d21c7d02 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.fxc.hlsl @@ -1,5 +1,9 @@ SKIP: FAILED +int tint_ftoi(float v) { + return ((v < 2147483520.0f) ? ((v < -2147483648.0f) ? -2147483648 : int(v)) : 2147483647); +} + static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); cbuffer cbuffer_x_7 : register(b0) { uint4 x_7[1]; @@ -8,7 +12,7 @@ static int map[256] = (int[256])0; static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); int tint_mod(int lhs, int rhs) { - const int rhs_or_one = (((rhs == 0) | ((lhs == -2147483648) & (rhs == -1))) ? 1 : rhs); + int rhs_or_one = (((rhs == 0) | ((lhs == -2147483648) & (rhs == -1))) ? 1 : rhs); if (any(((uint((lhs | rhs_or_one)) & 2147483648u) != 0u))) { return (lhs - ((lhs / rhs_or_one) * rhs_or_one)); } else { @@ -26,24 +30,18 @@ void main_1() { int directions = 0; int j = 0; int d = 0; - const float4 x_59 = gl_FragCoord; - const float2 x_62 = asfloat(x_7[0].xy); - pos = (float2(x_59.x, x_59.y) / x_62); - const float x_65 = pos.x; - const float x_69 = pos.y; - ipos = int2(int((x_65 * 16.0f)), int((x_69 * 16.0f))); + pos = (gl_FragCoord.xy / asfloat(x_7[0].xy)); + ipos = int2(tint_ftoi((pos.x * 16.0f)), tint_ftoi((pos.y * 16.0f))); i = 0; while (true) { - const int x_77 = i; - if ((x_77 < 256)) { + if ((i < 256)) { } else { break; } - const int x_80 = i; + int x_80 = i; map[x_80] = 0; { - const int x_82 = i; - i = (x_82 + 1); + i = (i + 1); } } p = (0).xx; @@ -58,64 +56,43 @@ void main_1() { bool x_145 = false; bool x_164 = false; bool x_165 = false; - const int x_88 = v; - v = (x_88 + 1); + v = (v + 1); directions = 0; - const int x_91 = p.x; - const bool x_92 = (x_91 > 0); + bool x_92 = (p.x > 0); x_105 = x_92; if (x_92) { - const int x_96 = p.x; - const int x_99 = p.y; - const int x_103 = map[((x_96 - 2) + (x_99 * 16))]; - x_104 = (x_103 == 0); + x_104 = (map[((p.x - 2) + (p.y * 16))] == 0); x_105 = x_104; } if (x_105) { - const int x_108 = directions; - directions = (x_108 + 1); + directions = (directions + 1); } - const int x_111 = p.y; - const bool x_112 = (x_111 > 0); + bool x_112 = (p.y > 0); x_125 = x_112; if (x_112) { - const int x_116 = p.x; - const int x_118 = p.y; - const int x_123 = map[(x_116 + ((x_118 - 2) * 16))]; - x_124 = (x_123 == 0); + x_124 = (map[(p.x + ((p.y - 2) * 16))] == 0); x_125 = x_124; } if (x_125) { - const int x_128 = directions; - directions = (x_128 + 1); + directions = (directions + 1); } - const int x_131 = p.x; - const bool x_132 = (x_131 < 14); + bool x_132 = (p.x < 14); x_145 = x_132; if (x_132) { - const int x_136 = p.x; - const int x_139 = p.y; - const int x_143 = map[((x_136 + 2) + (x_139 * 16))]; - x_144 = (x_143 == 0); + x_144 = (map[((p.x + 2) + (p.y * 16))] == 0); x_145 = x_144; } if (x_145) { - const int x_148 = directions; - directions = (x_148 + 1); + directions = (directions + 1); } - const int x_151 = p.y; - const bool x_152 = (x_151 < 14); + bool x_152 = (p.y < 14); x_165 = x_152; if (x_152) { - const int x_156 = p.x; - const int x_158 = p.y; - const int x_163 = map[(x_156 + ((x_158 + 2) * 16))]; - x_164 = (x_163 == 0); + x_164 = (map[(p.x + ((p.y + 2) * 16))] == 0); x_165 = x_164; } if (x_165) { - const int x_168 = directions; - directions = (x_168 + 1); + directions = (directions + 1); } bool x_229 = false; bool x_230 = false; @@ -143,90 +120,67 @@ void main_1() { bool x_412 = false; bool x_424 = false; bool x_425 = false; - const int x_170 = directions; - if ((x_170 == 0)) { + if ((directions == 0)) { canwalk = false; i = 0; while (true) { - const int x_179 = i; - if ((x_179 < 8)) { + if ((i < 8)) { } else { break; } j = 0; while (true) { - const int x_186 = j; - if ((x_186 < 8)) { + if ((j < 8)) { } else { break; } - const int x_189 = j; - const int x_191 = i; - const int x_196 = map[((x_189 * 2) + ((x_191 * 2) * 16))]; - if ((x_196 == 0)) { - const int x_200 = j; - p.x = (x_200 * 2); - const int x_203 = i; - p.y = (x_203 * 2); + if ((map[((j * 2) + ((i * 2) * 16))] == 0)) { + p.x = (j * 2); + p.y = (i * 2); canwalk = true; } { - const int x_206 = j; - j = (x_206 + 1); + j = (j + 1); } } { - const int x_208 = i; - i = (x_208 + 1); + i = (i + 1); } } - const int x_211 = p.x; - const int x_213 = p.y; + int x_211 = p.x; + int x_213 = p.y; map[(x_211 + (x_213 * 16))] = 1; } else { - const int x_217 = v; - const int x_218 = directions; - d = tint_mod(x_217, x_218); - const int x_220 = directions; - const int x_221 = v; - v = (x_221 + x_220); - const int x_223 = d; - const bool x_224 = (x_223 >= 0); + d = tint_mod(v, directions); + v = (v + directions); + bool x_224 = (d >= 0); x_230 = x_224; if (x_224) { - const int x_228 = p.x; - x_229 = (x_228 > 0); + x_229 = (p.x > 0); x_230 = x_229; } x_243 = x_230; if (x_230) { - const int x_234 = p.x; - const int x_237 = p.y; - const int x_241 = map[((x_234 - 2) + (x_237 * 16))]; - x_242 = (x_241 == 0); + x_242 = (map[((p.x - 2) + (p.y * 16))] == 0); x_243 = x_242; } if (x_243) { - const int x_246 = d; - d = (x_246 - 1); - const int x_249 = p.x; - const int x_251 = p.y; + d = (d - 1); + int x_249 = p.x; + int x_251 = p.y; map[(x_249 + (x_251 * 16))] = 1; - const int x_256 = p.x; - const int x_259 = p.y; + int x_256 = p.x; + int x_259 = p.y; map[((x_256 - 1) + (x_259 * 16))] = 1; - const int x_264 = p.x; - const int x_267 = p.y; + int x_264 = p.x; + int x_267 = p.y; map[((x_264 - 2) + (x_267 * 16))] = 1; - const int x_272 = p.x; - p.x = (x_272 - 2); + p.x = (p.x - 2); } - const int x_275 = d; - const bool x_276 = (x_275 >= 0); + bool x_276 = (d >= 0); x_282 = x_276; if (x_276) { - const int x_280 = p.y; - x_281 = (x_280 > 0); + x_281 = (p.y > 0); x_282 = x_281; } if (x_282) { @@ -243,17 +197,17 @@ void main_1() { x_296 = 0; x_297 = x_296; } - const int x_299 = ((x_297 - 2) * 16); + int x_299 = ((x_297 - 2) * 16); if (x_282) { x_303 = map; x_305 = x_303; } else { - const int tint_symbol_3[256] = (int[256])0; + int tint_symbol_3[256] = (int[256])0; x_304 = tint_symbol_3; x_305 = x_304; } if (x_282) { - const int tint_symbol_4[256] = (int[256])0; + int tint_symbol_4[256] = (int[256])0; map = tint_symbol_4; } if (x_282) { @@ -266,98 +220,78 @@ void main_1() { x_316 = 0; x_317 = x_316; } - const bool x_318 = (x_317 == 0); - if ((x_282 ? x_318 : x_282)) { - const int x_323 = d; - d = (x_323 - 1); - const int x_326 = p.x; - const int x_328 = p.y; + if ((x_282 ? (x_317 == 0) : x_282)) { + d = (d - 1); + int x_326 = p.x; + int x_328 = p.y; map[(x_326 + (x_328 * 16))] = 1; - const int x_333 = p.x; - const int x_335 = p.y; + int x_333 = p.x; + int x_335 = p.y; map[(x_333 + ((x_335 - 1) * 16))] = 1; - const int x_341 = p.x; - const int x_343 = p.y; - const int x_345[256] = map; - const int tint_symbol_5[256] = (int[256])0; + int x_341 = p.x; + int x_343 = p.y; + int x_345[256] = map; + int tint_symbol_5[256] = (int[256])0; map = tint_symbol_5; map = x_345; map[(x_341 + ((x_343 - 2) * 16))] = 1; - const int x_350 = p.y; - p.y = (x_350 - 2); + p.y = (p.y - 2); } - const int x_353 = d; - const bool x_354 = (x_353 >= 0); + bool x_354 = (d >= 0); x_360 = x_354; if (x_354) { - const int x_358 = p.x; - x_359 = (x_358 < 14); + x_359 = (p.x < 14); x_360 = x_359; } x_373 = x_360; if (x_360) { - const int x_364 = p.x; - const int x_367 = p.y; - const int x_371 = map[((x_364 + 2) + (x_367 * 16))]; - x_372 = (x_371 == 0); + x_372 = (map[((p.x + 2) + (p.y * 16))] == 0); x_373 = x_372; } if (x_373) { - const int x_376 = d; - d = (x_376 - 1); - const int x_379 = p.x; - const int x_381 = p.y; + d = (d - 1); + int x_379 = p.x; + int x_381 = p.y; map[(x_379 + (x_381 * 16))] = 1; - const int x_386 = p.x; - const int x_389 = p.y; + int x_386 = p.x; + int x_389 = p.y; map[((x_386 + 1) + (x_389 * 16))] = 1; - const int x_394 = p.x; - const int x_397 = p.y; + int x_394 = p.x; + int x_397 = p.y; map[((x_394 + 2) + (x_397 * 16))] = 1; - const int x_402 = p.x; - p.x = (x_402 + 2); + p.x = (p.x + 2); } - const int x_405 = d; - const bool x_406 = (x_405 >= 0); + bool x_406 = (d >= 0); x_412 = x_406; if (x_406) { - const int x_410 = p.y; - x_411 = (x_410 < 14); + x_411 = (p.y < 14); x_412 = x_411; } x_425 = x_412; if (x_412) { - const int x_416 = p.x; - const int x_418 = p.y; - const int x_423 = map[(x_416 + ((x_418 + 2) * 16))]; - x_424 = (x_423 == 0); + x_424 = (map[(p.x + ((p.y + 2) * 16))] == 0); x_425 = x_424; } if (x_425) { - const int x_428 = d; - d = (x_428 - 1); - const int x_431 = p.x; - const int x_433 = p.y; + d = (d - 1); + int x_431 = p.x; + int x_433 = p.y; map[(x_431 + (x_433 * 16))] = 1; - const int x_438 = p.x; - const int x_440 = p.y; + int x_438 = p.x; + int x_440 = p.y; map[(x_438 + ((x_440 + 1) * 16))] = 1; - const int x_446 = p.x; - const int x_448 = p.y; + int x_446 = p.x; + int x_448 = p.y; map[(x_446 + ((x_448 + 2) * 16))] = 1; - const int x_454 = p.y; - p.y = (x_454 + 2); + p.y = (p.y + 2); } } - const int x_458 = ipos.y; - const int x_461 = ipos.x; - const int x_464 = map[((x_458 * 16) + x_461)]; - if ((x_464 == 1)) { + if ((map[((ipos.y * 16) + ipos.x)] == 1)) { x_GLF_color = (1.0f).xxxx; return; } { - const bool x_468 = canwalk; + bool x_468 = canwalk; if (!(x_468)) { break; } } } @@ -378,12 +312,12 @@ struct tint_symbol_2 { main_out main_inner(float4 gl_FragCoord_param) { gl_FragCoord = gl_FragCoord_param; main_1(); - const main_out tint_symbol_6 = {x_GLF_color}; + main_out tint_symbol_6 = {x_GLF_color}; return tint_symbol_6; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + main_out inner_result = main_inner(float4(tint_symbol.gl_FragCoord_param.xyz, (1.0f / tint_symbol.gl_FragCoord_param.w))); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.fxc.hlsl index 1ce2c44414f..7578a77c56a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.fxc.hlsl @@ -1,5 +1,9 @@ SKIP: FAILED +int tint_ftoi(float v) { + return ((v < 2147483520.0f) ? ((v < -2147483648.0f) ? -2147483648 : int(v)) : 2147483647); +} + static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); cbuffer cbuffer_x_7 : register(b0) { uint4 x_7[1]; @@ -8,7 +12,7 @@ static int map[256] = (int[256])0; static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); int tint_mod(int lhs, int rhs) { - const int rhs_or_one = (((rhs == 0) | ((lhs == -2147483648) & (rhs == -1))) ? 1 : rhs); + int rhs_or_one = (((rhs == 0) | ((lhs == -2147483648) & (rhs == -1))) ? 1 : rhs); if (any(((uint((lhs | rhs_or_one)) & 2147483648u) != 0u))) { return (lhs - ((lhs / rhs_or_one) * rhs_or_one)); } else { @@ -26,23 +30,23 @@ void main_1() { int directions = 0; int j = 0; int d = 0; - const float4 x_59 = gl_FragCoord; - const float2 x_62 = asfloat(x_7[0].xy); + float4 x_59 = gl_FragCoord; + float2 x_62 = asfloat(x_7[0].xy); pos = (float2(x_59.x, x_59.y) / x_62); - const float x_65 = pos.x; - const float x_69 = pos.y; - ipos = int2(int((x_65 * 16.0f)), int((x_69 * 16.0f))); + float x_65 = pos.x; + float x_69 = pos.y; + ipos = int2(tint_ftoi((x_65 * 16.0f)), tint_ftoi((x_69 * 16.0f))); i = 0; while (true) { - const int x_77 = i; + int x_77 = i; if ((x_77 < 256)) { } else { break; } - const int x_80 = i; + int x_80 = i; map[x_80] = 0; { - const int x_82 = i; + int x_82 = i; i = (x_82 + 1); } } @@ -58,67 +62,67 @@ void main_1() { bool x_125_phi = false; bool x_145_phi = false; bool x_165_phi = false; - const int x_88 = v; + int x_88 = v; v = (x_88 + 1); directions = 0; - const int x_91 = p.x; - const bool x_92 = (x_91 > 0); + int x_91 = p.x; + bool x_92 = (x_91 > 0); x_105_phi = x_92; if (x_92) { - const int x_96 = p.x; - const int x_99 = p.y; - const int x_103 = map[((x_96 - 2) + (x_99 * 16))]; + int x_96 = p.x; + int x_99 = p.y; + int x_103 = map[((x_96 - 2) + (x_99 * 16))]; x_104 = (x_103 == 0); x_105_phi = x_104; } - const bool x_105 = x_105_phi; + bool x_105 = x_105_phi; if (x_105) { - const int x_108 = directions; + int x_108 = directions; directions = (x_108 + 1); } - const int x_111 = p.y; - const bool x_112 = (x_111 > 0); + int x_111 = p.y; + bool x_112 = (x_111 > 0); x_125_phi = x_112; if (x_112) { - const int x_116 = p.x; - const int x_118 = p.y; - const int x_123 = map[(x_116 + ((x_118 - 2) * 16))]; + int x_116 = p.x; + int x_118 = p.y; + int x_123 = map[(x_116 + ((x_118 - 2) * 16))]; x_124 = (x_123 == 0); x_125_phi = x_124; } - const bool x_125 = x_125_phi; + bool x_125 = x_125_phi; if (x_125) { - const int x_128 = directions; + int x_128 = directions; directions = (x_128 + 1); } - const int x_131 = p.x; - const bool x_132 = (x_131 < 14); + int x_131 = p.x; + bool x_132 = (x_131 < 14); x_145_phi = x_132; if (x_132) { - const int x_136 = p.x; - const int x_139 = p.y; - const int x_143 = map[((x_136 + 2) + (x_139 * 16))]; + int x_136 = p.x; + int x_139 = p.y; + int x_143 = map[((x_136 + 2) + (x_139 * 16))]; x_144 = (x_143 == 0); x_145_phi = x_144; } - const bool x_145 = x_145_phi; + bool x_145 = x_145_phi; if (x_145) { - const int x_148 = directions; + int x_148 = directions; directions = (x_148 + 1); } - const int x_151 = p.y; - const bool x_152 = (x_151 < 14); + int x_151 = p.y; + bool x_152 = (x_151 < 14); x_165_phi = x_152; if (x_152) { - const int x_156 = p.x; - const int x_158 = p.y; - const int x_163 = map[(x_156 + ((x_158 + 2) * 16))]; + int x_156 = p.x; + int x_158 = p.y; + int x_163 = map[(x_156 + ((x_158 + 2) * 16))]; x_164 = (x_163 == 0); x_165_phi = x_164; } - const bool x_165 = x_165_phi; + bool x_165 = x_165_phi; if (x_165) { - const int x_168 = directions; + int x_168 = directions; directions = (x_168 + 1); } bool x_229 = false; @@ -147,95 +151,95 @@ void main_1() { bool x_373_phi = false; bool x_412_phi = false; bool x_425_phi = false; - const int x_170 = directions; + int x_170 = directions; if ((x_170 == 0)) { canwalk = false; i = 0; while (true) { - const int x_179 = i; + int x_179 = i; if ((x_179 < 8)) { } else { break; } j = 0; while (true) { - const int x_186 = j; + int x_186 = j; if ((x_186 < 8)) { } else { break; } - const int x_189 = j; - const int x_191 = i; - const int x_196 = map[((x_189 * 2) + ((x_191 * 2) * 16))]; + int x_189 = j; + int x_191 = i; + int x_196 = map[((x_189 * 2) + ((x_191 * 2) * 16))]; if ((x_196 == 0)) { - const int x_200 = j; + int x_200 = j; p.x = (x_200 * 2); - const int x_203 = i; + int x_203 = i; p.y = (x_203 * 2); canwalk = true; } { - const int x_206 = j; + int x_206 = j; j = (x_206 + 1); } } { - const int x_208 = i; + int x_208 = i; i = (x_208 + 1); } } - const int x_211 = p.x; - const int x_213 = p.y; + int x_211 = p.x; + int x_213 = p.y; map[(x_211 + (x_213 * 16))] = 1; } else { - const int x_217 = v; - const int x_218 = directions; + int x_217 = v; + int x_218 = directions; d = tint_mod(x_217, x_218); - const int x_220 = directions; - const int x_221 = v; + int x_220 = directions; + int x_221 = v; v = (x_221 + x_220); - const int x_223 = d; - const bool x_224 = (x_223 >= 0); + int x_223 = d; + bool x_224 = (x_223 >= 0); x_230_phi = x_224; if (x_224) { - const int x_228 = p.x; + int x_228 = p.x; x_229 = (x_228 > 0); x_230_phi = x_229; } - const bool x_230 = x_230_phi; + bool x_230 = x_230_phi; x_243_phi = x_230; if (x_230) { - const int x_234 = p.x; - const int x_237 = p.y; - const int x_241 = map[((x_234 - 2) + (x_237 * 16))]; + int x_234 = p.x; + int x_237 = p.y; + int x_241 = map[((x_234 - 2) + (x_237 * 16))]; x_242 = (x_241 == 0); x_243_phi = x_242; } - const bool x_243 = x_243_phi; + bool x_243 = x_243_phi; if (x_243) { - const int x_246 = d; + int x_246 = d; d = (x_246 - 1); - const int x_249 = p.x; - const int x_251 = p.y; + int x_249 = p.x; + int x_251 = p.y; map[(x_249 + (x_251 * 16))] = 1; - const int x_256 = p.x; - const int x_259 = p.y; + int x_256 = p.x; + int x_259 = p.y; map[((x_256 - 1) + (x_259 * 16))] = 1; - const int x_264 = p.x; - const int x_267 = p.y; + int x_264 = p.x; + int x_267 = p.y; map[((x_264 - 2) + (x_267 * 16))] = 1; - const int x_272 = p.x; + int x_272 = p.x; p.x = (x_272 - 2); } - const int x_275 = d; - const bool x_276 = (x_275 >= 0); + int x_275 = d; + bool x_276 = (x_275 >= 0); x_282_phi = x_276; if (x_276) { - const int x_280 = p.y; + int x_280 = p.y; x_281 = (x_280 > 0); x_282_phi = x_281; } - const bool x_282 = x_282_phi; + bool x_282 = x_282_phi; if (x_282) { x_288 = p.x; x_290_phi = x_288; @@ -243,7 +247,7 @@ void main_1() { x_289 = 0; x_290_phi = x_289; } - const int x_290 = x_290_phi; + int x_290 = x_290_phi; if (x_282) { x_295 = p.y; x_297_phi = x_295; @@ -251,19 +255,19 @@ void main_1() { x_296 = 0; x_297_phi = x_296; } - const int x_297 = x_297_phi; - const int x_299 = ((x_297 - 2) * 16); + int x_297 = x_297_phi; + int x_299 = ((x_297 - 2) * 16); if (x_282) { x_303 = map; x_305_phi = x_303; } else { - const int tint_symbol_3[256] = (int[256])0; + int tint_symbol_3[256] = (int[256])0; x_304 = tint_symbol_3; x_305_phi = x_304; } - const int x_305[256] = x_305_phi; + int x_305[256] = x_305_phi; if (x_282) { - const int tint_symbol_4[256] = (int[256])0; + int tint_symbol_4[256] = (int[256])0; map = tint_symbol_4; } if (x_282) { @@ -276,103 +280,103 @@ void main_1() { x_316 = 0; x_317_phi = x_316; } - const int x_317 = x_317_phi; - const bool x_318 = (x_317 == 0); + int x_317 = x_317_phi; + bool x_318 = (x_317 == 0); if ((x_282 ? x_318 : x_282)) { - const int x_323 = d; + int x_323 = d; d = (x_323 - 1); - const int x_326 = p.x; - const int x_328 = p.y; + int x_326 = p.x; + int x_328 = p.y; map[(x_326 + (x_328 * 16))] = 1; - const int x_333 = p.x; - const int x_335 = p.y; + int x_333 = p.x; + int x_335 = p.y; map[(x_333 + ((x_335 - 1) * 16))] = 1; - const int x_341 = p.x; - const int x_343 = p.y; - const int x_345[256] = map; - const int tint_symbol_5[256] = (int[256])0; + int x_341 = p.x; + int x_343 = p.y; + int x_345[256] = map; + int tint_symbol_5[256] = (int[256])0; map = tint_symbol_5; map = x_345; map[(x_341 + ((x_343 - 2) * 16))] = 1; - const int x_350 = p.y; + int x_350 = p.y; p.y = (x_350 - 2); } - const int x_353 = d; - const bool x_354 = (x_353 >= 0); + int x_353 = d; + bool x_354 = (x_353 >= 0); x_360_phi = x_354; if (x_354) { - const int x_358 = p.x; + int x_358 = p.x; x_359 = (x_358 < 14); x_360_phi = x_359; } - const bool x_360 = x_360_phi; + bool x_360 = x_360_phi; x_373_phi = x_360; if (x_360) { - const int x_364 = p.x; - const int x_367 = p.y; - const int x_371 = map[((x_364 + 2) + (x_367 * 16))]; + int x_364 = p.x; + int x_367 = p.y; + int x_371 = map[((x_364 + 2) + (x_367 * 16))]; x_372 = (x_371 == 0); x_373_phi = x_372; } - const bool x_373 = x_373_phi; + bool x_373 = x_373_phi; if (x_373) { - const int x_376 = d; + int x_376 = d; d = (x_376 - 1); - const int x_379 = p.x; - const int x_381 = p.y; + int x_379 = p.x; + int x_381 = p.y; map[(x_379 + (x_381 * 16))] = 1; - const int x_386 = p.x; - const int x_389 = p.y; + int x_386 = p.x; + int x_389 = p.y; map[((x_386 + 1) + (x_389 * 16))] = 1; - const int x_394 = p.x; - const int x_397 = p.y; + int x_394 = p.x; + int x_397 = p.y; map[((x_394 + 2) + (x_397 * 16))] = 1; - const int x_402 = p.x; + int x_402 = p.x; p.x = (x_402 + 2); } - const int x_405 = d; - const bool x_406 = (x_405 >= 0); + int x_405 = d; + bool x_406 = (x_405 >= 0); x_412_phi = x_406; if (x_406) { - const int x_410 = p.y; + int x_410 = p.y; x_411 = (x_410 < 14); x_412_phi = x_411; } - const bool x_412 = x_412_phi; + bool x_412 = x_412_phi; x_425_phi = x_412; if (x_412) { - const int x_416 = p.x; - const int x_418 = p.y; - const int x_423 = map[(x_416 + ((x_418 + 2) * 16))]; + int x_416 = p.x; + int x_418 = p.y; + int x_423 = map[(x_416 + ((x_418 + 2) * 16))]; x_424 = (x_423 == 0); x_425_phi = x_424; } - const bool x_425 = x_425_phi; + bool x_425 = x_425_phi; if (x_425) { - const int x_428 = d; + int x_428 = d; d = (x_428 - 1); - const int x_431 = p.x; - const int x_433 = p.y; + int x_431 = p.x; + int x_433 = p.y; map[(x_431 + (x_433 * 16))] = 1; - const int x_438 = p.x; - const int x_440 = p.y; + int x_438 = p.x; + int x_440 = p.y; map[(x_438 + ((x_440 + 1) * 16))] = 1; - const int x_446 = p.x; - const int x_448 = p.y; + int x_446 = p.x; + int x_448 = p.y; map[(x_446 + ((x_448 + 2) * 16))] = 1; - const int x_454 = p.y; + int x_454 = p.y; p.y = (x_454 + 2); } } - const int x_458 = ipos.y; - const int x_461 = ipos.x; - const int x_464 = map[((x_458 * 16) + x_461)]; + int x_458 = ipos.y; + int x_461 = ipos.x; + int x_464 = map[((x_458 * 16) + x_461)]; if ((x_464 == 1)) { x_GLF_color = (1.0f).xxxx; return; } { - const bool x_468 = canwalk; + bool x_468 = canwalk; if (!(x_468)) { break; } } } @@ -393,12 +397,12 @@ struct tint_symbol_2 { main_out main_inner(float4 gl_FragCoord_param) { gl_FragCoord = gl_FragCoord_param; main_1(); - const main_out tint_symbol_6 = {x_GLF_color}; + main_out tint_symbol_6 = {x_GLF_color}; return tint_symbol_6; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { - const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); + main_out inner_result = main_inner(float4(tint_symbol.gl_FragCoord_param.xyz, (1.0f / tint_symbol.gl_FragCoord_param.w))); tint_symbol_2 wrapper_result = (tint_symbol_2)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.spvasm.expected.ir.fxc.hlsl index 8e511bdeb52..dfa7263ad78 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.spvasm.expected.ir.fxc.hlsl @@ -290,8 +290,8 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001F8B4A7FED0(40,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll -C:\src\dawn\Shader@0x000001F8B4A7FED0(40,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll -C:\src\dawn\Shader@0x000001F8B4A7FED0(89,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x000001F8B4A7FED0(206,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000002D63D7A3170(40,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x000002D63D7A3170(40,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x000002D63D7A3170(89,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000002D63D7A3170(206,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl.expected.ir.fxc.hlsl index f6eb007d376..6446742db04 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl.expected.ir.fxc.hlsl @@ -358,8 +358,8 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000194F9765900(41,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll -C:\src\dawn\Shader@0x00000194F9765900(41,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll -C:\src\dawn\Shader@0x00000194F9765900(112,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x00000194F9765900(259,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000002752CEE4040(41,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x000002752CEE4040(41,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x000002752CEE4040(112,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000002752CEE4040(259,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.spvasm.expected.ir.fxc.hlsl index d996d235e2a..030081ee816 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.spvasm.expected.ir.fxc.hlsl @@ -120,6 +120,6 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000002D580060330(21,19-25): warning X3556: integer divides may be much slower, try using uints if possible. -C:\src\dawn\Shader@0x000002D580060330(85,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000028C6C846F20(21,19-25): warning X3556: integer divides may be much slower, try using uints if possible. +C:\src\dawn\Shader@0x0000028C6C846F20(85,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.ir.fxc.hlsl index 17c3f83dddb..c9a9185f84a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.ir.fxc.hlsl @@ -144,6 +144,6 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001C7A4990760(21,19-25): warning X3556: integer divides may be much slower, try using uints if possible. -C:\src\dawn\Shader@0x000001C7A4990760(99,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000002DDEBF00B50(21,19-25): warning X3556: integer divides may be much slower, try using uints if possible. +C:\src\dawn\Shader@0x000002DDEBF00B50(99,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.spvasm.expected.ir.fxc.hlsl index 9e6f3df868c..7a35ecbccf6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.spvasm.expected.ir.fxc.hlsl @@ -224,8 +224,8 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000025161B977A0(71,11-85): warning X3556: integer divides may be much slower, try using uints if possible. -C:\src\dawn\Shader@0x0000025161B977A0(28,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x0000025161B977A0(45,5-15): error X3511: forced to unroll loop, but unrolling failed. -C:\src\dawn\Shader@0x0000025161B977A0(110,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000021595CD5C90(71,11-85): warning X3556: integer divides may be much slower, try using uints if possible. +C:\src\dawn\Shader@0x0000021595CD5C90(28,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x0000021595CD5C90(45,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000021595CD5C90(110,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl.expected.ir.fxc.hlsl index 69f58624613..d239906247d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl.expected.ir.fxc.hlsl @@ -299,8 +299,8 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000024339F611B0(92,11-85): warning X3556: integer divides may be much slower, try using uints if possible. -C:\src\dawn\Shader@0x0000024339F611B0(32,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable -C:\src\dawn\Shader@0x0000024339F611B0(54,5-15): error X3511: forced to unroll loop, but unrolling failed. -C:\src\dawn\Shader@0x0000024339F611B0(141,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000001FC78D314A0(92,11-85): warning X3556: integer divides may be much slower, try using uints if possible. +C:\src\dawn\Shader@0x000001FC78D314A0(32,3-20): error X3500: array reference cannot be used as an l-value; not natively addressable +C:\src\dawn\Shader@0x000001FC78D314A0(54,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x000001FC78D314A0(141,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.spvasm.expected.ir.fxc.hlsl index b826c2ec637..a3a1bf14b01 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.spvasm.expected.ir.fxc.hlsl @@ -216,5 +216,5 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x0000021E90678E60(139,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x00000208A86E5070(139,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.wgsl.expected.ir.fxc.hlsl index b4b6565817c..e57a0bcef92 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.wgsl.expected.ir.fxc.hlsl @@ -287,5 +287,5 @@ main_outputs main(main_inputs inputs) { } FXC validation failure: -C:\src\dawn\Shader@0x000001743E471030(181,5-15): error X3511: forced to unroll loop, but unrolling failed. +C:\src\dawn\Shader@0x0000029E3B765CD0(181,5-15): error X3511: forced to unroll loop, but unrolling failed. diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.spvasm.expected.ir.fxc.hlsl index 271e1d3acc2..cec301d2307 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.spvasm.expected.ir.fxc.hlsl @@ -70,6 +70,6 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000023E2E187420(28,7-20): error X3504: literal loop terminated early due to out of bounds array access -C:\src\dawn\Shader@0x0000023E2E187420(22,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x000001A396E9AAB0(28,7-20): error X3504: literal loop terminated early due to out of bounds array access +C:\src\dawn\Shader@0x000001A396E9AAB0(22,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.wgsl.expected.ir.fxc.hlsl index 62ff1cfee89..f6078d84f84 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.wgsl.expected.ir.fxc.hlsl @@ -79,6 +79,6 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000022BEE81FBC0(29,7-20): error X3504: literal loop terminated early due to out of bounds array access -C:\src\dawn\Shader@0x0000022BEE81FBC0(22,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x000002CF8103B000(29,7-20): error X3504: literal loop terminated early due to out of bounds array access +C:\src\dawn\Shader@0x000002CF8103B000(22,5-15): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.dxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.dxc.hlsl index 24950cc2b77..d9f48f28f5d 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.dxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.dxc.hlsl @@ -11,18 +11,14 @@ void main_1() { int donor_replacementGLF_dead6tree[1] = (int[1])0; x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); GLF_dead6index = 0; - const float x_34 = asfloat(x_6[0].y); - if ((x_34 < 0.0f)) { + if ((asfloat(x_6[0].y) < 0.0f)) { while (true) { if (true) { } else { break; } - const int x_9 = GLF_dead6index; - const int x_10 = donor_replacementGLF_dead6tree[x_9]; - GLF_dead6currentNode = x_10; - const int x_11 = GLF_dead6currentNode; - GLF_dead6index = x_11; + GLF_dead6currentNode = donor_replacementGLF_dead6tree[GLF_dead6index]; + GLF_dead6index = GLF_dead6currentNode; } } return; @@ -37,22 +33,19 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:42: error: Loop must have break. +hlsl.hlsl:38: error: Loop must have break. Validation failed. - diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.fxc.hlsl index ae60c5a5c13..54c1ddd9da7 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.fxc.hlsl @@ -11,18 +11,14 @@ void main_1() { int donor_replacementGLF_dead6tree[1] = (int[1])0; x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); GLF_dead6index = 0; - const float x_34 = asfloat(x_6[0].y); - if ((x_34 < 0.0f)) { + if ((asfloat(x_6[0].y) < 0.0f)) { while (true) { if (true) { } else { break; } - const int x_9 = GLF_dead6index; - const int x_10 = donor_replacementGLF_dead6tree[x_9]; - GLF_dead6currentNode = x_10; - const int x_11 = GLF_dead6currentNode; - GLF_dead6index = x_11; + GLF_dead6currentNode = donor_replacementGLF_dead6tree[GLF_dead6index]; + GLF_dead6index = GLF_dead6currentNode; } } return; @@ -37,13 +33,16 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x0000016E9399DC80(13,12-15): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.ir.fxc.hlsl index 62e21c210f7..8ebb8cb4cba 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.spvasm.expected.ir.fxc.hlsl @@ -49,5 +49,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000001BBAF8BE0F0(22,13-16): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x0000021EE42C6790(22,13-16): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.dxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.dxc.hlsl index 24950cc2b77..262dee5e8b9 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.dxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.dxc.hlsl @@ -11,17 +11,17 @@ void main_1() { int donor_replacementGLF_dead6tree[1] = (int[1])0; x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); GLF_dead6index = 0; - const float x_34 = asfloat(x_6[0].y); + float x_34 = asfloat(x_6[0].y); if ((x_34 < 0.0f)) { while (true) { if (true) { } else { break; } - const int x_9 = GLF_dead6index; - const int x_10 = donor_replacementGLF_dead6tree[x_9]; + int x_9 = GLF_dead6index; + int x_10 = donor_replacementGLF_dead6tree[x_9]; GLF_dead6currentNode = x_10; - const int x_11 = GLF_dead6currentNode; + int x_11 = GLF_dead6currentNode; GLF_dead6index = x_11; } } @@ -37,22 +37,19 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:42: error: Loop must have break. +hlsl.hlsl:42: error: Loop must have break. Validation failed. - diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.fxc.hlsl index ae60c5a5c13..b141fa7f32a 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.fxc.hlsl @@ -11,17 +11,17 @@ void main_1() { int donor_replacementGLF_dead6tree[1] = (int[1])0; x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); GLF_dead6index = 0; - const float x_34 = asfloat(x_6[0].y); + float x_34 = asfloat(x_6[0].y); if ((x_34 < 0.0f)) { while (true) { if (true) { } else { break; } - const int x_9 = GLF_dead6index; - const int x_10 = donor_replacementGLF_dead6tree[x_9]; + int x_9 = GLF_dead6index; + int x_10 = donor_replacementGLF_dead6tree[x_9]; GLF_dead6currentNode = x_10; - const int x_11 = GLF_dead6currentNode; + int x_11 = GLF_dead6currentNode; GLF_dead6index = x_11; } } @@ -37,13 +37,16 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x00000268FA018F90(14,12-15): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.ir.fxc.hlsl index ea9160e43ff..47d243db9cb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl.expected.ir.fxc.hlsl @@ -53,5 +53,5 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x00000118D557E970(23,13-16): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x00000125511F4CF0(23,13-16): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.dxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.dxc.hlsl index fe9e031883e..c683a89fd49 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.dxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.dxc.hlsl @@ -8,9 +8,7 @@ cbuffer cbuffer_x_5 : register(b0) { void main_1() { int m = 0; x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); - const float x_30 = asfloat(x_5[0].x); - const float x_32 = asfloat(x_5[0].y); - if ((x_30 > x_32)) { + if ((asfloat(x_5[0].x) > asfloat(x_5[0].y))) { while (true) { { if (true) { break; } @@ -37,22 +35,19 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:42: error: Loop must have break. +hlsl.hlsl:40: error: Loop must have break. Validation failed. - diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.fxc.hlsl index 59f1a13fb6e..a991b5ced54 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.fxc.hlsl @@ -8,9 +8,7 @@ cbuffer cbuffer_x_5 : register(b0) { void main_1() { int m = 0; x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); - const float x_30 = asfloat(x_5[0].x); - const float x_32 = asfloat(x_5[0].y); - if ((x_30 > x_32)) { + if ((asfloat(x_5[0].x) > asfloat(x_5[0].y))) { while (true) { { if (true) { break; } @@ -37,13 +35,17 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x000001A9F8B396C0(10,5-16): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x000001A9F8B396C0(16,12-15): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.ir.fxc.hlsl index 41a1daf5a99..0a95a0875d7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.spvasm.expected.ir.fxc.hlsl @@ -55,6 +55,6 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x0000024EDB2E6450(20,7-17): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll -C:\src\dawn\Shader@0x0000024EDB2E6450(29,13-16): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x00000210D0627B30(20,7-17): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x00000210D0627B30(29,13-16): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.dxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.dxc.hlsl index fe9e031883e..1ad2d2020a9 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.dxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.dxc.hlsl @@ -8,8 +8,8 @@ cbuffer cbuffer_x_5 : register(b0) { void main_1() { int m = 0; x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); - const float x_30 = asfloat(x_5[0].x); - const float x_32 = asfloat(x_5[0].y); + float x_30 = asfloat(x_5[0].x); + float x_32 = asfloat(x_5[0].y); if ((x_30 > x_32)) { while (true) { { @@ -37,22 +37,19 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:42: error: Loop must have break. +hlsl.hlsl:42: error: Loop must have break. Validation failed. - diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.fxc.hlsl index 59f1a13fb6e..1e2d2d3fd3c 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.fxc.hlsl @@ -8,8 +8,8 @@ cbuffer cbuffer_x_5 : register(b0) { void main_1() { int m = 0; x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); - const float x_30 = asfloat(x_5[0].x); - const float x_32 = asfloat(x_5[0].y); + float x_30 = asfloat(x_5[0].x); + float x_32 = asfloat(x_5[0].y); if ((x_30 > x_32)) { while (true) { { @@ -37,13 +37,17 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } +FXC validation failure: +C:\src\dawn\Shader@0x0000027BF045FA70(12,5-16): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000027BF045FA70(18,12-15): error X3696: infinite loop detected - loop never exits + diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.ir.fxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.ir.fxc.hlsl index d3c61a04eb0..5f1b6dcabad 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.ir.fxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl.expected.ir.fxc.hlsl @@ -56,6 +56,6 @@ main_outputs main() { } FXC validation failure: -C:\src\dawn\Shader@0x000002C69079DD20(21,7-17): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll -C:\src\dawn\Shader@0x000002C69079DD20(30,13-16): error X3696: infinite loop detected - loop never exits +C:\src\dawn\Shader@0x0000028D7737CE90(21,7-17): warning X3557: loop only executes for 0 iteration(s), forcing loop to unroll +C:\src\dawn\Shader@0x0000028D7737CE90(30,13-16): error X3696: infinite loop detected - loop never exits diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.dxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.dxc.hlsl index f6b4fdcbe4f..993623945a0 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.dxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.dxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -void set_scalar_float4x3(inout float4x3 mat, int col, int row, float val) { +void set_matrix_scalar(inout float4x3 mat, int col, int row, float val) { switch (col) { case 0: mat[0] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[0]; @@ -40,69 +40,50 @@ void main_1() { ll_1 = 0; GLF_live6rows = 2; while (true) { - const int x_18 = ll_1; - const int x_19 = asint(x_9[0].x); - if ((x_18 >= x_19)) { + if ((ll_1 >= asint(x_9[0].x))) { x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); break; } - const int x_20 = ll_1; - ll_1 = (x_20 + 1); - const int x_22 = asint(x_9[0].x); - z = x_22; + ll_1 = (ll_1 + 1); + z = asint(x_9[0].x); ll_2 = 0; ctr = 0; while (true) { - const int x_23 = ctr; - if ((x_23 < 1)) { + if ((ctr < 1)) { } else { break; } - const int x_24 = ll_2; - const int x_25 = asint(x_9[0].x); - if ((x_24 >= x_25)) { + if ((ll_2 >= asint(x_9[0].x))) { break; } - const int x_26 = ll_2; - ll_2 = (x_26 + 1); - const float4x3 x_98 = m43; - tempm43 = x_98; + ll_2 = (ll_2 + 1); + tempm43 = m43; ll_3 = 0; c = 0; while (true) { - const int x_28 = z; - if ((1 < x_28)) { + if ((1 < z)) { } else { break; } d = 0; - const int x_29 = c; - const int x_30 = c; - const int x_31 = c; - const int x_32 = d; - const int x_33 = d; - const int x_34 = d; - set_scalar_float4x3(tempm43, (((x_29 >= 0) & (x_30 < 4)) ? x_31 : 0), (((x_32 >= 0) & (x_33 < 3)) ? x_34 : 0), 1.0f); + int x_29 = c; + int x_30 = c; + int x_31 = c; + int x_32 = d; + int x_33 = d; + int x_34 = d; + set_matrix_scalar(tempm43, (((x_29 >= 0) & (x_30 < 4)) ? x_31 : 0), (((x_32 >= 0) & (x_33 < 3)) ? x_34 : 0), 1.0f); { - const int x_35 = c; - c = (x_35 + 1); + c = (c + 1); } } - const int x_37 = idx; - const int x_38 = idx; - const int x_39 = idx; - const int x_117 = (((x_37 >= 0) & (x_38 < 9)) ? x_39 : 0); - const int x_40 = ctr; - const float x_119 = m43[x_40].y; - const float x_121 = GLF_live6sums[x_117]; - GLF_live6sums[x_117] = (x_121 + x_119); + int x_117 = (((idx >= 0) & (idx < 9)) ? idx : 0); + GLF_live6sums[x_117] = (GLF_live6sums[x_117] + m43[ctr].y); { - const int x_41 = ctr; - ctr = (x_41 + 1); + ctr = (ctr + 1); } } - const int x_43 = idx; - idx = (x_43 + 1); + idx = (idx + 1); } return; } @@ -116,22 +97,19 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:121: error: Loop must have break. +hlsl.hlsl:102: error: Loop must have break. Validation failed. - diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.dxc.hlsl b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.dxc.hlsl index f6b4fdcbe4f..1983edcc450 100755 --- a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.dxc.hlsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.dxc.hlsl @@ -1,6 +1,6 @@ SKIP: FAILED -void set_scalar_float4x3(inout float4x3 mat, int col, int row, float val) { +void set_matrix_scalar(inout float4x3 mat, int col, int row, float val) { switch (col) { case 0: mat[0] = (row.xxx == int3(0, 1, 2)) ? val.xxx : mat[0]; @@ -40,68 +40,68 @@ void main_1() { ll_1 = 0; GLF_live6rows = 2; while (true) { - const int x_18 = ll_1; - const int x_19 = asint(x_9[0].x); + int x_18 = ll_1; + int x_19 = asint(x_9[0].x); if ((x_18 >= x_19)) { x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); break; } - const int x_20 = ll_1; + int x_20 = ll_1; ll_1 = (x_20 + 1); - const int x_22 = asint(x_9[0].x); + int x_22 = asint(x_9[0].x); z = x_22; ll_2 = 0; ctr = 0; while (true) { - const int x_23 = ctr; + int x_23 = ctr; if ((x_23 < 1)) { } else { break; } - const int x_24 = ll_2; - const int x_25 = asint(x_9[0].x); + int x_24 = ll_2; + int x_25 = asint(x_9[0].x); if ((x_24 >= x_25)) { break; } - const int x_26 = ll_2; + int x_26 = ll_2; ll_2 = (x_26 + 1); - const float4x3 x_98 = m43; + float4x3 x_98 = m43; tempm43 = x_98; ll_3 = 0; c = 0; while (true) { - const int x_28 = z; + int x_28 = z; if ((1 < x_28)) { } else { break; } d = 0; - const int x_29 = c; - const int x_30 = c; - const int x_31 = c; - const int x_32 = d; - const int x_33 = d; - const int x_34 = d; - set_scalar_float4x3(tempm43, (((x_29 >= 0) & (x_30 < 4)) ? x_31 : 0), (((x_32 >= 0) & (x_33 < 3)) ? x_34 : 0), 1.0f); + int x_29 = c; + int x_30 = c; + int x_31 = c; + int x_32 = d; + int x_33 = d; + int x_34 = d; + set_matrix_scalar(tempm43, (((x_29 >= 0) & (x_30 < 4)) ? x_31 : 0), (((x_32 >= 0) & (x_33 < 3)) ? x_34 : 0), 1.0f); { - const int x_35 = c; + int x_35 = c; c = (x_35 + 1); } } - const int x_37 = idx; - const int x_38 = idx; - const int x_39 = idx; - const int x_117 = (((x_37 >= 0) & (x_38 < 9)) ? x_39 : 0); - const int x_40 = ctr; - const float x_119 = m43[x_40].y; - const float x_121 = GLF_live6sums[x_117]; + int x_37 = idx; + int x_38 = idx; + int x_39 = idx; + int x_117 = (((x_37 >= 0) & (x_38 < 9)) ? x_39 : 0); + int x_40 = ctr; + float x_119 = m43[x_40].y; + float x_121 = GLF_live6sums[x_117]; GLF_live6sums[x_117] = (x_121 + x_119); { - const int x_41 = ctr; + int x_41 = ctr; ctr = (x_41 + 1); } } - const int x_43 = idx; + int x_43 = idx; idx = (x_43 + 1); } return; @@ -116,22 +116,19 @@ struct tint_symbol { main_out main_inner() { main_1(); - const main_out tint_symbol_1 = {x_GLF_color}; + main_out tint_symbol_1 = {x_GLF_color}; return tint_symbol_1; } tint_symbol main() { - const main_out inner_result = main_inner(); + main_out inner_result = main_inner(); tint_symbol wrapper_result = (tint_symbol)0; wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; return wrapper_result; } DXC validation failure: -warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments. - error: validation errors -shader.hlsl:121: error: Loop must have break. +hlsl.hlsl:121: error: Loop must have break. Validation failed. -