Skip to content

fix(agc): present 8-bit resident images on SDR 10-bit displays - #10623

Closed
itsbo5 wants to merge 1 commit into
boykopovar:mainfrom
itsbo5:perf/agc-resident-present-8bit-on-10bit
Closed

itsbo5 wants to merge 1 commit into
boykopovar:mainfrom
itsbo5:perf/agc-resident-present-8bit-on-10bit

Conversation

@itsbo5

@itsbo5 itsbo5 commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

What

Present 8-bit resident storage images (VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_B8G8R8A8_UNORM, and their sRGB/UINT variants) on SDR 10-bit displays through the GPU conversion path (ResidentPresent::Convert) without CPU readback fallback.

Previously, ResidentPresentPath returned ResidentPresent::None whenever tenBit was true for 8-bit storage textures, even on standard SDR displays, forcing PresentableResident to fall back to an expensive PCIe readback of the full framebuffer on every frame.

PQ displays (DisplayPq) remain on the fallback/conversion path to preserve proper PQ-to-SDR tone mapping and HDR passthrough constraints.

Tested

  • Built and verified with a standalone run of the updated decision tests in core/libs/prx/libSceAgcDriver/tests/ResidentPresent.cpp (all decision assertions pass, including sRGB to 10-bit SDR conversion and PQ rejection).
  • Tested on Windows 11
  • Verified in Unreal Engine 4 titles requesting 10-bit output with 8-bit resident storage targets: eliminated CPU readback stall and restored full GPU framerates.

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: none
  • GPUs tested: Driver 576.80, Windows 11
  • AI-assisted: yes

@github-actions github-actions Bot added perf Performance change perf numbers missing perf pull request without a before and after summary line labels Oct 24, 2026
@github-actions

Copy link
Copy Markdown

This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

@github-actions github-actions Bot added the agc libSceAgc* label Oct 24, 2026
@MarcZX10

Copy link
Copy Markdown
Contributor

I think the current rule also enables a wrong color path for PQ output. ResidentPresentPath now returns Blit for VK_FORMAT_B8G8R8A8_UNORM on every ten-bit format, including both Bgr10Pq and Rgb10Pq (the updated test explicitly expects this). In PresentDisplayBuffer, DisplayPq(buffer.pixelFormat) selects the HDR10 passthrough/HDR scaler path; without this change, an 8-bit resident image is rejected and decoded through DisplayBuffer.cpp, where decodeTexel(..., pq, whiteNits) performs PQ-to-SDR conversion for the SDR output path. With Blit, direct is true, so the encoded 8-bit source is sent straight through PresentationScaler::RecordBlitFrom to the output image, skipping that conversion. For PQ + an HDR10 surface, present() also requires drawn || clearOnly || (hdrScaler && !dumpFrame); a direct resident blit does not satisfy that requirement, so this path appears to fail for HDR10 passthrough when frame dumping is off.

Could you keep the PQ cases on the conversion/fallback path (or add an explicitly PQ-aware GPU conversion path), and add a regression that covers PQ on both SDR and HDR10 surfaces? The current decision-only assertion cannot validate either output color behavior. I have not run a GPU integration test for this change.

@MarcZX10 MarcZX10 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.

The current implementation enables a direct blit for 8-bit resident images for every ten-bit display, including PQ. The existing presentation code uses DisplayPq to select tone mapping for SDR output and HDR10 passthrough for an HDR surface. The new Blit path bypasses the former conversion and, for HDR10 passthrough, fails the present() precondition unless the HDR scaler path is used. This is a correctness blocker for the PQ cases now asserted by the tests. Please keep PQ on the conversion/fallback path or add a PQ-aware GPU conversion path, and cover both SDR and HDR10 output behavior. The paired performance traces requested by the perf label are also still missing. Details and the source-path evidence are in my discussion comment. I did not run a GPU integration test.

@itsbo5
itsbo5 force-pushed the perf/agc-resident-present-8bit-on-10bit branch from 5b65588 to d2eea56 Compare October 24, 2026 15:05
@itsbo5 itsbo5 changed the title perf(agc): allow direct GPU presentation for 8-bit resident images on… fix(agc): present 8-bit resident images on SDR 10-bit displays Oct 24, 2026
@github-actions github-actions Bot removed perf Performance change perf numbers missing perf pull request without a before and after summary line labels Oct 24, 2026
@itsbo5

itsbo5 commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

