Repository navigation
borealis: advertise meshAndTaskShaderDerivatives on M5 - #1342
Merged
RyanTheTide merged 1 commit intoNov 29, 2026
Merged
Conversation
Mesh and task shader derivatives use the same NIR lowering as compute derivatives (quad swaps and explicit-gradient samples), which is not chip specific. hk_shader.c already applies it whenever the property is set, so the M5 parts only need to report it, like G17P. Signed-off-by: Nick <nekreshen@yandex.ru>
There was a problem hiding this comment.
Verdict: MERGE at da406b66
Blockers: none.
Checked:
- Audited
src/asahi/vulkan/hk_physical_device.c(+2/-1): extends.meshAndTaskShaderDerivativesfromdev->chip == AGX_CHIP_G17Pto(dev->chip == AGX_CHIP_G17P || agx_chip_g17_m5(dev->chip)) && features->meshShader, reusing the existing chip-independent NIR derivative lowering inhk_shader.c. - Exact-head J815 M5 (G17G) Borealis A/B verification:
compute_shader_derivatives.{mesh,task}.*(366 cases)366 NotSupported -> 366 Pass(0regressions), 15,958-case dEQP gate (11,230 = 11,230,0 diffs),meson test --suite asahi223/223, Godot TPS 1080p FSR2 neutral,0GPU faults. - DCO
Signed-off-by:present; no Apple material or policy issues.
Evidence
- Diff:
src/asahi/vulkan/hk_physical_device.c(+2/-1). - Note (non-blocking): M5 Pro/Max (G17S/G17C) hardware not yet run; same
agx_chip_g17_m5()mesh/task derivative lowering path.
This was referenced Nov 29, 2026
|
@DjDeveloperr, code-owner heads-up: App approval at |
This was referenced Nov 29, 2026
|
Merge-train landing at
Revert: |
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: Advertise
meshAndTaskShaderDerivatives(VK_KHR_compute_shader_derivatives) on M5, as on G17P. Mesh and task derivatives use the same NIR lowering as compute derivatives (quad swaps, explicit-gradient samples), which is not chip specific; hk_shader.c already applies it whenever the property is set.Tested: J815 MacBook Air 15" M5 (T8142, G17G), Borealis, kernel
7.3.0-aurora-j815-dev, at da406b6 vs base 8bad0a5:compute_shader_derivatives.mesh.*+.task.*(366 cases) 366 NotSupported -> 366 Pass;meson test --suite asahi223/223; Godot TPS demo 1080p FSR2 voxel GI (FAST=1): 49.4 / 49.4 static, 57.4 route vs 49.5 / 49.7, 57.5 base (neutral). 0 GPU faults. Regression line: 0 SELinux denials (N/A on this image), 0 failed units, 0 new kernel errors.Risk: two-way door · M5 (G17G/G17S/G17C) Macs with mesh shaders; property only.
Not yet: M5 Pro/Max (G17S/G17C) hardware; no game on this desktop uses mesh shader derivatives.
Details
hk_physical_device.c+2/-1:(dev->chip == AGX_CHIP_G17P || agx_chip_g17_m5(dev->chip)) && features->meshShader.Evidence
Commands (gpu-perf):
mesh-deriv-20261129.txt: every
dEQP-VK.spirv_assembly.instruction.compute.compute_shader_derivatives.{mesh,task}.*caseGate (15,958, broad regression list):
Godot TPS demo, 1080p FSR2 voxel GI,
FAST=1(BENCH lines, a = base, b = this PR):