cemu_graphic_packs/Resolutions/Bayonetta2_Resolution
Crementif 3f87a42f4f
[Bayonetta 2] Fix aspect ratio patch to not break Vulkan
Fixes https://github.com/slashiee/cemu_graphic_packs/issues/437

The aspect ratio mod apparently relied more on a shotgun approach, which caused major issues with Vulkan.
Using @getdls addresses, I found out that 2 of the addresses that were being patched to jump to the code cave were unrelated to the aspect ratio, so I had those removed.

Those random jumps probably didn't cause issues because they would jump to code that would just utilize floating point registers that were in-use and then put the result in the wrong register too. While the picked registers would work with the 3D rendering aspect ratio instruction, it wouldn't fail for the other registers since they weren't specific to those.

Anyway, the proper fix was to just make a second code cave for the aspect ratio, which outputted the culling ratio in the proper register. And also make sure it didn't use in-use registers.

I also reverted some of the shader code changes since they are inconsistent with how we've done them for all the other packs. And made them more compatible with the ultrawide resolutions.
2020-05-24 18:11:09 +02:00
..
7ca214032b834227_0000000000000000_vs.txt Bayonetta 2- Ultrawide, DOF, scale gl_point 2020-04-23 21:45:28 +02:00
8a0efcdc3f556942_0000000000000079_ps.txt [Bayonetta 2] Fix aspect ratio patch to not break Vulkan 2020-05-24 18:11:09 +02:00
9ea5cab5137f8604_0000000000000000_vs.txt Bayonetta 2- Ultrawide, DOF, scale gl_point 2020-04-23 21:45:28 +02:00
43a2239f07af804e_0000000000000079_ps.txt [Bayonetta 2] Fix aspect ratio patch to not break Vulkan 2020-05-24 18:11:09 +02:00
78a2659662685d55_0000000000000079_ps.txt [Bayonetta 2] Fix aspect ratio patch to not break Vulkan 2020-05-24 18:11:09 +02:00
284b1bf9010d4e57_0000000000000079_ps.txt Bayonetta 2- Ultrawide, DOF, scale gl_point 2020-04-23 21:45:28 +02:00
392cf5ae4c5cf942_0000000000000000_vs.txt Bayonetta 2- Ultrawide, DOF, scale gl_point 2020-04-23 21:45:28 +02:00
75387173950c1793_0000000000000079_ps.txt [Bayonetta 2] Fix aspect ratio patch to not break Vulkan 2020-05-24 18:11:09 +02:00
a574ba7d973b3412_0000000000000000_vs.txt Bayonetta 2- Ultrawide, DOF, scale gl_point 2020-04-23 21:45:28 +02:00
patch_aspectRatio.asm [Bayonetta 2] Fix aspect ratio patch to not break Vulkan 2020-05-24 18:11:09 +02:00
rules.txt Bayonetta 2- Ultrawide, DOF, scale gl_point 2020-04-23 21:45:28 +02:00