joaosaffran 0e2f4d6acf
[HLSL][SPIRV] Fix firstbitset in spirv (#186939)
This patch fixes the logic when lowering firsbithigh and low when
targeting spirv. It adds an aditional check to make sure the second half
is also -1, if it is it returns -1 otherwise returns the resulting sum.

Fix: #143003 and #143171

---------

Co-authored-by: Finn Plummer <mail@inbelic.dev>
2026-03-25 19:35:32 +00:00
..