The HLSL compiler already did this; the TPF and DXIL parsers did not. Previously spirv_compiler_emit_sample_info() was unable to correctly handle VSIR_DATA_U32 destinations; the new version is arguably simpler as well.