mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1449] d3d12 tests: skip PSO tests on devices below the 144-byte push-constant contract #1479
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#1479
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/1449
Author: @whoalin1
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:pc-tail-skip-guards📝 Commits (2)
428522ed3d12 tests: skip PSO tests on devices below the 144-byte push-constant contracte8f0953tests: skip honestly when push constants fall below the 144-byte contract📊 Changes
26 files changed (+51 additions, -1 deletions)
View changed files
📝
runtime/CMakeLists.txt(+2 -1)📝
runtime/test/d3d12_bindless_churn_test.cpp(+1 -0)📝
runtime/test/d3d12_buffer_uav_test.cpp(+1 -0)📝
runtime/test/d3d12_bundle_test.cpp(+1 -0)📝
runtime/test/d3d12_compute_test.cpp(+1 -0)📝
runtime/test/d3d12_depth24_draw_test.cpp(+1 -0)📝
runtime/test/d3d12_depth_resolve_test.cpp(+1 -0)📝
runtime/test/d3d12_draw_test.cpp(+1 -0)📝
runtime/test/d3d12_execute_indirect_validation_test.cpp(+1 -0)📝
runtime/test/d3d12_f16_halves_test.cpp(+1 -0)📝
runtime/test/d3d12_first_light_test.cpp(+5 -0)📝
runtime/test/d3d12_geometry_test.cpp(+1 -0)📝
runtime/test/d3d12_indirect_dispatch_count_test.cpp(+1 -0)📝
runtime/test/d3d12_m2_formats_test.cpp(+1 -0)📝
runtime/test/d3d12_m2_textured_test.cpp(+1 -0)📝
runtime/test/d3d12_m3_frame_test.cpp(+1 -0)📝
runtime/test/d3d12_m4_compute_test.cpp(+1 -0)📝
runtime/test/d3d12_mesh_test.cpp(+1 -0)📝
runtime/test/d3d12_multi_viewport_test.cpp(+1 -0)📝
runtime/test/d3d12_pso_validation_test.cpp(+1 -0)...and 6 more files
📄 Description
Claimed in the coordination issue: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148481068
Related: #1419 applies the same guard to #1341's new
d3d12_skip_compute_test(Depends on: #1341).What
On GPUs whose
maxPushConstantsSizeis under the 144 bytes every translated shader's push-constant block needs (the Vulkan minimum is 128; AMD Radeon iGPUs report 128), the D3D12 layer refuses every pipeline withE_NOTIMPL(PipelineState::push_constants_fit; the uniform-buffer tail is not built yet). Every test that creates a PSO therefore failed on such devices — 24 ctest entries on our AMD iGPU.LEONIDA_PC_TAIL_UBO=1does not help these tests: it only changes howtest/shaders/build.pytranslates the.asmfixtures, while the layer still declares the whole 144-byteVkPushConstantRange.vktest::Devicenow records the chosen device'smaxPushConstantsSizeand offersbelow_shader_push_constant_contract()— the vk-side twin ofrt::d3d12::device_push_constants_need_fallback(same<144condition, usable before the D3D12 device exists, which the helper-structured tests need).initialize()in the 22 test sources behind the 24 failing entries (all already hadSKIP_RETURN_CODE 77in CMake — no CMake change).d3d12_vulkan_device_test) and tests already guarded are untouched.Tested
LEONIDA_PC_TAIL_UBO=1, validation on): all 24 entries now***Skipped(exit 77) — e.g.d3d12_compute_test: skipped, the shaders' push-constant block needs 144 bytes and this GPU has 128; the remaining AMD failures are the 3 known pre-existing ones (d3d12_clearNaN → #787,d3d12_xdxr_rt_check→ #1210,d3d12_pipeline_library_hostenv crash).Known tradeoff (reviewer-noted):
d3d12_typeless_families/d3d12_depth_resolveskip their clears-only paths too on low-limit devices;d3d12_first_light(package-gated) andd3d12_state_sweep(silent zero-comparison pass) have the same latent gap — follow-ups noted on the coordination issue.AI-assisted (Devin).
Consolidated follow-up
This branch now also includes the two remaining push-constant-contract skips formerly opened as #1467:
d3d12_first_light_testandd3d12_state_sweep_testnow exit 77 before building PSOs on devices below the 144-byte contract, rather than failing or silently comparing nothing. The consolidation is cherry-picke8f09538f; no additional code was written.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.