Skip to content

microsoft/spirv_to_dxil: Fix usage of IsFrontFacing input as bool

Michael Tang requested to merge tangm/mesa:dxil_nir_lower_bool_input into main

The front face intrinsic previously gets loaded as a u32 and then bitcasted to a i1, which is invalid.

This change reuses the d3d12_lower_bool_input from gallium/d3d12 for microsoft/spirv_to_dxil to correctly convert the front facing intrinsic via icmp.

Merge request reports