radeonsi: add bitcast_inputs() helper