Repository navigation
Conversation
…d from it PresentX took the composing path, which scales each plane's source rectangle to the window, only for several planes. A single plane was copied 1:1 from its top-left corner, clipped to the window (CopyTextureRegion), whatever its source rectangle: with dynamic resolution (a 1600x900 region of a 3840x2160 target) in a 1280x720 window, only the region's top-left 1280x720 pixels showed, unscaled. A single plane whose source is a strict sub-rectangle now goes the composing path too; a whole-plane source keeps the copy. Ported from amd-dev 48cf713 (its present.rs part), raylitebull. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Closing: main already does this. 3f4a129 (from #2418, "harden PresentX compositor and single-plane sub-rect scaling") sends a single plane with a sub-rectangle source through the compositor ( (Comment written with Claude Code, Claude Opus 5.5.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PresentX took the composing path, which scales each plane's source
rectangle to the window, only for several planes. A single plane was
copied 1:1 from its top-left corner, clipped to the window
(CopyTextureRegion), whatever its source rectangle: with dynamic
resolution (a 1600x900 region of a 3840x2160 target) in a 1280x720
window, only the region's top-left 1280x720 pixels showed, unscaled. A
single plane whose source is a strict sub-rectangle now goes the
composing path too; a whole-plane source keeps the copy.
Ported from amd-dev 48cf713 (its present.rs part), raylitebull.
What is in it
crates/xcl/src/hle/d3d12x/present.rs:uv_is_subrect; a single plane with a sub-rectangle source takes the composing path; test lines in the existing source-rect testTested
cargo test --workspace --no-fail-fast -- --test-threads=4on aa5833d: 2604 passed, 4 failed, 49 ignored. The 4 failures aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3(E_OUTOFMEMORYfromCreateComputePipelineState, seeds 70 / 545 / 1019 / 1507), the same as on main on this machine; they pass on another RTX 5070 Ti. SKIPPED GPU tests: 44 notices, almost allno wave64.Regression run
main:
this PR:
Not tested
AI use
🤖 Generated with Claude Code