test(agc): skip the udmabuf tests when /dev/udmabuf cannot be opened #21093

Merged
oneandonlydean merged 1 commit from upstream-pr/21093 into main 2026-11-16 08:30:28 +00:00
oneandonlydean commented 2026-11-15 20:29:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-15T20:29:34Z.


What

The csub, coherent atomic loads, draw input mirrors, draw input reuse and recorder draw input tests need GPU stores to reach shared direct memory, which only a dma-buf import gives. Where /dev/udmabuf cannot be opened (GitHub Linux run 43749279063, "Permission denied") the memory is copied and those tests fail. They now print "skipped, host imports are unavailable: /dev/udmabuf cannot be opened", which tools/check_skips.py accepts, and exit 77.

agc_driver_stencil_copy_draw now skips with "skipped, the device lacks VK_EXT_sample_locations for the draw's sample count" when the driver reports that custom sample locations are unsupported for the draw.

Test files only.

Tested

Linux, RTX 4090, ANYPS5_REQUIRE_VULKAN=1, through gpu-ctest.

  • Normal: agc_driver_global_atomic_csub, agc_driver_stencil_copy_draw, agc_driver_coherent_atomic_loads_enabled, agc_driver_recorder, agc_draw_input_mirrors, agc_draw_input_reuse all pass; check_skips: 0 skipped.
  • With open("/dev/udmabuf") failing with EACCES (LD_PRELOAD): csub, coherent loads, mirrors and reuse skip with the line above and check_skips reports 4 skipped, all expected. agc_driver_recorder passes instead of failing.
  • Not tested: the stencil_copy_draw skip path (the 4090 has VK_EXT_sample_locations).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream
  • Unimplemented paths throw; no silent stubs added
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source: none added
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA RTX 4090, Linux
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5326876280 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21093). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-15T20:29:34Z. --- ### What The csub, coherent atomic loads, draw input mirrors, draw input reuse and recorder draw input tests need GPU stores to reach shared direct memory, which only a dma-buf import gives. Where /dev/udmabuf cannot be opened (GitHub Linux run 43749279063, "Permission denied") the memory is copied and those tests fail. They now print "skipped, host imports are unavailable: /dev/udmabuf cannot be opened", which tools/check_skips.py accepts, and exit 77. agc_driver_stencil_copy_draw now skips with "skipped, the device lacks VK_EXT_sample_locations for the draw's sample count" when the driver reports that custom sample locations are unsupported for the draw. Test files only. ### Tested Linux, RTX 4090, ANYPS5_REQUIRE_VULKAN=1, through gpu-ctest. - Normal: agc_driver_global_atomic_csub, agc_driver_stencil_copy_draw, agc_driver_coherent_atomic_loads_enabled, agc_driver_recorder, agc_draw_input_mirrors, agc_draw_input_reuse all pass; check_skips: 0 skipped. - With open("/dev/udmabuf") failing with EACCES (LD_PRELOAD): csub, coherent loads, mirrors and reuse skip with the line above and check_skips reports 4 skipped, all expected. agc_driver_recorder passes instead of failing. - Not tested: the stencil_copy_draw skip path (the 4090 has VK_EXT_sample_locations). ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt and the licence notice of code adapted from upstream - [x] Unimplemented paths throw; no silent stubs added - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source: none added - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA RTX 4090, Linux - [x] AI-assisted: yes
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!21093
No description provided.