[PR #1369] d3d12_vulkan_device_test: an allocation-info mismatch says MISMATCH, and the comparison ends with a count (TEST-VK-ALLOC-INFO-OUTPUT) #1399

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

📋 Pull Request Information

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

Base: main ← Head: test-vk-alloc-info-output


📝 Commits (1)

  • 8d14c29 d3d12_vulkan_device_test: an allocation-info mismatch says MISMATCH, and the comparison ends with a count (TEST-VK-ALLOC-INFO-OUTPUT)

📊 Changes

1 file changed (+20 additions, -3 deletions)

View changed files

📝 runtime/test/d3d12_vulkan_device_test.cpp (+20 -3)

📄 Description

Claimed in the coordination issue as: TEST-VK-ALLOC-INFO-OUTPUT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7146425273)

What and why

compare_allocation_info in runtime/test/d3d12_vulkan_device_test.cpp printed two kinds of line with the same allocation info <case>: prefix:

  • a mismatch, on stderr: allocation info <case>: ours size … alignment …, host size … alignment …;
  • the informational line for every compared texture, matching or not, on stdout: allocation info <case>: alignment …, size ours … host ….

So "no allocation info lines" reads like a pass criterion (it was given as one in the #375 merge note), although a run with a host device always prints dozens of the second kind: 46 on an RTX 5070 Ti, with 0 mismatches.

This PR changes the test output only:

  • A mismatch line now starts with allocation info MISMATCH, and so does the Device4/Device8 per-resource layout one.
  • The comparison ends like the other host comparisons in this test (FORMAT_INFO on …: … mismatches): GetResourceAllocationInfo against the host on <adapter>: N compared, M mismatches.
  • The function's comment says which line is which.

What is compared and what counts as a mismatch are unchanged. Without a host device the function still returns -1 before printing anything.

Tested

  • scripts\build_runtime.ps1 (MSVC 19.44, VS 2022 Build Tools, CMake 3.31.6 + Ninja, Vulkan SDK 1.4.363.0): builds; no new warning in the changed lines.
  • ctest -R "^d3d12_vulkan_device$" -V: passed (17.6 s). It prints GetResourceAllocationInfo against the host on NVIDIA GeForce RTX 5070 Ti: 153 compared, 0 mismatches, 46 informational lines and no allocation info MISMATCH line. Before this change, on main 51a6074d2, the same machine printed the same 46 informational lines and no mismatch.

GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 621.24, Vulkan 1.4.357, Windows 11 Pro 26300

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

🔄 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/1369 **Author:** [@Diegobecker07](https://github.com/Diegobecker07) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `test-vk-alloc-info-output` --- ### 📝 Commits (1) - [`8d14c29`](https://github.com/ubiquitarianism/leonida/commit/8d14c29c54b939bd394269e06de52d292cc7ea7b) d3d12_vulkan_device_test: an allocation-info mismatch says MISMATCH, and the comparison ends with a count (TEST-VK-ALLOC-INFO-OUTPUT) ### 📊 Changes **1 file changed** (+20 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/d3d12_vulkan_device_test.cpp` (+20 -3) </details> ### 📄 Description Claimed in the coordination issue as: TEST-VK-ALLOC-INFO-OUTPUT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7146425273) ### What and why `compare_allocation_info` in `runtime/test/d3d12_vulkan_device_test.cpp` printed two kinds of line with the same `allocation info <case>:` prefix: - a mismatch, on stderr: `allocation info <case>: ours size … alignment …, host size … alignment …`; - the informational line for every compared texture, matching or not, on stdout: `allocation info <case>: alignment …, size ours … host …`. So "no `allocation info` lines" reads like a pass criterion (it was given as one in the #375 merge note), although a run with a host device always prints dozens of the second kind: 46 on an RTX 5070 Ti, with 0 mismatches. This PR changes the test output only: - A mismatch line now starts with `allocation info MISMATCH`, and so does the Device4/Device8 per-resource layout one. - The comparison ends like the other host comparisons in this test (`FORMAT_INFO on …: … mismatches`): `GetResourceAllocationInfo against the host on <adapter>: N compared, M mismatches`. - The function's comment says which line is which. What is compared and what counts as a mismatch are unchanged. Without a host device the function still returns -1 before printing anything. ### Tested - `scripts\build_runtime.ps1` (MSVC 19.44, VS 2022 Build Tools, CMake 3.31.6 + Ninja, Vulkan SDK 1.4.363.0): builds; no new warning in the changed lines. - `ctest -R "^d3d12_vulkan_device$" -V`: passed (17.6 s). It prints `GetResourceAllocationInfo against the host on NVIDIA GeForce RTX 5070 Ti: 153 compared, 0 mismatches`, 46 informational lines and no `allocation info MISMATCH` line. Before this change, on `main` `51a6074d2`, the same machine printed the same 46 informational lines and no mismatch. GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 621.24, Vulkan 1.4.357, Windows 11 Pro 26300 AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) --- <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#1399
No description provided.