darner-gpu: pin the HDR present-plane order #608
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!608
Loading…
Reference in a new issue
No description provided.
Delete branch "qnjk/Darner:queue-plane-order-test"
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?
Contributor role (optional)
What it changes
The problem on main: nothing. This is a tests-only change (no production line is edited).
What it pins:
plane_order(crates/darner-gpu/src/queue.rs,fn plane_order(parameters: *const Plane, planes: u32) -> [usize; 2]) decides the order in which the two HDR present planes are composited — scene first, interface second, unless only the second plane is HDR — from the two planes' colour spaces plus a cached last answer. It is pure and had no test at all, and a wrong answer swaps an overlay under the scene or reports the wrong plane as HDR, which is exactly the kind of fault a screenshot review calls "colours are off" without pointing here.This change adds one test that pins the ordering for the shapes the caller can pass: fewer than two planes, two planes whose colour spaces differ, both matching, and the cached-repeat path.
How it was tested
cf15357(one commit onc8258f9).cargo test --locked -p darner-gpu --lib -- queue— 64 passed, 0 failed.cargo clippy --locked -p darner-gpu --all-targets -- -D warningspasses.git stash):[0, 1]unconditionally:left: [1, 0] right: [0, 1].cargo clippy --workspace --all-targets --locked -- -D warnings: passes.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passes.cargo test --workspace --locked: not run to completion here; the pre-existingdarner-gputest deadlock (#224) anddarner-shaderwaterfall fixture failure (#227) make the whole-workspace run non-green on this machine. The crate'squeuetests pass.Checklist
main.docs/asset-policy.md(cargo xtask policy: 576 files ok).Checked for overlap
crates/darner-gpu/src/queue.rs; this change only adds a test block. No open or closed issue mentionsplane_order.[pr-tests][rendering] darner-gpu: pin the HDR present-plane orderto darner-gpu: pin the HDR present-plane orderView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.