Repository navigation
integration/aurora-7.3: sync aurora-wip 8a40c215dec9 and link #1465 - #56
Conversation
Sobel command streams retain the producer that owns the fused shader and its GPU code. Share the producer across binary cache wrappers so recorded work does not depend on the lifetime of the API shader or cache entry. Bump all three shader binary versions for the fused Sobel and Canny NMS payload and test that stream invalidation releases the recorded shader exactly once. Signed-off-by: DjDeveloperr <hey@djdev.me>
…irect-draws asahi: replay native AGX3 direct draws that change only VS constants
…ig-cpus util/queue: keep threads that the caller waits on off small CPUs
…m-caps borealis: share VDM indirect bounds, tri-merge, workgroup coalescing, and weak WAR barriers to G15 and G16G
# Conflicts: # src/asahi/lib/agx_chip_caps.h
The texture packer requires a signed 12-bit value in 1/64 steps and rejects negative explicit levels. An immutable sampler bias can fold an explicit level to a negative minifloat, which must stay in a register. Check the encoding before folding and compile folded negative and fractional LODs in the graphics test. Signed-off-by: DjDeveloperr <hey@djdev.me>
Replace the single-workgroup 4-phase serial indirect draw coalescer with a multi-workgroup parallel chunked builder (libagx_build_indirect_vdm_coalesce). Each 256-thread workgroup processes one 256-draw chunk in parallel: - Inactive tail workgroups past the runtime draw count exit immediately (with chunk 0 lane 0 emitting the return VDM Stream Link when count == 0). - Active workgroups load 1 draw per lane, compact non-empty draws and classify adjacent mergeable runs using O(1) subgroup+shared exclusive scans (two barriers per scan, zero serial workgroup loops, 6.25 KiB shared memory). - Contiguous firstInstance runs telescope without 32-bit overflow ((last.first_instance - first.first_instance) + last.instance_count), and each workgroup stamps its coalesced indirect commands, VDM chunk slice, and per-run Ioto vertex programs, terminating with a VDM Stream Link to the next active chunk or directly to return_link_compact on the last active chunk. Also hoist the VDM_USC_INVALIDATE capability check ahead of hk_flush_gfx_state() in hk_agx3_draw_indirect_gpu() so chips/kernels without USC invalidation fall back cleanly without emitting a dangling bind tail. Verify multi-workgroup chunk chaining, empty chunks, count == 0, wraparound/overflow splits, boundary counts up to 16384, and untouched inactive tail slices in hk_indirect_vdm_test. Signed-off-by: DjDeveloperr <hey@djdev.me>
Use the same numerical fixed-point round-trip as the packer. Both zero encodings use field zero, including in array shadow samples. Signed-off-by: DjDeveloperr <hey@djdev.me>
…ler-bias asahi,borealis: keep explicit level zero and fold immutable sampler bias
agx: enable AGX_CAP_COMPUTE_SMART_WAITS on G13G
…hed-cmd-memory borealis: share AGX_CAP_CACHED_CMD_MEMORY to G15 and G16G
agx: keep AGX3B FCMPSEL .abs/imm selects native and schedule straight-line fragment SFU/ALU chains
Add load-pinned, granule-capped SFU scheduling for AGX3B (G15/G16/G17P) non-preamble fragment blocks containing either multi-RT tile reads (deferred tile 1x and MSAA PIXINFO loops) or a single texture read paired with >= 3 SFU operations. Blocks with >= 2 texture samples remain on #1293's multi-sample hoist path, while AGX2 (G13/G14) and AGX3C (G17S/M5) are untouched. Keep #1293's exact 3x/2x SFU latencies whenever alu_latency > 1 (leaving all existing #1293 multi-sample schedules such as deferred DRAM MSAA1 and postfx bit-identical), while applying a 5/4 cycle floor (MAX2(3 * alu, 5) for rsqrt and MAX2(2 * alu, 4) for rcp/log2/exp2/ sin_pt_2) in unit-ALU (alu_latency == 1) mode so SFU-only scheduling creates 3-4 instruction hiding gaps instead of 1-instruction gaps: on G16G gpubench-vk against 702dd01, >= 3-instruction SFU hiding gaps rise from 0/10 to 8/10 on deferred tile MSAA4 (gap==0: 8/10 -> 1/10, avg 0.20 -> 2.70 at 47 gprs) and 0/10 to 8/10 on deferred tile MSAA1 (gap==0: 8/10 -> 1/10, avg 0.20 -> 2.70 at 37 gprs). Pinning the prefix through the last tile or texture load in pressure order avoids hoisting loads, reordering across a preceding WAIT_PIX, or growing live load state, while capping pre-RA pressure strictly inside the 48-half hardware register granule (<= 38 halves when peak <= 38, or <= peak in 39..48 halves so RA keeps nr_gprs <= 48 / max_reg <= 47 and concurrent TA/FS overlap does not lose a hardware granule). Signed-off-by: DjDeveloperr <hey@djdev.me>
Occlusion counters are assigned on first use (c46b868) from one heap of AGX_MAX_OCCLUSION_QUERIES (32768) shared by every pool of the device, and kept until their pool is destroyed. A pool of more queries than that was created anyway. Once its queries had taken every counter, the next recording that began one failed with VK_ERROR_OUT_OF_HOST_MEMORY ("Descriptor table not large enough"), which release builds report only to debug messengers. An application that submitted the command buffer anyway lost the device with nothing in any log: seen on an Apple M5 with a 65536-query occlusion ring, about 45 s into play. Refuse such a pool in vkCreateQueryPool with VK_ERROR_OUT_OF_DEVICE_MEMORY, as allocating every counter at creation does, and log once when the heap is exhausted at record time. Signed-off-by: term-guy <hello@termg.com>
Conflict: agx_nir.h, where aurora-wip gives agx_nir_lower_fma_rte() the chip and drops agx_nir_fma_rte_applies(); the declaration of agx_nir_lower_bitfield_u2f() follows it. Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
… progress agx_nir_lower_bitfield_u2f() runs after the fusion loop, so constant folding, copy propagation, DCE and CSE at the end of the late passes only ran when another pass also made progress. Report its progress into late_progress, as the late passes around it do. Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
…ti-sample fragments Keep #1293's full ALU+sample interleaving first on 4+ sample AGX3B (G15/G16/G17P) SFU-heavy fragment blocks, while enforcing the 48-half hardware granule cap when a block's pre-RA peak sits in the 44..48 half granule margin (AGX_ILP_AGX3B_SAMPLE_GRANULE_CAP..GRANULE_HALVES) and carrying the same cap and forward bound across #1293 and both retries. Smaller blocks (peak < 44, such as deferred DRAM MSAA1 at peak=38) stay on #1293's occupancy-step schedule bit-identically. When full ALU+sample interleaving exceeds the shader's register cap or has zero slack above peak (such as deferred DRAM MSAA4 at peak=64), fall back to unit ALU latency (alu_latency=1, load_latency=16) with hard cap agx3b_cap so post-sample SFU chains still interleave strictly inside the applicable register bound: on G16G gpubench-vk against 702dd01, >= 3-instruction SFU hiding gaps on deferred DRAM MSAA4 rise from 5/40 to 30/40 (gap==0: 35/40 -> 7/40, avg 2.75 -> 4.85 at 103 gprs, 482 -> 481 instrs). Also extend the WAIT_PIX interlock guard with ctx->any_interlock, carry agx3b_cap onto the non-interleaved AGX3B fallback path, and add unit tests on G15S/G16G/G17P covering both the 44..48 half granule cap and the tight-occupancy unit-ALU retry. AGX2 (G13/G14) and AGX3C (G17S/M5) remain untouched. Signed-off-by: DjDeveloperr <hey@djdev.me>
asahi,hk: inline small AGX3 VS push+rodata uniforms as Ioto LDIMMs
Use sparse live-out sets for large functions and if either dense allocation fails. Keep phi uses on their incoming edges in both solvers. Exercise sparse simulation with a large, low-pressure CFG and check hoisting and peak memory growth. Signed-off-by: DjDeveloperr <hey@djdev.me>
Document and assert in hk_dispatch_with_usc_launch() that draw-feeding GS/tess compute helpers on current_cs.pre_gfx never defer their trailing CDM cache flush, and update the stale AGX2 flush comment on the G17P compute launch path after AGX_CAP_CDM_DEFER_FLUSH landed in #1219/#1233. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
… comments Follow-up hygiene for #1224: - Gate agx_hoist_loads on !(agx_compiler_debug & AGX_DBG_NOSCHED) in agx_compile_function_nir(), matching agx_pressure_schedule and agx_ilp_schedule so AGX_MESA_DEBUG=nosched disables all scheduling passes. - Document in hoist_can_cross() why non-coherent device_loads may cross AGX_OPCODE_THREADGROUP_BARRIER without inspecting memory_can_reorder (global/device-scope barriers emit AGX_OPCODE_MEMORY_BARRIER first, where hoisting stops). - Clarify AGX_CAP_COMPUTE_SMART_WAITS and AGX_CAP_COMPUTE_HOIST_LOAD_ADDRS comments in agx_chip_caps.h to reflect that AGX_CHIP_G14X covers gen-14 Pro/Max/Ultra (G14S/G14C/G14D), with measurements collected on G14C. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
agx/schedule: add granule-capped load-pinned and post-sample SFU ILP scheduling for AGX3B fragments
Add agx_nir_unroll_runtime_loops_ex() with a rotate_main option and enable it for AGX3B compute shaders. When unrolling an exact-tail bottom-tested pure integer-ALU counted loop, guard entry once outside the unrolled main loop and keep the loop bottom-tested with the else-break latch form. Restricting rotation to exact-tail pure integer-ALU loops keeps FP16/FP32 and memory-bound compute loops bit-identical while preserving early loop compare placement (without register-cache interference on the early loop compare) and exposing the full unrolled integer loop body as a single header block for bounded-pressure IC/SCIB ILP scheduling. AGX3C, AGX2, and non-compute stages remain unchanged. Signed-off-by: DjDeveloperr <hey@djdev.me>
asahi,hk: parallelize AGX3 GPU multi-draw indirect coalescing in chunks
A fragment main compiled with a zero sample count does not specialize on rasterizationSamples. Let its inline blend program take the count from the epilog and retain the mismatch check for specialized mains. This keeps pixel-rate pipelines with dynamic rasterization samples eligible for monolithic MSAA blending. Signed-off-by: DjDeveloperr <hey@djdev.me>
Alpha-to-coverage can introduce a fragment coordinate load after the retained fragment main has already been lowered. Apply the ordinary pixel coordinate lowering during epilog preparation before checking the fast path invariants. Signed-off-by: DjDeveloperr <hey@djdev.me>
On AGX3B compute integer-ALU loops, bounded ALU lookahead separates the 2-cycle IC pipe (IMAD/BFI/BFEIL/EXTR/ASR) from the 1-cycle SCIB pipe (IADD/BITOP/ICMPSEL) with 2-cycle IC pacing so integer ALU chains issue without stalling on back-to-back IC ops. Gate both the IC/SCIB pipe split and 2-cycle IC pacing strictly to pure integer AGX3B compute loops (explicit pure-integer/control/SSA opcode whitelist so no FP, SFU, conversion, matrix, subgroup, or memory op can qualify), keeping vertex, fragment, and mixed FP/SFU compute loops on legacy single-bucket integer scheduling. Size the per-block granule/occupancy cap and acceptance check from allocator-compatible register demand (power-of-two vector widths, aligned reserved low registers, preload/export floors, and late-kill source overlaps) with a 4-half RA margin and strict <= ra_peak + 8 growth bound so bounded lookahead never crosses a 48-half, 96-half, or occupancy register boundary on any AGX3B chip. Signed-off-by: DjDeveloperr <hey@djdev.me>
Replace scalar byte-packing shifts/ORs in pack_8x8_to_2x32() with nir_pack_32_4x8() for M5 INT8 16x16x16 cooperative matrix operands, and extend the zero-copy pack_32_4x8(load 8x4) path in agx_compile/agx_validate/ agx3_pack_binary to cover load_shared (LDTG) alongside load_agx. On AGX3C (non-G18G), four-byte cooperative-matrix shared loads feed iGeMM16x16x16 operands directly as packed 32-bit words without byte-unpack and re-pack sequences. Relax the agx_emit_alu assert on nir_op_pack_32_4x8 to AGX_ISA_ENCODING_AGX3C so G18G continues to compile cleanly through the existing agx_pack_integer_8_agx3 fallback. Signed-off-by: Satya Benson <satya@benson.earth>
…y-nms borealis: fuse Sobel and Canny NMS at submission
agx: rotate AGX3B integer-ALU compute loops and interleave IC/SCIB pipes
Tests only; no compiler change. Every test that covers a fix stays. test-sampled-compute-register-cap (mesa#461): drop the AGX2 RA case and the AGX2 row of NoCapWithoutOptionalSpills. agx_ra() takes its cap from agx_sampled_compute_register_cap(), and DerivedFromFileAndOccupancy already checks that it is 0 on AGX2. Share the G17C compile setup of the three end-to-end tests in one helper. test-agx3-fm-wave2 (mesa#1302): build the test shaders through one fm_test_builder() helper instead of nine copies of the same 10 lines. Drop G16G from the targeted granule repros: the sweep below runs the same shapes (any_cf, preload at half 2, BFEIL, 24 alt halves) on G16G. test-agx3-pack-binary (mesa#877): TrimmedF16Vec3MemoryLoadsPack walked the NIR for the trimmed load as well as the binary. The binary check (one W16 load with mask 0x7, none with 0xf) already proves the trim, and test-shrink-memory-loads covers the NIR pass itself. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Use the workflow context to select same-repository pull requests. Check membership, the initiating actor and the event revision against GitHub before dispatching. Preserve the hosted fallback when a pull request is ineligible. Signed-off-by: Dj <43033058+DjDeveloperr@users.noreply.github.com>
…adata ci: check GCP PR admission against the GitHub API
Select the dedicated Spot runner label when the pool is enabled in repository variables. Keep the existing Arm64 worker as the default selection. Signed-off-by: Dj <43033058+DjDeveloperr@users.noreply.github.com>
ci: select the small Spot pool for Mesa Arm64
Retry GitHub’s asynchronous test merge calculation for the same open PR revision. Report the requested and current merge SHAs when admission rejects a request. Signed-off-by: Dj <43033058+DjDeveloperr@users.noreply.github.com>
…ability ci: wait for pending PR mergeability before GCP admission
The packing trace (HK_PACK_CDM_TRACE / ASAHI_M5_PACK_CDM_TRACE) and the M5 host-alias trace (ASAHI_M5_HOST_ALIAS_TRACE) were read from their own environment variables. Both now follow one ASAHI_MESA_DEBUG flag, hktrace, documented with the other flags in docs/envvars.rst. aurora-packtest sets the flag instead of HK_PACK_CDM_TRACE, keeping any flags the caller already set. Drop HK_SUBMIT_POLL_US. It defaulted to 0 (no poll), nothing in the tree or the fleet sets it, and the A/B on the merged port was a wash. The device keeps sync_wait_poll_us at 0, the same blocking syncobj wait as before; the bounded-poll support in the common Vulkan runtime and its unit tests stay for a driver that sets the field. No change without ASAHI_MESA_DEBUG set. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
… it" Restore full shader binary uploads. Commit f5089f1 (Mesa PR #1127) introduced a deterministic memory mismatch on J773g (M4 mini, G16G) in the Vulkan CTS case: dEQP-VK.synchronization.op.multi_queue.timeline_semaphore.write_image_compute_indirect_read_copy_image_to_buffer.image_128x128_r8_unorm_concurrent With PR #1172 active, the regression also produced VK_ERROR_DEVICE_LOST and a GPU firmware recovery. Reverting #1127 alone cleared both failures in five shard runs while retaining #1172's identical-layout image copy. Signed-off-by: DjDeveloperr <hey@djdev.me>
…rds-first borealis: put G15 triangle leaf records before their quantized blocks
hk: fold ad-hoc trace env vars into ASAHI_MESA_DEBUG=hktrace
borealis: lose the device when a pass overflows its geometry heap
borealis: extend AGX3 direct-draw fast path to depth bias, continued passes, and dynamic UBOs
hk/tests: drop the hardware-only compute store visibility harness
agx/tests: drop duplicate cases and setup boilerplate in compiler tests
agx: enable smart waits, low preamble bases, and compute load hoisting on G13X
…st-visibility borealis: avoid speculative VDM waits for compute host visibility
…pload-tail borealis: revert the shader upload size reduction
Upstream: https://github.com/aurora-silicon/mesa.git aurora-wip 8a40c21 Previous intake: a58f52b New upstream commits: 521
Confidence Score: 5/5
[High impact] The reported issue is non-blocking; the matrix probe should return failure when its result checks fail. Findings
SummaryThis PR syncs the integration branch to upstream
|
There was a problem hiding this comment.
🟡 Changes recommended
The shared NIR test evaluator mishandles full-width ubitfield_extract operations and truncates 64-bit inputs, producing incorrect reference results.
1 open issue
What changed in this PR
Syncs the Aurora 7.3 integration branch with aurora-wip at 8a40c215dec9, bringing upstream Asahi compiler, Vulkan runtime, and hardware-support updates into the integration tree. It also tracks the OpenCL weak-FMA carry through upstream PR #1465.
Changes:
- Updates synchronization lifetimes, GPU heap handling, image compression, ray tracing, and submission interfaces.
- Extends AGX instruction support and compiler optimizations, with regression tests and hardware probes.
- Updates carry metadata, ARM64 CI tooling, and driver documentation.
The PR reports upstream CI passing; integration CI and packaged hardware smoke testing remain pending.
| File | Description |
|---|---|
src/vulkan/runtime/vk_sync.h |
Declares in-flight submission lifetime tracking. |
src/vulkan/runtime/vk_queue.c |
Pins signal syncs during submission. |
src/vulkan/runtime/vk_device.c |
Pins syncs during payload copying. |
src/vulkan/runtime/meson.build |
Registers signal-destruction regression testing. |
src/vulkan/runtime/bvh/leaf.h |
Supports driver-specific acceleration-structure addresses. |
src/util/u_thread.h |
Declares minimum utilization-clamp helper. |
src/util/u_queue.h |
Adds big-CPU preference flag. |
src/util/u_queue.c |
Applies worker utilization-clamp hints. |
src/util/u_cpu_detect.h |
Records big-CPU capacity threshold. |
src/util/u_cpu_detect.c |
Calculates heterogeneous CPU capacity threshold. |
src/util/sparse_bitset.h |
Adds dense-to-sparse bitset conversion. |
src/util/meson.build |
Includes Linux utilization-clamp tests. |
src/poly/tests/poly_heap_math_tests.c |
Tests heap exhaustion and overflow boundaries. |
src/poly/poly_heap_math.h |
Adds checked heap-cursor advancement. |
src/poly/cl/restart.h |
Uses checked allocation for unrolled indices. |
src/mesa/main/glthread.c |
Requests big CPUs for GL workers. |
src/gallium/frontends/dri/dri_screen.c |
Rejects compute-only graphics screens. |
src/gallium/drivers/zink/zink_context.c |
Enables inline idle flushing. |
src/gallium/drivers/zink/zink_batch.c |
Clears only used buffer-cache buckets. |
src/gallium/drivers/asahi/agx_fence.h |
Adds private sync-object ownership interfaces. |
src/gallium/auxiliary/util/u_threaded_context.c |
Requests big CPUs for driver workers. |
src/egl/drivers/dri2/platform_surfaceless.c |
Removes redundant graphics-capability filtering. |
src/egl/drivers/dri2/egl_dri2.c |
Separates display configurations and improves cleanup. |
src/compiler/nir/nir_opt_fp_math_ctrl.c |
Skips unnecessary floating-point analysis. |
src/compiler/nir/nir_opt_cse.c |
Avoids dominance analysis for single-block shaders. |
src/compiler/nir/nir_intrinsics.py |
Extends matrix and sample-group intrinsics. |
src/compiler/nir/nir_instr_set.h |
Enlarges inline instruction-set capacity. |
src/asahi/vulkan/tests/vulkan_storage_compression.c |
Documents explicit R16 compression testing. |
src/asahi/vulkan/tests/test-native-feature-defaults.c |
Tests G16G ray tracing and ASTC defaults. |
src/asahi/vulkan/tests/test-hk-shader-upload.c |
Removes upload-range helper tests. |
src/asahi/vulkan/tests/test-hk-rt-on-demand.c |
Updates software acceleration-structure expectations. |
src/asahi/vulkan/tests/test-hk-query-no-access.c |
Covers timestamp-only carrier submissions. |
src/asahi/vulkan/tests/test-hk-inline-blend-layout.c |
Tests raster sample-count compatibility. |
src/asahi/vulkan/tests/test-hk-index-robustness.c |
Expands native index-bounds coverage. |
src/asahi/vulkan/tests/test-hk-g16s-compression.c |
Covers additional color-compression capability. |
src/asahi/vulkan/tests/test-hk-fused-cprog.c |
Checks root size and program bounds. |
src/asahi/vulkan/tests/test-hk-fragment-main-tests.c |
Tests depth-only fragment-main selection. |
src/asahi/vulkan/tests/test-hk-compute-pair-cache.c |
Tests immutable-sampler hashing and root size. |
src/asahi/vulkan/tests/test-hk-compute-opt.c |
Tests relaxed division matching. |
src/asahi/vulkan/tests/test-hk-compression-contract.c |
Covers G15G color-compression contracts. |
src/asahi/vulkan/tests/test-hk-2d-stencil.c |
Checks reciprocal-free Sobel generation. |
src/asahi/vulkan/tests/robust-index-exhaustion.py |
Adapts exhaustion checks to updated kernels. |
src/asahi/vulkan/tests/hk_vulkan_shader_binary_root.c |
Updates serialized shader field offsets. |
src/asahi/vulkan/tests/hk_vulkan_heap_overflow.vert |
Adds heap-overflow vertex workload. |
src/asahi/vulkan/tests/hk_vulkan_heap_overflow.geom |
Adds heap-overflow geometry workload. |
src/asahi/vulkan/tests/hk_vulkan_heap_overflow.frag |
Adds heap-overflow fragment workload. |
src/asahi/vulkan/tests/hk_nir_eval_test.h |
Extends bitfield and pointer evaluation. |
src/asahi/vulkan/tests/hk_draw_state_bench.vert |
Adds draw-state benchmark variants. |
src/asahi/vulkan/tests/hk_draw_state_bench.frag |
Adds benchmark fragment output. |
src/asahi/vulkan/tests/g17p_vulkan_indirect_multi.c |
Bounds indirect workloads under the shim. |
src/asahi/vulkan/tests/brl_vulkan_ubo_element_bounds.comp |
Adds uniform-buffer element-bounds workload. |
src/asahi/vulkan/tests/borealis_sync_feedback.frag |
Adds attachment-feedback synchronization workload. |
src/asahi/vulkan/tests/aurora_uniform_select.comp |
Compares uniform and register selection behavior. |
src/asahi/vulkan/tests/aurora_packtest.c |
Uses the unified packing trace flag. |
src/asahi/vulkan/hk_tess_batch.h |
Broadens tessellation batching eligibility. |
src/asahi/vulkan/hk_tess_batch.c |
Adds M5 batched tessellation dispatch. |
src/asahi/vulkan/hk_shader_upload_core.h |
Removes upload-range selection helper. |
src/asahi/vulkan/hk_sampler.h |
Records no-op nearest-mip bias eligibility. |
src/asahi/vulkan/hk_sampler.c |
Computes nearest-mip bias eligibility. |
src/asahi/vulkan/hk_render_pack.h |
Extends render-packing dependency interfaces. |
src/asahi/vulkan/hk_ray_tracing_pipeline.c |
Generalizes GEN1 ray-tracing pipeline handling. |
src/asahi/vulkan/hk_queue.h |
Adds synchronization generation and packing-cache state. |
src/asahi/vulkan/hk_query_oq.c |
Preserves write ordering and extends timestamp support. |
src/asahi/vulkan/hk_private.h |
Adds kernel-gated G16G ray-tracing helpers. |
src/asahi/vulkan/hk_physical_device.h |
Adds sync wrappers and minimum-LOD emulation state. |
src/asahi/vulkan/hk_pass_merge.h |
Adds resolve-hazard and resume-state helpers. |
src/asahi/vulkan/hk_nir_tile_byte_stencil.c |
Filters incompatible shaders before cloning. |
src/asahi/vulkan/hk_nir_tensor_ops.h |
Declares tensor-pattern prefilter. |
src/asahi/vulkan/hk_nir_tensor_ops.c |
Implements tensor-pattern prefilter. |
src/asahi/vulkan/hk_nir_root_size.h |
Documents bounded partial-edge workgroup coalescing. |
src/asahi/vulkan/hk_nir_ray_tracing.h |
Declares M5 ray-query lowering. |
src/asahi/vulkan/hk_nir_opt_ordered_tile_reduction.h |
Declares ordered tile-reduction optimization. |
src/asahi/vulkan/hk_nir_opt_compute_kernels.c |
Recognizes relaxed division in resize patterns. |
src/asahi/vulkan/hk_nir_match_pointwise_clamp.h |
Adds Sobel/Canny fusion roles. |
src/asahi/vulkan/hk_nir_match_pointwise_clamp.c |
Rejects incompatible shader resources early. |
src/asahi/vulkan/hk_nir_lower_image_view_min_lod.h |
Extends minimum-LOD lowering interfaces. |
src/asahi/vulkan/hk_nir_lower_gs.h |
Adds M5 ray-query lowering option. |
src/asahi/vulkan/hk_nir_lower_gs.c |
Lowers M5 queries after geometry splitting. |
src/asahi/vulkan/hk_nir_lower_descriptors.c |
Preserves pointer-stride casts during reconstruction. |
src/asahi/vulkan/hk_nir_copy_identity4.c |
Prefilters identity-copy candidates. |
src/asahi/vulkan/hk_m5_acceleration_structure.h |
Extends M5 structure-creation interfaces. |
src/asahi/vulkan/hk_inline_blend_layout.h |
Resolves compatible raster sample counts. |
src/asahi/vulkan/hk_image.c |
Tightens compression eligibility and defaults. |
src/asahi/vulkan/hk_image_view.h |
Adds raw background descriptors and packing helper. |
src/asahi/vulkan/hk_identity_copy4.h |
Declares identity-copy prefilter. |
src/asahi/vulkan/hk_fragment_main_tests.h |
Adds depth-only fragment eligibility helper. |
src/asahi/vulkan/hk_execution_allowance.h |
Generalizes bounded GEN1 structure-build flags. |
src/asahi/vulkan/hk_event.h |
Adds event-slab and timestamp state. |
src/asahi/vulkan/hk_device_memory.c |
Clears reused zero-initialized allocations. |
src/asahi/vulkan/hk_descriptor_set_layout_hash.c |
Hashes shader-visible immutable-sampler properties. |
src/asahi/vulkan/hk_compute_pair.h |
Extends fusion payloads and root-size tracking. |
src/asahi/vulkan/hk_cmd_upload.c |
Sizes compute roots for the selected shader. |
src/asahi/vulkan/hk_cmd_pool.h |
Extends span caching and pending-reap interfaces. |
src/asahi/vulkan/hk_buffer.h |
Adds sparse device-address command helpers. |
src/asahi/vulkan/hk_buffer.c |
Exposes locked sparse-buffer lookup. |
src/asahi/vulkan/hk_agx3_vdm_decode.h |
Advances shader binary format versions. |
src/asahi/vulkan/hk_agx3_ioto_program_core.h |
Extends launch interfaces and program capacities. |
src/asahi/vulkan/hk_agx3_as_format.h |
Adds G15 leaf ordering and M5 sizing updates. |
src/asahi/vulkan/hk_acceleration_structure.h |
Declares encoder variants and property writes. |
src/asahi/vulkan/hk_2d_stencil.h |
Defines Sobel/Canny fusion contract. |
src/asahi/vulkan/bvh/meson.build |
Registers additional structure-build shader variants. |
src/asahi/vulkan/bvh/agx3_m5_legacy_plan.comp |
Writes indirect node-encoding dispatch counts. |
src/asahi/vulkan/bvh/agx3_leaf.comp |
Supports records-first G15 triangle leaves. |
src/asahi/vulkan/bvh/agx3_batch_build_leaf.comp |
Aligns M5 structure references. |
src/asahi/tools/gemm16-transpose-probe/gen-spv.sh |
Generates matrix-transpose probe binaries. |
src/asahi/libagx/tessellation.cl |
Checks indirect tessellation allocation sizes. |
src/asahi/libagx/query.h |
Defines typed immediate-write operations. |
src/asahi/libagx/query.cl |
Adds ordered writes and heap-reset reporting. |
src/asahi/libagx/geometry.cl |
Handles tessellation index allocation overflow. |
src/asahi/libagx/copy.cl |
Enlarges fill-kernel workgroups. |
src/asahi/lib/tests/test-tilebuffer.cpp |
Tests 48-KiB tilebuffer layouts. |
src/asahi/lib/tests/test-i386-layout.c |
Checks updated immediate-write layout. |
src/asahi/lib/tests/test-chip.c |
Updates chip capability expectations. |
src/asahi/lib/tests/test-agx-ioto-state-core.c |
Tests fragment imageblock encoding limits. |
src/asahi/lib/agx3_compute_program_core.h |
Records G15 spill-capable launch selection. |
src/asahi/lib/agx3_compute_program_core.c |
Supports G15 HAL200-style compute launches. |
src/asahi/lib/agx_tilebuffer.h |
Declares sample-group unrolling. |
src/asahi/lib/agx_linker.h |
Tracks fragment spill storage and unaligned attributes. |
src/asahi/lib/agx_ioto_state_core.c |
Allows 48-KiB imageblock encoding. |
src/asahi/lib/agx_ioto_preshader_core.c |
Uses broader constant-program capability checks. |
src/asahi/lib/agx_ioto_load_core.c |
Broadens constant-program input support. |
src/asahi/lib/agx_device.c |
Adds Vulkan tracing and const-correct device keys. |
src/asahi/lib/agx_bg_eot.h |
Adds packed-clear and raw-load controls. |
src/asahi/layout/layout.h |
Uses metadata tile dimensions for compression. |
src/asahi/drm-shim/asahi_g17p_stream_validator.c |
Accepts larger launch programs. |
src/asahi/compiler/test/test-uniform-stride-chains.c |
Tests chains exceeding the optimization cap. |
src/asahi/compiler/test/test-m5-float-minmax-reduce.cpp |
Covers native reductions across stages and modes. |
src/asahi/compiler/test/test-lower-parallel-copy.cpp |
Tests immediate and uniform copies to memory. |
src/asahi/compiler/test/test-agx3-slot-core.c |
Tests slot reuse and revised token boundaries. |
src/asahi/compiler/test/test-agx3-ioto-uniform-program.c |
Updates constant-program capability expectations. |
src/asahi/compiler/test/test-agx3-bind-memo.c |
Tests ranged encoding-point selection. |
src/asahi/compiler/test/test-agx3-ballot-modifiers.cpp |
Tests first-pass M5 float-constant ballots. |
src/asahi/compiler/test/test-agx3-alu-core.c |
Adds integer-to-float encoding vector. |
src/asahi/compiler/test/test-agx-register-cache.cpp |
Tests bounded register-cache reuse distance. |
src/asahi/compiler/agx3_tile_core.h |
Declares PIXINFO encoding. |
src/asahi/compiler/agx3_tile_core.c |
Implements PIXINFO encoding. |
src/asahi/compiler/agx3_subgroup_core.h |
Declares float-ballot encodability checks. |
src/asahi/compiler/agx3_subgroup_core.c |
Restricts unsupported zero-comparison ballots. |
src/asahi/compiler/agx3_slot_core.h |
Reorders dependency-token ranges. |
src/asahi/compiler/agx3_matrix_core.h |
Adds integer matrix types and controls. |
src/asahi/compiler/agx3_matrix_core.c |
Encodes saturating 8-bit matrix multiplication. |
src/asahi/compiler/agx3_ioto_uniform_program.c |
Broadens constant-program capability checks. |
src/asahi/compiler/agx3_ioto_load_packer.c |
Broadens constant-program input packing. |
src/asahi/compiler/agx3_graphics_program.h |
Declares inline-immediate programs and larger capacity. |
src/asahi/compiler/agx3_graphics_program.c |
Builds inline-immediate vertex programs. |
src/asahi/compiler/agx3_fltnorm_core.h |
Adds half-float register source flag. |
src/asahi/compiler/agx3_fltnorm_core.c |
Encodes half-float normalization sources. |
src/asahi/compiler/agx3_falu_mod_core.h |
Declares half-precision two-immediate FMA encoding. |
src/asahi/compiler/agx3_compute_program.h |
Increases compute program composition capacity. |
src/asahi/compiler/agx3_compose/agx3_compose.h |
Declares form-predicate matching. |
src/asahi/compiler/agx3_compose/agx3_compose.c |
Implements form-predicate matching. |
src/asahi/compiler/agx3_binder.h |
Declares ranged encoding-point probing. |
src/asahi/compiler/agx3_alu_core.h |
Extends cached extraction and uniform-select interfaces. |
src/asahi/compiler/agx_validate.c |
Validates packed loads and matrix operands. |
src/asahi/compiler/agx_validate_ra.c |
Skips register-class checks for nonregister sources. |
src/asahi/compiler/agx_spill.c |
Reduces unnecessary phi spill traffic. |
src/asahi/compiler/agx_opt_cse.c |
Preserves proof metadata during deduplication. |
src/asahi/compiler/agx_nir.h |
Extends lowering and optimization interfaces. |
src/asahi/compiler/agx_nir_opt_uniform_stride_chains.c |
Updates dependent bases after chain rewrites. |
src/asahi/compiler/agx_nir_match_gemm.h |
Describes direct matrix reads and writeback. |
src/asahi/compiler/agx_nir_lower_subgroups.c |
Broadens native M5 subgroup operations. |
src/asahi/compiler/agx_nir_lower_sample_mask.c |
Supports earlier M5 coverage updates. |
src/asahi/compiler/agx_nir_lower_g17p_combined_sampler.c |
Admits AGX3B cube-array comparison levels. |
src/asahi/compiler/agx_lower_parallel_copy.c |
Routes constant-to-memory copies through scratch registers. |
src/asahi/compiler/agx_debug.h |
Adds cooperative-matrix diagnostic flag. |
src/asahi/clc/asahi_clc.c |
Updates kernel target eligibility. |
include/drm-uapi/asahi_drm.h |
Adds three kernel-reported capability bits. |
docs/envvars.rst |
Documents Vulkan packing and alias tracing. |
docs/drivers/asahi.rst |
Links capability-gating documentation. |
carry.toml |
Updates intake and links weak-FMA carry upstream. |
.github/ci/mesa-arm64.sh |
Adds Asahi build-and-test CI script. |
.github/ci/Containerfile.mesa |
Defines pinned Fedora build environment. |
Review effort: Balanced
| const uint32_t off = (uint32_t)s1 & 31, bits = (uint32_t)s2 & 31; | ||
| r = bits ? ((uint32_t)s0 >> off) & ((1u << bits) - 1u) : 0; |
| printf("SUMMARY random cases not equal to A*B: %d of %u\n", failures, | ||
| (unsigned)PROBE_VARIANT_COUNT); | ||
| vkDeviceWaitIdle(dev); | ||
| return 0; |
There was a problem hiding this comment.
failures counts random cases where the GPU returns the wrong matrix product, but main() always returns 0. Scripts checking the exit status therefore report a pass even when comparisons fail. Return a nonzero status when failures is nonzero.
| return 0; | |
| return failures ? EXIT_FAILURE : EXIT_SUCCESS; |

What: Sync
integration/aurora-7.3to verified-greenaurora-silicon/mesa@aurora-wip8a40c215dec9(+521 upstream commits, including AGX3B/G17P/Borealis Vulkan/DXVK/VKD3D compiler and runtime updates and thevk_syncuse-after-free fixaurora-silicon/mesa#1259), and convert the localagx-keep-weak-ffmacarry to upstream PRaurora-silicon/mesa#1465(227e00151afb, taggedcarry-input/1465-227e00151afb).Tested:
aurora-silicon/mesa@aurora-wip8a40c215dec9passedasahiCI (build-test-gcp); all three carries (#415,#416,#1465) cherry-pick cleanly onto8a40c215dec9with zero conflicts;omacom/mesaasahiCI running on this PR and oncarry-input/1465-227e00151afb.Risk: two-way door · all Macs (edge integration branch only;
carry.toml+ upstream sync).Not yet: hardware smoke test on edge once packaged.
Details
intake:a58f52b53bb1->8a40c215dec9(521 new upstream commits).include/drm-uapi/asahi_drm.h): only three additive feature bits (DRM_ASAHI_FEATURE_COMPUTE_ONLYbit 41,DRM_ASAHI_FEATURE_TILE_BUFFER_48Kbit 46,DRM_ASAHI_FEATURE_COMPUTE_TI_SPILL_LAUNCHbit 47), all optional and kernel-reported.carry.toml:aurora-silicon/mesa#415(7bcef61a9f4d) — T6034 G15C 4-cluster 10-slot contractaurora-silicon/mesa#416(928572f9db84) — Borealis native G15 Vulkan capability profileaurora-silicon/mesa#1465(227e00151afb,carry-input/1465-227e00151afb) — keep OpenCLmad()out of FP32 FMA repair