Repository navigation
Conversation
get_bda_pointer and the write and atomic lookups returned from each of
their 16 checks through its own record_bda_fault call. The SPIR-V keeps
them as DontInline functions, but Mesa ANV inlines every function call,
so each lookup site carried 16 copies of the fault record: 768 in
agc_driver_flat_loads_x2_x3 and 435 compare-exchanges in its final NIR.
On Intel GPUs with a per-thread scratch limit of 256 KiB (Xe-HPG and
later: Arc, Meteor Lake, Arrow Lake) the SIMD32 compile that wave32
programs require then spills past the limit on Mesa before 26.2, which
gives every spilled register its own scratch slot, and
vkCreateComputePipelines fails with VK_ERROR_UNKNOWN ("Scratch space
required is larger than supported"): agc_driver_flat_loads_x2_x3 and
agc_driver_masked_global_store on Arrow Lake, Mesa 26.1.8.
A failing check now stores its reason and leaves through nested
selections to one exit, which records the fault when a reason was stored
and returns the address, or zero after a fault. The checks, their order,
the recorded reason, address, bytes and instruction are unchanged, and
the probe lookups, which record nothing, are emitted as before.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tb9hwmvLWxNkJWG2XdjxKM
(cherry picked from commit 934348f)
|
Thanks for carrying it, @MarcZX100, and for keeping the authorship. Some numbers that may help with the order against #3655, which also fixes #2972. Intel Arrow Lake, Mesa 26.1.8 ANV, every run a cold compile (
#3655 also fixes the NVIDIA hangs from #3291 (details on #3655), so it covers more than this commit. The last row is the same one-call-site idea rebuilt on #3655's structure, with phis instead of function variables: AI-assisted: yes |
|
Closing this carry PR after reviewing issue #2972: the ready branch was explicitly offered for a maintainer to carry, and I cannot claim maintainer authorization. The source commit and test evidence remain documented in the issue. |
What
This overlaps
SpirvBdaLookup.cppand BDA tests with open PRs #2837 and #3655, which optimize the page-table lookup for separate reasons. The changes may need a rebase depending on merge order.Tested
tools/check_conventions.py --base upstream/mainandgit diff --checkpassed locally.agc_shader_memory_testsdid not complete in this environment; no local result is claimed.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository