Repository navigation
borealis: enable descriptor buffers on the M5 family - #456
Conversation
|
Thanks for bringing descriptor buffers to G17C and for the A/B/B/A runs. We select behaviour by a hardware property, or apply it everywhere, rather than by the chip it was tested on. Several parts of this are G17C-only although their reason is not chip-specific:
Could this rebase on #436's shared stride and residency code, keep only what the M5 descriptor format truly needs (with a code comment naming that reason), and use |
4e09d9c to
fa98f8d
Compare
|
Note 🤖 Claude Opus 5.5 responding on behalf of erikwb Rebased onto #436 and reduced to what M5 needs (fa98f8d). #456's own stride, residency list and padding code is gone; it uses
The same capture/replay problem already exists on G17P on aurora-wip, independent of this PR. Since #436, |
RyanTheTide
left a comment
There was a problem hiding this comment.
No blockers. Re-review of fa98f8d. All four of our points are resolved. The stride and residency code now come from #436's shared helpers. The null multi-plane guard runs for any descriptor-buffer layout. The extension is keyed on agx_chip_g17_m5() for the shared M5 descriptor format, and the reason is in a comment. The M5-only sparse_map_page lookup in hk_sparse_map_page_at() (hk_buffer.c:117) uses the same gate and asserts as get_buffer_address(). Turning off capture/replay on M5 is explained correctly. The 64-bit sizes and the maxVariableDescriptorCount underflow fix in hk_GetDescriptorSetLayoutSupport() look right.
- Scope and evidence: the extension now turns on for G17G and G17S, and neither has a hardware run (the G17S coverage is the host shim only). Please have the train's M5 Pro (G17S) row run
dEQP-VK.binding_model.descriptor_buffer.*before merge. hk_physical_device.c:249:dev->chip == AGX_CHIP_G17P ||still leaves G15/G16G out. The comment says they write G17P's records and only lack a CTS run. Once our M3/M4 Air rows exist, this can becomeagx_chip_native_agx3() || agx_chip_g17_m5(), as #450 did. This can be a follow-up, not part of this PR.- The pre-existing G17P capture/replay problem you describe (a sparse texel descriptor replayed with a stale map page,
hk_buffer.c:622and:353) is a real correctness bug on aurora-wip. Please open an issue or a small PR for it, so it doesn't get lost now that it is out of this PR. Turning offdescriptorBufferCaptureReplaywhilesparseResidencyBufferis enabled is the smallest fix.
Our rows for the G17P shader change: A18 Pro and M4 Pro running dEQP-VK.binding_model.descriptor_buffer.* and dEQP-VK.ycbcr.*, with no new failures against aurora-wip afcc08b as the pass criterion.
Assisted-by: LLM (Claude:Opus 5.5)
|
Note 🤖 Claude Opus 5.5 responding on behalf of erikwb J716c row at fa98f8d: |
RyanTheTide
left a comment
There was a problem hiding this comment.
Thanks for the J716c row. It covers G17C, but our point 1 was about G17G and G17S, which this PR also turns on and which still have no hardware run. Please wait for the train's M5 Pro (G17S) descriptor_buffer.* row before merge. Point 3 (the G17P capture/replay with sparse residency bug) has no issue or PR yet that I can find. Please open one so it isn't lost.
Assisted-by: LLM (Claude:Opus 5.5)
|
Blockers: 2. Re-checked fa98f8d against current aurora-wip (b8762aa). The earlier points on the G17S row, the G15/G16 extension gate and the G17P capture/replay issue still stand; not repeated here.
What I checked: the sparse-buffer lookup runs under HW row: on the rebased head, run M5 Pro (G17S) Assisted-by: LLM (Claude:Opus 5.5) |
fa98f8d to
6a005e8
Compare
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Rebased onto
Waiting on the train's M5 Pro (G17S) |
|
Re-checked 6a005e8. Both earlier blockers are fixed: the rebase onto aurora-wip drops the push-assert hunk, and the commit carries only the author and Signed-off-by. #648 now tracks the G17P capture/replay issue. I found nothing new in the rebased code:
Rows still needed at this head: the G17S Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Reviewed at head 6a005e87c9e5 against the pre-PR checklist. 0 code, policy, attribution, or naming blockers remain; leaving a comment pending §5 hardware runs on the rebased head.
What looks good
- Code & §1 scope: Clean rebase onto
aurora-wip(8e288e5dbc3), dropping the superseded push-descriptor assert hunk.VK_EXT_descriptor_bufferis enabled across the full M5 family (agx_chip_g17_m5()), matching their shared descriptor format.hk_sparse_map_page_at()mirrorsget_buffer_address()'s M5 gate, lock discipline, and residency-map encoding forVK_DESCRIPTOR_TYPE_STORAGE_BUFFER(0 elsewhere; #561hk_storage_address_has_map()coordination is noted). KeepingdescriptorBufferCaptureReplayoff on M5 is well justified, and the pre-existing G17P sparse texel capture/replay issue is tracked in #648. - Shared fixes:
hk_GetDescriptorSetLayoutSupport()sharesbinding_plane_count()with layout creation, widensdynamic_buffer_countand size math to 64-bit, and preventsmaxVariableDescriptorCountunderflow whennon_variable_size >= max_buffer_size.write_sampled_image_view_desc()clamps null converted-image writes tobinding_layout->stride / native.stride(128 / 72 = 1inhk_GetDescriptorEXT, no-op for multi-plane sets), andguard_null_ycbcr_sample()uniformly guards constant-index converted descriptor-buffer samples ahead of YCbCr lowering. G17S shim tests and SSBO residency-word checks are included. - Attribution & naming (§4/§6): Commit
6a005e87c9e5carries human author/committer andSigned-off-by:only, the PR body uses Borealis naming and ends withAssisted-by:.
Still owed before approval/merge (§5 on rebased head 6a005e87c9e5)
All on-hardware CTS and benchmark numbers in the PR body predate the rebase (fa98f8d43c8c / 4e09d9cb972). Before approval/merge, run on exact head 6a005e87c9e5 (0 new failures vs aurora-wip, 0 GPU dmesg errors, 0 new failed units):
- J716c (
G17C): Re-rundEQP-VK.binding_model.descriptor_buffer.*. - M5 Pro (
G17S) (or M5G17G):dEQP-VK.binding_model.descriptor_buffer.*. - M4 Pro or A18 Pro (
G17P):dEQP-VK.binding_model.descriptor_buffer.*anddEQP-VK.ycbcr.*covering the sharedguard_null_ycbcr_sample()change.
- Note: no automated CI check-runs are reported on this branch (host 178/178 unit tests and aarch64 cross-build were reported locally).
Assisted-by: LLM (Gemini 4 Neon)
|
A18 Pro (
Zero new failures against Assisted-by: LLM (Antigravity:Gemini 4 Neon) |
6a005e8 to
ba00e9d
Compare
|
Note 🤖 Gemini 4 Hydrogen responding on behalf of erikwb Returning this PR to draft while the remaining hardware runs on
|
|
Re-checked ba00e9d. Since 6a005e8 only the extension gate and the shim test list changed. The new reach has no hardware run yet. We'll run Assisted-by: LLM (Claude:Opus 5.5) |
|
Verified on Apple M5 Pro (
Note on the GS SIGSEGV: At |
Gate VK_EXT_descriptor_buffer on agx_chip_native_or_m5() instead of only G17P. Every native AGX3 and M5 chip shares the native descriptor tables, texel windows, native sampler indices, and descriptor-buffer shader paths (AGX2 lacks those tables, and G18G still uses AGX2-biased sampler indices and record-time compute image lowering). The M5 parts share one descriptor format (agx_chip_g17_m5()), and the power-of-two descriptor sizes and texel-buffer residency lookup are shared. What the M5 format needs on top: a storage buffer descriptor from vkGetDescriptorEXT names the residency map of the sparse buffer holding its address, since M5 lowers storage loads through that word, as descriptor sets already do. The lookup shares the sparse buffer list. Capture/replay stays off on M5: a replayed sparse buffer keeps its VA but not its residency map's, so a captured descriptor would name a stale map. For every chip with descriptor buffers: layout support queries count one record per plane of converted immutable samplers and no longer overflow; a null converted image writes only the record its single descriptor has, and a converted sample of a descriptor-buffer binding tests that first plane before sampling. Run the descriptor-buffer-sizes shim test across native AGX3 (G15G, G15S, G15C, G16G, G17P) and M5 (G17S), and run the texel test on G17S to check the storage buffer residency word. Signed-off-by: Erik Bourget <erik@ebourget.net>
ba00e9d to
da94652
Compare
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb @DjDeveloperr Rebased onto Verification on exact rebased head
Ready for full |
|
Checked da94652. Since ba00e9d the only changes are the rebase and the commit message wording. Counting Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal pre-PR checklist (§1–§6) re-review at da94652040d0d58e8e6e403e9defc8ed38d18db0 (base aurora-wip, live tip efabab38502d).
Code, Superseded & Policy Audit (§1–§4, §6) — PASS
- Not superseded:
aurora-wip(efabab38502d) still gates.EXT_descriptor_bufferondev->chip == AGX_CHIP_G17P, and #561 (hk_storage_address_has_map()) is still open/CONFLICTING, soagx_chip_g17_m5()inhk_sparse_map_page_at()remains aligned withget_buffer_address(). - Descriptor layout, bounds & shader audit:
hk_physical_device.c:.EXT_descriptor_buffer = agx_chip_native_or_m5(dev->chip)properly keys on the native AGX3 / M5 descriptor-table capability (§1 compliant), with a clear comment explaining why AGX2 and G18G stay excluded. DisablingdescriptorBufferCaptureReplayon M5 (!agx_chip_g17_m5(dev->chip)) prevents replaying stale residency-map pages; G15/G16G do not enable sparse residency, and the pre-existing G17P sparse texel capture/replay issue is tracked in #648.hk_buffer.c/hk_descriptor_set.c:hk_sparse_map_page_at()mirrorsget_buffer_address()(M5-only gate,sparse_buffers.lockdiscipline,sparse_map != NULLinvariant from list insertion,AIL_PAGESIZEalignment &UINT32_MAXpage asserts, applied strictly toVK_DESCRIPTOR_TYPE_STORAGE_BUFFER).hk_descriptor_set_layout.c:binding_plane_count()is shared with layout creation;dynamic_buffer_countand size multiplication are widened to 64-bit;non_variable_size < max_buffer_sizepreventsmaxVariableDescriptorCountunderflow.hk_descriptor_set.c/hk_shader.c:write_sampled_image_view_desc()clamps null converted-image writes tobinding_layout->stride / native.stride(128 / 72 = 1inhk_GetDescriptorEXT, no-op for multi-plane sets);guard_null_ycbcr_sample()cleanly handles constant-index converted descriptor-buffer samples before YCbCr lowering and preserves #721'slowered_complexprogress tracking.
- §2–§4, §6: Production-ready; human author/committer + human
Signed-off-by:only onda94652040d0(zero AI trailers); PR body uses Borealis naming and ends withAssisted-by:. (Minor non-blocking note: PR title still says "on the M5 family" while the commit subject was updated to "on native AGX3 and M5".)
Actionable Blockers (§5 Hardware Evidence at da94652040d0)
Host checks (242/242 asahi tests, 1,271 agx_tests), J716c (G17C: 1,626 Pass / 0 Fail), and J713 (G16G: 628 Pass / 0 Fail, including capture_replay) are green at da94652040d0, and G17P passed full descriptor_buffer.* + ycbcr.* at 6a005e87c9e5. Two §5 hardware blockers remain before merge:
- M5 Pro (
G17S B1) post-#713 GS re-verification (required): At pre-rebaseba00e9daf1b6, fulldEQP-VK.binding_model.descriptor_buffer.*hit a deterministic SIGSEGV (exit 139) indEQP-VK.binding_model.descriptor_buffer.sparse_binding_buffer.multiple.graphics_geom_buffers2_sets4. OnJ716c, those GS cases reportNotSupported(rayQueryFeatures.rayQuery), soJ716cdid not verify the fix. Re-run fulldEQP-VK.binding_model.descriptor_buffer.*including GS cases onG17S B1at exact headda94652040d0and confirm 0 failures / 0 crashes / 0 GPU faults. - M3 (
G15G) hardware coverage for newly widenedagx_chip_native_or_m5()gate: Zero G15 (M3) hardware runs exist yet; complete the pending M3 Air (G15G)dEQP-VK.binding_model.descriptor_buffer.*anddEQP-VK.ycbcr.*run (bc937edc540avsda94652040d0, 0 new failures, 0 GPU faults) before merge.
Assisted-by: LLM (Gemini 4 Neon)
|
Note 🤖 Gemini 4 Hydrogen responding on behalf of erikwb Head Updated the PR description to remove the internal kernel build tag and align Still to run with the two remaining external hardware blockers at
Local lab hardware ( |
Resolve conflicts with #938 (AGX_CAP_DESCRIPTOR_BUFFER and sparse_buffers.list) and #641 (AGX_CAP_CDM_WAR_WEAK_BARRIER): - Retain both AGX_CAP_DESCRIPTOR_BUFFER and AGX_CAP_CDM_WAR_WEAK_BARRIER in AGX_CAPS_M5 (agx_chip_caps.h), keeping hk_physical_device.c on agx_chip_has_cap(dev->chip, AGX_CAP_DESCRIPTOR_BUFFER) and !agx_chip_g17_m5(dev->chip) for capture/replay. - Keep both hk_sparse_map_page_at() and hk_sparse_address_is_sparse() in hk_buffer.{c,h}, and guard buffer->sparse_map in hk_sparse_map_page_at() because binding-only sparse buffers now sit on sparse_buffers.list. - Cover binding-only sparse storage buffer descriptors in hk_vulkan_descriptor_buffer_texel. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Note 🤖 Gemini 4 Hydrogen responding on behalf of erikwb Merged
|
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Added exact-head J713 (M4 Air,
Updated the PR body's |
satchlj
left a comment
There was a problem hiding this comment.
Verdict at f7d46a72d9d3
APPROVE — the merge of aurora-wip (cedf24806bcb) cleanly preserves AGX_CAP_CDM_WAR_WEAK_BARRIER and AGX_CAP_DESCRIPTOR_BUFFER across AGX_CAPS_M5, guards buffer->sparse_map in hk_sparse_map_page_at() for binding-only sparse buffers, passes 297/297 asahi and 5/5 poly host tests, advertises VK_EXT_descriptor_buffer (descriptorBuffer = true, descriptorBufferCaptureReplay = false) on live Apple M5 Max, and passes all 5,432 cases of dEQP-VK.binding_model.descriptor_buffer.* (1,626 Pass, 3,806 NotSupported, 0 Fail) plus focused YCbCr format CTS with 0 GPU faults.
Blockers
None in code, host tests, or Apple M5 Max verification. (Note: post-#713 M5 Pro G17S B1 re-verification of graphics_geom_buffers2_sets4* — which reports NotSupported on Apple M5 Max — as well as G17G and other external Macs remain listed in Untested scope below.)
Checked
- Changed files (9):
src/asahi/lib/agx_chip_caps.h,src/asahi/meson.build,src/asahi/vulkan/hk_buffer.c,hk_buffer.h,hk_descriptor_set.c,hk_descriptor_set_layout.c,hk_physical_device.c,hk_shader.c,src/asahi/vulkan/tests/hk_vulkan_descriptor_buffer_texel.c. - Code & merge audit:
AGX_CAPS_M5enablesAGX_CAP_DESCRIPTOR_BUFFERalongsideAGX_CAP_CDM_WAR_WEAK_BARRIERwhile keepingG18Gexcluded and keepingdescriptorBufferCaptureReplaydisabled on M5 (!agx_chip_g17_m5(dev->chip)).hk_sparse_map_page_at()shareshk_sparse_buffer_at_locked()withhk_sparse_address_is_sparse()and checksbuffer && buffer->sparse_mapbefore readingbuffer->sparse_map->va, covered by the binding-only sparse storage-buffer test inhk_vulkan_descriptor_buffer_texel.c.binding_plane_count(), 64-bit size/count math,maxVariableDescriptorCountunderflow guard, null converted-image stride clamping, andguard_null_ycbcr_sample()(lowered_complextracking preserved) are all sound.- Clean
Signed-off-by:on both commits (da94652040d0,f7d46a72d9d3) and cleangit merge-tree --write-treeagainst liveaurora-wip(46b5217f8375).
- Host build & tests (
-Dbuildtype=debugoptimized -Db_ndebug=false, Linux 7.3 aarch64):meson test --suite asahi: 297/297 OK (0 fail).meson test --suite poly: 5/5 OK (0 fail).
- Live Apple M5 Max verification (
MESA_SHADER_CACHE_DISABLE=true, Linux 7.3):vulkaninfo:VK_EXT_descriptor_buffer : extension revision 1,descriptorBuffer = true,descriptorBufferCaptureReplay = false.- Full
dEQP-VK.binding_model.descriptor_buffer.*(5,432cases): 1,626 Pass, 3,806 NotSupported, 0 Fail. - Focused
dEQP-VK.ycbcr.format.g8_b8r8_2plane_420_unorm.*(72cases): 36 Pass, 36 NotSupported, 0 Fail. 0GPU faults indmesg.
- Untested scope: M5 Pro (
G17S B1) fulldescriptor_buffer.*including GS cases (graphics_geom_buffers2_sets4*,NotSupportedon M5 Max), M5 (G17G), M3 (G15G), M4 (G16G), and AGX2 (M1/M2) hardware runs atf7d46a72d9d3.
Evidence
- Audited all 9 changed files (
535diff lines) and confirmed clean merge onto liveaurora-wip(46b5217f8375). - Built
f7d46a72d9d3with-Dbuildtype=debugoptimized -Db_ndebug=false -Dvulkan-drivers=asahi -Dgallium-drivers=asahi -Dplatforms=wayland -Dglx=disabled -Dbuild-tests=true -Dtools=drm-shim:meson test --suite asahi297/297 OK,--suite poly5/5 OK. - Live Apple M5 Max
vulkaninfo:VK_EXT_descriptor_buffer : extension revision 1,descriptorBuffer = true,descriptorBufferCaptureReplay = false. - Live Apple M5 Max Vulkan CTS (
MESA_SHADER_CACHE_DISABLE=true):dEQP-VK.binding_model.descriptor_buffer.*:1626/5432 Passed, 0/5432 Failed, 3806/5432 Not supported.dEQP-VK.ycbcr.format.g8_b8r8_2plane_420_unorm.*:36/72 Passed, 0/72 Failed, 36/72 Not supported.0GPU faults indmesg.
|
J714s (Apple M5 Pro, Summary
Keeping changes requested for now since enabling |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: MERGE at f7d46a72d9d3
Blockers: none
Checked: no Apple material, no narrow chip or board gating (AGX_CAP_DESCRIPTOR_BUFFER across AGX_CAPS_M5), exact-head hardware rows across M5 Max (J716c), M4 Air (J713), and M5 Pro (J714s) after the HAL300 vertex spill ceiling fix landed in #994, merge-result CI green.
Evidence
- J714s (M5 Pro,
G17S B1, Linux7.3.0-m5-cdirect15) with exact headf7d46a72d9d3atop #994 (3399bc1cb213, now onaurora-wipd31eebc317ab): fulldEQP-VK.binding_model.descriptor_buffer.*(5,432 cases) 2,583 Pass / 2,849 unchanged Skip / 0 Fail (all 3graphics_geom_buffers8_sets1cases Pass, 0 GPU faults). - J716c (M5 Max,
G17C) and J713 (M4 Air,G16G) exact-head verification PASS, with approval atf7d46a72d9d3. - Merge-result CI on
aurora-wipd31eebc317ab(tree=a828733c9189):asahiandaurora-agent-policyPASS.
What: Enable
VK_EXT_descriptor_bufferon M5 (G17G,G17S,G17C) viaAGX_CAP_DESCRIPTOR_BUFFERalongside #938's AGX2 and native AGX3 enablement (retaining #641'sAGX_CAP_CDM_WAR_WEAK_BARRIER), embed sparse storage-buffer residency map pages invkGetDescriptorEXT()on M5 (keepingdescriptorBufferCaptureReplaydisabled on M5), and fix converted immutable sampler plane sizing, layout-support overflow/underflow, and null YCbCr descriptor-buffer sample guarding.Tested: Host
x86_64at merge headf7d46a72d9d(mergingaurora-wipcedf24806bcbintoda94652040d0):meson test --suite asahi294/294 pass (-Dglvnd=disabled, includinghk-{g15g,g15s,g15c,g16g,g17p,g17s}-descriptor-buffer-sizes,hk-g17{p,s}-descriptor-buffer-texel,hk_push_descriptor_size,asahi-agx-chip-caps406/406, andagx_tests1,459 passed / 1 skipped), plushk-vulkan-descriptor-buffer-sizes27/27 ong13g,g14g,g17g,g17c,hk-vulkan-descriptor-buffer-texel m510/10 ong17s, andg18gnegative exit 1. J713 (M4 Air,G16G) exact-head A/B (f7d46a72d9d3vs merge-basecedf24806bcb, Linux 7.3.0): fulldEQP-VK.binding_model.descriptor_buffer*(5,432 cases) 628 Pass / 4,804 NotSupported / 0 Fail anddEQP-VK.binding_model.descriptorset_random(stride 20, 1,758 cases) 486 Pass / 1,272 NotSupported / 0 Fail, both identical to base (0diffs,0crashes). Priorda94652040d0runs onJ716candJ713are in Evidence.Risk: two-way door · M5 (
G17G,G17S,G17C) forVK_EXT_descriptor_bufferand storage-buffer residency metadata; all descriptor-buffer-capable Macs (AGX2, nativeAGX3,M5) for shared layout-support, null YCbCr guard, andsparse_buffers.listlookup changes.Not yet: Hardware CTS runs at merge head
f7d46a72d9d(0new failures vsaurora-wip,0GPU faults):J716c(M5 MaxG17C) andJ313(M1G13G):dEQP-VK.binding_model.descriptor_buffer.*anddEQP-VK.ycbcr.*;J713(M4 AirG16G):dEQP-VK.ycbcr.*.G17S B1) fulldEQP-VK.binding_model.descriptor_buffer.*including GS cases (graphics_geom_buffers2_sets4*) post-agx/borealis: cap spill ceiling by target/stage, shrink parallel-copy state, and fail closed on RA_MEM exhaustion #713; M5 (G17G)dEQP-VK.binding_model.descriptor_buffer.*; M3 Air (G15G)dEQP-VK.binding_model.descriptor_buffer.*anddEQP-VK.ycbcr.*.Details
AGX_CAP_DESCRIPTOR_BUFFERinsrc/asahi/lib/agx_chip_caps.h): AddAGX_CAP_DESCRIPTOR_BUFFERtoAGX_CAPS_M5(G17G,G17S,G17C) alongside borealis: keep weak ordering barrier for intra-CDM WAR and execution-only barriers on G17P and M5 #641'sAGX_CAP_CDM_WAR_WEAK_BARRIER, and keepsrc/asahi/vulkan/hk_physical_device.cusingagx_chip_has_cap(dev->chip, AGX_CAP_DESCRIPTOR_BUFFER)alongside borealis: enable VK_EXT_descriptor_buffer across AGX2 and native AGX3 via AGX_CHIP_CAPS #938's AGX2 and native AGX3 entries (leavingG18Gexcluded while it still uses AGX2-biased sampler indices and record-time compute image lowering).src/asahi/vulkan/hk_buffer.{c,h},src/asahi/vulkan/hk_descriptor_set.c): On M5 (agx_chip_g17_m5()), storage loads readhk_buffer_address::sparse_map_page, sohk_GetDescriptorEXT()populates it viahk_sparse_map_page_at(), sharinghk_sparse_buffer_at_locked()withhk_sparse_texel_word_at()andhk_sparse_address_is_sparse(). Becausehk_buffer_in_sparse_list()now also tracks binding-only sparse buffers (buffer->sparse_map == NULLon M5),hk_sparse_map_page_at()checksbuffer && buffer->sparse_mapbefore readingbuffer->sparse_map->va. Coordination note: if borealis: take the SSBO address format from the descriptor generation #561 merges first,hk_sparse_map_page_at()should switch tohk_storage_address_has_map()to stay aligned withget_buffer_address().src/asahi/vulkan/hk_physical_device.c): KeepdescriptorBufferCaptureReplaydisabled on M5 (!agx_chip_g17_m5(dev->chip)) because M5 storage buffer descriptors embed the residency map page and capture/replay preserves only the buffer VA, not its residency map VA. The pre-existing G17P sparse texel capture/replay stale-map issue is tracked in borealis: G17P descriptorBufferCaptureReplay replays stale residency map page for sparse texel buffers #648.src/asahi/vulkan/hk_descriptor_set_layout.c: Sharebinding_plane_count()betweenhk_CreateDescriptorSetLayout()andhk_GetDescriptorSetLayoutSupport(), widendynamic_buffer_countand size multiplication to 64-bit, and guardnon_variable_size < max_buffer_sizeto preventmaxVariableDescriptorCountunderflow.src/asahi/vulkan/hk_descriptor_set.c/src/asahi/vulkan/hk_shader.c: Clamp null converted image descriptor writes inwrite_sampled_image_view_desc()tobinding_layout->stride / native.stride, and guard converted samples from descriptor-buffer bindings inguard_null_ycbcr_sample()by testing plane 0 before sampling (preservinglowered_complexprogress tracking).src/asahi/meson.build,src/asahi/vulkan/tests/hk_vulkan_descriptor_buffer_texel.c): Runhk-<chip>-descriptor-buffer-sizesacrossg15g,g15s,g15c,g16g,g17p,g17s, runhk-g17{p,s}-descriptor-buffer-texel, and check both sparse-residency and binding-only sparse storage-buffer residency map page words.Evidence
Host build & test suite at merge head
f7d46a72d9d(aurora-wipcedf24806bcbmerged intoda94652040d0,-Dgallium-drivers=asahi -Dvulkan-drivers=asahi -Dplatforms=wayland,x11 -Doptimization=2 -Ddebug=false -Db_ndebug=false -Dtools=drm-shim -Dbuild-tests=true -Dglvnd=disabled):meson test -C _build --suite asahi: 294/294 OK, 0 Fail (includinghk-{g15g,g15s,g15c,g16g,g17p,g17s}-descriptor-buffer-sizes,hk-g17{p,s}-descriptor-buffer-texel,hk_push_descriptor_size).asahi-agx-chip-caps: 406/406 checks passed.agx_tests: 1,459 passed, 1 skipped (NativeFMA.ExactDyadicOracle), 0 failed.hk-vulkan-descriptor-buffer-sizes(ASAHI_SHIM_CHIP=<chip>):g13g,g14g,g17g,g17call 27 checks, 0 failures;g18gexits 1 (descriptorBuffer or mutableDescriptorType missing).hk-vulkan-descriptor-buffer-texel m5(ASAHI_SHIM_CHIP=g17s): 10 checks, 0 failures (covers both sparse-residency and binding-only sparse storage buffer descriptors).f7d46a72d9ddirectly mergesorigin/aurora-wip(cedf24806bcb) onto published headda94652040d0.Exact-head J713 (M4 Air,
G16G) hardware CTS A/B (f7d46a72d9d3vs merge-basecedf24806bcb, Linux 7.3.0, Vulkan CTS7ba03cdac7ae, same boot back-to-back):dEQP-VK.binding_model.descriptor_buffer*(full, 5,432 cases): 628 Pass / 4,804 NotSupported / 0 Fail, identical to merge-basecedf24806bcb(0diffs,0crashes;#938already enabled descriptor buffers on native AGX3 inaurora-wip, so this confirms zero regression on J713).dEQP-VK.binding_model.descriptorset_random(stride 20, 1,758 cases): 486 Pass / 1,272 NotSupported / 0 Fail, identical to base (0diffs,0crashes).Pre-merge
da94652040d0vsbc937edc540ahardware CTS runs (MESA_SHADER_CACHE_DISABLE=true, full 5,432-casedEQP-VK.binding_model.descriptor_buffer.*):bc937edc540a)G17C)da94652040d0Linux 7.3.0dEQP-VK.binding_model.descriptor_buffer.*(5,432)NotSupported->Pass: 1,626dmesgGPU errors/faults; 0 new failed units (1 pre-existingaurora-peripherals.servicefailed at boot; SELinux N/A on Arch ARM)G16G)da94652040d07.3.0-sid16-4744+dEQP-VK.binding_model.descriptor_buffer.*(5,432)NotSupported->Pass: 628dmesgGPU errors/faults; 0 failed systemd units (SELinux N/A on Arch ARM)G17S B1,ba00e9daf1b6, Linux7.3.0-m5-slc1, verified by@DjDeveloperr):meson test --suite asahi154/154 PASS,hk-vulkan-descriptor-buffer-sizes27/27 PASS,hk-vulkan-descriptor-buffer-texelPASS, non-geomdescriptor_buffer.*(500-case strided) 214 PASS / 0 FAIL,ycbcr.*(500-case strided) 298 PASS / 0 FAIL, 0 GPU faults; fulldescriptor_buffer.*hit the pre-agx/borealis: cap spill ceiling by target/stage, shrink parallel-copy state, and fail closed on RA_MEM exhaustion #713 GS segfault ongraphics_geom_buffers2_sets4.G17P B1,6a005e87c9e5vs8e288e5dbc3,7.3.0-41.fc44.aurora.aarch64,sleep_guard=active,pmu=30 00):dEQP-VK.binding_model.descriptor_buffer.*(5,432) 5,357 Pass, 75 NotSupported, 0 Fail (0 diffs);dEQP-VK.ycbcr.*(68,159) 40,191 Pass, 27,968 NotSupported, 0 Fail (0 diffs); 0 GPU faults, 0 AVC.G17C) Cyberpunk 2077 A/B/B/A (4e09d9cb972, 3840x2160 High FSR2 Balanced, VSync/DR/FG off, borealis: expose single-texel buffer offsets on every M5 part #450/agx: respect destination register limits when coalescing AGX3C splits #451/agx: apply single-sample coverage before in-tile MRT stores #452 on both arms):#456alone averaged 24.94 -> 25.34 FPS (40.09 -> 39.47 ms/frame; paired savings +0.53 and +0.71 ms);#455 + #456averaged 25.84 -> 26.76 FPS (38.70 -> 37.37 ms/frame; paired savings +1.11 and +1.55 ms). On-device Vulkan test onJ716csampled a null three-plane image with different chroma and luma filters (read back four zero components), checked sparse SSBO/texel descriptor metadata, and passed 313 D3D12 descriptor checks with vkd3d-proton.