[PR #1419] d3d12_skip_compute_test: add the GPU regression and skip on 128-byte devices #1448

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1419
Author: @whoalin1
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: pc-tail-skip-guard


📝 Commits (2)

  • cc5f867 d3d12: skip named compute programs on request (RT-SKIP-COMPUTE-DIAGNOSTIC)
  • f177f7a d3d12_skip_compute_test: SKIP(77) when the GPU's push-constant limit is under 144 bytes

📊 Changes

2 files changed (+316 additions, -0 deletions)

View changed files

📝 runtime/CMakeLists.txt (+12 -0)
➕ runtime/test/d3d12_skip_compute_test.cpp (+304 -0)

📄 Description

LEONIDA_SKIP_COMPUTE is already implemented in main, but its GPU regression test was never merged with it. This PR adds that test and keeps it honest on 128-byte push-constant devices.

What

  • Adds d3d12_skip_compute_test, Moriz82's synthetic regression test for the diagnostic already documented in main: two counting compute programs exercise unset, one-name and all modes, including direct and indirect dispatches.
  • Registers the three cases in CTest with SKIP_RETURN_CODE 77.
  • On a device whose maxPushConstantsSize is below the test's 144-byte ShaderUserData block (128, the Vulkan minimum — e.g. AMD Radeon iGPUs), checks device_push_constants_need_fallback() and returns 77 instead of failing with E_NOTIMPL. This is the same guard already used by d3d12_msaa_draw_test, d3d12_set0_compute_test and d3d12_fspx_compute_test.

This branch was rebased onto current main; the stale duplicate documentation paragraph and the obsolete dependency on closed #1341 were removed. No game data.

Validation

  • Moriz82's original evidence: cross-built gta6rt and d3d12_skip_compute_test with clang-cl and ran the test under Wine 11.22 on an RTX 4070. Unset: both programs run and nothing is logged. absent,drop: only the named program is dropped. all: both are dropped.
  • Refreshed local evidence on f177f7a03 (Windows 11, MSVC): build succeeds; native NVIDIA RTX 4070 SUPER passes all three ctest entries; AMD Radeon iGPU with validation on and a 128-byte push-constant limit honestly skips all three through return code 77 because the pipelines need 144 bytes. The AMD run directly exercises the new guard.

AI-assisted.


🔄 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/1419 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `pc-tail-skip-guard` --- ### 📝 Commits (2) - [`cc5f867`](https://github.com/ubiquitarianism/leonida/commit/cc5f8670d8ffcf4d2d7563452c58ddc5a5e27a9a) d3d12: skip named compute programs on request (RT-SKIP-COMPUTE-DIAGNOSTIC) - [`f177f7a`](https://github.com/ubiquitarianism/leonida/commit/f177f7a03b90810f58fea3ceddbffc775da85fc1) d3d12_skip_compute_test: SKIP(77) when the GPU's push-constant limit is under 144 bytes ### 📊 Changes **2 files changed** (+316 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `runtime/CMakeLists.txt` (+12 -0) ➕ `runtime/test/d3d12_skip_compute_test.cpp` (+304 -0) </details> ### 📄 Description `LEONIDA_SKIP_COMPUTE` is already implemented in `main`, but its GPU regression test was never merged with it. This PR adds that test and keeps it honest on 128-byte push-constant devices. ## What - Adds `d3d12_skip_compute_test`, Moriz82's synthetic regression test for the diagnostic already documented in `main`: two counting compute programs exercise unset, one-name and `all` modes, including direct and indirect dispatches. - Registers the three cases in CTest with `SKIP_RETURN_CODE 77`. - On a device whose `maxPushConstantsSize` is below the test's 144-byte `ShaderUserData` block (128, the Vulkan minimum — e.g. AMD Radeon iGPUs), checks `device_push_constants_need_fallback()` and returns 77 instead of failing with `E_NOTIMPL`. This is the same guard already used by `d3d12_msaa_draw_test`, `d3d12_set0_compute_test` and `d3d12_fspx_compute_test`. This branch was rebased onto current `main`; the stale duplicate documentation paragraph and the obsolete dependency on closed #1341 were removed. No game data. ## Validation - Moriz82's original evidence: cross-built `gta6rt` and `d3d12_skip_compute_test` with clang-cl and ran the test under Wine 11.22 on an RTX 4070. Unset: both programs run and nothing is logged. `absent,drop`: only the named program is dropped. `all`: both are dropped. - Refreshed local evidence on `f177f7a03` (Windows 11, MSVC): build succeeds; native NVIDIA RTX 4070 SUPER passes all three ctest entries; AMD Radeon iGPU with validation on and a 128-byte push-constant limit honestly skips all three through return code 77 because the pipelines need 144 bytes. The AMD run directly exercises the new guard. AI-assisted. --- <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#1448
No description provided.