[PR #53] pe_shader_containers: parse and validate multi-image container layouts #105

Open
opened 2026-11-26 20:16:49 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/53
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9775


📝 Commits (2)

  • 53ab06b pe_shader_containers: stage --json so a write failure keeps the previous report
  • b844963 pe_shader_containers: sequence container stems sequentially across multi-image extract

📊 Changes

2 files changed (+86 additions, -9 deletions)

View changed files

📝 tests/test_pe_shader_containers.py (+41 -0)
📝 tools/pe_shader_containers.py (+45 -9)

📄 Description

Carried over from old PR 9775 by abnalstlll-byte in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9775, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
abnalstlll-byte: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Parse and validate multi-image shader container layouts in \ ools/pe_shader_containers.py.

What and why

PE shader containers can hold multiple shader stage images across distinct offset bounds. This PR:

  • Handles multi-image container layout parsing and boundary validation.
  • Adds comprehensive unit tests in \ ests/test_pe_shader_containers.py\ (21/21 pass).
  • Ensures deterministic layout extraction compliant with the \pe_loader\ contract.

Verification

  • \python -I tests/test_pe_shader_containers.py -v\ -> 21/21 tests pass.
  • \python -I scripts/check_no_game_data.py\ -> clean (zero game data).
  • \git diff --check\ -> clean.
  • Python standard library only, cross-platform compatible.

AI-assisted.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/53 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9775` --- ### 📝 Commits (2) - [`53ab06b`](https://github.com/ubiquitarianism/leonida/commit/53ab06ba5f88dc84de964ba5008a9939bad26cf1) pe_shader_containers: stage --json so a write failure keeps the previous report - [`b844963`](https://github.com/ubiquitarianism/leonida/commit/b84496342b55d7ab04c4b5dd69d8e9b8e1502717) pe_shader_containers: sequence container stems sequentially across multi-image extract ### 📊 Changes **2 files changed** (+86 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_pe_shader_containers.py` (+41 -0) 📝 `tools/pe_shader_containers.py` (+45 -9) </details> ### 📄 Description > Carried over from **old PR 9775** by `abnalstlll-byte` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9775`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `abnalstlll-byte`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Parse and validate multi-image shader container layouts in \ ools/pe_shader_containers.py\. ### What and why PE shader containers can hold multiple shader stage images across distinct offset bounds. This PR: - Handles multi-image container layout parsing and boundary validation. - Adds comprehensive unit tests in \ ests/test_pe_shader_containers.py\ (21/21 pass). - Ensures deterministic layout extraction compliant with the \pe_loader\ contract. ### Verification - \python -I tests/test_pe_shader_containers.py -v\ -> 21/21 tests pass. - \python -I scripts/check_no_game_data.py\ -> clean (zero game data). - \git diff --check\ -> clean. - Python standard library only, cross-platform compatible. AI-assisted. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#105
No description provided.