test(agc-driver): set D3D clip range for shared-code draw #3269

Merged
MarcZX10 merged 1 commit from upstream-pr/3269 into main 2026-10-11 05:55:13 +00:00
MarcZX10 commented 2026-10-11 04:34:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T04:34:03Z.


What

Set PA_CL_CLIP_CNTL.DX_CLIP_SPACE_DEF in the SharedCodeHeaders test draw. That draw uses the initial context's [-1, 1] depth range, which Vulkan devices without VK_EXT_depth_range_unrestricted reject even though this test does not exercise depth behavior. The test now uses [0, 1], matching the setup used by the other graphics draw tests. This changes test setup only; it does not change emulated driver behavior.

Fixes #3207. The one-line change carries Abdulrahman Elkordy's offered commit, preserving its original authorship.

Tested

  • Linux x86_64, GCC 12.2, Release: configured from current main, built agc_driver_prepared_shaders_tests, and ran CTest ^agc_driver_prepared_shaders; all 7 tests passed on llvmpipe. This device reports depthRangeUnrestricted=1, so it does not reproduce the unsupported-extension failure.
  • Windows 11, WinLibs GCC 15.2.0 r7, Release: the original author reports all seven agc_driver_prepared_shaders* tests pass on an Arrow Lake iGPU (where four failed before the fix) and an RTX 5060. That run was on the offered branch based on 06da1176; PreparedShaders.cpp itself has no intervening changes through current main.
  • python3 tools/check_conventions.py --base upstream/main and git diff --check pass on the current-main head.

Checklist

  • Based on current main; no open PR implements the same fix
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behavior, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4816593785 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3269). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T04:34:03Z. --- ### What Set `PA_CL_CLIP_CNTL.DX_CLIP_SPACE_DEF` in the `SharedCodeHeaders` test draw. That draw uses the initial context's [-1, 1] depth range, which Vulkan devices without `VK_EXT_depth_range_unrestricted` reject even though this test does not exercise depth behavior. The test now uses [0, 1], matching the setup used by the other graphics draw tests. This changes test setup only; it does not change emulated driver behavior. Fixes #3207. The one-line change carries Abdulrahman Elkordy's offered commit, preserving its original authorship. ### Tested - Linux x86_64, GCC 12.2, Release: configured from current `main`, built `agc_driver_prepared_shaders_tests`, and ran CTest `^agc_driver_prepared_shaders`; all 7 tests passed on llvmpipe. This device reports `depthRangeUnrestricted=1`, so it does not reproduce the unsupported-extension failure. - Windows 11, WinLibs GCC 15.2.0 r7, Release: the original author reports all seven `agc_driver_prepared_shaders*` tests pass on an Arrow Lake iGPU (where four failed before the fix) and an RTX 5060. That run was on the offered branch based on `06da1176`; `PreparedShaders.cpp` itself has no intervening changes through current `main`. - `python3 tools/check_conventions.py --base upstream/main` and `git diff --check` pass on the current-main head. ### Checklist - [x] Based on current `main`; no open PR implements the same fix - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behavior, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
mrcrapto commented 2026-10-11 05:19:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mrcrapto on 2026-10-11T05:19:56Z.


Independent Windows hardware validation of head d8172fb7ddb43d9715c73e064264ca3d3c3574f2 against its parent 961b25fe24582361833a90b912eff5793550afdf:

GPU depthRangeUnrestricted Parent PR head
Intel UHD Graphics 0 3/7 pass 7/7 pass
NVIDIA RTX 4060 Laptop GPU 1 7/7 pass 7/7 pass

Windows 11 Pro 10.0.26300; WinLibs GCC 15.2.0 r7; Release with BUILD_TESTING=ON. Intel driver 32.0.101.6790; NVIDIA driver 32.0.15.9649. Built agc_driver_prepared_shaders_tests and ran CTest ^agc_driver_prepared_shaders($|_) sequentially with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and explicit ANYPS5_GPU filters. Logs confirm the selected devices; no tests were skipped.

On the parent, Intel's default, indirect, uncached and debug cases fail with viewport depth outside [0, 1] requires VK_EXT_depth_range_unrestricted. All four pass after the change. The remaining three cases pass on both revisions; the debug-failure case produces its intended injected failure and passes under WILL_FAIL. All cases finish below 30 seconds. The conventions checker and git diff --check also pass.

These results support the test setup correction on another Intel GPU and show all seven cases passing on this RTX 4060. The complete test suite and games were not tested as part of this comparison. Detailed CTest/JUnit logs and reproduction scripts are available in the accompanying evidence package.

AI-assisted: yes (validation scripts and reporting); tests ran on local hardware.

Validation evidence and reproduction scripts (published by @mrcrapto).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6105778227 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3269#issuecomment-6105778227). Originally posted by [mrcrapto](https://github.com/mrcrapto) on 2026-10-11T05:19:56Z. --- Independent Windows hardware validation of head `d8172fb7ddb43d9715c73e064264ca3d3c3574f2` against its parent `961b25fe24582361833a90b912eff5793550afdf`: | GPU | depthRangeUnrestricted | Parent | PR head | | --- | --- | --- | --- | | Intel UHD Graphics | 0 | 3/7 pass | 7/7 pass | | NVIDIA RTX 4060 Laptop GPU | 1 | 7/7 pass | 7/7 pass | Windows 11 Pro 10.0.26300; WinLibs GCC 15.2.0 r7; Release with `BUILD_TESTING=ON`. Intel driver 32.0.101.6790; NVIDIA driver 32.0.15.9649. Built `agc_driver_prepared_shaders_tests` and ran CTest `^agc_driver_prepared_shaders($|_)` sequentially with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and explicit `ANYPS5_GPU` filters. Logs confirm the selected devices; no tests were skipped. On the parent, Intel's default, indirect, uncached and debug cases fail with `viewport depth outside [0, 1] requires VK_EXT_depth_range_unrestricted`. All four pass after the change. The remaining three cases pass on both revisions; the debug-failure case produces its intended injected failure and passes under `WILL_FAIL`. All cases finish below 30 seconds. The conventions checker and `git diff --check` also pass. These results support the test setup correction on another Intel GPU and show all seven cases passing on this RTX 4060. The complete test suite and games were not tested as part of this comparison. Detailed CTest/JUnit logs and reproduction scripts are available in the accompanying evidence package. AI-assisted: yes (validation scripts and reporting); tests ran on local hardware. [Validation evidence and reproduction scripts](https://gist.github.com/mrcrapto/b5adf5cd30025185fb2d1b6a9dfd2271) (published by @mrcrapto).
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
boykopovar/AnyPS5!3269
No description provided.