The current implementation enables a direct blit for 8-bit resident images for every ten-bit display, including PQ. The existing presentation code uses DisplayPq to select tone mapping for SDR output and HDR10 passthrough for an HDR surface. The new Blit path bypasses the former conversion and, for HDR10 passthrough, fails the present() precondition unless the HDR scaler path is used. This is a correctness blocker for the PQ cases now asserted by the tests. Please keep PQ on the conversion/fallback path or add a PQ-aware GPU conversion path, and cover both SDR and HDR10 output behavior. The paired performance traces requested by the perf label are also still missing. Details and the source-path evidence are in my discussion comment. I did not run a GPU integration test.

Thanks for the catch regarding PQ displays! I've updated the implementation so that PQ formats (DisplayPq(pixelFormat)) explicitly remain on the conversion/fallback path (ResidentPresent::None) to preserve proper PQ-to-SDR tone mapping and avoid violating HDR10 presentation preconditions.

The GPU presentation path (Blit/Convert) is now only enabled for non-PQ SDR 10-bit displays, and the PQ regression expectation in ResidentPresent.cpp has been preserved. I've also updated the PR to fix(agc) to reflect that this fixes the missing SDR 10-bit resident presentation case.

case VK_FORMAT_B8G8R8A8_UNORM:
case VK_FORMAT_B8G8R8A8_SRGB:
if (pq) return ResidentPresent::None;
return blitSource ? ResidentPresent::Blit : ResidentPresent::Convert;

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.

This branch now returns Blit for sRGB storage whenever blitSource is true. For example, the still-present assertion at ResidentPresent.cpp:44 expects ResidentPresent::Convert for VK_FORMAT_R8G8B8A8_SRGB → Rgba8, but this exact head returns Blit. I compiled the exact-head DisplayFormat.cpp with a focused check; it printed actual=1 (Blit), expected=2 (Convert), and exited nonzero. The test’s reason is relevant: blitting an sRGB source applies sRGB decoding, so it cannot take this direct path. Please preserve conversion for both sRGB storage formats and add coverage for sRGB to 10-bit SDR as well. The advertised decision tests do not pass on this head.

@MarcZX10 MarcZX10 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.

Reviewed updated exact head d2eea5654f69048474f231db873bcd6d77f6c4b4. The earlier PQ concern is addressed by keeping PQ on the fallback path and adding PQ decision assertions. A focused exact-source check found a regression: the new common 8-bit branch blits sRGB source formats, while the existing test expects conversion; I confirmed this by compiling the exact-head DisplayFormat.cpp and observing Blit instead of Convert. The full ResidentPresent binary was not run, and no GPU integration test was run. See the inline finding for the reproduction and requested correction.

@MarcZX10

Copy link
Copy Markdown
Contributor

The current PR body now contains only the What section; the Tested and Checklist sections are missing. The new hosted conventions run failed for exactly those two required sections (run 40105684360). Please restore the full repository template and fill in the test details and checklist before requesting another review.

@itsbo5
itsbo5 force-pushed the perf/agc-resident-present-8bit-on-10bit branch from d2eea56 to 06e5df1 Compare October 24, 2026 15:23
@itsbo5

itsbo5 commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

The current PR body now contains only the What section; the Tested and Checklist sections are missing. The new hosted conventions run failed for exactly those two required sections (run 40105684360). Please restore the full repository template and fill in the test details and checklist before requesting another review.

I have updated ResidentPresentPath so that all 8-bit resident storage formats (UNORM, sRGB, and UINT) route to ResidentPresent::Convert on SDR 10-bit displays ((tenBit && pq) ? ResidentPresent::None : ResidentPresent::Convert). This ensures sRGB is converted via the GPU detile/presentation pass rather than blitted directly, avoiding unintentional sRGB hardware decoding while still keeping presentation resident on the GPU.
I also added coverage for sRGB on 10-bit SDR displays to ResidentPresent.cpp and verified that all decision test assertions pass. In addition, I have restored the full PR template with the Tested and Checklist sections in the PR description.

@MarcZX10 MarcZX10 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.

