summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArielG-NV <159081215+ArielG-NV@users.noreply.github.com>2024-05-20 00:13:42 -0400
committerGitHub <noreply@github.com>2024-05-19 21:13:42 -0700
commit07c29d8b1248135cc453b1c4e38b5f7d06cb7928 (patch)
treeaa1e08414d199c66758a00068de039111013754b /tests
parent62b7219e715bd4c0f984bcd98c9767fb6422c78f (diff)
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<SpvWord,Hash<ExecutionMode>> to ensure we don't emit multiple. * get inst->id directly * address review + fix test --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/glsl-intrinsic/compute-derivative/intrinsic-derivative-function-in-compute.slang4
1 files changed, 4 insertions, 0 deletions
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(