From 8326248542c2196b4a4ba80f068adb8a0edd6006 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 28 Sep 2023 02:46:03 +0800 Subject: WIP Mesh shaders for SPIR-V (#3226) * SPIR-V impl for SetMeshOutputCounts and DispatchMesh * Unsightly fix for legalization ordering differences between GLSL and SPIR-V * spelling * Start a new block after terminating one in the OpEmitMeshTasksExt SPIR-V asm block * Emit mesh shader decorations in SPIR-V * Mesh and task shader stages for spir-v * Output explicit gl builtins for spir-v * Be more hygenic when SOAizing mesh outputs * Do not create builtin paramter block for spirv mesh outputs * Pass mesh payloads around by ref * comment * less expected failure * remove unused * Add spirv op * Correct type query for default flat modifier --------- Co-authored-by: Yong He --- tests/expected-failure.txt | 3 --- tests/pipeline/rasterization/mesh/task-groupshared.slang | 1 - tests/pipeline/rasterization/mesh/task-simple.slang | 1 - 3 files changed, 5 deletions(-) (limited to 'tests') diff --git a/tests/expected-failure.txt b/tests/expected-failure.txt index a8865dc18..e69de29bb 100644 --- a/tests/expected-failure.txt +++ b/tests/expected-failure.txt @@ -1,3 +0,0 @@ -tests/pipeline/rasterization/mesh/task-groupshared.slang.1 (vk) -tests/pipeline/rasterization/mesh/task-simple.slang.1 (vk) -tests/pipeline/rasterization/mesh/simple.slang.1 (vk) diff --git a/tests/pipeline/rasterization/mesh/task-groupshared.slang b/tests/pipeline/rasterization/mesh/task-groupshared.slang index 5690735cd..c633aeeb1 100644 --- a/tests/pipeline/rasterization/mesh/task-groupshared.slang +++ b/tests/pipeline/rasterization/mesh/task-groupshared.slang @@ -31,7 +31,6 @@ struct MeshPayload groupshared MeshPayload p; -[outputtopology("triangle")] [numthreads(1, 1, 1)] void taskMain(in uint tig : SV_GroupIndex) { diff --git a/tests/pipeline/rasterization/mesh/task-simple.slang b/tests/pipeline/rasterization/mesh/task-simple.slang index 7da9ed32b..67bd729b1 100644 --- a/tests/pipeline/rasterization/mesh/task-simple.slang +++ b/tests/pipeline/rasterization/mesh/task-simple.slang @@ -28,7 +28,6 @@ struct MeshPayload int exponent; }; -[outputtopology("triangle")] [numthreads(1, 1, 1)] void taskMain(in uint tig : SV_GroupIndex) { -- cgit v1.2.3