test: Add MSL result for test that now passes

The location decoration in the test source was recently changed to fit
in MSL's allowed range.

Change-Id: Ia8ff2cc453f5af3ed084ede42546ef6750bd27a9
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/61260
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
James Price 2021-08-12 18:18:41 +00:00
parent 2cbf265aec
commit 13463daa95
1 changed files with 16 additions and 23 deletions

View File

@ -1,5 +1,3 @@
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
@ -13,35 +11,30 @@ struct tint_symbol_2 {
};
struct tint_symbol_3 {
uint x_2_1 [[color(0)]];
uint x_4_1 [[color(40)]];
uint x_4_1 [[color(6)]];
};
void main_1() {
return;
}
fragment tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1 [[stage_in]]) {
thread uint tint_symbol_6 = 0u;
thread uint tint_symbol_7 = 0u;
thread uint tint_symbol_8 = 0u;
thread uint tint_symbol_9 = 0u;
uint const x_1_param = tint_symbol_1.x_1_param;
uint const x_3_param = tint_symbol_1.x_3_param;
tint_symbol_6 = x_1_param;
tint_symbol_7 = x_3_param;
main_out tint_symbol_inner(uint x_1_param, uint x_3_param, thread uint* const tint_symbol_5, thread uint* const tint_symbol_6, thread uint* const tint_symbol_7, thread uint* const tint_symbol_8) {
*(tint_symbol_5) = x_1_param;
*(tint_symbol_6) = x_3_param;
main_1();
main_out const tint_symbol_4 = {.x_2_1=tint_symbol_8, .x_4_1=tint_symbol_9};
tint_symbol_3 const tint_symbol_5 = {.x_2_1=tint_symbol_4.x_2_1, .x_4_1=tint_symbol_4.x_4_1};
return tint_symbol_5;
main_out const tint_symbol_4 = {.x_2_1=*(tint_symbol_7), .x_4_1=*(tint_symbol_8)};
return tint_symbol_4;
}
Compilation failed:
program_source:14:22: error: 'color' attribute parameter is out of bounds: must be between 0 and 7
uint x_4_1 [[color(40)]];
^
program_source:21:10: error: invalid return type 'tint_symbol_3' for fragment function
fragment tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1 [[stage_in]]) {
^
thread uint tint_symbol_9 = 0u;
thread uint tint_symbol_10 = 0u;
thread uint tint_symbol_11 = 0u;
thread uint tint_symbol_12 = 0u;
main_out const inner_result = tint_symbol_inner(tint_symbol_1.x_1_param, tint_symbol_1.x_3_param, &(tint_symbol_9), &(tint_symbol_10), &(tint_symbol_11), &(tint_symbol_12));
tint_symbol_3 wrapper_result = {};
wrapper_result.x_2_1 = inner_result.x_2_1;
wrapper_result.x_4_1 = inner_result.x_4_1;
return wrapper_result;
}