fix(agc): build the dma-buf run list import and its test on macOS #15002
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15002"
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 imellag on 2026-11-02T09:23:36Z.
What
mainstops compilinglibSceAgcDriveron macOS at two places added by the dma-buf run list import (e00eaac2ffand its test):GuestBufferMemory.cpp: the__APPLE__stand-ins for<linux/udmabuf.h>declareudmabuf_create,UDMABUF_FLAGS_CLOEXECandUDMABUF_CREATE, but notudmabuf_create_item,udmabuf_create_listandUDMABUF_CREATE_LIST, whichcreateDmaBufImportnow uses. They are added with the Linux layout.udmabufDevice()returns -1 on macOS, so neither ioctl is ever issued there.tests/execution/ScatteredRuns.cppdrivesUDMABUF_CREATE_LISTthroughmemfd_createand file seals, which only Linux has. It already skipped on Windows (skipped, udmabuf imports are Linux only); it now skips on every host that isn't Linux, instead of compiling the Linux body on macOS and stopping atMFD_CLOEXEC.Tested
macOS 27.2, Apple M4 Pro, Apple clang 21, x86-64 Release (Rosetta 2).
maindoesn't build the libraries on macOS by itself, so the tree ismain88e804b0a7+ the open macOS PRs #11554, #7631, #7804, #4630 and #14883 (FreeTypeOl NID patching), plus this branch:GuestBufferMemory.cpp:694(unknown type name 'udmabuf_create_list') and, once that is fixed, atScatteredRuns.cpp:141(use of undeclared identifier 'MFD_CLOEXEC');cmake --buildand--target libspass;ctest -R scatter:agc_driver_scattered_runsis reported as skipped.Linux and Windows compile the same code as before: the Linux path still includes
<linux/udmabuf.h>, and the test's__linux__branch is the body the previous#ifndef _WIN32selected there. Not run on them.tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pyfinds no conflicting lines. Several open PRs that conflict withmainalso editGuestBufferMemory.cpp; none of them touches the udmabuf declarations orScatteredRuns.cpp.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)