test(agc-driver): set D3D clip range for shared-code draw #3269
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3269"
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?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T04:34:03Z.
What
Set
PA_CL_CLIP_CNTL.DX_CLIP_SPACE_DEFin theSharedCodeHeaderstest draw. That draw uses the initial context's [-1, 1] depth range, which Vulkan devices withoutVK_EXT_depth_range_unrestrictedreject 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
main, builtagc_driver_prepared_shaders_tests, and ran CTest^agc_driver_prepared_shaders; all 7 tests passed on llvmpipe. This device reportsdepthRangeUnrestricted=1, so it does not reproduce the unsupported-extension failure.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 on06da1176;PreparedShaders.cppitself has no intervening changes through currentmain.python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpass on the current-main head.Checklist
main; no open PR implements the same fixNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by mrcrapto on 2026-10-11T05:19:56Z.
Independent Windows hardware validation of head
d8172fb7ddb43d9715c73e064264ca3d3c3574f2against its parent961b25fe24582361833a90b912eff5793550afdf: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. Builtagc_driver_prepared_shaders_testsand ran CTest^agc_driver_prepared_shaders($|_)sequentially withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1and explicitANYPS5_GPUfilters. 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 underWILL_FAIL. All cases finish below 30 seconds. The conventions checker andgit diff --checkalso 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).