From f96a3fea6704da866e96e453f722a951c214ba28 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 18 Mar 2024 16:41:40 -0700 Subject: Fix SPIRV for mesh shaders, checks for invalid target code&recursion. (#3788) * Fix #3780. * Fixers #3781. * Add test for #3781. * Diagnose error on unsupported builtin intrinsic types. * Add check for recursion. * Fix. * Fix. * Fix recursion detection. * Fix. * Fix. * Fix recursion logic. * More fix. --- tests/cross-compile/array-of-buffers.slang | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/cross-compile') diff --git a/tests/cross-compile/array-of-buffers.slang b/tests/cross-compile/array-of-buffers.slang index 31738ccfc..bf2574f29 100644 --- a/tests/cross-compile/array-of-buffers.slang +++ b/tests/cross-compile/array-of-buffers.slang @@ -1,7 +1,10 @@ // array-of-buffers.slang -//TEST:CROSS_COMPILE:-target spirv-assembly -entry main -stage fragment -//TEST:CROSS_COMPILE:-target dxil-assembly -entry main -stage fragment -profile sm_6_0 +//TEST:SIMPLE(filecheck=SPIRV):-target spirv-assembly -entry main -stage fragment +//TEST:SIMPLE(filecheck=DXIL):-target dxil-assembly -entry main -stage fragment -profile sm_6_0 + +// SPIRV: OpEntryPoint +// DXIL: define void @main() // This test ensures that we cross-compile arrays of structured/constant // buffers into appropriate GLSL, where these are not first-class types. -- cgit v1.2.3