test(agc): cover clamp-half-border point sampling on real GPUs #22942
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22942"
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?
Imported from boykopovar/AnyPS5. Originally posted by tablefrogpillow on 2026-11-18T14:09:20Z.
What
Adds a real-GPU execution test,
agc_driver_image_sample_clamp_half_border_point, for the S# clamp-mode-4 (clamp, half border) + point-filter sampling behaviour that #22753 fixes. #22753's own test drives the mapping throughMockVulkan; this one samples past a texture edge on a real device and asserts the result is the last texel, not the border. A control case (clamp mode 6, full border) confirms the border path still reads the border, so the edge read is meaningful rather than an artefact.The test fails on current
main— the half-border case reads the opaque-white border (0x3f800000) — and passes with #22753 applied, where it reads the last texel (0x3e808081, the 0x40 UNORM value).Tested
Built
agc_driver_image_sample_clamp_half_border_pointon #22753 head,ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, Khronos validation layer 1.4.363 (confirmedInsert instance layer "VK_LAYER_KHRONOS_validation", no "was not found", 0VUID-):Before/after on NAVI31: on
mainthe half-border case reads0x3f800000(white border) and the test fails; with #22753 applied it reads0x3e808081and passes.check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T05:06:22Z.
Review: APPROVED
Reviewed — looks good
The complete changed file supports the described real-GPU clamp-half-border regression check; its reported hardware runs are author-supplied and were not rerun here.
What I ran
Reviewed head
1eb497d163bb263c23442bfe5a951638f8ca7878using the pinned repository readerrepo_read.py. No build or test commands were run. I readdescription.md,commits.md,manifest.json,diff.patch,review/README.md, the full changed file, andImageSampleBorderColor.cppfor comparison.files.jsonwas not available; the review listing showed one changed file and no excluded changed files.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Compilation and execution on any GPU were not verified in this review. The author reports successful runs on Vega 56, Ryzen 7000 iGPU, RX 7900 GRE, and lavapipe; these are not independently confirmed here. No files were excluded according to the review listing.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:00:56Z.
Review: COMMENTED
The full-border control samples the same coordinate, so the two readbacks distinguish the last texel from the border color. The fixture intentionally fails on current
mainand requires #22753. Please merge or schedule it with that implementation, or keep the fixture with the fixing PR. I queued the same added test on the baseline and the combined change so the expected failure remains visible.AI-assisted: yes.
View 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.