Skip to content

CodeGen SPIR-V tests that specify --target-env vulkan1.3 are failing #136049

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

Closed
kmpeng opened this issue Apr 16, 2025 · 5 comments
Closed

CodeGen SPIR-V tests that specify --target-env vulkan1.3 are failing #136049

kmpeng opened this issue Apr 16, 2025 · 5 comments
Assignees
Labels
HLSL HLSL Language Support test-suite

Comments

@kmpeng
Copy link
Contributor

kmpeng commented Apr 16, 2025

When SPIRV-Tools is enabled, tests that specify the target environment vulkan1.3 in the validation step are failing. Specifically, the tests are:

  • CodeGen/SPIRV/hlsl-intrinsics/SV_GroupIndex.ll (link)
  • CodeGen/SPIRV/hlsl-intrinsics/smoothstep.ll (link)

This is happening because SPIRV-Tools seems to have grown some capability checks for 1.3. The target environments were originally added by suggestion in order to give more robust testing. #132288 (comment).

Proposed solution is to remove the --target-env specifications from these tests.

@kmpeng kmpeng self-assigned this Apr 16, 2025
@EugeneZelenko EugeneZelenko added test-suite HLSL HLSL Language Support and removed new issue labels Apr 16, 2025
@kmpeng
Copy link
Contributor Author

kmpeng commented Apr 16, 2025

Tagging @s-perron for your thoughts on this and the proposed solution

@kmpeng kmpeng assigned kmpeng and unassigned kmpeng Apr 16, 2025
@s-perron
Copy link
Contributor

I won't be able to look in detail until Monday, but I would prefer to change the tests to not have external functions or variable. We could make the functions shader entry points.

The reason for using the vulkan environment is because some other restrictions are not checked by the validator, and they can be important.

@farzonl
Copy link
Member

farzonl commented Apr 17, 2025

@s-perron the pipeline is still broken. I think this is just a solution to get the tests back to green. Alternatively we could mark these two XFAIL.

@s-perron
Copy link
Contributor

Sure xfail, and leave an issue open to fix it.

@kmpeng
Copy link
Contributor Author

kmpeng commented Apr 18, 2025

Temporary fix: #136343
Issue tracking long-term fix: #136344

@kmpeng kmpeng closed this as completed Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HLSL HLSL Language Support test-suite
Projects
None yet
Development

No branches or pull requests

5 participants