Repository navigation
test(agc): run the present upscale test on macOS - #19461
oneandonlydean merged 1 commit into
Conversation
|
Windows check of head The merge builds, but
It prints AI-assisted: yes. |
|
Checked that Linux is unchanged, as the description says, with the Khronos validation layer on a Linux machine with an NVIDIA GPU and a real Wayland display. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor
No new AI-assisted: yes (Claude Code) |
kurexw
left a comment
There was a problem hiding this comment.
Tested on an Apple M4 (MacBook Air, macOS 27.2, MoltenVK 1.4.2 and the validation layer from the LunarG SDK 1.4.363.1, x86-64 build under Rosetta).
Base: main at a72186d plus #22056 and #22074, two build fixes that main currently needs on macOS.
I ran ctest -R 'present_upscale|linear_target|frame_(replay|capture)|label' (65 tests) 3 times on each side with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer:
agc_driver_present_upscale: Skipped 3/3 on the base, Passed 3/3 with this PR. The loader inserts the layer, and there is noVUID-and nowas not found but was requested.- The other 64 tests have the same results on both sides. The only difference is
agc_driver_label_after_import_copy, which is a known timing flake on this machine and fails on both sides. VUID totals are identical (18 on each side, all from tests this PR doesn't touch).
This confirms the author's M4 Pro result on a second Apple machine.
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Not run here: Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
What
agc_driver_present_upscalenever ran on macOS: it loadedlibvulkan.so.1on every host that is not Windows, so on macOS it printedskipped, no usable Vulkan deviceeven withANYPS5_REQUIRE_VULKAN=1. It is the only test undercorethat names the Windows loader without naming the macOS one. The test already lists MoltenVK among the drivers with headless surfaces, so it was meant to run there.Two changes, both in the test:
libvulkan.1.dylibon macOS, asVulkanDevice.cppand the other AGC tests do;VK_KHR_portability_enumerationandVK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHRon macOS, as the other AGC tests do. Without it the loader hides MoltenVK andvkCreateInstancefails.Tested
macOS 27.2, Apple M4 Pro, x86-64 build under Rosetta 2, MoltenVK 1.4.2 and the validation layer of Vulkan SDK 1.4.363.0, with
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer,ctest --test-dir build -R present_upscale -V:main(d4556df):skipped, no usable Vulkan device, reported by CTest asSkipped.AGC graphics: vkCreateInstance failed,Failed.Passed. The log showsInsert instance layer "VK_LAYER_KHRONOS_validation", nowas not found but was requested by env var VK_INSTANCE_LAYERSand noVUID-line.Linux and Windows are untouched: both additions are inside
__APPLE__branches.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)