You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIR-V] Invalid generated SPIR-V when nesting HLSL 2021 and intrinsic. #6995
Description
In an attempt to minimize branching in our HLSL 2021 shader code, we have been converting boolean operators to use the and intrinsic from HLSL 2021 that doesn't short circuit. However, when nesting two calls to and, we get the following error: fatal error: generated SPIR-V is invalid: Expected both operands to be of Result Type: LogicalAnd
Activity
s-perron commentedon Nov 18, 2024
This is incorrect even with just a single
and(https://godbolt.org/z/Te48c9zzz). The AST for the call toandis:It treats the parameters as integers. However, the spir-v instruction takes bools. Should be an easy fix.
[SPIRV] Cast operands to `and` and `or` to bool
[SPIRV] Cast operands to `and` and `or` to bool
Fix and/or intrinsics with non-int parameters (microsoft#7060)
Fix and/or intrinsics with non-int parameters (microsoft#7060)
Fix and/or intrinsics with non-int parameters (microsoft#7060)
Fix and/or intrinsics with non-int parameters (cp to 1.8.2502) (#7091)
Fix and/or intrinsics with non-int parameters (microsoft#7060)
Fix and/or intrinsics with non-int parameters (cp to 1.8.2502) (#7099)
Fix and/or intrinsics with non-int parameters (cp to 1.8.2502) (micro…
Fix and/or intrinsics with non-int parameters (cp to 1.8.2502) (micro…
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to 5c60…
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to 5c60…
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to fb13…