mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05: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#761
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/721
Author: @Boost9898
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:fix/shader-checks-shift64📝 Commits (1)
bb83b57tests: count and fake cs_w32_shift64 in test_shader_checks📊 Changes
1 file changed (+11 additions, -2 deletions)
View changed files
📝
tests/test_shader_checks.py(+11 -2)📄 Description
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)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.