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

[SPIR-V] DXC won't emit OpEntryPoint for library target profile #7088

Closed
alichraghi opened this issue Jan 27, 2025 · 1 comment
Closed

[SPIR-V] DXC won't emit OpEntryPoint for library target profile #7088

alichraghi opened this issue Jan 27, 2025 · 1 comment
Labels
bug Bug, regression, crash needs-triage Awaiting triage spirv Work related to SPIR-V

Comments

@alichraghi
Copy link

alichraghi commented Jan 27, 2025

Description
DXC won't emit OpEntryPoint for library target profile

Steps to Reproduce
https://godbolt.org/z/9nzWqnqr6

Actual Behavior
Should emit OpEntryPoint for each entry-point specified with -E argument but instead throws this error:

fatal error: generated SPIR-V is invalid: No OpEntryPoint instruction was found. This is only allowed if the Linkage capability is being used.
note: please file a bug report on https://github.com/Microsoft/DirectXShaderCompiler/issues with source code if possible

Environment

  • DXC version: goldbolt trunk
  • Host Operating System: -
@alichraghi alichraghi added bug Bug, regression, crash needs-triage Awaiting triage spirv Work related to SPIR-V labels Jan 27, 2025
@alichraghi
Copy link
Author

alichraghi commented Jan 27, 2025

I forgot [shader("<stage>")] exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash needs-triage Awaiting triage spirv Work related to SPIR-V
Projects
Archived in project
Development

No branches or pull requests

1 participant