Re-reviewed exact head 06e5df182b00c44ffdc03d4e8cf568a8edefc2d9. The source now keeps PQ on the fallback path and sends SDR 10-bit 8-bit UNORM, sRGB, and UINT storage through Convert; the added sRGB assertions address my prior exact-source finding. The remaining review blockers are validation evidence and the required performance report:

  • This changes the AGC presentation path. AGENTS.md requires the same focused tests on main and the change with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, and VK_LAYER_KHRONOS_validation, plus checking for missing-layer warnings and new VUID- messages. The body reports decision assertions and Windows title runs, but does not report those paired validation-layer runs. Hosted product jobs are skipped.
  • The body still claims the change eliminated a readback stall and restored full GPU framerates. The repository requires tools/trace_digest.py summaries and attached main/change traces from the same machine, scene, and title for a speed claim. Those captures are absent. Please add the paired evidence or remove the speed claim and relabel if appropriate.
  • The GPU checklist gives driver and OS but omits the GPU vendor/model required for AGC changes.

The reported standalone decision tests and UE4 runs are author-reported; I did not independently run a GPU test. I have not found a new source-logic defect in this head.

@adriadam10 adriadam10 self-assigned this Oct 26, 2026

@adriadam10 adriadam10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The PQ and sRGB points from the earlier review are fixed in the code. Two things are still missing:

  • Pixel equivalence. Convert for an 8-bit resident image on a 10-bit display (VulkanDevice.cpp:3715, DetileImage with tenBit) reinterprets the raw 8-bit RGBA word as a packed 2-10-10-10 word. That is only correct if it matches what the guest-memory path shows for the same bytes. The change that introduced the rule (6142e82) tested 8-bit→8-bit and 10-bit→10-bit only. ResidentPresent.cpp pins the decision, not the pixels. Please add a test that presents an 8-bit image on an Rgba8|TenBit and a Bgra8|TenBit display through the GPU path and compares it with the CPU decode and the guest-memory path, like the existing converted-image checks in agc_driver_recorder_tests.
  • Evidence. The PR is labeled perf, so it needs the aps5-summary.jsonl lines for main and the change, from the same title, scene and machine, plus the tools/trace_digest.py output. "UE4 titles" needs the title/PPSA and the numbers. For an AGC change, AGENTS.md also needs the focused ctest -R resident_present -V (and agc_driver_recorder_tests) logs on main and on the change with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, showing no new VUID- errors.

