mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #1094] tests: fix method variants on tier-1 heaps (TEST-METHOD-VARIANTS-HEAP-TIER1) #1129
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#1129
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/1094
Author: @veqzo
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix-method-variants-tier1📝 Commits (1)
badfeadtests: use tier-1 heaps for method variants📊 Changes
1 file changed (+19 additions, -9 deletions)
View changed files
📝
runtime/test/d3d12_method_variants_test.cpp(+19 -9)📄 Description
Claimed in the coordination issue as: TEST-METHOD-VARIANTS-HEAP-TIER1
What and why
On a tier-1 D3D12 host,
d3d12_method_variantscreates a mixed-resource heap that the host rejects. The test ignores that failure and passes a null heap intoCreatePlacedResource2, so it reports a misleading host/layer mismatch for a valid render target.Use separate buffer, RT/DS texture, and non-RT/DS texture heaps, including for host-sized texture cases. Check the four heap creation results so setup errors are visible. This preserves the resource-creation comparisons on tier-1 hosts.
PR #111 changes the same test file for a separate relaxed-format-casting issue. It does not change this heap setup; its patch did not apply directly over the earlier local checkout and may require integration or a rebase.
Tested
ctest --test-dir runtime/build-full -R '^d3d12_method_variants$' --output-on-failurefailed because the layer returned S_OK and the host returned E_INVALIDARG for the placed render target.CreateHeapwith mixed-resource flags returned E_INVALIDARG; with RT/DS-only flags, both heap and the same placed render target were created successfully.3aa975421d470b76da1aa986a91282c59e20d642and rebuildingd3d12_method_variants_test, the same CTest passed.python -I scripts/check_no_game_data.py runtime/test/d3d12_method_variants_test.cppandgit diff origin/main --checkpassed.GPUs tested: NVIDIA GeForce GTX 1080, driver 582.78, Windows 11 Pro 10.0.26300, MSVC 19.44, Vulkan SDK 1.4.363.0.
AI-assisted: yes, Codex.
Checklist
mainat the time of the rebase.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.