test(agc): map GPU memory on fibers with and without a host stack #6993
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6993"
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 thuanquang on 2026-10-17T02:51:20Z.
What
agc_driver_gpu_map_on_fiberfails on Windows on currentmainwith a Vulkan device:The test runs its fiber on a 64 KiB context. Since #6003 a fiber gets a host stack only when its context is smaller than 64 KiB (
size_context < FIBER_GUEST_STACK_MIN), so this fiber now runs on the context itself on Windows too.StackHoldsImportfinds less than 256 KiB of stack and the driver imports the mapping on a host thread, which is correct; the Windows-only expectation of no thread came from81364388a, when every Windows fiber had a host stack.The test now maps on two fibers:
81364388achecked; elsewhere one thread, as before;Both still check that the import used at most 8 KiB of the fiber's context, and the mapping on an ordinary thread still starts no thread.
CI does not show the failure: in run 38993324986 (
mainf643e61d9, after #6003) Windows builds the test asExecutionTestNotBuilt.cppand skips it, and Linux, which already expected one thread, passes.Tested
Windows 11 26200, AMD Radeon RX 6700 XT (driver 32.0.21045.5002), WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON,ANYPS5_REQUIRE_VULKAN=1, onmain9bf01db66:main: fails 3/3 with the line above.A GPU mapping made on a fiber used 0 bytes of its context with a host stack and 3104 running on the context);fiberpasses.size_context < FIBER_GUEST_STACK_MINcondition removed locally: fails withGPU mapping on a fiber running on its context started 0 host threads for its import instead of one, so the test follows #6003's limit.ctest --parallel 4 --timeout 120onmain: 1352 tests, 3 fail: this one,agc_driver_lds_mixed_width_atomics(#5271) andagc_driver_layered_volume_vertex_no_gpl(#4768, fixed by #6436).python tools/check_conventions.py --base origin/mainwith this title and body passes.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-17T03:23:16Z.
Confirmed on NVIDIA and Intel too: i7-13700K, RTX 4080 (617.42) and Intel UHD 770 (101.6129), Windows, WinLibs GCC 15.2.0, Release,
ANYPS5_REQUIRE_VULKAN=1.mainf643e61d9:agc_driver_gpu_map_on_fiberfails on both GPUs with the same message ("started 1 host threads for its import instead of importing on the fiber's host stack").AI-assisted: yes (Claude Code)