Full-corpus counts from a second verified copy on native Linux: 25,032 of 26,503 shaders translate clean; the README line reads as all 26,503

未关闭
#644 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
python
领域
compilers

调研方向

Start with the README line claiming all 26,503 shaders translate and pass spirv-val, then the shaders stage that runs carve, unpack, disassemble, translate and merge over two shards, and the merged index. The issue reports 25,032 clean translations and 1,471 to 1,473 shaders flagged as invalid words or normalized encoding, so the work is to find where the count diverges between runs. Done means an agreed explanation of the gap, not a code change, and the issue has no decision yet.

由索引模型根据 Issue 内容生成。

描述

Submission draft (supersedes worker drafts) — counts from a second verified copy, native Linux

Proposed venue: their bug-report issue form (PR #12 adds it). Counts and environment only;
no game data, no keys, no acquisition links, per CONTRIBUTING.

Proposed title

Full-corpus counts from a second verified copy on native Linux: 25,032 of 26,503 shaders
translate clean; the README line reads as all 26,503

Environment (say what you tested, per CONTRIBUTING)

  • Native Arch-family Linux (Arch-derived distro), not Windows, not WSL. No GPU stage run; CPU-only.
  • Python 3.14.9 (runs with -I, stdlib only), distro LLVM 23.1.5 (llvm-mc assembles gfx1013; the
    WSL route in the docs was not needed), native spirv-tools (spirv-as / spirv-val), native .NET,
    submodule fetched via git on Linux.

What was run

  1. The copy verified against game/xbox-1.0.2.1.json: 108/108 files SHA-256 match on a full read;
    the executable slot is the manifest's only unfilled entry. (The repo's own check stage confirms
    the same: "all files present" plus the exe note.)
  2. Current main (793b06f, post PR #5 and PR #6): shaders stage, carve -> unpack -> disassemble ->
    translate -> merge, run as two shards as the tool intends.
  3. A second full run on the commit immediately before PR #5 produced identical translator numbers.

Counts (tool-reported, this copy)

Stage Result
Carve (shaders.rpf) 26,503 index rows; 25,734 distinct files; 1,377 names occur more than once; 17,734 files carry the collision suffix; 767 rows share a file (exact-duplicate names overwrite)
Unpack 25,734 outputs; 2 exceptions counted by the tool
Disassemble (gfx1013) 26,503 shaders -> clean 25,030; invalid words 1,473
Models (archives with entries) 155,598 exported, 0 fail, 0 skip; no layout rejections on this copy (README: "not all layouts are decoded yet")
Textures (in-archive entries) 6,738 exported, 0 fail, 0 skip

All counts are tool-reported from this machine; intermediate files are prunable and every stage reruns from
the copy, so any row here can be re-derived on request.
| Translate (2 shards, current main) | shard 0: 13,251 -> 12,527 translated, 12,527 pass spirv-val, 724 "reachable instruction with normalized encoding"; shard 1: 13,252 -> 12,505 / 12,505, 747 same category; merged index 25,032 entries |
| Second run (pre-PR-5 commit, 2 shards total) | 26,503 -> 25,032 translated, 25,032 pass spirv-val, 1,471 same category |

The one-line gap

The README claims all 26,503 carve/unpack/disassemble and all 26,503 translate and pass spirv-val
with the per-stage split 2,236 VS / 12,101 PS / 2,689 CS / 9,282 mesh / 195 geometry. On this copy
the translator leaves 1,471 shaders in the "reachable instruction with normalized encoding" bucket
(the tool's own LLVM-skip re-anchor path) and disassembly flags 1,473 as invalid words. Since this
copy is hash-identical to the manifest, the difference is presumably between this run and the
maintainer's, and the obvious suspects are the name layer (1,377 duplicated names, 767 shared
files, truncation at the fssm layer) and the case-insensitive filesystem the documented layout
runs on. Offered as observation, not diagnosis.

Also true from this machine (optional second comment, or fold into #7 if reopened)

Native distro LLVM 23.1.5 on Arch-family Linux assembles gfx1013 fine and the native carve/unpack/
disassembly pipeline completes on it end to end; the docs' WSL note is Windows-side only.

What this is NOT

  • Not the disasm-path layout bug: current main's PR #5 already fixed that; an earlier draft
    describing it is superseded.
  • Not an MIT-license point: that's their decision (issue #4).
  • Not any claim about GPU results: the GPU stage was never run here (no Windows host, and the
    harness tools load vulkan-1.dll; that harness port is the known gap).
主要语言
Python
星标
14.9k
派生
1.2k
平均合并
1 小时 58 分钟
30 天内合并 PR
40

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ItsNotRexed/Leonida 的其他 Issue

查看 ItsNotRexed/Leonida 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。