From 07c29d8b1248135cc453b1c4e38b5f7d06cb7928 Mon Sep 17 00:00:00 2001 From: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> Date: Mon, 20 May 2024 00:13:42 -0400 Subject: Emit execution mode of type per entry point once. Emit SPIRV capability once per shader program. (#4189) * Emit only 1 execution mode of type per entry point Added a dictionary> to ensure we don't emit multiple. * get inst->id directly * address review + fix test --------- Co-authored-by: Yong He --- .../compute-derivative/intrinsic-derivative-function-in-compute.slang | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/glsl-intrinsic/compute-derivative/intrinsic-derivative-function-in-compute.slang b/tests/glsl-intrinsic/compute-derivative/intrinsic-derivative-function-in-compute.slang index 11b5986b7..36d65c24e 100644 --- a/tests/glsl-intrinsic/compute-derivative/intrinsic-derivative-function-in-compute.slang +++ b/tests/glsl-intrinsic/compute-derivative/intrinsic-derivative-function-in-compute.slang @@ -11,11 +11,15 @@ //TEST:SIMPLE(filecheck=CHECK_SPV_QUAD_C): -allow-glsl -stage compute -entry computeMain -target spirv -DQUAD -DCOMPUTE // CHECK_SPV_QUAD_C: DerivativeGroupQuadsNV +// CHECK_SPV_QUAD_C-NOT: DerivativeGroupQuadsNV // CHECK_SPV_QUAD_C: "SPV_NV_compute_shader_derivatives" +// CHECK_SPV_QUAD_C-NOT: "SPV_NV_compute_shader_derivatives" //TEST:SIMPLE(filecheck=CHECK_SPV_LINEAR_C): -allow-glsl -stage compute -entry computeMain -target spirv -DLINEAR -DCOMPUTE // CHECK_SPV_LINEAR_C: DerivativeGroupLinearNV +// CHECK_SPV_LINEAR_C-NOT: DerivativeGroupLinearNV // CHECK_SPV_LINEAR_C: "SPV_NV_compute_shader_derivatives" +// CHECK_SPV_LINEAR_C-NOT: "SPV_NV_compute_shader_derivatives" //TEST:SIMPLE(filecheck=CHECK_HLSL_C): -allow-glsl -stage compute -entry computeMain -target hlsl -DCOMPUTE // CHECK_HLSL_C: computeMain( -- cgit v1.2.3