diff --git a/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.spvasm b/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.spvasm index 9f34e036f3..8837281694 100644 --- a/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.spvasm +++ b/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.spvasm @@ -1,3 +1,5 @@ +SKIP: FAILED + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 @@ -125,3 +127,6 @@ %71 = OpFunctionCall %void %main_inner %72 OpReturn OpFunctionEnd +1:1: Structure id 8 decorated as Block for variable in Uniform storage class must follow relaxed uniform buffer layout rules: member 9 is a matrix with stride 8 not satisfying alignment to 16 + %Inner = OpTypeStruct %v3int %int %v3uint %uint %v3float %float %v2int %v2int %mat2v3float %mat3v2float %_arr_v4int_uint_4 + diff --git a/test/tint/buffer/uniform/static_index/read.wgsl.expected.spvasm b/test/tint/buffer/uniform/static_index/read.wgsl.expected.spvasm index 25854c6281..88be5bee40 100644 --- a/test/tint/buffer/uniform/static_index/read.wgsl.expected.spvasm +++ b/test/tint/buffer/uniform/static_index/read.wgsl.expected.spvasm @@ -1,3 +1,5 @@ +SKIP: FAILED + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 @@ -114,3 +116,6 @@ %66 = OpLoad %_arr_Inner_uint_4 %65 OpReturn OpFunctionEnd +1:1: Structure id 3 decorated as Block for variable in Uniform storage class must follow relaxed uniform buffer layout rules: member 9 is a matrix with stride 8 not satisfying alignment to 16 + %S = OpTypeStruct %v3int %int %v3uint %uint %v3float %float %v2int %v2int %mat2v3float %mat3v2float %Inner %_arr_Inner_uint_4 + diff --git a/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.spvasm b/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.spvasm index b5fb3179b8..dd16f09e53 100644 --- a/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.spvasm +++ b/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.spvasm @@ -1,3 +1,5 @@ +SKIP: FAILED + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 @@ -35,3 +37,6 @@ %15 = OpLoad %mat2v2float %14 OpReturn OpFunctionEnd +1:1: Structure id 3 decorated as Block for variable in Uniform storage class must follow relaxed uniform buffer layout rules: member 0 is a matrix with stride 8 not satisfying alignment to 16 + %u_block = OpTypeStruct %mat2v2float + diff --git a/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.spvasm b/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.spvasm index 550ed15496..efa01c7ab5 100644 --- a/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.spvasm +++ b/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.spvasm @@ -1,3 +1,5 @@ +SKIP: FAILED + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 @@ -35,3 +37,6 @@ %15 = OpLoad %mat3v2float %14 OpReturn OpFunctionEnd +1:1: Structure id 3 decorated as Block for variable in Uniform storage class must follow relaxed uniform buffer layout rules: member 0 is a matrix with stride 8 not satisfying alignment to 16 + %u_block = OpTypeStruct %mat3v2float + diff --git a/test/tint/bug/tint/369.wgsl.expected.spvasm b/test/tint/bug/tint/369.wgsl.expected.spvasm index f71cf08004..898a0f37ee 100644 --- a/test/tint/bug/tint/369.wgsl.expected.spvasm +++ b/test/tint/bug/tint/369.wgsl.expected.spvasm @@ -1,3 +1,5 @@ +SKIP: FAILED + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 @@ -36,3 +38,6 @@ %12 = OpLabel OpReturn OpFunctionEnd +1:1: Structure id 3 decorated as Block for variable in Uniform storage class must follow relaxed uniform buffer layout rules: member 0 is a matrix with stride 8 not satisfying alignment to 16 + %S = OpTypeStruct %mat2v2float + diff --git a/test/tint/bug/tint/403.wgsl.expected.spvasm b/test/tint/bug/tint/403.wgsl.expected.spvasm index 8940d6d772..3491de40aa 100644 --- a/test/tint/bug/tint/403.wgsl.expected.spvasm +++ b/test/tint/bug/tint/403.wgsl.expected.spvasm @@ -1,3 +1,5 @@ +SKIP: FAILED + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 @@ -106,3 +108,6 @@ OpStore %vertex_point_size %float_1 OpReturn OpFunctionEnd +1:1: Structure id 14 decorated as Block for variable in Uniform storage class must follow relaxed uniform buffer layout rules: member 0 is a matrix with stride 8 not satisfying alignment to 16 + %vertexUniformBuffer1 = OpTypeStruct %mat2v2float + diff --git a/test/tint/builtins/gen/literal/dot4I8Packed/881e62.wgsl.expected.glsl b/test/tint/builtins/gen/literal/dot4I8Packed/881e62.wgsl.expected.glsl index 9f06383b3c..e677648aa5 100644 --- a/test/tint/builtins/gen/literal/dot4I8Packed/881e62.wgsl.expected.glsl +++ b/test/tint/builtins/gen/literal/dot4I8Packed/881e62.wgsl.expected.glsl @@ -1 +1,74 @@ -SKIP \ No newline at end of file +SKIP: FAILED + + +enable chromium_experimental_dp4a; + +fn dot4I8Packed_881e62() { + var res : i32 = dot4I8Packed(1u, 1u); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4I8Packed_881e62(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4I8Packed_881e62(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4I8Packed_881e62(); +} + +Failed to generate: error: Unknown builtin method: dot4I8Packed + +enable chromium_experimental_dp4a; + +fn dot4I8Packed_881e62() { + var res : i32 = dot4I8Packed(1u, 1u); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4I8Packed_881e62(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4I8Packed_881e62(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4I8Packed_881e62(); +} + +Failed to generate: error: Unknown builtin method: dot4I8Packed + +enable chromium_experimental_dp4a; + +fn dot4I8Packed_881e62() { + var res : i32 = dot4I8Packed(1u, 1u); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4I8Packed_881e62(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4I8Packed_881e62(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4I8Packed_881e62(); +} + +Failed to generate: error: Unknown builtin method: dot4I8Packed diff --git a/test/tint/builtins/gen/literal/dot4U8Packed/fbed7b.wgsl.expected.glsl b/test/tint/builtins/gen/literal/dot4U8Packed/fbed7b.wgsl.expected.glsl index 9f06383b3c..acf55b6ca2 100644 --- a/test/tint/builtins/gen/literal/dot4U8Packed/fbed7b.wgsl.expected.glsl +++ b/test/tint/builtins/gen/literal/dot4U8Packed/fbed7b.wgsl.expected.glsl @@ -1 +1,74 @@ -SKIP \ No newline at end of file +SKIP: FAILED + + +enable chromium_experimental_dp4a; + +fn dot4U8Packed_fbed7b() { + var res : u32 = dot4U8Packed(1u, 1u); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4U8Packed_fbed7b(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4U8Packed_fbed7b(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4U8Packed_fbed7b(); +} + +Failed to generate: error: Unknown builtin method: dot4U8Packed + +enable chromium_experimental_dp4a; + +fn dot4U8Packed_fbed7b() { + var res : u32 = dot4U8Packed(1u, 1u); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4U8Packed_fbed7b(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4U8Packed_fbed7b(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4U8Packed_fbed7b(); +} + +Failed to generate: error: Unknown builtin method: dot4U8Packed + +enable chromium_experimental_dp4a; + +fn dot4U8Packed_fbed7b() { + var res : u32 = dot4U8Packed(1u, 1u); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4U8Packed_fbed7b(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4U8Packed_fbed7b(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4U8Packed_fbed7b(); +} + +Failed to generate: error: Unknown builtin method: dot4U8Packed diff --git a/test/tint/builtins/gen/var/dot4I8Packed/881e62.wgsl.expected.glsl b/test/tint/builtins/gen/var/dot4I8Packed/881e62.wgsl.expected.glsl index 9f06383b3c..04bfe47de5 100644 --- a/test/tint/builtins/gen/var/dot4I8Packed/881e62.wgsl.expected.glsl +++ b/test/tint/builtins/gen/var/dot4I8Packed/881e62.wgsl.expected.glsl @@ -1 +1,80 @@ -SKIP \ No newline at end of file +SKIP: FAILED + + +enable chromium_experimental_dp4a; + +fn dot4I8Packed_881e62() { + var arg_0 = 1u; + var arg_1 = 1u; + var res : i32 = dot4I8Packed(arg_0, arg_1); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4I8Packed_881e62(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4I8Packed_881e62(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4I8Packed_881e62(); +} + +Failed to generate: error: Unknown builtin method: dot4I8Packed + +enable chromium_experimental_dp4a; + +fn dot4I8Packed_881e62() { + var arg_0 = 1u; + var arg_1 = 1u; + var res : i32 = dot4I8Packed(arg_0, arg_1); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4I8Packed_881e62(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4I8Packed_881e62(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4I8Packed_881e62(); +} + +Failed to generate: error: Unknown builtin method: dot4I8Packed + +enable chromium_experimental_dp4a; + +fn dot4I8Packed_881e62() { + var arg_0 = 1u; + var arg_1 = 1u; + var res : i32 = dot4I8Packed(arg_0, arg_1); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4I8Packed_881e62(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4I8Packed_881e62(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4I8Packed_881e62(); +} + +Failed to generate: error: Unknown builtin method: dot4I8Packed diff --git a/test/tint/builtins/gen/var/dot4U8Packed/fbed7b.wgsl.expected.glsl b/test/tint/builtins/gen/var/dot4U8Packed/fbed7b.wgsl.expected.glsl index 9f06383b3c..2a5cb1e690 100644 --- a/test/tint/builtins/gen/var/dot4U8Packed/fbed7b.wgsl.expected.glsl +++ b/test/tint/builtins/gen/var/dot4U8Packed/fbed7b.wgsl.expected.glsl @@ -1 +1,80 @@ -SKIP \ No newline at end of file +SKIP: FAILED + + +enable chromium_experimental_dp4a; + +fn dot4U8Packed_fbed7b() { + var arg_0 = 1u; + var arg_1 = 1u; + var res : u32 = dot4U8Packed(arg_0, arg_1); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4U8Packed_fbed7b(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4U8Packed_fbed7b(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4U8Packed_fbed7b(); +} + +Failed to generate: error: Unknown builtin method: dot4U8Packed + +enable chromium_experimental_dp4a; + +fn dot4U8Packed_fbed7b() { + var arg_0 = 1u; + var arg_1 = 1u; + var res : u32 = dot4U8Packed(arg_0, arg_1); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4U8Packed_fbed7b(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4U8Packed_fbed7b(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4U8Packed_fbed7b(); +} + +Failed to generate: error: Unknown builtin method: dot4U8Packed + +enable chromium_experimental_dp4a; + +fn dot4U8Packed_fbed7b() { + var arg_0 = 1u; + var arg_1 = 1u; + var res : u32 = dot4U8Packed(arg_0, arg_1); +} + +@vertex +fn vertex_main() -> @builtin(position) vec4 { + dot4U8Packed_fbed7b(); + return vec4(); +} + +@fragment +fn fragment_main() { + dot4U8Packed_fbed7b(); +} + +@compute @workgroup_size(1) +fn compute_main() { + dot4U8Packed_fbed7b(); +} + +Failed to generate: error: Unknown builtin method: dot4U8Packed diff --git a/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.spvasm b/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.spvasm index ea2ff2624b..d0c526683a 100644 --- a/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.spvasm +++ b/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.spvasm @@ -1,3 +1,5 @@ +SKIP: FAILED + ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 @@ -43,3 +45,6 @@ %21 = OpMatrixTimesVector %v2float %16 %20 OpReturn OpFunctionEnd +1:1: Structure id 3 decorated as Block for variable in Uniform storage class must follow relaxed uniform buffer layout rules: member 0 is a matrix with stride 8 not satisfying alignment to 16 + %S = OpTypeStruct %mat3v2float %v3float + diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration.spvasm.expected.glsl new file mode 100644 index 0000000000..87314ad325 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration.spvasm.expected.glsl @@ -0,0 +1,7 @@ +SKIP: FAILED + + + +error: line:16: Structure id 3 decorated as Block must be explicitly laid out with RowMajor or ColMajor decorations. + %_struct_3 = OpTypeStruct %mat3v2float + diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration.spvasm.expected.spvasm b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration.spvasm.expected.spvasm new file mode 100644 index 0000000000..87314ad325 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration.spvasm.expected.spvasm @@ -0,0 +1,7 @@ +SKIP: FAILED + + + +error: line:16: Structure id 3 decorated as Block must be explicitly laid out with RowMajor or ColMajor decorations. + %_struct_3 = OpTypeStruct %mat3v2float + diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Dropped.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Dropped.spvasm.expected.glsl new file mode 100644 index 0000000000..87314ad325 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Dropped.spvasm.expected.glsl @@ -0,0 +1,7 @@ +SKIP: FAILED + + + +error: line:16: Structure id 3 decorated as Block must be explicitly laid out with RowMajor or ColMajor decorations. + %_struct_3 = OpTypeStruct %mat3v2float + diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Dropped.spvasm.expected.spvasm b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Dropped.spvasm.expected.spvasm new file mode 100644 index 0000000000..87314ad325 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Dropped.spvasm.expected.spvasm @@ -0,0 +1,7 @@ +SKIP: FAILED + + + +error: line:16: Structure id 3 decorated as Block must be explicitly laid out with RowMajor or ColMajor decorations. + %_struct_3 = OpTypeStruct %mat3v2float + diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Natural_Dropped.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Natural_Dropped.spvasm.expected.glsl new file mode 100644 index 0000000000..87314ad325 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Natural_Dropped.spvasm.expected.glsl @@ -0,0 +1,7 @@ +SKIP: FAILED + + + +error: line:16: Structure id 3 decorated as Block must be explicitly laid out with RowMajor or ColMajor decorations. + %_struct_3 = OpTypeStruct %mat3v2float + diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Natural_Dropped.spvasm.expected.spvasm b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Natural_Dropped.spvasm.expected.spvasm new file mode 100644 index 0000000000..87314ad325 --- /dev/null +++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_MatrixStrideDecoration_Natural_Dropped.spvasm.expected.spvasm @@ -0,0 +1,7 @@ +SKIP: FAILED + + + +error: line:16: Structure id 3 decorated as Block must be explicitly laid out with RowMajor or ColMajor decorations. + %_struct_3 = OpTypeStruct %mat3v2float +