@adriadam10 adriadam10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The PQ and sRGB points are fixed in the code, thanks. Two things are still missing:

  • Pixel equivalence: Convert for an 8-bit resident image on a 10-bit display (VulkanDevice.cpp:3715, DetileImage with tenBit) reads the raw 8-bit RGBA word as a packed 2-10-10-10 word. ResidentPresent.cpp pins only the decision, not the pixels. Please add a test that presents an 8-bit image on an Rgba8|TenBit and a Bgra8|TenBit display through the GPU path and compares it with the CPU decode (DisplayBuffer.cpp decodeTexel) and the guest-memory path, like the converted-image checks in agc_driver_recorder_tests.
  • Evidence: the PR is labeled perf, so it needs the aps5-summary.jsonl lines for main and the change from the same title, scene and machine, plus the tools/trace_digest.py output. "UE4 titles" needs the title/PPSA and the numbers. For an AGC change, also the focused ctest -R resident_present -V and agc_driver_recorder_tests logs on main and on the change with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, showing no new VUID- errors.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 06e5df1 merged onto main 6b48aee · tested 2026-10-31 06:29 UTC · 24 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,314 passed · 4 failed (0 new, 3 also fail on main, 1 unstable on main) · 41 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,359 of 3,041 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 (863 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_bda_device 48.6 s, ⚠️ agc_driver_graphics_maps_fallback 31.5 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_submit_progress: failed in 6 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (3 IDs in 380 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (380 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_passes, agc_driver_address_passes_draw_transitions, agc_driver_address_passes_targets_split, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, and 372 more
VUID-vkCmdCopyImage-srcImage-01548 (12 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 4 more
VUID-vkCmdCopyImage-srcImage-01551 (12 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 4 more
Skipped (41)
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_msaa_dcc_compared_import_2: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_4: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_8: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
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_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
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_video_out_color_space: 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_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_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_cpuflip_in_order: 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_eop: 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_eop_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_eop_main: 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_fresh: 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_labels: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is eithe
Reproduce
git fetch origin 06e5df182b00c44ffdc03d4e8cf568a8edefc2d9 6b48aee5d2ea9fce6155163d78f8ce8dc84f7827
git checkout 6b48aee5d2ea9fce6155163d78f8ce8dc84f7827 && git merge --no-ff 06e5df182b00c44ffdc03d4e8cf568a8edefc2d9
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.

@CnRJay CnRJay 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.

"Eliminated CPU readback stall and restored full GPU framerates" is a speed claim, so it needs tools/trace_digest.py summaries of main and of this change from the same machine and scene. Which title was it? "Unreal Engine 4 titles" doesn't let anyone reproduce it.

This is a VideoOut/AGC change, and Tested only has a standalone run of the decision test. Please run the focused tests on main and on the change with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation on one GPU and compare for new VUID- lines. It matters here because 8-bit images on a 10-bit SDR display now take the GPU conversion on every present instead of the readback.

The new asserts in ResidentPresent.cpp only pin the enum returned by ResidentPresentPath. Nothing fails if the 8-bit to 10-bit conversion produces wrong values; a check on the converted output for one sRGB and one UNORM source would cover that.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@itsbo5 I reviewed 06e5df1. The routing change is small, but it can alter what is presented, and nothing on this head shows the pixels are right.

  1. Convert reads the 8-bit RGBA word as packed 2-10-10-10. Please add the GPU pixel-equivalence test adriadam10 asked for: Rgba8 and Bgra8 with TenBit, compared against the CPU decode and the guest-memory path. The current tests only pin the routing.
  2. The speed and UE4 title claims in the body need paired perf evidence (same machine and scene, with a trace_digest), or please remove them.

The NVIDIA CI run on this head is clean (0 new failures, no new validation IDs, 863 GPU tests), but it does not cover pixels, so it does not settle point 1.

@kiwe147

kiwe147 commented Nov 21, 2026

Copy link
Copy Markdown

Tested head 06e5df182b, applied with git apply on main fd4aeed483 together with the other 28 PRs of one batch (#22683, #23796, #23923, #24367, #24370, #24409, #24486, #24587, #18903, #18941, #19461, #21018, #21303, #21451, #21965, #23477, #23478, #23726, #24463, #12827, #14127, #14991, #20063, #24103, #24331, #24508, #24565, #15838). All applied without conflicts and the whole tree built.

Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON. GPUs: NVIDIA GeForce RTX 3080 (driver 621.24) and the AMD Radeon iGPU of the CPU (gfx1036, driver 32.0.21036.18). No validation layer. iGPU run: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ANYPS5_GPU="AMD Radeon", agc_/video tests only.

tests RTX 3080 iGPU
agc_resident_present (1 test, matched by name to the test file this PR changes) all pass all pass

Whole batch: the full ctest -j 12 (6523 tests) on the RTX 3080 has 5 failing tests; the 4 that also fail on main fd4aeed483 are agc_driver_stencil_plane_memory, agc_driver_msaa_dcc_unwatch, agc_storage_write_back_host_retile, and pr_overlap_names, which needs a newer Python than my 3.10. Intermittent in this run (pass when rerun alone, or known flaky): agc_driver_store_over_untracked. Traced to other PRs of the batch, each by reverting it and testing again: #24409 (guest_usbd); none is in this PR's area. Failing tests I could not trace to a single PR (reverting the likely candidates did not clear them): guest_net_dns_info, test_script_registration. The 2126 agc_/video tests on the iGPU have 2 failing: agc_driver_stencil_plane_memory, agc_driver_store_over_untracked (agc_driver_stencil_plane_memory also fails on main).

This is one combined tree, not a run of this PR alone.

AI-assisted: yes (Claude Code)

@mihiii1337

Copy link
Copy Markdown
Contributor

I added the requested pixel comparison as a cherry-pick on your head 06e5df182b.

On Windows 11 with an RTX 4070 Laptop (621.01), I ran agc_driver_presentation_pass and agc_resident_present on main 40206fe50d and its clean merge with your head, using the same test-only patch. On main, the direct pixel comparison passed and the presentation test stopped at the new routing assertion. Both tests passed with the PR.

The direct comparison matched the CPU and guest-memory conversion byte for byte across four combinations of RGBA8/BGRA8 UNORM and red-low/blue-low SDR10. The off-screen presentation pass preserved the full 10-bit RGB codes in both packed output formats. Filtered scaling stayed within the existing tolerance of two code values. The Khronos 1.4.369 layer loaded in all four processes, with no VUIDs or skips. That covers the pixel check requested above. AI-assisted testing.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

I am closing this for now. The maintainer review of 26 Oct asked whether Convert reading the raw 8-bit RGBA word as packed 2-10-10-10 is right for what the guest memory path holds, and that is still unanswered. There has been no push since 24 Oct. Feel free to reopen with that checked at any time and we will look at it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants