Fix test: "matrix scalar element type must be f32"

Bug found when passing program through spirv writer and then reader.
This failed in the writer.

Bug: tint:792
Change-Id: I512798240710fd262da81a73d6646deb975ac5e9
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/50563
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
Antonio Maiorano 2021-05-11 14:26:40 +00:00 committed by Commit Bot service account
parent 77daee15bd
commit ce0b1c1c88
1 changed files with 0 additions and 1 deletions

View File

@ -125,7 +125,6 @@ TEST_F(ResolverHostShareableValidationTest, NoError) {
auto* i2 = Structure("I2", {
Member(Source{{4, 1}}, "x2", ty.mat2x2<f32>()),
Member(Source{{5, 1}}, "y2", i1),
Member(Source{{6, 1}}, "z2", ty.mat3x2<i32>()),
});
auto* a2 = ty.alias("a2", i2);
AST().AddConstructedType(a2);