Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slang-test compute-derivative fails with SPIRV-Headers upgrade #5106

Closed
cheneym2 opened this issue Sep 18, 2024 · 1 comment
Closed

Slang-test compute-derivative fails with SPIRV-Headers upgrade #5106

cheneym2 opened this issue Sep 18, 2024 · 1 comment
Assignees
Labels
goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang kind:bug something doesn't work like it should

Comments

@cheneym2
Copy link
Collaborator

The regression occurs with SPIRV-Headers change:

2a9b6f951c7d6b04b6c21fe1bf3f475b68b84801 Add Capability and Execution mode SPV_KHR_compute_shader_derivatives (#446)

Failing tests:
tests/glsl-intrinsic/compute-derivative/derivative-mode-undefined-mode2.slang
tests/glsl-intrinsic/compute-derivative/derivative-mode-many-entry-points2.slang
tests/glsl-intrinsic/compute-derivative/derivative-mode-undefined-mode3.slang
tests/glsl-intrinsic/compute-derivative/derivative-mode-many-entry-points1.slang
tests/glsl-intrinsic/compute-derivative/derivative-mode-undefined-mode.slang
tests/glsl-intrinsic/compute-derivative/derivative-mode-many-entry-points3.slang

Supported backends: glslang spirv-dis gcc genericcpp llvm spirv-opt

error: slang-test: tests/glsl-intrinsic/compute-derivative/derivative-mode-undefined-mode.slang:2:22: error: CHECK_SPV_SYNTAX: expected string not found in input
// CHECK_SPV_SYNTAX: DerivativeGroupQuadsNV
^

error: slang-test: actual-output:1:1: note: scanning from here
result code = 0
^

error: slang-test: actual-output:10:21: note: possible intended match here
OpCapability ComputeDerivativeGroupQuadsKHR
^

FAILED test: 'tests/glsl-intrinsic/compute-derivative/derivative-mode-undefined-mode.slang'
passed test: 'tests/glsl-intrinsic/compute-derivative/derivative-mode-undefined-mode.slang.1'

===
71% of tests passed (23/32)

failing tests:

tests/glsl-intrinsic/compute-derivative/derivative-mode-undefined-mode2.slang
tests/glsl-intrinsic/compute-derivative/derivative-mode-undefined-mode.slang
tests/glsl-intrinsic/compute-derivative/derivative-mode-undefined-mode3.slang
tests/glsl-intrinsic/compute-derivative/derivative-mode-many-entry-points1.slang
tests/glsl-intrinsic/compute-derivative/derivative-mode-many-entry-points1.slang.1
tests/glsl-intrinsic/compute-derivative/derivative-mode-many-entry-points3.slang
tests/glsl-intrinsic/compute-derivative/derivative-mode-many-entry-points2.slang
tests/glsl-intrinsic/compute-derivative/intrinsic-derivative-function-in-compute.slang.2
tests/glsl-intrinsic/compute-derivative/intrinsic-derivative-function-in-compute.slang.3

@cheneym2 cheneym2 added the kind:bug something doesn't work like it should label Sep 18, 2024
@cheneym2 cheneym2 added this to the Q3 2024 (Summer) milestone Sep 18, 2024
@cheneym2 cheneym2 self-assigned this Sep 18, 2024
@cheneym2 cheneym2 changed the title Slang-test compute-derivativefails with SPIRV-Headers upgrade Slang-test compute-derivative fails with SPIRV-Headers upgrade Sep 18, 2024
@cheneym2
Copy link
Collaborator Author

In each of the failing tests, replacing the CHECK string from the NV named extension to KHR makes the issue go away.

cheneym2 added a commit to cheneym2/slang that referenced this issue Sep 18, 2024
Extension was promoted from NV to KHR while retaining same enums.

Fixes shader-slang#5106
cheneym2 added a commit to cheneym2/slang that referenced this issue Sep 18, 2024
Add fixes for a missing test intrinsic-derivative-function-in-compute.slang
Use the {{NV|KHR}} syntax to tolerate either enum.

Fixes shader-slang#5106
@jkwak-work jkwak-work added kind:regression kind:bug something doesn't work like it should and removed kind:bug something doesn't work like it should kind:regression labels Sep 18, 2024
@bmillsNV bmillsNV added the goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang kind:bug something doesn't work like it should
Projects
None yet
Development

No branches or pull requests

3 participants