test(agc): build the pipelined flush read order test on hosts without MAP_FIXED_NOREPLACE #25227
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25227"
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 Gonic0 on 2026-11-21T19:40:33Z.
What
agc_driver_pipelined_flush_read_order_testsno longer builds on macOS since75241b2631(#18809):macOS has no
MAP_FIXED_NOREPLACE, soTestMultisampledSingleClearDrainsDrawPipelinetook the branch that only returns, and the code after it still usedmapped, which that branch never declares. The case's body is now compiled only where it can map its fixed block (_WIN32orMAP_FIXED_NOREPLACE), and the function is empty elsewhere, which is what the early return meant. Linux and Windows compile the same code as before. The driver is unchanged.Tested
macOS 27.3, Apple M5 Pro, Apple clang, x86-64 Release under Rosetta 2,
BUILD_TESTING=ON. Tree:main6d55d9b269(which already has #18809) plus #17425, #11049 and #25116, whichmainstill needs to build on macOS (#24117). This branch is rebased ontomain8763aeffdc, which has not changed this file since.ctest --test-dir build -R pipelined_flush_read_order -VwithANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layer, on MoltenVK from Vulkan SDK 1.4.363.0 (validation layer 1.4.363):main: the test executable does not compile on macOS, so there is nomainlog to compare.agc_driver_pipelined_flush_read_order,..._draw_pipelineand..._plan_verifypass in 3 of 3 runs. Every run's log showsInsert instance layer "VK_LAYER_KHRONOS_validation"for each test, none showswas not found but was requested by env var VK_INSTANCE_LAYERS, and none has aVUID-message.tools/check_conventions.pypasses;tools/pr_overlap.py --branchfinds no overlap with open pull requests.Not part of this change: I also tried running the multisampled case on macOS by reserving the fixed block through
GuestArena::GuestArenaAllocateFromHint_nid_postfix. The arena returns0x20f7f0000, but the driver then throwsAGC graphics: guest texture descriptor has a null base address, while the other two cases pass. That looks like a macOS difference in the AGC path, not in the test, and needs its own investigation.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
Pull request closed