From c1cfa84ff9366cc2e3bd3783c81a2a53e9ea2656 Mon Sep 17 00:00:00 2001 From: David Neto Date: Wed, 28 Jul 2021 15:49:27 +0000 Subject: [PATCH] spirv-reader: reduce fragment output location MSL compiler requires colour output location at most 7. Bug: tint:1043 Change-Id: I2b0c09fecae124cc4af05712d7f3c872c2f93f99 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60081 Kokoro: Kokoro Reviewed-by: Ben Clayton Commit-Queue: David Neto --- src/reader/spirv/parser_impl_module_var_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reader/spirv/parser_impl_module_var_test.cc b/src/reader/spirv/parser_impl_module_var_test.cc index e884362ef9..e8b9993042 100644 --- a/src/reader/spirv/parser_impl_module_var_test.cc +++ b/src/reader/spirv/parser_impl_module_var_test.cc @@ -5889,7 +5889,7 @@ TEST_F(SpvModuleScopeVarParserTest, EntryPointWrapping_IOLocations) { OpDecorate %1 Location 0 OpDecorate %2 Location 0 OpDecorate %3 Location 30 - OpDecorate %4 Location 40 + OpDecorate %4 Location 6 )" + CommonTypes() + R"( %ptr_in_uint = OpTypePointer Input %uint @@ -5914,7 +5914,7 @@ TEST_F(SpvModuleScopeVarParserTest, EntryPointWrapping_IOLocations) { Struct main_out { StructMember{[[ LocationDecoration{0} ]] x_2_1: __u32} - StructMember{[[ LocationDecoration{40} + StructMember{[[ LocationDecoration{6} ]] x_4_1: __u32} } Variable{