[PR #2248] dds_png: preview signed and unsigned BC6H textures #2253

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2248
Author: @kirigayakazima
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: codex/dds-png-bc6h-preview


📝 Commits (1)

  • 057ce66 dds_png: preview signed and unsigned BC6H textures

📊 Changes

3 files changed (+37 additions, -14 deletions)

View changed files

📝 tests/test_dds_png.py (+2 -2)
📝 tests/test_dds_subresources.py (+12 -0)
📝 tools/dds_png.py (+23 -12)

📄 Description

Claimed in the coordination issue as: DDS-PNG-BC6H-PREVIEW

Depends on: #140 (overlapping changes in the existing BC7 decoder). #2247 (adjacent format-dispatch cases; keep both handlers when merging). Each branch builds directly on main. These references flag textual merge conflicts.

What and why

Decode signed and unsigned BC6H subresources using the repository’s BC6H block decoder. Reuse the BC7 block traversal and cache, clip blocks at texture edges and map linear RGB to the eight-bit preview range. The synthetic fixtures cover both signedness variants and an incomplete block.

Tested

Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change.

  • python -I tests/test_dds_subresources.py
  • python -I tests/test_dds_png.py
  • python -I tests/test_ttpf_mips.py
  • git diff --check and the changed-path no-game-data scan passed.
  • Shared main baseline: 498 semantic test files, 6,351 tests passed.

GPUs tested: N/A (synthetic CPU tests).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.

🔄 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/2248 **Author:** [@kirigayakazima](https://github.com/kirigayakazima) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/dds-png-bc6h-preview` --- ### 📝 Commits (1) - [`057ce66`](https://github.com/ubiquitarianism/leonida/commit/057ce665a70d84e682f3e344d578266ad88c419d) dds_png: preview signed and unsigned BC6H textures ### 📊 Changes **3 files changed** (+37 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_dds_png.py` (+2 -2) 📝 `tests/test_dds_subresources.py` (+12 -0) 📝 `tools/dds_png.py` (+23 -12) </details> ### 📄 Description Claimed in the coordination issue as: [DDS-PNG-BC6H-PREVIEW](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7189018014) Depends on: #140 (overlapping changes in the existing BC7 decoder). #2247 (adjacent format-dispatch cases; keep both handlers when merging). Each branch builds directly on main. These references flag textual merge conflicts. ### What and why Decode signed and unsigned BC6H subresources using the repository’s BC6H block decoder. Reuse the BC7 block traversal and cache, clip blocks at texture edges and map linear RGB to the eight-bit preview range. The synthetic fixtures cover both signedness variants and an incomplete block. ### Tested Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change. - `python -I tests/test_dds_subresources.py` - `python -I tests/test_dds_png.py` - `python -I tests/test_ttpf_mips.py` - `git diff --check` and the changed-path no-game-data scan passed. - Shared main baseline: 498 semantic test files, 6,351 tests passed. GPUs tested: N/A (synthetic CPU tests). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A. --- <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#2253
No description provided.