Repository navigation
borealis: remove ad-hoc M5 and CDM-packing runtime env flags - #1467
Conversation
Drop seven ad-hoc runtime behaviour switches outside ASAHI_MESA_DEBUG and HK_PERFTEST: - ASAHI_M5_RQ_KEEP_LOOPS (default-off opt-in knob and dead helper) - ASAHI_M5_IMAGE_STORE_FORWARD (default-off opt-in knob; G17P uses agx_chip_image_load_misses_own_store()) - ASAHI_M5_HOST_ALIAS_STATIC (default-off A/B knob; dynamic per-resource host-alias tracking is default-on) - ASAHI_M5_STORAGE_COMPRESSION (runtime bitmask; use the settled HK_M5_STORAGE_COMPRESSION_DEFAULT mask directly, while ASAHI_MESA_DEBUG=nocompress remains the global disable) - HK_PACK_CDM_SUBMIT and ASAHI_M5_PACK_CDM_SUBMIT (redundant with ASAHI_MESA_DEBUG=nomerge) - HK_PACK_GEMM_DW (default-on knob whose sibling switches were already removed) Defaults are unchanged on every generation.
|
Hardware verification row on J714s (14" MacBook Pro M5 Pro,
|
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: MERGE at 68378cf
Not stacked: base is aurora-wip (8a40c21), same parent as #1469/#1470/#1471.
Checked:
- Every removed switch keeps its default value on every chip.
ASAHI_M5_HOST_ALIAS_STATICdefaulted to false, so the!debug_get_option_m5_host_alias_static()term was always true.ASAHI_M5_IMAGE_STORE_FORWARDandASAHI_M5_RQ_KEEP_LOOPSdefaulted to false, so the forward pass still runs only whereagx_chip_image_load_misses_own_store()is true, and the loop-keeping pass never ran by default.HK_PACK_GEMM_DWdefaulted to true. - Storage compression: the default mask was
HK_M5_STORAGE_COMPRESSION_DEFAULT, and it is now used directly. Bit 12 (4096, mipmapped images) is set in it, so(info->mipLevels != 1 && !(HK_M5_STORAGE_COMPRESSION_DEFAULT & 4096))is false, the same as the old default. R16 (bit 10) stays clear. hk_pack_runs_enabled(): with both env vars unset the old code returnedtrueafter the virtio, nomerge and boundary checks. The new expression returns the same value on every chip.- No meson test environment sets any of the removed variables. The leftover mentions are comments only (see below).
- No AI attribution in the title, body or commit. No tainted material.
Follow-ups:
- The hk_image.c comment lost a line. It now reads "...whose image atomics would need 64-bit image atomics that the / B10G11R11 is not compressed...". Restore "device does not expose." before the B10G11R11 sentence.
- These comments still name removed variables: hk_device.h:519 and hk_device_memory.c:282 (
ASAHI_M5_HOST_ALIAS_STATIC=1), meson.build:1459 and the aurora_packtest.c header, lines 10-17 (HK_PACK_CDM_SUBMIT=0/1), vulkan_storage_compression.c:26-28 (ASAHI_M5_STORAGE_COMPRESSION=32767). - aurora_packtest now treats "variable unset" as packing on. A plain run without
ASAHI_MESA_DEBUG=hktracetherefore prints FAIL "trace unavailable" for every must-pack case; before, it printed WARN. That fits the new default, but the header comment should say how to run it now. - pr-text is red because the body has no
Tested:/Risk:lines. Edit the body to add them. The redselftestjob (aurora-agent-policy) fails the same way on unrelated branches and is not caused by this diff.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Reviewed the queue, image, aliasing and shader defaults against the removed debug switches. The default paths and the supported nomerge and nocompress controls are preserved. Neo CTS and the J714s packing, synchronization and image checks passed on this head, along with both Asahi builds.
Removes seven ad-hoc runtime behaviour env vars outside
ASAHI_MESA_DEBUGandHK_PERFTEST:ASAHI_M5_RQ_KEEP_LOOPS(hk_shader.c, default-off opt-in knob + unusedhk_keep_m5_ray_query_loops/hk_cf_list_has_indexed_ray_query)ASAHI_M5_IMAGE_STORE_FORWARD(hk_shader.c, default-off opt-in knob; G17P usesagx_chip_image_load_misses_own_store())ASAHI_M5_HOST_ALIAS_STATIC(hk_device.c, default-off A/B knob; per-resource host-alias tracking is default-on)ASAHI_M5_STORAGE_COMPRESSION(hk_image.c, runtime bitmask; use the settledHK_M5_STORAGE_COMPRESSION_DEFAULTmask directly, whileASAHI_MESA_DEBUG=nocompressremains the global disable)HK_PACK_CDM_SUBMITandASAHI_M5_PACK_CDM_SUBMIT(hk_queue.c, redundant withASAHI_MESA_DEBUG=nomerge; updatedaurora_packtest.cto checkASAHI_MESA_DEBUG=nomerge)HK_PACK_GEMM_DW(hk_queue.c, default-on knob whose sibling switches were already removed in97efb18d7444)(
HK_PACK_ATOMICS/ASAHI_M5_PACK_ATOMICSis left untouched to avoid conflicting with open #1184;HK_SYSMEMis left untouched to avoid conflicting with open #1416/#1420.)Defaults are unchanged on every generation.
Tested: Neo G17P and J714s G17S at
68378cf029c1. Neo Vulkan CTS results matched the baseline. J714s passed CDM packing, synchronization, ray query, storage compression and aliasing. Both recorded zero GPU faults.Risk: Two-way. Default behavior is unchanged. The removed debug switches no longer override packing, compression, or shader behavior.
Verification
meson test --suite asahi-> 232/232 OK, 0 FAIL at68378cf029c1.7.3.0-aurora-edge):aurora-wip(8a40c215dec9) vs PR head (68378cf029c1),VK_DRIVER_FILESswap:dEQP-VK.api.smoke.*,dEQP-VK.compute.pipeline.{basic,builtin_var}.*,dEQP-VK.synchronization.basic.*,dEQP-VK.synchronization2.op.single_queue.barrier.write_clear_color_image_read_copy_image.*,dEQP-VK.memory_model.message_passing.core11.u32.coherent.*,dEQP-VK.image.load_store.with_format.2d.{r8g8b8a8_unorm,r16g16b16a16_sfloat}*