From 75500a0218361c361e1b83a53e9cea99d21d6ef3 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Thu, 17 Jun 2021 14:23:05 +0000 Subject: [PATCH] test: Generate HLSL expected case that now passes Change-Id: I5b7af7ccd0461ea88274637db1372cc57fa55f01 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54653 Commit-Queue: Ben Clayton Kokoro: Kokoro Reviewed-by: James Price --- .../simple_vertex.spvasm.expected.hlsl | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/test/samples/simple_vertex.spvasm.expected.hlsl b/test/samples/simple_vertex.spvasm.expected.hlsl index 2de5412dd7..7469b78949 100644 --- a/test/samples/simple_vertex.spvasm.expected.hlsl +++ b/test/samples/simple_vertex.spvasm.expected.hlsl @@ -1,10 +1,20 @@ -SKIP: FAILED +static float4 gl_Position; -../src/writer/hlsl/generator_impl.cc:1547 internal compiler error: unhandled storage class out -******************************************************************** -* The tint shader compiler has encountered an unexpected error. * -* * -* Please help us fix this issue by submitting a bug report at * -* crbug.com/tint with the source program that triggered the bug. * -******************************************************************** +void main_1() { + gl_Position = float4(0.0f, 0.0f, 0.0f, 0.0f); + return; +} +struct main_out { + float4 gl_Position; +}; +struct tint_symbol { + float4 gl_Position : SV_Position; +}; + +tint_symbol main() { + main_1(); + const main_out tint_symbol_1 = {gl_Position}; + const tint_symbol tint_symbol_2 = {tint_symbol_1.gl_Position}; + return tint_symbol_2; +}