mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1467] [CLOSED] tests: skip honestly when push constants fall below the 144-byte contract #1496
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#1496
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/1467
Author: @whoalin1
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:honest-pushconst-skips📝 Commits (1)
b71723atests: skip honestly when push constants fall below the 144-byte contract📊 Changes
2 files changed (+12 additions, -0 deletions)
View changed files
📝
runtime/test/d3d12_first_light_test.cpp(+5 -0)📝
runtime/test/d3d12_state_sweep_test.cpp(+7 -0)📄 Description
Claimed in the coordination issue: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148908938
Complements #1449 (which guards the other 24 entries); both use the existing
device_push_constants_need_fallback → return 77pattern.What
Two tests had latent gaps on GPUs with
maxPushConstantsSize < 144(the 144-byteShaderUserDatacontract; 128-byte devices like AMD Radeon iGPUs):d3d12_first_light_test(package-gated byLEONIDA_FIRST_LIGHT_DIR): creates translated PSOs that need 144 push-constant bytes — would FAIL on a smaller-limit device. Now checksdevice_push_constants_need_fallbackafter the layer device exists and returns 77, matchingd3d12_msaa_draw_test/d3d12_fspx_compute_test.d3d12_state_sweep_test— worse: every case's PSO fails the same way, each counts as a per-case skip, and the test could return success having compared nothing (silent pass). Now guards right aftercreate_vulkan_device, beforehost_device()/the case loop.(+12 lines, 2 files; both CMake entries already had
SKIP_RETURN_CODE 77.)Tested
LEONIDA_PC_TAIL_UBO=1, validation on):d3d12_state_sweep_testprints the skip and exits 77 (was silent pass);d3d12_first_light_testskips (no package dir on this machine — guard verified by inspection + clean compile, same position/pattern as the three existing guarded tests).d3d12_state_sweep_testran the full sweep — 498 cases compared, 0 differ, 0 skipped, exit 0.AI-assisted (Devin).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.