Repository navigation
zink: keep G17P lazy feedback-loop usage off bindless handles; drop test timing modes - #38
Merged
DjDeveloperr merged 2 commits intoOct 23, 2026
Conversation
The --bench and --grid modes timed whole mip chains and single levels to choose the compressed mip-store threshold. That threshold and its data are recorded in the commit that set it, and benchmark tools are kept out of the tree, so keep only the correctness and no-op shim modes. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Two fixes to lazy feedback-loop usage. A texture handle keeps the image view it was created with, and rebinding a resource refreshes bound sampler views, images and attachments but not handles. Recreating an image because it was resident as a bindless texture therefore left its handles on the old object: stale reads, then a destroyed VkImageView once the old object's batch retired. Give a render-target image its feedback-loop usage when a texture handle is created for it, before the handle takes its view, as zink_create_image_handle() already adds storage usage first, and stop recreating on bindless residency. The workaround was keyed on Honeykrisp with unified image layouts, which is G17P today but would include any part that exposes VK_KHR_unified_image_layouts later. Only G17P decides compression on the feedback-loop usage, so key it on the G17P device ID, as the SSBO size limit already is. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Reviewed and merged. The bindless handle issue is real: a handle captured its view before a residency-triggered recreation could replace the image. Giving render-target images feedback-loop usage at handle creation, before |
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.
Follow-up to #33 (DJ's G17P compressed render targets). Review of cf035d2 found two problems in zink's lazy feedback-loop usage and a test that carries benchmark modes.
M1/M2 and every non-G17P driver are unchanged by construction.
Gates (buildbox, offline SDK via buildslot): x86_64 and AArch64 builds pass (asahi, zink, vulkan). Asahi + poly host suites 92/92, agx3_rt_core 611/611, SSBO block-limit shim test unchanged against aurora-wip. Neo results are in the comment below.
🤖 Generated with Claude Code