Compose: keep filtered source rectangles inside their crop #2532
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2532
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2532"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ghptc on GitHub · 2026-11-29 13:53 UTC · original
ghptc:fix/clamp-compositor-crop→main· +22 −1 · 1 files · 1 commits · merged 2026-11-30 14:12 UTCWhen a presented plane is scaled up from an interior source rectangle, the linear sampler can reach one texel outside the crop. Pixels outside a dynamic-resolution render or cropped interface can then bleed into the visible edge. The placement mapping from
8fd66762supplies the correct rectangle. This change keeps its sampling footprint inside that rectangle, while preserving bilinear interpolation in the interior.The regression uses a four-texel texture containing red, green, blue and white. Enlarge just the green texel to two output pixels. On an RTX 5070 with driver 620.73.04, Arch Linux and Proton Experimental, the physical RGBA8 readbacks were:
829188e9An independent crop-then-resize reference matched both corrected pixels. The six control pixels matched in both arms for 1:1 copying, partial destination placement and filtering inside a larger crop. Both services completed cleanup and returned to the measured GPU idle envelope, with zero memory pressure, OOM, swap or task-limit events.
The regression extends
compose::tests::shows_a_planes_source_rectangle_in_its_place. Both test builds included the identical diagnostics-only compile prerequisite from #2386. This PR changes only the compositor and its regression. The readback measures color correctness.