Skip to content

[DirectX] MakeDouble doesn't match validator expectations #140998

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

Open
spall opened this issue May 22, 2025 · 0 comments
Open

[DirectX] MakeDouble doesn't match validator expectations #140998

spall opened this issue May 22, 2025 · 0 comments

Comments

@spall
Copy link
Contributor

spall commented May 22, 2025

Function: main: error: 'dx.op.makeDouble' is not a DXILOpFuncition for DXILOpcode 'MakeDouble'.
# | note: at '%hlsl.asdouble.i1 = call double @dx.op.makeDouble(i32 101, i32 0, i32 2146959360) #3' in block 'entry' of function 'main'.
# | Function: dx.op.makeDouble.f64: error: External function 'dx.op.makeDouble.f64' is unused.
# | Validation failed.

seen when compiling this code:

RWStructuredBuffer<double> Out1 : register(u0);

[numthreads(1,1,1)]
void main() {
  Out1[0] = asdouble(0x00000000, 0x7FF80000); // Should be NaN
}

Looks the same as this: #139018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready
Development

No branches or pull requests

2 participants