nine/ff: implement (almost) everything

Aaaaaaaarghrrrh !
nv50/ir/tgsi: implement TGSI_OPCODE_NRM,DP2A

Used by d3d9 st.
Resources WIP.

Really not sure which way I'm going yet.