Repository navigation
borealis: expose shared native feature paths on the Airs - #816
RyanTheTide wants to merge 3 commits into
Conversation
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Verified exact head Feature & Extension Exposure (
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist review on live head 1e4207e69c8cb8e5689a9a1d899b3c6eace8f87f:
Blockers
-
§1 / Code correctness — missed stale chip gate in
src/asahi/vulkan/hk_buffer_view.c:82(VK_FORMAT_R32_SFLOATstorage texel buffer atomics):
This PR enablesVK_EXT_shader_atomic_float/VK_EXT_shader_atomic_float2(shaderImageFloat32Atomics,shaderImageFloat32AtomicAdd,shaderImageFloat32AtomicMinMax) onagx_chip_native_or_m5and updateshk_image.c:235fromagx_chip_g17p_or_m5(pdev->dev.chip)topdev->vk.supported_features.shaderImageFloat32Atomics. However, the twin check inhk_get_buffer_format_features()(src/asahi/vulkan/hk_buffer_view.c:80-83) was missed:if (p_format == PIPE_FORMAT_R32_UINT || p_format == PIPE_FORMAT_R32_SINT || (p_format == PIPE_FORMAT_R32_FLOAT && agx_chip_g17p_or_m5(pdev->dev.chip))) features |= VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_ATOMIC_BIT;
On G15G/G15S/G15C/G16G,
VK_FORMAT_R32_SFLOATtherefore advertisesVK_FORMAT_FEATURE_2_STORAGE_IMAGE_ATOMIC_BITinoptimalTilingFeatureswhile omittingVK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_ATOMIC_BITinbufferFeatures(even thoughhk_CreateBufferView()at line 105 and image atomic lowering already run onagx_chip_native_or_m5). Please updatehk_buffer_view.c:82to checkpdev->vk.supported_features.shaderImageFloat32Atomicsto matchhk_image.c:235, and verify the previouslyNotSupportedR32F texel-buffer atomic CTS cases pass on G15G/G16G. -
§5 Evidence — incomplete pre-merge CTS sweep, stale-head rows on J615/J713, and missing regression tuple:
- The PR is marked ready for review (not draft), while the PR description explicitly notes "Still to run before merge is the broader Vulkan CTS sweep." Please complete the sweep (or convert to draft until ready) before merge.
- Four of the five feature CTS rows on J615 (G15G) and J713 (G16G) were recorded against commit
0ef2643a97erather than the final head1e4207e69c8cb8e5689a9a1d899b3c6eace8f87f(and will need a final-head re-run after fixinghk_buffer_view.c:82). - Please include the §5 system regression tuple (
0 SELinux denials, 0 failed units, 0 new kernel errors) for the final-head runs on J615 and J713 (and note whether G15S/G15C hardware runs are available or requested per §1).
Non-blocking notes
hk_shader.c:561: Checking(vk_pdev->supported_features.computeDerivativeGroupQuads || vk_pdev->supported_features.computeDerivativeGroupLinear)instead of onlycomputeDerivativeGroupQuadswould keep the lowering gate consistent if the two bits ever diverged (today both are set together).- Broader CTS sweep check: Please confirm
dEQP-VK.glsl.texture_functions.texture.*_compute(specificallysamplercubearrayshadow_compute, givenagx_nir_lower_g17p_combined_sampler.c:165only admitsm5 && cube_array && register_level) behaves cleanly on G15G/G16G during the broader sweep.
Checklist Summary
- §1 No model gating: Changes requested —
agx_chip_native_agx3/agx_chip_native_or_m5and feature-bit gating inhk_physical_device.c,hk_image.c, andhk_shader.care clean (depth clip control, D16/S8, ASTC HDR, float32 atomics, compute derivatives all match hardware/compiler support on AGX3B), buthk_buffer_view.c:82retains a staleagx_chip_g17p_or_m5gate. - §2 Production-ready, no hacks: Pass — no new cmdline/env vars, retries, or lab-only paths.
- §3 Safety: Pass — userspace feature exposure only; no hardware-protection or boot changes.
- §4 Clean-room & attribution: Pass — both commits (
0ef2643a97e,1e4207e69c8) have human author/committer and humanSigned-off-by:with zero AI trailers; PR body includesAssisted-by: LLM (Codex). - §5 Evidence: Changes requested — broader CTS sweep still pending, 4/5 J615+J713 feature rows are from
0ef2643a97e, and §5 regression tuple is missing. - §6 Naming: Pass — Borealis naming used throughout PR and commits.
Assisted-by: LLM (Gemini 4 Neon)
Use shaderImageFloat32Atomics for the R32F storage texel buffer format, as for R32F storage images. This exposes texel-buffer atomics on G15 and G16 where the driver already supports them. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Problem
Borealis leaves several Vulkan features disabled on native AGX3 GPUs that have the rendering, image, or compiler paths they use. R32F storage texel buffers also miss the atomic capability advertised for R32F storage images.
Change
Expose depth clip control and its dynamic state, D16/S8, ASTC HDR, float32 atomics, and compute derivatives where their paths are available. Run compute derivative lowering when the device advertises it. Use
shaderImageFloat32Atomicsfor both R32F format queries.Testing
On J713 (G16G), all 16 regular R32F texel-buffer atomic cases passed at
3746b762231. All 16 were NotSupported at the previous head1e4207e69c8. The R32F format query shows the added buffer atomic bit. The 16 linear variants still skip because the required tiling is unsupported.Final-head Vulkan CTS 1.4.7.1 on J713
Both ICDs ran on the production fleet85 kernel and command line. The baseline was
efabab38502and the candidate was3746b762231.All 183 compute-stage derivative cases pass. The other 366 target task or mesh. The 96-case control gave 95 Pass and the same DeviceLost on both builds. The 53 compute texture cases were NotSupported in both runs. For
samplercubearrayshadow_compute, the candidate reaches the exclusive compute queue requirement and skips there.Earlier J615 feature results remain at
0ef2643a97eand1e4207e69c8.The broader tier-A sample compared 346,963 cases on both builds. All 143,960 baseline passes stayed green and 21,363 more passed. Both builds had the same 18 crashes and 18 DeviceLost results on the matched set. The sweep used a fixed time cap per build. The candidate classified 346,963 cases and the baseline classified 399,127.
Regression tuple for the run was 0 SELinux denials, 0 failed units and 0 new error-priority kernel messages. No GPU firmware failure was reported.
Still to run
J615 (G15G) final-head validation and the remainder of the broader sweep. No G15S or G15C row is available from this run.