mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1419] d3d12_skip_compute_test: add the GPU regression and skip on 128-byte devices #1448
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#1448
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/1419
Author: @whoalin1
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:pc-tail-skip-guard📝 Commits (2)
cc5f867d3d12: skip named compute programs on request (RT-SKIP-COMPUTE-DIAGNOSTIC)f177f7ad3d12_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_COMPUTEis already implemented inmain, 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
d3d12_skip_compute_test, Moriz82's synthetic regression test for the diagnostic already documented inmain: two counting compute programs exercise unset, one-name andallmodes, including direct and indirect dispatches.SKIP_RETURN_CODE 77.maxPushConstantsSizeis below the test's 144-byteShaderUserDatablock (128, the Vulkan minimum — e.g. AMD Radeon iGPUs), checksdevice_push_constants_need_fallback()and returns 77 instead of failing withE_NOTIMPL. This is the same guard already used byd3d12_msaa_draw_test,d3d12_set0_compute_testandd3d12_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
gta6rtandd3d12_skip_compute_testwith 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.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.