Keep dark pixels and full-size native frames in F8 screenshots #381

Open
HandshakeHackin wants to merge 1 commit from upstream-pr/381 into v21
HandshakeHackin commented 2026-11-30 20:20:02 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-30T20:20:02Z.


The #351 fix crops captures when AMD frame generation leaves the picture in one corner of the back buffer. The same crop currently runs on native, DLSS and XeSS swap chains. A native 40×20 frame with just a bright detail in the top left is saved as 1×1. Even on the AMD path, a distant shadow pixel with RGB (1, 2, 3) is discarded.

This uses the presenter’s actual AMD frame-generation swap-chain flag and treats only RGB (0, 0, 0) as padding. The existing top-left crop still works. Two synthetic pixel comparisons failed on the unmodified routine and passed with the fix. All eight tests in the in-game keys module passed on Windows. Windows pixel tests

A physical RX 9070 capture on the newer release would still be useful for confirming the original report.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:5573057135 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/381). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-30T20:20:02Z. --- The #351 fix crops captures when AMD frame generation leaves the picture in one corner of the back buffer. The same crop currently runs on native, DLSS and XeSS swap chains. A native 40×20 frame with just a bright detail in the top left is saved as 1×1. Even on the AMD path, a distant shadow pixel with RGB (1, 2, 3) is discarded. This uses the presenter’s actual AMD frame-generation swap-chain flag and treats only RGB (0, 0, 0) as padding. The existing top-left crop still works. Two synthetic pixel comparisons failed on the unmodified routine and passed with the fix. All eight tests in the in-game keys module passed on Windows. [Windows pixel tests](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46504105280/job/142149613544) A physical RX 9070 capture on the newer release would still be useful for confirming the original report.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/381:upstream-pr/381'
git switch 'upstream-pr/381'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'v21'
git merge --no-ff 'upstream-pr/381'
git switch 'upstream-pr/381'
git rebase 'v21'
git switch 'v21'
git merge --ff-only 'upstream-pr/381'
git switch 'upstream-pr/381'
git rebase 'v21'
git switch 'v21'
git merge --no-ff 'upstream-pr/381'
git switch 'v21'
git merge --squash 'upstream-pr/381'
git switch 'v21'
git merge --ff-only 'upstream-pr/381'
git switch 'v21'
git merge 'upstream-pr/381'
git push origin 'v21'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
PastiiJay/klbf-lab!381
No description provided.