[PR #533] [MERGED] Tests: separate pipeline library blob validation from host parity (TEST-PIPELINE-LIBRARY-OWN-FORMAT) #581

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/533
Author: @sodove
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142

Base: main ← Head: test/pipeline-library-own-format


📝 Commits (2)

  • 14513af tests: separate pipeline library blob validation from host parity (TEST-PIPELINE-LIBRARY-OWN-FORMAT)
  • 0a81e16 docs: clarify the pipeline library host comparison

📊 Changes

3 files changed (+20 additions, -8 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+6 -3)
📝 runtime/test/d3d12_pipeline_library_host_test.cpp (+6 -4)
📝 runtime/test/d3d12_pipeline_library_test.cpp (+8 -1)

📄 Description

Claimed in the coordination issue as: TEST-PIPELINE-LIBRARY-OWN-FORMAT (#14)

What and why

The trailing-byte mutation touches a reserved byte in the layer's LPL1 header. Native D3D12 serializes a different format, so its response to mutating its own trailing byte varies across the observed hosts. The 26300 host reported S_OK, while the 26100 host here returns E_INVALIDARG. Original finding by fiestorra

Keep both HRESULT and output-pointer results in the own-format part of the host report. The layer test now explicitly requires E_INVALIDARG and no library object for a corrupted LPL1 reserved word.

Tested

Windows 11 26100.7623, D3D12Core 10.0.26100.7309, MSVC 19.44.35220 Release, Vulkan validation layer 1.4.369.

  • Main d42773d073. The host and the layer both reject the trailing mutation and leave the output alone. They report independent serialized sizes of 900 and 16 bytes.
  • This branch. d3d12_pipeline_library_host compares 72 values with 0 mismatches and reports the two trailing-mutation values separately. d3d12_pipeline_library passes the new rejection check and its existing execution checks.

GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 610.74, Windows 11.

AI-assisted: yes (OpenAI Codex).

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys or decryption. Synthetic fixtures only.
  • New translator rule (not applicable).

🔄 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/533 **Author:** [@sodove](https://github.com/sodove) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `test/pipeline-library-own-format` --- ### 📝 Commits (2) - [`14513af`](https://github.com/ubiquitarianism/leonida/commit/14513af943576682dbfa35c7f4fe6f33b8056580) tests: separate pipeline library blob validation from host parity (TEST-PIPELINE-LIBRARY-OWN-FORMAT) - [`0a81e16`](https://github.com/ubiquitarianism/leonida/commit/0a81e1631649e90469e8c4359b096433a787a9fb) docs: clarify the pipeline library host comparison ### 📊 Changes **3 files changed** (+20 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+6 -3) 📝 `runtime/test/d3d12_pipeline_library_host_test.cpp` (+6 -4) 📝 `runtime/test/d3d12_pipeline_library_test.cpp` (+8 -1) </details> ### 📄 Description Claimed in the coordination issue as: TEST-PIPELINE-LIBRARY-OWN-FORMAT ([#14](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7124566226)) ### What and why The trailing-byte mutation touches a reserved byte in the layer's LPL1 header. Native D3D12 serializes a different format, so its response to mutating its own trailing byte varies across the observed hosts. The 26300 host reported S_OK, while the 26100 host here returns E_INVALIDARG. [Original finding by fiestorra](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7124291293) Keep both HRESULT and output-pointer results in the own-format part of the host report. The layer test now explicitly requires E_INVALIDARG and no library object for a corrupted LPL1 reserved word. ### Tested Windows 11 26100.7623, D3D12Core 10.0.26100.7309, MSVC 19.44.35220 Release, Vulkan validation layer 1.4.369. - Main d42773d0734d5fd7b3a32a1bfd536f61186322a5. The host and the layer both reject the trailing mutation and leave the output alone. They report independent serialized sizes of 900 and 16 bytes. - This branch. d3d12_pipeline_library_host compares 72 values with 0 mismatches and reports the two trailing-mutation values separately. d3d12_pipeline_library passes the new rejection check and its existing execution checks. GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 610.74, Windows 11. AI-assisted: yes (OpenAI Codex). ### Checklist - [x] Based on current main. - [x] One topic. - [x] No game data, keys or decryption. Synthetic fixtures only. - [ ] New translator rule (not applicable). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:21 +01:00
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#581
No description provided.