Skip to content

linux: add support for driver 580.142.#1058

Open
rakino wants to merge 1 commit intokeylase:masterfrom
rakino:580.142
Open

linux: add support for driver 580.142.#1058
rakino wants to merge 1 commit intokeylase:masterfrom
rakino:580.142

Conversation

@rakino
Copy link
Copy Markdown

@rakino rakino commented Mar 25, 2026

  • patch-fbc.sh (patch_list)
  • patch.sh (patch_list): Add 580.142.
  • README.md: Add it.

I have tested NVENC change working.

image

I don't know how to use NvFBC so I checked that the NvFBC change produces the same binary diff as previous working version.

580.142 (this patch):

$ sed 's/\x85\xc0\x0f\x85\xd4\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' NVIDIA-Linux-x86_64-580.142/libnvidia-fbc.so.580.142 > fbc.so
$ diffoscope NVIDIA-Linux-x86_64-580.142/libnvidia-fbc.so.580.142 fbc.so
--- NVIDIA-Linux-x86_64-580.142/libnvidia-fbc.so.580.142
+++ fbc.so
│┄ File has been modified after NT_GNU_BUILD_ID has been applied.
├── objdump --line-numbers --disassemble --demangle --reloc --no-show-raw-insn --section=.text {}
│ @@ -13001,15 +13001,20 @@
│   test   %eax,%eax
│   jne    10e96 <__cxa_finalize@plt+0xc9b6>
│   mov    0x10(%rbx),%edx
│   mov    0x8(%rbx),%rsi
│   mov    0x28(%rbp),%rdi
│   call   1db30 <NvFBCCreateInstance@@Base+0xb6e0>test   %eax,%eax
│ - jne    10fa0 <__cxa_finalize@plt+0xcac0>
│ + nop
│ + nop
│ + nop
│ + nop
│ + nop
│ + nop
│   lea    0x30(%rbp),%rdi
│   mov    %rbp,%rsi
│   call   1baf0 <NvFBCCreateInstance@@Base+0x96a0>test   %eax,%eax
│   jne    10e96 <__cxa_finalize@plt+0xc9b6>
│   lea    0x410(%rbp),%rdi
│   mov    %rbp,%rsi

580.126.09:

$ sed 's/\x85\xc0\x0f\x85\xd4\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' NVIDIA-Linux-x86_64-580.126.09/libnvidia-fbc.so.580.126.09 > fbc.so
$ diffoscope NVIDIA-Linux-x86_64-580.126.09/libnvidia-fbc.so.580.126.09 fbc.so
--- NVIDIA-Linux-x86_64-580.126.09/libnvidia-fbc.so.580.126.09
+++ fbc.so
├── objdump --line-numbers --disassemble --demangle --reloc --no-show-raw-insn --section=.text {}
│ @@ -13001,15 +13001,20 @@
│   test   %eax,%eax
│   jne    10e96 <__cxa_finalize@plt+0xc9b6>
│   mov    0x10(%rbx),%edx
│   mov    0x8(%rbx),%rsi
│   mov    0x28(%rbp),%rdi
│   call   1db30 <NvFBCCreateInstance@@Base+0xb6e0>test   %eax,%eax
│ - jne    10fa0 <__cxa_finalize@plt+0xcac0>
│ + nop
│ + nop
│ + nop
│ + nop
│ + nop
│ + nop
│   lea    0x30(%rbp),%rdi
│   mov    %rbp,%rsi
│   call   1baf0 <NvFBCCreateInstance@@Base+0x96a0>test   %eax,%eax
│   jne    10e96 <__cxa_finalize@plt+0xc9b6>
│   lea    0x410(%rbp),%rdi
│   mov    %rbp,%rsi

Copy link
Copy Markdown
Collaborator

@jailuthra jailuthra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the scripts under tools/readme-autogen to update the README and keep JSON up to date.

(Same comment as #1057)

@rakino
Copy link
Copy Markdown
Author

rakino commented Mar 27, 2026

Thanks, updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants