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

[HLSL] Internal Compiler error: cast<X>() argument of incompatible type! #7016

Open
fengliancanxue opened this issue Nov 21, 2024 · 3 comments
Labels
bug Bug, regression, crash
Milestone

Comments

@fengliancanxue
Copy link

Description
Internal Compiler error: cast() argument of incompatible type!

Steps to Reproduce
https://godbolt.org/z/n9h3oP9a3

Actual Behavior
Compile error

Environment

  • DXC version
  • Host Operating System <!--- Host operating system and version --->
@fengliancanxue fengliancanxue added bug Bug, regression, crash needs-triage Awaiting triage labels Nov 21, 2024
@fengliancanxue
Copy link
Author

fengliancanxue commented Nov 21, 2024

I use the case to debug, I find that the min16float4 (0.00000000,0.00000000,0.00000000,0.00000000) 's type is VectorTyID, and when i add the code as below, it can be compiled successfully.
Image
or its type should not be VectorTyID?

@damyanp damyanp removed the needs-triage Awaiting triage label Nov 21, 2024
@damyanp damyanp added this to the Dormant milestone Nov 21, 2024
@damyanp
Copy link
Member

damyanp commented Nov 21, 2024

As this is a long-standing issue I'm afraid that we're unlikely to be able to spend time working on this in the short term. However, it looks like you have a fix! Would you be up for building a PR, including some test cases, for this fix? If so, we'd be happy to merge it.

Thanks!

@damyanp damyanp moved this to Triaged in HLSL Triage Nov 21, 2024
@fengliancanxue
Copy link
Author

As this is a long-standing issue I'm afraid that we're unlikely to be able to spend time working on this in the short term. However, it looks like you have a fix! Would you be up for building a PR, including some test cases, for this fix? If so, we'd be happy to merge it.

Thanks!

I am not familiar with the code, so the fix may not be optimal. I will try to build a PR.

fengliancanxue pushed a commit to fengliancanxue/DirectXShaderCompiler that referenced this issue Nov 22, 2024
…microsoft#7016)

-fix max( min16float4 (0,0,0,0), min16float4 (0,0,0,0)) compile error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash
Projects
Status: Triaged
Development

No branches or pull requests

2 participants