Despite spinning off, GloFo and AMD remained tightly aligned businesswise, and AMD signed agreements such as minimum silicon wafer usage.
In order to make the fab seem like something someone would want to buy, AMD tied their futures into it by entering into a wafer supply agreement where they will buy certain amounts of GloFo:s production whether they need it or not.
This agreement was a millstone around AMD's neck during the worst years. It means that AMD absolutely wants to sell at least a certain amount of silicon, even at negative margin if necessary.
But by 2013, AMD had sold its headquarters in a "reverse mortgage" to remain solvent. https://arstechnica.com/information-technology/2013/03/amd-s...
AMD had almost a full decade without making money.