mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:45:53 +01:00
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#188
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/136
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9866📝 Commits (1)
abd6173tests/semantic: green without the game or SPIRV-Tools📊 Changes
5 files changed (+39 additions, -9 deletions)
View changed files
📝
tests/semantic/test_active_cache.py(+1 -1)📝
tests/semantic/test_image_atomics_guard.py(+31 -5)📝
tests/semantic/test_reg_ptr_hoist.py(+1 -1)📝
tests/semantic/test_sopc_validation.py(+3 -1)📝
tests/semantic/test_unary_f16_validation.py(+3 -1)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116564579 (new item: semantic suite red on
mainwithout the game).On
main@2d53a805,python -I scripts/run_semantic_tests.py tests/semanticfails 4 of 459 files on a machine without llvm-mc or SPIRV-Tools. This PR fixes three of them. All three are test-side problems; no translator change.The fourth,
test_exec_computed(SHADER-1264), is a missing import:#8995's fixtures are inmain(717f011a), but neither fix is.#8424and#8353were both closed unmerged. Either one, applied onmain, makes that file pass. Not touched here; the finding is in the claim comment.test_image_atomics_guard: red since#3559landed#3559's own head (f02a7ea9) and fails inmainfrom its squash (f469596f) on, with 47 failing subtests.git bisect(with#3559's diff applied at each step) names#4473(92417d59). For a program that never writes EXEC,#4473setsexec_static_true, andGen.active_b()returns the constant%true, so the guard isOpBranchConditional %true ....find_guarded_texel_blockonly accepted a condition that is anOpLoad %bool %active.s_mov_b32 exec_lo, 0x55555555, so the guard reads the real%activeagain, which is what the tests mean to check.test_no_exec_write_guards_with_static_true, covers#4473's constant form on its own. Without an EXEC write,%activeis never loaded, and the atomic sits in a block guarded by%true.self.active_b()with"%true"intools/rdna2spirv.py(theif (active)block aroundOpImageTexelPointer) makes 37 subtests fail. With the source restored, all pass.Tests that need SPIRV-Tools when it is optional
test_sopc_validationandtest_unary_f16_validationfailed whenspirv-as/spirv-valare not on PATH. AGENTS.md says the suite needs none.spirv-valstep, astest_active_cacheandtest_reg_ptr_hoistdo. The translation and interpreter checks still run.LEONIDA_REQUIRE_SPIRV_TOOLS=1they still fail without the tools (checked).test_active_cacheandtest_reg_ptr_hoistread the variable for truthiness. The "Translator semantic tests" step inci.ymlsets it to0on its non-Linux runners, which counted as "required". They now compare with"1", astest_fma_khr,test_fma_khr_f64andtest_spirv_tools_requiredalready do.Tested
python -I scripts/run_semantic_tests.py tests/semantic: 459 files, 6,047 tests, 1 file failed:test_exec_computedonly (the missing SHADER-1264 import above). Before this PR, 4 files failed.python -m compileall -q make_game.py tools tests: clean.spirv-valstep of the touched tests was not run here (no SPIRV-Tools); CI's Linux leg runs it withLEONIDA_REQUIRE_SPIRV_TOOLS=1.No game data, nothing from the executable or the package. AI-assisted (Claude Code).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.