Skip to content

hk: compile G17P geometry and evaluation shaders alike on every device - #43

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
aurora/g17p-shader-binary-feature-independence-20261023
Oct 23, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
aurora/g17p-shader-binary-feature-independence-20261023

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 23, 2026 •

Copy link
Copy Markdown

Draft. Probable regression from #32, not yet confirmed on hardware.

On the Neo, stride50 on both aurora-wip 9babd5c and a pre-merge #32+#33+#34 tree shows 3 Pass to Fail, all "Data not matching". These names pass on the 73iq full run of dde4825:

  • dEQP-VK.shader_object.binary.device_features.geom.linked.1
  • device_features.geom.unlinked.26
  • query.geom.linked.device_no_exts_features

Those tests build the same shader on a second device with different (or no) features and compare the shader binary bytes. Since #32, a G17P device that enables no ray-tracing feature compiles GS and TES without the native ray-query profile. That profile also runs passes on shaders without queries, so the geometry binary depends on the enabled features.

hk: compile G17P geometry and evaluation shaders alike on every device. A device without ray-tracing features can't have ray queries, so it now compiles its GS and TES under the same profile a ray-tracing device uses. Ray-tracing devices are unchanged, and M1/M2 never take this path.

A rerun of all 439 shader_object.binary names on aurora-wip 9babd5c fails every device_features.geom.* name (64) and both query.geom.*.device_no_exts_features. Everything else passes, and all 439 pass on dde4825. Host gates on this branch: x86_64 and AArch64 builds, Asahi + poly suites 92/92, agx3_rt_core 611/611.

Still to do before merging: classify the 3 names on the Neo (reruns against dde4825), then run all 439 shader_object.binary names with this branch. The rolling validator owns Neo runs now.

🤖 Generated with Claude Code

Since ray-tracing state is created only for devices that enable a
ray-tracing feature, a GS or TES compiled on any other device skipped
the native ray-query profile. That profile also runs passes on shaders
without queries (local ray-query elimination in Poly, query and dead
temporary cleanup), so the same geometry shader produced different code,
and different shader object binaries, depending on the enabled features.
dEQP-VK.shader_object.binary.device_features.geom.* and
query.geom.linked.device_no_exts_features compare those binaries and
failed with "Data not matching".

A device without ray-tracing features can't have ray queries, so compile
its geometry and evaluation shaders under the same profile a ray-tracing
device uses. Devices with ray tracing are unchanged.

Fixes: 43fe12d ("hk: set up G17P ray tracing only for devices that enable it")
Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant