From 188b1fb8f5be52299fb7fbc6db17dbb0c07dbb7e Mon Sep 17 00:00:00 2001 From: David Neto Date: Thu, 16 Dec 2021 22:07:51 +0000 Subject: [PATCH] spir-reader: fix tests: struct with BuiltIns must have Block Fixes https://github.com/dneto0/spirv-samples/issues/2 Change-Id: Ie3ab62f31ba7e3d7c8d4dd56f8dc9a87046e1b92 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/73241 Auto-Submit: David Neto Reviewed-by: James Price Kokoro: David Neto Commit-Queue: David Neto Kokoro: Kokoro --- src/reader/spirv/parser_impl_module_var_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/reader/spirv/parser_impl_module_var_test.cc b/src/reader/spirv/parser_impl_module_var_test.cc index 0b4bec43dd..df03435317 100644 --- a/src/reader/spirv/parser_impl_module_var_test.cc +++ b/src/reader/spirv/parser_impl_module_var_test.cc @@ -270,6 +270,7 @@ std::string PerVertexPreamble() { OpMemoryModel Logical Simple OpEntryPoint Vertex %main "main" %1 + OpDecorate %10 Block OpMemberDecorate %10 0 BuiltIn Position OpMemberDecorate %10 1 BuiltIn PointSize OpMemberDecorate %10 2 BuiltIn ClipDistance @@ -4116,6 +4117,7 @@ TEST_F(SpvModuleScopeVarParserTest, OpMemoryModel Logical Simple OpEntryPoint Vertex %main "main" %1 + OpDecorate %10 Block OpMemberDecorate %10 0 BuiltIn Position OpMemberDecorate %10 1 BuiltIn PointSize OpMemberDecorate %10 2 BuiltIn ClipDistance