Ivan Gyurdiev : wined3d: Move register count pass to SetFunction.