mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:30:53 +01:00
[PR #105] tests/rdna2spirv: drop the test of a method the branchless decode removed #157
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#157
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/105
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9837📝 Commits (1)
0d5198etests/rdna2spirv: drop the test of a method the branchless decode removed📊 Changes
1 file changed (+0 additions, -9 deletions)
View changed files
📝
tests/test_rdna2spirv_decode.py(+0 -9)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):tests/test_rdna2spirv_decode.pyis red onmain(f48adad7): it calls a method that no longer exists.9ad6cc8c(SHADER-849, "rdna2spirv: decode a run-time FORMAT without a branch") replaced the binary tree over the format codes with one table word per code plusOpSelectin a shared function, and removeddecode_any_formatanddecode_format_searchwith it.test_decode_any_format_selectionwas left behind.What it asserted is already covered by the test directly below it,
test_format_decode_call_builds_and_caches_function, which is the surviving entry point and checks the four components and the function cache. The two extra assertions named the old implementation rather than a behaviour:OpIEqual %bool %run_fmtwas the tree comparison the commit deleted;OpSelectis still used, but inside the cached function, not in the caller's body the test was scanning.Re-adding an
OpIEqualassertion to a branchless decoder would assert the opposite of what the commit did, so the right move is to drop the stale test rather than rewrite it around the new internals.The other 25 tests in the file are untouched and still pass, including every
decode_formatcase (all kinds, short-word channel replication, fixed versus dynamic normalisation), so no coverage of the code that remains is lost.Tested
Clean worktree at
main(f48adad7):Windows 11, Python 3.12.10. Standard library only, no game files, no GPU.
AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. - not applicable, no translator change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.