The main changes are:
Also rearranged a bit to get some things as const to make the function a bit easier to work with.
This makes #2166 create the correct shaders now and looks a bit better, as cg loader uses image_in to blit the shaders to rsx memory, and gave some invalid clip values
@jarveson I was looking into this as well since it interacts with buffer synchronization. Might I ask which references you used for this? I was still looking around for good docs on the chip.
@SakataGintokiYT Does this PR fix games like Bakugan as well? Or do those still show a black screen?