test_shader_checks: count and fake cs_w32_shift64 (six tests red on main since #590) #721
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!721
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/shader-checks-shift64"
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 successfully merged and closed
Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132029799
What and why
#590 (
49d904fef) addedcs_w32_shift64tomain()inruntime/test/shaders/check.py: a dump whose input records are seeded throughVKC_HEAP_INIT.tests/test_shader_checks.pywas not updated, so sixWave64Checkstests fail onmain51f316092:TOTALdoesn't count the new case, so the expectedN of TOTAL passline is one short (215 of 219vs215 of 220).cs_w32_shift64, so it falls through to the default branch, writes no dump, and the case fails withno VKC_DUMP file written.This counts the case in
TOTALand teaches the fake harness to answer it likecs_heap_init. It checks the1 dumparguments andVKC_OUT_WORDS, then returnscheck.shift64_words()'s expected words only when theVKC_HEAP_INITfile holds the seeded input records. Otherwise it echoes the input back, so acheck.pythat stops seeding the inputs still fails.Tested
Apple M4, macOS 26.5.1, Python 3.14.8 and 3.12.10, CPU only, no game files.
tests/test_shader_checks.py: 14 failures onmain51f316092. With this change, 87 OK on both versions.tests/test_gpu_shift64.py: OK on both versions.check.shift64_testmakes the 14 failures come back.python -m compileall,git diff --checkandscripts/check_no_game_data.pyon the changed file: clean.GPUs tested: n/a (no GPU tests involved)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule changes)Audited and verified. Clean-room compliant.