Repository navigation
Conversation
|
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
Add a GPU regression test for a CPU write that changes a texture's pixels while its image descriptor stays identical. A cache that trusts the descriptor alone can silently render old pixels.
The test dispatches twice to warm the cache, updates the untracked source and advances the collection epoch. The new epoch invalidates the whole-table cache entry. When the driver resolves the same descriptor again, the GPU must see the new texels from the texture cache. A neighboring descriptor must still sample its original texture.
In Planet Zoo's Goodwin House, all 4,778 cached-texture comparisons sampled across ten 1080p frames lacked a write generation. They all matched. This test exercises the case a reuse optimization still has to handle when the bytes change. Planet Zoo bring-up
Tested
On Windows 11 build 26200,
agc_driver_image_table_reusepassed on main (460d3ece6f) and on this branch. The newagc_driver_image_table_reuse_untracked_mutationCTest passed on both GPUs listed below. Both configurations required Vulkan, disabled the shader cache and loaded Khronos validation 1.4.363. No VUIDs were logged.Before opening this PR, the overlap scan checked 2,470 open PRs. I reviewed the six inconclusive comparisons. boykopovar#6340 tests pending writes to tracked entries and mixed DCC entries. Its ported fixture merges cleanly with this test. boykopovar#7642, boykopovar#9508, boykopovar#10193, boykopovar#13928 and boykopovar#13929 register a different test in the shared CMake file. boykopovar#15529 separately checks the revalidation path after an untracked write. The new readback also passed on both adapters with boykopovar#15529 applied to the experimental Goodwin House renderer.
In a private negative-control build, I made the cached-texture byte comparison always report equal. The new test failed on the changed-texel readback on Intel and NVIDIA. Restoring the comparison made it pass on both.
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)Summary by CodeRabbit