The jump instruction that the NvFBC patch was looking for changed quite a bit in 555: it moved and is now an entirely different opcode. This patch is able to find it. I also tweaked the patching process a bit to be able to support multiple different versions of the library, since the new patch won't work on older versions. I tested* on 535, 545, 550, and 555, and all seem to work for me with these changes.
If older versions aren't a concern, then a lot of these changes could be removed and the offset / size information can just be updated instead.
[*] The trunk branch doesn't compile for me so I have to also apply some of the other patches in pull request for testing. Please let me know if I messed up in the cherry-pick for this PR. My original branch that fully works is here.
The jump instruction that the NvFBC patch was looking for changed quite a bit in 555: it moved and is now an entirely different opcode. This patch is able to find it. I also tweaked the patching process a bit to be able to support multiple different versions of the library, since the new patch won't work on older versions. I tested* on 535, 545, 550, and 555, and all seem to work for me with these changes.
If older versions aren't a concern, then a lot of these changes could be removed and the offset / size information can just be updated instead.
[*] The trunk branch doesn't compile for me so I have to also apply some of the other patches in pull request for testing. Please let me know if I messed up in the cherry-pick for this PR. My original branch that fully works is here.