[PR #1094] tests: fix method variants on tier-1 heaps (TEST-METHOD-VARIANTS-HEAP-TIER1) #1129

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

📋 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)

  • badfead tests: 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_variants creates a mixed-resource heap that the host rejects. The test ignores that failure and passes a null heap into CreatePlacedResource2, 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

  • Before: ctest --test-dir runtime/build-full -R '^d3d12_method_variants$' --output-on-failure failed because the layer returned S_OK and the host returned E_INVALIDARG for the placed render target.
  • A standalone host probe reported resource heap tier 1: CreateHeap with mixed-resource flags returned E_INVALIDARG; with RT/DS-only flags, both heap and the same placed render target were created successfully.
  • After rebasing onto 3aa975421d470b76da1aa986a91282c59e20d642 and rebuilding d3d12_method_variants_test, the same CTest passed.
  • python -I scripts/check_no_game_data.py runtime/test/d3d12_method_variants_test.cpp and git diff origin/main --check passed.
  • Tier-2 hardware was not tested.

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

  • Based on current main at the time of the rebase.
  • One topic.
  • No game data, keys or decryption.
  • A new translator rule is in the contract table. Not applicable: no translator rule changed.

🔄 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/1094 **Author:** [@veqzo](https://github.com/veqzo) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix-method-variants-tier1` --- ### 📝 Commits (1) - [`badfead`](https://github.com/ubiquitarianism/leonida/commit/badfead1de24db81501e63a53c79386a11b0b04c) tests: use tier-1 heaps for method variants ### 📊 Changes **1 file changed** (+19 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/d3d12_method_variants_test.cpp` (+19 -9) </details> ### 📄 Description Claimed in the coordination issue as: TEST-METHOD-VARIANTS-HEAP-TIER1 ### What and why On a tier-1 D3D12 host, `d3d12_method_variants` creates a mixed-resource heap that the host rejects. The test ignores that failure and passes a null heap into `CreatePlacedResource2`, 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 - Before: `ctest --test-dir runtime/build-full -R '^d3d12_method_variants$' --output-on-failure` failed because the layer returned S_OK and the host returned E_INVALIDARG for the placed render target. - A standalone host probe reported resource heap tier 1: `CreateHeap` with mixed-resource flags returned E_INVALIDARG; with RT/DS-only flags, both heap and the same placed render target were created successfully. - After rebasing onto `3aa975421d470b76da1aa986a91282c59e20d642` and rebuilding `d3d12_method_variants_test`, the same CTest passed. - `python -I scripts/check_no_game_data.py runtime/test/d3d12_method_variants_test.cpp` and `git diff origin/main --check` passed. - Tier-2 hardware was not tested. 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 - [x] Based on current `main` at the time of the rebase. - [x] One topic. - [x] No game data, keys or decryption. - [ ] A new translator rule is in the contract table. Not applicable: no translator rule changed. --- <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#1129
No description provided.