Repository navigation
borealis: fix aurora-wip build breaks after #693 and #703 merges - #944
Merged
DjDeveloperr merged 2 commits intoNov 24, 2026
Merged
Conversation
PR #890 replaced hk_nir_compact_bits() with the 8-bit helper hk_nir_compact_bits_8() when switching build_g17p_mip_shader() to 16x16 workgroups. When PR #693 merged in da5d55e, build_agx3_gen10_mip_shader() kept calling the removed hk_nir_compact_bits() name, breaking the build on aurora-wip. build_agx3_gen10_mip_shader() also uses a 16x16 workgroup (wg_dim = 16), so the linear invocation index is strictly in [0, 255] (8 bits) and index >> 1 is in [0, 127]. For all 8-bit inputs, hk_nir_compact_bits_8() is bit-for-bit identical to the 10-bit helper with one fewer shift/or/and stage. Signed-off-by: Diljit Singh <hey@djdev.me>
PR #703 copied meta->g17p_colour_unit_range into the old field name s->info.fs.g17p_colour_unit_range, which was renamed to s->info.fs.colour_unit_range on aurora-wip. Update the assignment in hk_g17p_layout_shader_create_local_read() to match hk_shader_info::fs. Signed-off-by: Diljit Singh <hey@djdev.me>
satchlj
approved these changes
Nov 24, 2026
satchlj
left a comment
Member
There was a problem hiding this comment.
Verdict at ddc1c34a1167
Approved.
Blockers
None.
Checked
- Audited both commits (
70188e657af8andddc1c34a1167) acrosssrc/asahi/vulkan/hk_cmd_meta.candsrc/asahi/vulkan/hk_shader.c. - Confirmed
build_agx3_gen10_mip_shader()uses a 16x16 workgroup (wg_dim = 16), so linear invocationindexis strictly in[0, 255]andindex >> 1is in[0, 127], makinghk_nir_compact_bits_8()exact and restoring the build after#693. - Confirmed
s->info.fs.colour_unit_range = meta->g17p_colour_unit_rangeinhk_g17p_layout_shader_create_local_read()matches the currenthk_shader_info::fsfield name after#703. - Verified clean build,
259/259non-layoutasahitests, and live Borealis Vulkan compute smoke on Apple M5 Max (G17C B1), Linux 7.3 (MESA_SHADER_CACHE_DISABLE=1) with0GPU faults indmesg. - Untested scope: Live runtime exercise of the
hk_agx3_gen10_mipandG17Plocal-read paths on hardware using those paths.
Evidence
meson test --suite asahi(non-layout):259/259OK (agx_testsOK)- Live Apple M5 Max (
G17C B1), Linux 7.3,MESA_SHADER_CACHE_DISABLE=1:dEQP-VK.compute.pipeline.basic.*:80/81passed (0failed,1not supported)dmesgGPU fault delta:0
Author
|
Merged into Verification summary:
|
This was referenced Nov 24, 2026
joshuaswarren
approved these changes
Nov 24, 2026
joshuaswarren
left a comment
There was a problem hiding this comment.
Verdict at ddc1c34a: APPROVED
Blockers: none.
Checked:
hk_cmd_meta.c:2853-2855— the twohk_nir_compact_bits(b, ...)calls now readhk_nir_compact_bits_8. At the parent,hk_nir_compact_bits_8is defined athk_cmd_meta.c:2316and already used at :2354-2356; the un-suffixed name has no definition in the tree, which is the compile break. The commit's bit-identical claim holds for this call site:indexis the packed linear invocation id in [0, 255] andindex >> 1in [0, 127], so both operands fit the 8-bit helper's domain.hk_shader.c:6114—s->info.fs.colour_unit_range = meta->g17p_colour_unit_range. The destination field was renamed tocolour_unit_rangeonhk_shader_info::fs(the sibling site at :5261 already uses it); the sourcemeta->g17p_colour_unit_rangeonhk_local_read_shader_metais unchanged and still populated at :6679.- No other stale references:
git grep hk_nir_compact_bits(andg17p_colour_unit_rangeons->info.fsshow only the fixed sites at this head. - aarch64 cross-build on mesa-xbuild at
ddc1c34awith asserts on (-Db_ndebug=false): clean,libvulkan_asahi.soproduced. - Asahi suite on Apple Silicon at
ddc1c34a(aarch64): 187/187 (182 asahi + 5 poly).
Evidence
- Parent
b66cf010(post-#703 merge)hk_cmd_meta.c:2850-2855callshk_nir_compact_bits(b, index)/(b, nir_ushr_imm(b, index, 1));git grep hk_nir_compact_bitsat parent shows the_8definition at :2316 but no un-suffixed definition. - Parent
hk_shader.c:6114assignss->info.fs.g17p_colour_unit_range;hk_shader_info::fscarriescolour_unit_range(assigned at :5261), so the old member name fails to compile. - Build log:
~/mesa-w7t/build-w7t10.logon the build host; suite log on the test host.
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: Restores the
aurora-wipbuild after two cross-PR rename mismatches introduced by the#693and#703merges (hk_cmd_meta.c:2853-2855calling removedhk_nir_compact_bits()andhk_shader.c:6114assigning removedinfo.fs.g17p_colour_unit_range).Tested:
182/182assert-enabledfedora:44asahiunit suite PASS onddc1c34a1167(0fail,0skipped);agent-policy.sh pr HEADclean.Risk: two-way · M1–M5 & A18 Pro (3-line build fix restoring
aurora-wipcompilation; revertible).Not yet: Live hardware re-run (build-only rename alignment; no behavioural change).
Details
borealis/meta: use hk_nir_compact_bits_8 in build_agx3_gen10_mip_shader:#890replacedhk_nir_compact_bits()with the 8-bit helperhk_nir_compact_bits_8(). When PR#693merged inda5d55ef8c1,build_agx3_gen10_mip_shader()still calledhk_nir_compact_bits().build_agx3_gen10_mip_shader()uses a 16×16 workgroup (wg_dim = 16), soindexis strictly in[0, 255](8 bits) andindex >> 1is in[0, 127]. On all 8-bit inputs,hk_nir_compact_bits_8()is bit-for-bit identical to the old 10-bit helper with one fewer shift/or/and stage.borealis: update local-read shader copy to info.fs.colour_unit_range:#703copiedmeta->g17p_colour_unit_rangeintos->info.fs.g17p_colour_unit_range, which was renamed tos->info.fs.colour_unit_rangeinhk_shader_info::fsonaurora-wip.Evidence
aurora-wip(b66cf010e90) failed to buildlibhk.aathk_cmd_meta.c:2853andhk_shader.c:6114.fedora:44asahiunit suite onddc1c34a1167: 182/182 PASS (0fail,0skipped, build 38s, test 20s).