[PR #2153] test: bind a PSO before direct heap dispatch #2157

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2153
Author: @Joaco9020
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: fix/direct-heap-dispatch-test


📝 Commits (1)

  • 13e0d78 test: bind a PSO before direct heap dispatch

📊 Changes

2 files changed (+48 additions, -2 deletions)

View changed files

📝 runtime/CMakeLists.txt (+5 -0)
📝 runtime/test/d3d12_set_descriptor_heaps_test.cpp (+43 -2)

📄 Description

Claimed in the coordination issue as RT-DIRECT-HEAP-DISPATCH-TEST.

What and why

The direct heap indexing regression check dispatched without binding a compute PSO. The command list correctly rejected the dispatch, so the test had no recorded command to inspect. This adds the existing synthetic compute shader to the test target, builds a small shader library for it, and binds its PSO before asserting the remapped CBV and sampler heap bases in dispatch user data.

Tested

  • Built d3d12_set_descriptor_heaps_test with MSVC on current main (c50ed94).
  • ctest --test-dir runtime/build -C RelWithDebInfo -R '^d3d12_set_descriptor_heaps$' --output-on-failure — passed.
  • The pre-fix test failed at the recorded-command assertion after record_dispatch rejected the missing PSO.
  • python -I scripts/check_no_game_data.py runtime/CMakeLists.txt runtime/test/d3d12_set_descriptor_heaps_test.cpp — passed.

GPUs tested: NVIDIA GeForce RTX 3070, driver 621.01, Windows 11 IoT Enterprise build 22631.

AI-assisted: yes.

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys, or decryption.
  • No translator change; the translator-rule checklist is not applicable.

🔄 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/2153 **Author:** [@Joaco9020](https://github.com/Joaco9020) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/direct-heap-dispatch-test` --- ### 📝 Commits (1) - [`13e0d78`](https://github.com/ubiquitarianism/leonida/commit/13e0d78eb4bce5b5639986ac7ff0b579fc56a681) test: bind a PSO before direct heap dispatch ### 📊 Changes **2 files changed** (+48 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `runtime/CMakeLists.txt` (+5 -0) 📝 `runtime/test/d3d12_set_descriptor_heaps_test.cpp` (+43 -2) </details> ### 📄 Description Claimed in [the coordination issue](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7178149824) as `RT-DIRECT-HEAP-DISPATCH-TEST`. ### What and why The direct heap indexing regression check dispatched without binding a compute PSO. The command list correctly rejected the dispatch, so the test had no recorded command to inspect. This adds the existing synthetic compute shader to the test target, builds a small shader library for it, and binds its PSO before asserting the remapped CBV and sampler heap bases in dispatch user data. ### Tested - Built `d3d12_set_descriptor_heaps_test` with MSVC on current `main` (`c50ed94`). - `ctest --test-dir runtime/build -C RelWithDebInfo -R '^d3d12_set_descriptor_heaps$' --output-on-failure` — passed. - The pre-fix test failed at the recorded-command assertion after `record_dispatch` rejected the missing PSO. - `python -I scripts/check_no_game_data.py runtime/CMakeLists.txt runtime/test/d3d12_set_descriptor_heaps_test.cpp` — passed. GPUs tested: NVIDIA GeForce RTX 3070, driver 621.01, Windows 11 IoT Enterprise build 22631. AI-assisted: yes. ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys, or decryption. - [x] No translator change; the translator-rule checklist is not applicable. --- <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#2157
No description provided.