Repository navigation
asahi/compiler/test: order nir_load_global_constant designators for C++20 - #1249
Merged
Merged
Conversation
…++20 Signed-off-by: DjDeveloperr <hey@djdev.me>
|
|
RyanTheTide
approved these changes
Nov 27, 2026
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict: MERGE at e60578317ec4
Blockers: none
Checked:
- Test-only: one file,
src/asahi/compiler/test/test-agx3-feature-matching-opts.cpp. No driver or compiler code changes, so no hardware row is needed. - Every
nir_load_global_constant()call in the file now names.accessbefore.align_mul, matching the generated_nir_load_global_constant_indicesorder (nir_intrinsics.py: ACCESS, ALIGN_MUL, ALIGN_OFFSET). The tip has 7 of 8 calls in the reversed order that GCC rejects in C++20; this head has 0. Each call keeps its values. - Head merged into aurora-wip
51b18ab1: local drm-shim gate (clang) 338 Ok / 0 Fail, the same as the tip.
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
Follow-up to #1246 fixing a strict GCC C++20 build failure in
src/asahi/compiler/test/test-agx3-feature-matching-opts.cpp.src/compiler/nir/nir_intrinsics.py:1434declaresload("global_constant", [1], [ACCESS, ALIGN_MUL, ALIGN_OFFSET], ...), so the generated_nir_load_global_constant_indicesstruct placesaccessbeforealign_mul. Seven newnir_load_global_constant(...)calls added in #1246 passed.align_mulbefore.access, which Clang accepts as an extension but GCC rejects under C++20 (designator order for field '_nir_load_global_constant_indices::access' does not match declaration order).This commit reorders
.accessahead of.align_mulat all 7 call sites intest-agx3-feature-matching-opts.cpp. No driver or compiler runtime code is modified.Tested
nir_load_global_constantcall sites insrc/asahi/compiler/test/test-agx3-feature-matching-opts.cppmatch the[ACCESS, ALIGN_MUL, ALIGN_OFFSET]declaration order insrc/compiler/nir/nir_intrinsics.py:1434(e60578317ec47f18ff8db716dc9e39dfef549db0).fedora-mesaci.sh(20261127-131705-e60578317ec4) and GitHub ActionsasahiCI queued one60578317ec4.Risk
Test-only designated-initializer argument reorder in one C++ unit-test file (
test-agx3-feature-matching-opts.cpp). Zero impact on generated driver code or runtime behavior.Not yet
asahiCI andfedora-mesaci.sh(20261127-131705-e60578317ec4) to finish one60578317ec4, plus GCC C++20 compile confirmation on a GCC host.