Remember that NVidia basically stalled out on OpenCL 1.2, purposefully to encourage CUDA adoption. AMD actually moved forward, though their OpenCL2.0 wasn't that good either... it at least existed.
--------
AMD's APUs culminated in XBox One / PS4 APIs, which actually have a substantial market share in the console market.
---------
Vulkan on Linux is working out pretty well today. I don't think anyone would have picked that as the strongest API 10 years ago. Remember that in 2010s, "Vulkan" was known as "AMD Mantle" (https://en.wikipedia.org/wiki/Mantle_(API)).
Even as AMD was going bankrupt in the early 2010s, they had plenty of software investments. Some of these investments (Mantle/Vulkan) even worked out.
Additionally their drivers were never great.
And here's another video where Andersson talks about the motivation behind Mantle: https://www.youtube.com/watch?v=KApdf4P2Iak
With ~15% of the market, it's going to be very difficult to pull the market in a direction you want, so you're forced to say "I can offer you what nVidia does, but cheaper"
PC vs console is weird. They are different markets but you'd think the x86 based PS5 would have more pull these days.
I suspect the problem the PC gaming market is very halo-product steered: Intel's product credibility is still buttressed by whatever 700-watt-from-the-wall 16900WTFBBQ they can showcase for benchmarks, and Radeons winning at various price/performance tiers means nothing when they don't have a 4090 killer.
I was also surprised how effectively ray-tracing was sold to the market, considering plenty of games still don't use it, and those that do take a big performance hit for it. The RTX2xxx cards were sort of turkeys, but I suspect it now provides an excellent FOMO/FUD scenario for newer cards-- that 7900XT might not ray-trace as well as a 4080.
The GPUs aren't playing catch up either, They're the shared memory APU systems. widely celebrated as novel on the current Apple silicon and shipping in configuration since the playstation 4.