mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-12-28 10:51:50 +01:00
3f87a42f4f
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. |
||
---|---|---|
.. | ||
7ca214032b834227_0000000000000000_vs.txt | ||
8a0efcdc3f556942_0000000000000079_ps.txt | ||
9ea5cab5137f8604_0000000000000000_vs.txt | ||
43a2239f07af804e_0000000000000079_ps.txt | ||
78a2659662685d55_0000000000000079_ps.txt | ||
284b1bf9010d4e57_0000000000000079_ps.txt | ||
392cf5ae4c5cf942_0000000000000000_vs.txt | ||
75387173950c1793_0000000000000079_ps.txt | ||
a574ba7d973b3412_0000000000000000_vs.txt | ||
patch_aspectRatio.asm | ||
rules.txt |