Repository navigation
Conversation
|
Reviewed 696237b: could not execute here — both tests need Windows+MSVC+GPU (first_light also needs tools/first_light.py output), so I verified by inspection against main. The skips are warranted: main's layer refuses every translated graphics PSO below 144 push-constant bytes (ShaderUserData is fixed at 144 and the uniform-buffer fallback is not built yet), both tests are registered with SKIP_RETURN_CODE 77, the helpers accept the inner device, and d3d12_state_sweep_test really would end with Recommendation: Merge |
…ract d3d12_first_light_test builds translated PSOs that need 144 push-constant bytes; on a device with a smaller limit (e.g. a 128-byte iGPU) PSO creation would fail. d3d12_state_sweep_test was 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. Both now check rt::d3d12::device_push_constants_need_fallback right after the layer device exists and return 77, matching d3d12_pipeline_library_test, d3d12_msaa_draw_test and d3d12_fspx_compute_test. Co-Authored-By: Devin <noreply@cognition.ai>
|
Rebased cleanly onto current main ( |
696237b to
b71723a
Compare
|
Consolidated into #1449 as cherry-pick |
Claimed in the coordination issue: #14 (comment)
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).