Skip to content

[SPIRV] Fix constant value in function#7415

Merged
s-perron merged 1 commit intomicrosoft:mainfrom
GinShio:spv-intrin-opconstant
May 3, 2025
Merged

[SPIRV] Fix constant value in function#7415
s-perron merged 1 commit intomicrosoft:mainfrom
GinShio:spv-intrin-opconstant

Conversation

@GinShio
Copy link
Copy Markdown
Contributor

@GinShio GinShio commented May 2, 2025

We will get a crash when use spirv intrinsic to create a constant value.

fatal error: generated SPIR-V is invalid: Constant cannot appear in a function declaration
  %spirvIntrinsicType_42 = OpConstant %spirvIntrinsicType 42

@s-perron s-perron enabled auto-merge (squash) May 2, 2025 23:44
@GinShio
Copy link
Copy Markdown
Contributor Author

GinShio commented May 3, 2025

@microsoft-github-policy-service agree company="AMD"

@s-perron s-perron merged commit 1198c30 into microsoft:main May 3, 2025
13 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants