I also added a fix for AMS with different gamma ramp sizes, but that issue there is purely theoretical
BUG: 453070