mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1389] runtime tests: compare heaps on a resource heap tier 1 host (TEST-HEAP-TIER1-HOST) #1419
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#1419
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/1389
Author: @qhukz13
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:cont/heap-tier1-tests📝 Commits (2)
81c9340runtime tests: handle resource heap tier 1 hosts in heap comparisonsd964980Merge main into cont/heap-tier1-tests📊 Changes
3 files changed (+104 additions, -37 deletions)
View changed files
📝
docs/testing.md(+1 -0)📝
runtime/test/d3d12_heap_properties_test.cpp(+31 -7)📝
runtime/test/d3d12_vulkan_device_test.cpp(+72 -30)📄 Description
Claimed in the coordination issue as: TEST-HEAP-TIER1-HOST (claim)
Depends on: #1364 for
d3d12_vulkan_deviceandd3d12_heap_propertiesto pass in full on NVIDIA Pascal (without itboth stop earlier on that card, on the CPU-heap textures). The change here is independent of it.
What and why
The layer accepts heaps without two DENY flags (
D3D12_HEAP_FLAG_NONE,ALLOW_ALL_BUFFERS_AND_TEXTURES), as theconsole does. A D3D12 host of resource heap tier 1 refuses them with
E_INVALIDARG; measured on a GeForce GTX 1050Ti (Pascal) with Windows 10, whose native D3D12 reports
D3D12_RESOURCE_HEAP_TIER_1. So three host comparisonsreport mismatches that are the host's tier, not the layer:
d3d12_heap_properties:placed buffer, DEFAULT heap, ALLOW_ALLandplaced texture, DEFAULT heap, ALLOW_ALL(
ours 0x0 host 0x80070057);d3d12_vulkan_device,compare_heap_neighbours: the NONE-flag heaps (alignment 0 / 64 KiB / 4 MiB, size 1000,upload, readback, custom write-combine L0) fail
heap_mismatches <= 0;d3d12_vulkan_device,compare_placed_reserved: every placed case on the default NONE-flag heap getsE_UNEXPECTEDfrom the host'sCreateHeap(reached once the check above passes).Each test now asks the host for
ResourceHeapTier. On a tier-1 host only:d3d12_heap_propertiesprints the mixed-heap cases asnot comparable on this host (resource heap tier 1 host),the way it already prints the
MEMORY_POOL_L1cases on a UMA host, and the host line names the tier;d3d12_vulkan_devicecreates the NONE-flag heaps asALLOW_ONLY_BUFFERSincompare_heap_neighbours, and as theALLOW_ONLY_*heap that matches the resource incompare_placed_reserved, on both devices, so the alignment,size, heap-type and placement argument checks are still compared; one line says so. Cases that set their heap
flags on purpose are not touched.
On a tier-2 host nothing changes.
docs/testing.mdgets one row in its known-problems table.Tested
GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 19045, MSVC RelWithDebInfo,
main0f98d193c+ this branch +#1364,
ctest -R "^(d3d12_heap_properties|d3d12_vulkan_device)$"three times: both pass every time(
d3d12_heap_properties: 527 values compared, 0 mismatches). WithLEONIDA_HOST_ADAPTER=warp(WARP is tier 2) theALLOW_ALLcases are compared again (544 values compared, 0 mismatches). Without this branch the same build failsd3d12_heap_propertieson the twoALLOW_ALLcases andd3d12_vulkan_deviceatheap_mismatches <= 0.#1094 (TEST-METHOD-VARIANTS-HEAP-TIER1) does the same for
d3d12_method_variants.GPUs tested: NVIDIA GeForce GTX 1050 Ti, driver 582.66, Windows 10 19045. No game files.
AI-assisted: yes (Claude Code, with Antigravity for the implementation and the runs)
Checklist
mainand merges cleanly.docs/design.md. (Tests only.)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.