Skip to content

feat(agc): draw DB stencil copies with a driver pixel program - #16025

Merged
1 commit merged into
boykopovar:mainfrom
XatiX:feat/agc-db-stencil-copy
Nov 14, 2026
Merged

1 commit merged into
boykopovar:mainfrom
XatiX:feat/agc-db-stencil-copy

Conversation

@XatiX

@XatiX XatiX commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What

A DB copy with STENCIL_COPY set in DB_RENDER_CONTROL (bit 3, alone or with COPY_CENTROID or COPY_SAMPLE) was refused with DB_RENDER_CONTROL depth copy, resummarize or decompress is unsupported. PPSA06866 stops on it on the first loading screen with 0x88, and PPSA05666 sends the same value (#5499, #7649).

DecodeDepthCopyPass now accepts a stencil copy into a single-sample R8_UINT color target and refuses one without a stencil plane, into any other format, or combined with a depth copy. The draw is replaced by a driver pixel program, as the depth copy already is for R32_SFLOAT. It fetches the selected sample of the stencil plane through a descriptor with format 5 and no HTILE, and exports it on the first two channels (SPI_SHADER_COL_FORMAT 2, shader mask 3), so a target that swaps or masks to green also gets the value. The two programs (one and two samples) are added to DriverOwnedProgram, so their code is not captured as guest memory.

What the console DB writes for a stencil copy is not measured. The export on both channels follows the registers PPSA06866 sets (CB_COLOR0_INFO 0x00050c04, CB_TARGET_MASK 0x2, CB_SHADER_MASK 0x3).

Tests:

  • New agc_driver_stencil_copy_draw. Two stencil draws write 0x25 and then 0x5a over a shifted triangle, the copy runs, and every texel is compared with reference draws of each triangle: the copied value inside the copy's triangle, nothing outside it or in the row padding (the R8_UINT rows are 256 bytes apart). Cases: one sample with 0x88 and 0x08; two samples with 0x88 and 0x108, where the shifted draw is masked to sample 1, so the sample 0 copy must not see it and the sample 1 copy must; and both two-sample cases again into PPSA06866's alternate-swap target written through green.
  • agc_driver_graphics: decode of a stencil copy for one and two samples, its source descriptor, and the three refusals.
  • agc_driver_builtin_program_memory: the stencil copy programs are not captured, as for the depth copy.

Tested

  • Windows 11 Pro 26300, NVIDIA GeForce RTX 5080, driver 617.42, Vulkan SDK layer 1.4.363.0, WinLibs GCC 15.2.0 Release, ANYPS5_ENABLE_SPIRV_TOOLS=OFF.
  • ctest -V -R "stencil_copy|depth_copy|stencil_known|builtin_program|native_multisample_depth|agc_driver_graphics" with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1. Each log starts with its tested commit and these variables.
    • This change (7b6ac7fb8f, on main 8eca0f607d): 7/7 passed.
    • Control, the same tree with the eight non-test files from main 8eca0f607d: agc_driver_stencil_copy_draw fails with DB_RENDER_CONTROL depth copy, resummarize or decompress is unsupported (register 0x0 = 0x00000088), the error PPSA06866 stops on. Only that test runs in the control, because the other new checks call functions main does not have.
    • Neither log reports the layer as not found, has a VUID- line or skips a test. Logs: attached in the first comment.
  • Two mutants, each run once: a copy that always reads sample 0 fails at the sample 1 case, and a copy that reads the depth plane fails at the first case.
  • PPSA06866 (Divinity: Original Sin II Definitive Edition v01.007.000), 180 s scripted run on main 7ad9749ed0 plus only this commit (as ddf1290fb7; since then only a test case was added and the branch was rebased): no DB_RENDER_CONTROL refusal, it reaches the first loading screen and its bar advances (563 presents in the first 10 s), and it stops about 19 s after launch on native multisample depth publication cannot distinguish an unwritten byte from a same-value guest store. That is the next stop on this title (blocker 4 in Divinity: Original Sin II Definitive Edition (PPSA06866) #13726), not part of this change. The log does not show whether a stencil copy ran before that point: on plain main blocker 2 came 26 to 35 s in, and the driver logs no stencil copy that succeeds.
  • tools/check_conventions.py passes. No open PR found for stencil copy.

Found while writing the test, not changed here: a guest's stencil bytes are not loaded into a new stencil plane. A stencil EQUAL 0x25 draw over stencil memory filled with 0x25 passed on 0 of 256 texels. The test writes both values with draws, so it does not depend on this.

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
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA06866 Divinity: Original Sin II Definitive Edition (PPSA06866) #13726 (blocker 2; the title then stops at blocker 4)
  • GPUs tested: NVIDIA GeForce RTX 5080, driver 617.42, Windows 11 Pro 26300
  • AI-assisted: yes

🤖 Generated with Claude Code

@XatiX

XatiX commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Test logs for the description's Tested section, attached below:

  • stencil-copy-change-7b6ac7fb8f-ctest.log: this change at 7b6ac7fb8fb37344a4137a77f5dd8b6835d1b65a, on main 8eca0f607d8c62023a1fd83af15f096c3c22132e. 7/7 passed.
  • stencil-copy-main-8eca0f607d-control-ctest.log: the same tree with the eight non-test files from main 8eca0f607d. agc_driver_stencil_copy_draw fails with DB_RENDER_CONTROL depth copy, resummarize or decompress is unsupported (register 0x0 = 0x00000088).
  • stencil-copy-build-settings.txt: the build settings of the build-test tree both ran from.

Each log's first lines record its tested revision, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 and the ctest command. Neither has a VUID- line, a missing-layer message or a skipped test.

stencil-copy-build-settings.txt
stencil-copy-change-7b6ac7fb8f-ctest.log
stencil-copy-main-8eca0f607d-control-ctest.log

@github-actions github-actions Bot added unblocks title Names a title ID on the Unblocks line agc libSceAgc* labels Nov 5, 2026
@JJenkx

JJenkx commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Windows check of head 7b6ac7fb8f, merged onto main e772fb25cc (f11e614d8e, clean merge).

Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, with ANYPS5_REQUIRE_VULKAN=1 and Vulkan validation layers enabled. The hosted Windows check does not run these tests on pull requests.

  • The 45 agc_driver_graphics_tests and guest_font_graphics_tests cases this PR touches pass in 3 of 3 runs, none skipped.
  • None of them created a Vulkan instance, so this covers the host-side logic on Windows, not the new driver pixel program running on a GPU.

AI-assisted: yes.

@DonRyuzaki

Copy link
Copy Markdown
Contributor

Adding GPU execution coverage on Windows RDNA3: I built PR head 7b6ac7fb8f merged cleanly onto main e772fb25cc (local merge a3517ac0ca) with WinLibs GCC 15.2 Release, then ran it on an AMD Radeon RX 7800 XT (subgroup 64; Windows 11 build 26300) with ANYPS5_REQUIRE_VULKAN=1, shader cache off, and a loaded Khronos validation layer.

agc_driver_stencil_copy_draw passed in three separate runs with no skips, including its one/two-sample and alternate-swap assertions. agc_driver_builtin_program_memory passed with the Radeon selected; the host-side agc_driver_graphics test also passed. This adds actual Radeon Vulkan execution to @JJenkx's Windows host-side check. @XatiX's description already records the NVIDIA GPU run and main control, which I did not repeat. My older local validation layer reports VUID-VkDeviceCreateInfo-pNext-pNext during device creation; I saw that same ID on a current-main control in this environment and no other VUID ID.

These focused tests do not establish game or console behavior. AI-assisted: yes.

@github-actions github-actions Bot added review queue Next in the maintainer review queue: checks pass, no open change request, no conflict and removed review queue Next in the maintainer review queue: checks pass, no open change request, no conflict labels Nov 5, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 7b6ac7f merged onto main e772fb2 · tested 2026-11-05 14:37 UTC · 40 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,883 passed · 9 failed (0 new, 6 also fail on main, 3 unstable on main) · 62 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,954 of 4,074 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (980 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.5 s, ⚠️ public_headers 44.7 s, ⚠️ agc_driver_image_sample_unnormalized 43.5 s, ⚠️ agc_driver_lazy_resolved_abi 40.7 s, ⚠️ agc_shader_sampler_limits 34.2 s
Unstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 9 of the last 10 main runs
agc_submit_progress: failed in 9 of the last 10 main runs
agc_submit_progress_no_timeline: failed in 9 of the last 10 main runs
Failing on main too (6, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_submit_progress
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 594 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (594 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, and 586 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
Skipped (62)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_image_table_vouched_lookups: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a watched imported table cannot be vouched for
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_recorded_draw_staging: skipped, the device does not keep host imports write-watched, so the target is never resident
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_idle_publish_wait: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a forced watch of the import reads its submissions as CPU stores
agc_shadowed_key_stores: skipped, the device imports no watched host memory under a unit shadow
agc_small_tiled_shadow_label: skipped, host imports are unavailable: the test block is not imported and watched
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_net_ctl_disconnected: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_device_capability: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_disabled: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_four_k: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_height_only: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_limit: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_malformed: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_width_only: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECON
Reproduce
git fetch origin 7b6ac7fb8fb37344a4137a77f5dd8b6835d1b65a e772fb25cc72ee5faf77847f06bbc69533016e82
git checkout e772fb25cc72ee5faf77847f06bbc69533016e82 && git merge --no-ff 7b6ac7fb8fb37344a4137a77f5dd8b6835d1b65a
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 7b6ac7f merged onto main 080dbd0 · tested 2026-11-05 20:16 UTC · 23 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,895 passed · 4 failed (0 new, 3 also fail on main, 1 unstable on main) · 54 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,953 of 4,077 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (978 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.3 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 2 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)
agc_driver_submit_progress: Failed in the parallel run; also passed only on retry in 21 other runs in the last 7 days
Validation IDs already present on main (9 IDs in 594 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (594 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, and 586 more
VUID-VkShaderModuleCreateInfo-pCode-08737 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-VkShaderModuleCreateInfo-pCode-08739 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-VkShaderModuleCreateInfo-pCode-08741 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
VUID-VkPipelineShaderStageCreateInfo-module-parameter (1 test): agc_driver_float16_unused_nan_payloads
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 (1 test): agc_driver_float16_unused_nan_payloads
Skipped (54)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl_disconnected: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_device_capability: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_disabled: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_four_k: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_height_only: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_limit: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_malformed: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_width_only: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpufl
Reproduce
git fetch origin 7b6ac7fb8fb37344a4137a77f5dd8b6835d1b65a 080dbd08c6f83be5a1768af7d3342d701bf34d21
git checkout 080dbd08c6f83be5a1768af7d3342d701bf34d21 && git merge --no-ff 7b6ac7fb8fb37344a4137a77f5dd8b6835d1b65a
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 17911 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp L198-199

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4040 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 6235 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6280 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6481 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6804 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6808 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7085 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7449 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7682 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 8246 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 8592 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 9335 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9356 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9387 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9508 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9712 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9895 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9897 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9950 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 10049 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 10193 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 10249 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 10351 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 11442 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 11444 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 11551 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 11825 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 13863 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 13920 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 13928 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 13929 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 14032 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 14344 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 14944 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 15499 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 15548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 15570 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 15621 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 16880 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 17056 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 17524 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 17611 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 17899 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 17915 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 17956 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 18139 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 18185 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 19100 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 19119 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 19181 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 19620 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 19852 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp

@oneandonlydean oneandonlydean self-assigned this Nov 8, 2026

@gabichuuuuu gabichuuuuu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran 7b6ac7fb8f merged on main 302864d on Windows 11 x64 (WinLibs GCC 15.2), on an NVIDIA laptop GPU (Turing, driver 621) and an Intel iGPU (driver 101.70xx), with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (Khronos validation layer 1.4.368), ctest -R '^(agc_driver_graphics$|agc_driver_builtin_program_memory|agc_driver_stencil_copy)' -V:

main change, 2 runs each
NVIDIA 2/2 3/3 twice
Intel 2/2 3/3 twice
  • The PR's test changes don't build on main (DepthCopyPass::stencil and the new DepthCopySourceWords argument come with this PR), so there's no run of the tests without the change.
  • The layer was inserted in every test that opens a device (agc_driver_graphics open none). No log has was not found but was requested by env var VK_INSTANCE_LAYERS, and no log on either side has a VUID-. To be sure validation messages reach these logs, the same layer with best practices on printed 28 BestPractices- warnings into an agc_driver_recorder log on each GPU.

AI-assisted: yes.

@github-actions github-actions Bot added the review queue Next in the maintainer review queue: checks pass, no open change request, no conflict label Nov 8, 2026
@milescoviello

milescoviello commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Test runs for head 7b6ac7fb8f against its merge base 8eca0f607d. I built agc_driver_graphics_tests, agc_driver_prepared_graphics_tests, agc_driver_prepared_unregistered_graphics_tests on each side and ran the matching tests 3 times each with ctest.

Linux: Ubuntu 26.04.1, RTX 4070 Ti, NVIDIA 615.71.09, GCC 15.2, Release.

test merge base this head
agc_address_copy_cap 3 passed 3 passed
agc_address_copy_cap_mirror 3 passed 3 passed
agc_address_copy_cap_remembered 3 passed 3 passed
agc_address_space_unwatched_mirror_import 3 passed 3 passed
agc_command_batch_fence_failure 3 passed 3 passed
agc_compute_descriptor_layout_flags 3 passed 3 passed
agc_copy_input_kept_bytes 3 passed 3 passed
agc_depth_copy_kept_bytes 3 passed 3 passed
agc_descriptor_cache 3 passed 3 passed
agc_descriptor_cache_failure 3 passed 3 passed
agc_descriptor_pool_reset_failure 3 passed 3 passed
agc_driver_address_space_teardown 3 passed 3 passed
agc_driver_alpha_to_coverage_state 3 passed 3 passed
agc_driver_covered_centroid_state 3 passed 3 passed
agc_driver_depth_bounds_state 3 passed 3 passed
agc_driver_fault_only_template_records 3 passed 3 passed
agc_driver_fault_only_template_records_kept 3 passed 3 passed
agc_driver_fault_only_template_records_loop_guard 3 passed 3 passed
agc_driver_fault_only_template_records_loop_guard_kept 3 passed 3 passed
agc_driver_graphics 3 passed 3 passed
agc_driver_graphics_maps_fallback 3 passed 3 passed
agc_driver_linear_volume_nonresident 3 passed 3 passed
agc_driver_msaa_dcc_state 3 passed 3 passed
agc_driver_prepared_graphics 3 passed 3 passed
agc_driver_prepared_graphics_prebuild_0 3 passed 3 passed
agc_driver_prepared_graphics_prebuild_1 3 passed 3 passed
agc_driver_prepared_graphics_prebuild_unset 3 passed 3 passed
agc_driver_prepared_unregistered_graphics 3 passed 3 passed
agc_driver_sample_location_grid_fallback 3 passed 3 passed
agc_driver_sample_order_planning 3 passed 3 passed
agc_driver_undithered_alpha_to_coverage_state 3 passed 3 passed
agc_driver_unobserved_provoking_vertex 3 passed 3 passed
agc_driver_unused_viewport_depth 3 passed 3 passed
agc_graphics_profile_draw 3 passed 3 passed
agc_heap_mirror_reference_size 3 passed 3 passed
agc_heap_mirror_run_unwatch 3 passed 3 passed
agc_heap_mirror_run_unwatch_no_space_cache 3 passed 3 passed
agc_heap_mirror_unwatch 3 passed 3 passed
agc_heap_mirror_unwatch_no_space_cache 3 passed 3 passed
agc_heap_mirror_unwatched_import 3 passed 3 passed
agc_pipeline_journal 3 passed 3 passed
agc_pipeline_journal_long_paths 3 passed 3 passed
agc_pipeline_library_clear_waits_for_build 3 passed 3 passed
agc_pipeline_store_fixed_bound 3 passed 3 passed
agc_pipeline_store_growth 3 passed 3 passed
agc_pipeline_store_lazy_buffer_pool 3 passed 3 passed
agc_pipeline_store_replay_growth 3 passed 3 passed
agc_pipeline_store_touch 3 passed 3 passed
agc_sparse_buffer_holes 3 passed 3 passed
agc_sparse_heap_mirror_budget 3 passed 3 passed
agc_sparse_heap_mirror_unwatch 3 passed 3 passed
agc_sparse_heap_mirror_unwatch_no_space_cache 3 passed 3 passed

Windows: Windows 11 VM, GeForce GT 1030 (Pascal), NVIDIA 582.78, WinLibs GCC 15.2 UCRT, Release.

test merge base this head
agc_address_copy_cap 3 passed 3 passed
agc_address_copy_cap_mirror 3 passed 3 passed
agc_address_copy_cap_remembered 3 passed 3 passed
agc_address_space_unwatched_mirror_import 3 passed 3 passed
agc_command_batch_fence_failure 3 passed 3 passed
agc_compute_descriptor_layout_flags 3 passed 3 passed
agc_copy_input_kept_bytes 3 passed 3 passed
agc_depth_copy_kept_bytes 3 passed 3 passed
agc_descriptor_cache 3 passed 3 passed
agc_descriptor_pool_reset_failure 3 passed 3 passed
agc_driver_address_space_teardown 3 passed 3 passed
agc_driver_alpha_to_coverage_state 3 passed 3 passed
agc_driver_covered_centroid_state 3 passed 3 passed
agc_driver_depth_bounds_state 3 passed 3 passed
agc_driver_fault_only_template_records 3 passed 3 passed
agc_driver_fault_only_template_records_kept 3 passed 3 passed
agc_driver_fault_only_template_records_loop_guard 3 passed 3 passed
agc_driver_fault_only_template_records_loop_guard_kept 3 passed 3 passed
agc_driver_graphics 3 passed 3 passed
agc_driver_linear_volume_nonresident 3 passed 3 passed
agc_driver_msaa_dcc_state 3 passed 3 passed
agc_driver_prepared_graphics 3 passed 3 passed
agc_driver_prepared_graphics_prebuild_0 3 passed 3 passed
agc_driver_prepared_graphics_prebuild_1 3 passed 3 passed
agc_driver_prepared_graphics_prebuild_unset 3 passed 3 passed
agc_driver_prepared_unregistered_graphics 3 passed 3 passed
agc_driver_sample_location_grid_fallback 3 passed 3 passed
agc_driver_sample_order_planning 3 passed 3 passed
agc_driver_undithered_alpha_to_coverage_state 3 passed 3 passed
agc_driver_unobserved_provoking_vertex 3 passed 3 passed
agc_driver_unused_viewport_depth 3 passed 3 passed
agc_graphics_profile_draw 3 passed 3 passed
agc_heap_mirror_reference_size 3 passed 3 passed
agc_heap_mirror_run_unwatch 3 passed 3 passed
agc_heap_mirror_run_unwatch_no_space_cache 3 passed 3 passed
agc_heap_mirror_unwatch 3 passed 3 passed
agc_heap_mirror_unwatch_no_space_cache 3 passed 3 passed
agc_pipeline_journal 3 passed 3 passed
agc_pipeline_journal_extended_paths 3 passed 3 passed
agc_pipeline_journal_long_paths 3 passed 3 passed
agc_pipeline_library_clear_waits_for_build 3 passed 3 passed
agc_pipeline_store_fixed_bound 3 passed 3 passed
agc_pipeline_store_growth 3 passed 3 passed
agc_pipeline_store_lazy_buffer_pool 3 passed 3 passed
agc_pipeline_store_replay_growth 3 passed 3 passed
agc_pipeline_store_touch 3 passed 3 passed
agc_sparse_buffer_holes 3 passed 3 passed
agc_sparse_heap_mirror_budget 3 passed 3 passed
agc_sparse_heap_mirror_unwatch 3 passed 3 passed
agc_sparse_heap_mirror_unwatch_no_space_cache 3 passed 3 passed

Khronos validation layer (added 11-09): agc_driver_stencil_copy_draw and agc_driver_builtin_program_memory on this head, run with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, VK_LOADER_DEBUG=layer, ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1 (layer 1.4.341; Linux, RTX 4070 Ti, NVIDIA 615.71.09). Both pass. The loader inserted the layer for each of the 3 Vulkan devices created, and there are no VUID- lines.

Every test I ran passes on this head, apart from any skips listed.

AI-assisted: yes (Claude Code)

@Lucke0051

Copy link
Copy Markdown
Contributor

Ran this PR merged onto main 095ff72 (PR head 7b6ac7f) on two GPUs and compared with main on the same machine (CachyOS, Linux 7.3.1, gcc 16.2.1 Release).

GPU AGC, shader and VideoOut tests
NVIDIA GeForce RTX 3070 Ti, NVIDIA 615.78.08 no difference from main; agc_driver_stencil_copy_draw passes
Intel UHD Graphics 630 (CML GT2), Mesa 26.2.6 no difference from main; agc_driver_stencil_copy_draw passes
Failures main has too on this machine

Command: ANYPS5_GPU=<NVIDIA|UHD> ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -j8 --timeout 120 -R '^(agc|video_out|shader)'. No validation layers installed yet, so no VUID- comparison.

AI-assisted: yes (Claude ran the tests and drafted this comment)

@ryanc2112

Copy link
Copy Markdown
Contributor

A GFX8 data point: AMD Radeon RX 570 (RADV POLARIS10), Mesa 26.2.5, SteamOS 3.8.28 (Arch distrobox), GCC 16.2.1, Release. Head 7b6ac7fb8f merged onto main bbaa4bf253 (clean merge), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and ctest -V --no-tests=error. No log reports was not found but was requested by env var VK_INSTANCE_LAYERS.

30 tests, 3 runs each: the stencil and depth copy tests (stencil_copy_draw, depth_copy_draw, stencil_known_replace, depth_copy_kept_bytes), builtin_program_memory, native_multisample_depth, the 23 agc_driver_native_depth_* tests and agc_driver_graphics. All 30 pass on all 3 runs, with 0 VUID- errors.

The 1,500 AGC, shader, VideoOut and Vulkan tests, this PR on main, once each:

AI-assisted: yes (Claude Code)

@ycbuzi

ycbuzi commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@XatiX I tested this on Divinity: Original Sin 2 - Definitive Edition (PPSA06866) on Windows, and it removes the stop it describes.

  • main 9d2e737432: the game stops on DB_RENDER_CONTROL depth copy, resummarize or decompress is unsupported (register 0x0 = 0x00000088). That happened in an unattended pipeline run on 11-09 and again while playing it by hand today.
  • With this PR (head 7b6ac7fb8f merged onto 9d2e737432): that stop is gone. The game draws 3217 frames and runs for 90 s, then stops in a different place: compute shader 0x37620a400: AGC graphics: native multisample depth publication cannot distinguish an unwritten byte from a same-value guest store.

That later stop is in the multisample depth code, not in the stencil copy this PR adds. I stacked three open PRs from that area on top of this one. Each still stops on the same message:

Stacked with this PR Result
#10492 ec6f18ac80 stops after 43 s (750 frames)
#15941 7ce55ad00e stops after 87 s (3316 frames)
#17890 08ba519102 stops after 27 s (706 frames)

Tested on Windows 11, AMD Ryzen 9 7900, RTX 4070 SUPER, WinLibs GCC 15.2.0, Release build. Every run was an unattended launch with no controller input, with the PR's libraries and the libraries that link against them swapped into the converted game.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed review queue Next in the maintainer review queue: checks pass, no open change request, no conflict labels Nov 14, 2026
A DB copy with STENCIL_COPY set (DB_RENDER_CONTROL 0x8, alone or with
COPY_CENTROID or COPY_SAMPLE) was refused. It now draws the stencil
plane into a single-sample R8_UINT color target with a driver pixel
program, like the depth copy does for R32 float. The source descriptor
reads the stencil plane without HTILE. The program is driver owned, so
its code is not captured as guest memory.

agc_driver_stencil_copy_draw checks the copied values texel by texel
for one- and two-sample planes, including that a sample 1 copy sees a
stencil write masked to sample 1 and a sample 0 copy does not, and an
alternate-swap target written through green only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
@XatiX
XatiX force-pushed the feat/agc-db-stencil-copy branch from 7b6ac7f to a7606ec Compare November 14, 2026 11:50
@github-actions github-actions Bot added review queue Next in the maintainer review queue: checks pass, no open change request, no conflict and removed needs rebase Conflicts with main, rebase needed labels Nov 14, 2026
@oneandonlydean oneandonlydean closed this pull request by merging all changes into boykopovar:main in 4c2ad06 Nov 14, 2026
MatteoSid pushed a commit to MatteoSid/AnyPS5 that referenced this pull request Nov 14, 2026
feat(agc): draw DB stencil copies with a driver pixel program
@github-actions github-actions Bot removed the review queue Next in the maintainer review queue: checks pass, no open change request, no conflict label Nov 14, 2026
XatiX pushed a commit to XatiX/AnyPS5 that referenced this pull request Nov 14, 2026
Net of test/dos2-main-04a9eb b411d5f..e3f99a6 over the stencil copy
(boykopovar#16025, already in main), without the draw cache and heap-run commits:
- falsely flagged pages: NoStoreSinceLastCollect, per-page hashes of what the
  surface imported, captured or published, capture retries
- same-value stores stay visible to publication
- publish only the HTILE plane for a read inside it
- collect memo in the native depth check, early leave within an epoch
- held publication built from a queued fill's pattern, with its test

Divinity no longer stops on "native multisample depth publication cannot
distinguish..."; it reaches the Campaign menu (direct 130.6 ms, old path
123.1 ms per frame there). agc_driver_native_multisample_depth and
agc_driver_stencil_copy_draw pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
XatiX pushed a commit to XatiX/AnyPS5 that referenced this pull request Nov 14, 2026
Divinity is not a test title; upstream reworked this code. DepthSurface.cpp is upstream plus the boykopovar#16025 change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@XatiX
XatiX deleted the feat/agc-db-stencil-copy branch November 17, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.