Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: how to find bytecode for nvidia-fbc ? #796

Open
Vincenzo-Puzone opened this issue May 22, 2024 · 3 comments
Open

Question: how to find bytecode for nvidia-fbc ? #796

Vincenzo-Puzone opened this issue May 22, 2024 · 3 comments
Labels

Comments

@Vincenzo-Puzone
Copy link

Vincenzo-Puzone commented May 22, 2024

Hello,

My question is: how do i find the bytecode for nvidia-fbc patch?

I can use the script in tools/autopatch/find_bytecode.sh to find nvenc bytecode but not nvfbc

@jailuthra
Copy link
Collaborator

@Vincenzo-Puzone the script currently doesn't automate looking for NvFBC bytestring, as it does not change often.

To me looks like it has changed in recent releases.. I've tried to manually patch it, but really guessing here.

Can you test #799 to see if the patch applies cleanly, and removes NvFBC limitation for you?

@SjoerdV
Copy link

SjoerdV commented May 28, 2024

@jailuthra In my case your patch fails to start sunshine with the following segfault (ouch!) error

sunshine[1789]: segfault at 7f4764c07f20 ip 00007f4764c07f20 sp 00007ffe17fcd8f8 error 14 in nvidiactl[7f4764e34000+4000] likely on CPU 6 (core 6, socket 0)
Code: Unable to access opcode bytes at 0x7f4764c07ef6.

@Sid127
Copy link
Contributor

Sid127 commented Jun 5, 2024

if anyone wants to test:
try replacing 85 c0 0f 85 9b 00 00 00 48 with 85 C0 90 90 90 90 90 90 48 in libnvidia-fbc.so.555.52.04

EDIT: had a friend test it on his desktop, it does seem to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants