mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[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
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1399
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
8d14c29d3d12_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_infoinruntime/test/d3d12_vulkan_device_test.cppprinted two kinds of line with the sameallocation info <case>:prefix:allocation info <case>: ours size … alignment …, host size … alignment …;allocation info <case>: alignment …, size ours … host ….So "no
allocation infolines" 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:
allocation info MISMATCH, and so does the Device4/Device8 per-resource layout one.FORMAT_INFO on …: … mismatches):GetResourceAllocationInfo against the host on <adapter>: N compared, M mismatches.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 printsGetResourceAllocationInfo against the host on NVIDIA GeForce RTX 5070 Ti: 153 compared, 0 mismatches, 46 informational lines and noallocation info MISMATCHline. Before this change, onmain51a6074d2, 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
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).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.