Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/spirv.c:
result_id = vkd3d_spirv_build_op_tr2(builder, &builder->function_stream, op, type_id, src0_id, src1_id);
- result_id = spirv_compiler_emit_bool_to_int(compiler, component_count, result_id, true);
- if (dst->reg.data_type != VKD3D_DATA_BOOL)
result_id = spirv_compiler_emit_bool_to_int(compiler, component_count, result_id, true);
I'd rather request the DXIL frontend to emit an explicit `itoi` rather than stipulate at the VSIR level that comparison can implicitly cast to int (and, specifically, that this conversion is meant to be signed).