Repository navigation
Conversation
… count reuses its texels Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
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.
What
Replaces boykopovar#25617, closed by the open PR limit and which GitHub does not let me reopen. Rebased on current
main, where the loop now runs two queries per fragment count (native and under DIM 2D,CheckMsaa): both share the same sample count and the same target, so the retirement goes after both, once per fragment count.agc_driver_image_resinfo_dimensionruns its 2D MSAA queries with 2, 4 and 8 fragments on the sameTexelsblock. Sampling the first T# creates a resident multisampled target at that address, and nothing in the test retires it, so the next fragment count finds it and throws on every device that renders more than one of those counts:The test passes on Linux and Windows only because of where the toolchain places the two globals: the compute shader's store to
Outputis a shader buffer access, and whenOutputlies right afterTexelsit overlaps the target's guarded footprint and retires the target before the next case. On macOS the linker placesOutput(0x…9000, 512 bytes) right beforeTexels(0x…9200), so the store never touches the footprint and the target stays. Checked on macOS:Outputright afterTexels(both in one struct), with no other change: all three cases pass.This retires the resident images over
Texelsafter each fragment count withRetireResidentImagesOver_nid_no_patch, asAlphaToCoverage.cppandMultisampleRetirement.cppdo when a test reuses guest memory, so each case starts from no target whatever the layout. No production code changes. Sampling a resident multisampled target as another sample count stays unimplemented; this test does not need it.Tested
Apple M5 Pro, macOS 26.5.1, Apple clang 21.0.0, x86_64 Release under Rosetta 2, MoltenVK and loader from Vulkan SDK 1.4.363.1,
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1. Tree:main(9f02806) + boykopovar#17425 + boykopovar#11049 + boykopovar#26739 + boykopovar#27739 (needed to build on macOS).agc_driver_image_resinfo_dimensionNot run on Linux or Windows: there the retirement happens at the same point the
Outputstore already caused it, so the cases run as before.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
Summary by CodeRabbit