fix(agc): keep the guest's sample order where pixel (0,0)'s locations stand in for a 2x2 grid #6683

Merged
EagleBearerYS merged 39 commits from upstream-pr/6683 into main 2026-10-21 10:00:13 +00:00
EagleBearerYS commented 2026-10-16 04:39:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T04:39:28Z.


What

#6451 lets a draw whose MSAA sample locations vary between the pixels of the guest's 2x2 pattern run on a device without a 2x2 sample location grid: it draws pixel (0,0)'s locations in every pixel. Resident Evil Village's (PPSA01556) 2x checkerboard holds the same two positions in every pixel (x = +4/16 and -4/16) and swaps them on odd rows. So the stand-in draws every position exactly, and only the samples' order differs on odd rows. A pass that reads samples by index, as checkerboard reconstruction does, then exchanged the two half-pixels of those rows.

This keeps the guest's sample order where the stand-in holds the same set of positions:

  • In the shader: the pixel shader reads SampleID, applies sample masks and exports coverage through each pixel's order.
  • Around each render pass that draws with the stand-in: the pass puts its multisampled attachments' samples in the stand-in's order before it and back after it:
    • colour through a uint storage view;
    • depth through a copy and a per-sample FragDepth pass;
    • stencil through VK_EXT_shader_stencil_export, or one pass per bit.
  • The stand-in alone, with a log line saying why, when the device lacks shaderStorageImageMultisample (with a storage view of the colour format), sampleRateShading, or a depth format FragDepth writes back exactly, and for patterns whose pixels hold different positions.
  • A sample mask the order moves is applied in the shader. With early Z, a depth or stencil test and memory writes in the pixel program, that draw throws, where #6451's stand-in alone ran it with odd rows' sample indices swapped. The order is fixed when the draw is decoded, but whether the program writes memory is known only after it is compiled, so a fallback would have to choose the stand-in then. No title is known to hit it.
  • Depth drawn at custom sample locations is moved between layouts only by transitions that name those locations (VkSampleLocationsInfoEXT):
    • the swap's depth copy, between GENERAL and TRANSFER_SRC_OPTIMAL;
    • and, at the end of every draw pass with custom locations and depth, a transition pair naming the pipeline's own locations, including a pass a draw recipe opens: replays name the locations too (212c35f08a).
      VK_EXT_sample_locations leaves such depth undefined after a transition that omits them. The RTX 3070 then read it back at the standard 2x locations, which put odd rows' depth on the other sample.
  • The colour swap shader picks each pixel class's order word through constant indices, one invocation per 2x2 quad. AMD's driver miscompiled the per-lane index into the push-constant uvec4 and swapped pixel (0,0), whose order is kept. A planning check now refuses any sample-order shader that indexes a vector or array through a non-constant value.
  • Device setup logs each sample count's largest location grid (vkGetPhysicalDeviceMultisamplePropertiesEXT) and no longer takes a 0x0 grid for a 2x2 one.
  • Devices without multisampled storage images (583cca0993, from jotitadev's review) take the stand-in alone for every pass, depth-only passes included, as #6451 alone does. Every pass with a multisampled colour target is refused there, so a depth-only pass that reordered would leave a shared depth target in a different order from the colour passes that test against it. On a device that has them, a colour format without a storage view at its sample count still refuses only its own passes; the debt entry says so.
  • Unchanged: devices with a 2x2 grid. One-sample targets under a varying pattern stay approximate (#5907's path).
  • Versions: request serialization 42 (main writes 41): this PR's sample order is written after main's stencil operation value export flag and read at version >= 42. Shader cache FormatVersion 44 (main is at 43 since #8295). #7223 and #7395 (ours) move the format too, so whichever of them lands later takes the next free number.
  • With #5881 (merged): main now gives a multisampled colour target storage usage only at its first storage binding. On a device where this PR may reorder its samples, the target still gets storage usage and a mutable format when it is made, as before, and #5881's recorder checks expect that there. Moving the swap's storage usage to its first reorder too is a possible follow-up; it needs the target swapped before the draw's framebuffer takes its view.
  • With #6470:
    • #6470 is merged, and this branch merges it (745f199d5a): both sides' pixel-request fields, serialization and SPIR-V helpers are kept.
    • #6470 interpolates an iterated shader's sample inputs at the guest location of SampleID. EmitSampleOffset reads SampleId through EmitBuiltinU32, which returns GuestSampleIndex, so host sample i reads guest sample order(i)'s location.
    • Resident Evil Village's checkerboard pass is not iterated.

#6451 is merged, and this branch merges current main. The change is its six commits after #6451's, a review follow-up (a932bcc7d6) and three review test commits (9b7f8cd2e3, 44e8786ba0, ef6ec1e242).

Cost

Two passes over each multisampled attachment per render pass that draws with the stand-in. On the RTX 3070 at 1920x2160, 2x, the median of 100 frames is 2.142 ms of GPU time per frame with one depth-only and one colour+depth pass swapped in and out; naming the sample locations at the depth copy's transitions makes it 2.132 ms.

Tested

Resident Evil Village (PPSA01556), Windows 11, RTX 3070 Laptop GPU (driver 617.42):

  • On main, Resident Evil Village stops before its title with [gpu] driver failure: AGC graphics: sample locations varying between pixels require a 2x2 sample location grid for the draw's sample count.
  • With #6451 it draws the checkerboard through the stand-in, in the stand-in's sample order.
  • A Resident Evil Village run with this PR follows as an edit.

Windows 11, RTX 3070 Laptop GPU and AMD Radeon (integrated), Vulkan:

  • 3070, Resident Evil Village's 2x checkerboard against the reference (four uniform renders composed by pixel parity), every sample of colour and depth:
    • at the first commit (57ceb9e370): "the exact path differs from the reference in 10 color and 3005 depth samples". All 3005 are the sloped depth samples, read back at the standard 2x locations;
    • with the commits after it, the depth this device reads back cannot be placed at the guest's locations for any render: even the composite of four uniform renders holds the guest's depth in 0 of 3005 sloped samples (all 3005 at the standard 2x locations), the device's own grid likewise, and the exact path in 1499, all of them on even rows (see the review commits below). The test reports those counts and skips, since no render can serve as a bit-for-bit reference here.
  • AMD Radeon (integrated):
    • at the first commit: agc_driver_sample_order failed with "the 2x color format 9 put in the host's order: sample 0 of pixel (0, 0) holds 0x000000b1 0x00000000, expected 0x00000000 0x00000000 (sample 0)". 0xb1 is sample 1's fill. The grid reference failed with "the exact path: sample 0 of pixel (0, 0) does not hold its own sample index in color";
    • with the commits after it, agc_driver_sample_order passes (39 swap round trips, 6 shader remap checks, 3 scene checks) and the exact path holds the guest's depth at the guest's sample locations in 3005 of 3005 sloped samples. The composite reference reads its depth back at the standard locations on this device too (0 of 3005), so the bit-for-bit comparison skips with the counts.
  • Both GPUs, --repeat until-fail:5: agc_driver_sample_order and agc_driver_sample_location_grid_fallback pass every run; agc_driver_sample_order_planning passes every run on the AMD iGPU. On the RTX 3070 machine it failed once in its first three runs with "sample order pipeline tests leaked Vulkan objects": nothing leaked, but each linked pipeline queued an optimized link on the pipeline-library worker, whose calls into the test's mock counters raced with the test thread's. The last commit turns link-time optimization off in that test (ThreadSanitizer on Linux: races in 11 of 11 runs before, none in 20 after; under load 13 of 40,000 runs failed before, none of 60,000 after). GitHub's Windows runner passes it 200 runs in a row.
  • The devices' grids (logged by the third commit): RTX 3070, 2 samples 2x4, 4 samples 2x2, 8 samples 1x2 (maxSampleLocationGridSize 1x1 for every count); AMD Radeon, 2x2 at every count. With the per-count grid read, the RTX 3070 hosts a real grid at 2 samples, so Resident Evil Village draws its checkerboard there natively and does not take the stand-in; the stand-in and this PR's exact path serve devices without one.

Linux, lavapipe (Mesa 25.2.8), CI's Linux configure:

  • agc_driver_sample_order_planning (mocks): orders and refusals on capable, gridded and refusing devices; plans per attachment and load/store op; render-pass and library pipelines; the cache key and serializer round trip.
  • agc_driver_sample_order:
    • every colour format through every alias size, and every depth/stencil method, round-trips bit for bit through both directions at each sample count;
    • SampleID and exported coverage reach the guest's samples;
    • the reference scene draws and reads back through the driver.
  • Red runs, each a temporary sabotage, reverted:
    • "putting the samples back in the guest's order did not restore every sample bit for bit";
    • "guest sample 0 of pixel (5, 0) ran, expected guest mask 10";
    • "guest sample 0 of pixel (1, 0) did not run, expected guest mask 1";
    • the swap shaders before the constant-index change: "sample order shader 0 picks a pixel's order word or a held sample through an access chain into %23 through the non-constant index %52";
    • the depth copy without the named transitions: "the depth swap did not copy its target between transitions that name the stand-in sample locations it was rendered with".
  • The grid reference now classifies every sloped depth sample of each render by the slope's plane equation: at the guest's location, or at the standard 2x location. If even the composite is not read back at the guest's locations, it skips with the counts, because then no render can be compared with it bit for bit.
  • agc_driver_sample_order_grid_reference skips on lavapipe, which has no 2x colour and depth targets.
  • The review follow-ups (212c35f08a, c3f947ef47, ee406d6179, 3d2d8e5305), from an after-the-fact completeness review: agc_driver_sample_order_recipe_depth_locations (GPU) checks that a depth-only pass opened by a recipe hit still names its locations; a mock test pins the sample-mask throw and its message; the debt entry gives the per-count grids and the throw. On GitHub's runners (run) the sample-order tests and agc_driver_graphics pass 10 runs in a row on Linux, and the GPU tests skip on both runners. On the RTX 3070 and the AMD iGPU here the recipe test skipped, with the change and without it: both devices read depth drawn at custom sample locations back at the standard 2x locations even in a recorded draw with the named transitions ("of 3005 sloped depth samples, 1 hold the slope's depth at the guest's sample locations and 3004 at the standard 2x locations"), although the depth images carry VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT. So no device we have can show this change's before and after; it follows VK_EXT_sample_locations, which leaves such depth undefined after a transition that omits the locations. The other sample-order tests pass on the RTX 3070 at this head.
  • oneandonlydean's review on an RTX 4090 (comment) brought four test commits:
    • f90ffa8795 splits each render's guest-location counts by even and odd rows. On the RTX 3070 the exact path's 1499 are all 1,499 even-row samples. None of the 1,506 odd-row ones, the pixels whose sample order changes and which the swap rewrites, match the guest's locations or the standard 2x ones. The AMD iGPU holds 1,499 of 1,499 and 1,506 of 1,506.
    • 0700f72070: where the recorded draw's depth doesn't read back at the guest's locations, agc_driver_sample_order_recipe_depth_locations compares the recipe's replay with the recorded draw bit for bit instead of skipping.
    • aaffe035ac: a draw builds a recipe only when its pipeline doesn't reorder samples (!pipeline->ReordersSamples() in Draw.cpp), so the test checks that the checkerboard through the exact path builds no recipe, and that pixel (0,0)'s locations, through the device's grid and without one, build a recipe whose replay matches the recorded draw.
    • 7f03326540: the grid reference compares the device grid's depth with the composite only where the grid reads it back at the guest's locations, and otherwise compares its color alone.
    • At 7f03326540, on the RTX 3070 and the AMD iGPU, the recipe test passes 3 of 3 (0 of 4,096 differences in each replay, and no recipe through the exact path). The grid reference skips on both, as before: the composite holds the guest's depth in 0 of 3,005 sloped samples. On GitHub's runners the sample-order tests and those tied to the changed files pass on Linux (68, 4 skipped) and Windows (71, 46 skipped) (run).
  • Tests for the three answers in this comment (9b7f8cd2e3, 44e8786ba0, ef6ec1e242), Linux, CI's configuration. Each fails with its fix line reverted:
    • the location table's index, with SampleId returning the host index instead of GuestSampleIndex: agc_driver_pixel_sample_iteration fails with "2x: an iterated PERSP_SAMPLE on a reordered pattern varying across the 2x2 grid: the table index's low bits are not the order word's nibble at the shader's SampleId";
    • the position input, without || pixel->ReordersSamples(): agc_driver_pixel_sample_iteration fails with "2x: a pixel shader that only reorders its samples was not given the position input";
    • the coverage order, without the input's ReorderedSampleBits: agc_driver_sample_order fails with "4x a quad sample mask reached the pixel shader in the guest's order: guest sample 0 of pixel (3, 0) ran, expected guest mask 2".
  • oneandonlydean's three small points (comment) are in a932bcc7d6 and the merges after it:
    • the versions take the next free numbers (above);
    • the debt entry names no title IDs, #6451's text in it included;
    • agc_driver_sample_order_grid_reference skips with "skipped, the device does not keep depth drawn at custom sample locations …", which tools/check_skips.py's DEVICE_LIMITATION accepts.
  • Merged with main 7ce3b1df3e (8c9c8eb5b5, the head; 6d09797d6b before it merged main 1ff5c8ac5c), on GitHub's runners (run):
    • These tests and the tests tied to the changed files pass 5 runs in a row on Linux (105 tests, 8 skipped): the sample-order tests, agc_driver_pixel_sample_iteration, agc_driver_graphics, agc_shader_memory, request_serializer, agc_shader_replay_requests and agc_shader_disk_cache. On Windows, 67 of the 116 skip without Vulkan, the GPU tests among them, and the rest pass.
    • The Windows libkernel suite timed out once, in guest_raise_in_system_call. This PR doesn't reach it, and it timed out on an unrelated branch the same night (run).
    • At 6d09797d6b, on a cloud worker, the ^(agc|shader) tests pass: 859 tests, 0 failed, 59 skipped.
  • ctest -R '^agc':
    • at the head, 605 of 605 (42 skipped as expected); at e6068b79a6, 604 of 605. The one failure is agc_driver_preparation_scope_settle, a load flake that also fails on main under the same parallel load; alone it passes 20 of 20;
    • at the first commit, 605 of 605;
    • merged with main 03c4cb5e78, 609 of 610 with request_serializer. The one failure is #5791's agc_driver_mesh_index_cache, which crashes llvmpipe's LLVM on main too.
  • Merged with main f474fb7768 (through #6451's merge), on GitHub's runners (run): the sample-order tests, request_serializer, agc_shader_memory, agc_driver_graphics and #5881's multisample tests pass 3 of 3 on Linux (64 tests) and Windows (67, of which 45 skip without Vulkan). The run shows as failed only because its Windows job lists guest_kqueue, a failure that runner has on main too, without a main comparison.
  • Merged with main 9b6837704f (71de590bd4, the head, with #6012's overlay shaders), on GitHub's runners (run): the ^agc tests pass on Linux (717, 0 failed, 51 skipped), and the suites' only failure is libc's precise_wait timing test. On Windows, where 539 of the 717 skip without Vulkan, the only failures are agc_driver_pm4_replay_tool and agc_shader_replay_tool (exit code 0xc0000139), which fail the same way on that runner for an unrelated branch (run).
  • Repeats: the new tests pass --repeat until-fail:10.
  • 583cca0993 (devices without multisampled storage images), on GitHub's runners (run): without the change, agc_driver_sample_order_planning fails on Linux and Windows with "a depth-only pass on a device without multisampled storage images was reordered"; with it, it passes 5 of 5 on both.
  • NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04 (GCC 15.2, Release), run by jotitadev at 3d42f6097, which the current head only merges main into, merged onto main 12a71f3f5 (review): the 12 sample-order, sample-mask, serializer and agc_driver_graphics tests pass 3/3 on both, and agc_driver_sample_order_grid_reference and agc_driver_sample_order_recipe_depth_locations skip on both. With only 583cca0993's new line in SampleOrderRefusal removed, agc_driver_graphics fails with a depth-only pass on a device without multisampled storage images was reordered.

Checklist

  • Based on main 7ce3b1df3e, merged in (#6451 is merged). Overlaps, checked with git merge-tree against main 5d9dcc42d2, each an adjacent edit where both sides are kept:
    • #6470 (pixel shaders run once per pixel and once per sample): 11 files. Both add request fields (Recompiler.hpp, ShaderStageInputInfo.hpp, DrawLookup.cpp, DrawRegisterKey.cpp), their serialization and tests, and SPIR-V helpers in SpirvModuleEmitter.cpp. See "With #6470" above.
    • The FormatVersion line in ShaderDiskCache.hpp: #6243, #6280, #6412, #6454, #6486, #6488 and #6296/#6032 (offline shader tools). The version takes the next free number.
    • The request serializer and its tests: #5884 (NGG line strips) and #5405 (spanned wave64 compute), both merged, took versions 31 and 32. #6503 (hardware denormal flush), #6639 (point lists' point size) and #6679 (merged hull programs) add fields next to these and take the next free number.
    • DrawRegisterKey.cpp: #6530 (line and polygon smoothing through SAMPLE_COVERAGE) adds to the same pixel-request comparison. Where both apply, coverage this PR maps through the pixel's sample order would include #6530's.
    • Multisampled targets: #6215 (retired targets), #6175 (pass hazards), #5881 (storage-image colour writes, merged; see above), #6635 (multisampled 2D array views) and #6628 (native MSAA spans out of BDA tables) touch MultisampleTarget and Draw.cpp next to the swap's hooks, as does #6636 (ours, reused address-based draw builds) in Draw.cpp.
    • Pipelines: #6539, #6077 and #5609 (cached and continued draws) in Pipeline.hpp/.cpp.
    • #5907 (one-sample targets at sample 0's locations, merged) in VulkanDevice.cpp, Pipeline.cpp and the debt entry, and #5915 and #6571 (CB resolve sample counts) in the same debt entry. #5907 keeps the one-sample case this PR leaves to it.
    • CMakeLists.txt: #2434, and #6012 (merged): this branch's merge of main 9b6837704f (71de590bd4) keeps #6012's overlay shader loop after this PR's sample-order loop.
  • 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 (none added)
  • 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 (none)
  • Generic behaviour, not specific to one title
  • Depends on: none (#6451 is merged)
  • Unblocks: PPSA01556 #5169 (the checkerboard's sample order on GPUs without a 2x2 sample location grid)
  • GPUs tested: llvmpipe (LLVM 20.1.2), Ubuntu 24.04; NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42) and AMDGPU, Windows 11; NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04 (jotitadev)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4883566039 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T04:39:28Z. --- ### What #6451 lets a draw whose MSAA sample locations vary between the pixels of the guest's 2x2 pattern run on a device without a 2x2 sample location grid: it draws pixel (0,0)'s locations in every pixel. Resident Evil Village's (PPSA01556) 2x checkerboard holds the same two positions in every pixel (x = +4/16 and -4/16) and swaps them on odd rows. So the stand-in draws every position exactly, and only the samples' order differs on odd rows. A pass that reads samples by index, as checkerboard reconstruction does, then exchanged the two half-pixels of those rows. This keeps the guest's sample order where the stand-in holds the same set of positions: - **In the shader:** the pixel shader reads `SampleID`, applies sample masks and exports coverage through each pixel's order. - **Around each render pass that draws with the stand-in:** the pass puts its multisampled attachments' samples in the stand-in's order before it and back after it: - colour through a uint storage view; - depth through a copy and a per-sample `FragDepth` pass; - stencil through `VK_EXT_shader_stencil_export`, or one pass per bit. - **The stand-in alone,** with a log line saying why, when the device lacks `shaderStorageImageMultisample` (with a storage view of the colour format), `sampleRateShading`, or a depth format `FragDepth` writes back exactly, and for patterns whose pixels hold different positions. - **A sample mask the order moves** is applied in the shader. With early Z, a depth or stencil test and memory writes in the pixel program, that draw throws, where #6451's stand-in alone ran it with odd rows' sample indices swapped. The order is fixed when the draw is decoded, but whether the program writes memory is known only after it is compiled, so a fallback would have to choose the stand-in then. No title is known to hit it. - **Depth drawn at custom sample locations** is moved between layouts only by transitions that name those locations (`VkSampleLocationsInfoEXT`): - the swap's depth copy, between GENERAL and TRANSFER_SRC_OPTIMAL; - and, at the end of every draw pass with custom locations and depth, a transition pair naming the pipeline's own locations, including a pass a draw recipe opens: replays name the locations too (212c35f08a). VK_EXT_sample_locations leaves such depth undefined after a transition that omits them. The RTX 3070 then read it back at the standard 2x locations, which put odd rows' depth on the other sample. - **The colour swap shader** picks each pixel class's order word through constant indices, one invocation per 2x2 quad. AMD's driver miscompiled the per-lane index into the push-constant `uvec4` and swapped pixel (0,0), whose order is kept. A planning check now refuses any sample-order shader that indexes a vector or array through a non-constant value. - **Device setup** logs each sample count's largest location grid (`vkGetPhysicalDeviceMultisamplePropertiesEXT`) and no longer takes a 0x0 grid for a 2x2 one. - **Devices without multisampled storage images** (583cca0993, from jotitadev's review) take the stand-in alone for every pass, depth-only passes included, as #6451 alone does. Every pass with a multisampled colour target is refused there, so a depth-only pass that reordered would leave a shared depth target in a different order from the colour passes that test against it. On a device that has them, a colour format without a storage view at its sample count still refuses only its own passes; the debt entry says so. - **Unchanged:** devices with a 2x2 grid. One-sample targets under a varying pattern stay approximate (#5907's path). - **Versions:** request serialization 42 (`main` writes 41): this PR's sample order is written after `main`'s stencil operation value export flag and read at `version >= 42`. Shader cache `FormatVersion` 44 (`main` is at 43 since #8295). #7223 and #7395 (ours) move the format too, so whichever of them lands later takes the next free number. - **With #5881 (merged):** `main` now gives a multisampled colour target storage usage only at its first storage binding. On a device where this PR may reorder its samples, the target still gets storage usage and a mutable format when it is made, as before, and #5881's recorder checks expect that there. Moving the swap's storage usage to its first reorder too is a possible follow-up; it needs the target swapped before the draw's framebuffer takes its view. - **With #6470:** - #6470 is merged, and this branch merges it (745f199d5a): both sides' pixel-request fields, serialization and SPIR-V helpers are kept. - #6470 interpolates an iterated shader's sample inputs at the guest location of `SampleID`. `EmitSampleOffset` reads `SampleId` through `EmitBuiltinU32`, which returns `GuestSampleIndex`, so host sample i reads guest sample order(i)'s location. - Resident Evil Village's checkerboard pass is not iterated. #6451 is merged, and this branch merges current `main`. The change is its six commits after #6451's, a review follow-up (a932bcc7d6) and three review test commits (9b7f8cd2e3, 44e8786ba0, ef6ec1e242). ### Cost Two passes over each multisampled attachment per render pass that draws with the stand-in. On the RTX 3070 at 1920x2160, 2x, the median of 100 frames is 2.142 ms of GPU time per frame with one depth-only and one colour+depth pass swapped in and out; naming the sample locations at the depth copy's transitions makes it 2.132 ms. ### Tested **Resident Evil Village (PPSA01556), Windows 11, RTX 3070 Laptop GPU (driver 617.42):** - **On main,** Resident Evil Village stops before its title with `[gpu] driver failure: AGC graphics: sample locations varying between pixels require a 2x2 sample location grid for the draw's sample count`. - **With #6451** it draws the checkerboard through the stand-in, in the stand-in's sample order. - A Resident Evil Village run with this PR follows as an edit. **Windows 11, RTX 3070 Laptop GPU and AMD Radeon (integrated), Vulkan:** - **3070, Resident Evil Village's 2x checkerboard against the reference** (four uniform renders composed by pixel parity), every sample of colour and depth: - at the first commit (57ceb9e370): "the exact path differs from the reference in 10 color and 3005 depth samples". All 3005 are the sloped depth samples, read back at the standard 2x locations; - with the commits after it, the depth this device reads back cannot be placed at the guest's locations for any render: even the composite of four uniform renders holds the guest's depth in 0 of 3005 sloped samples (all 3005 at the standard 2x locations), the device's own grid likewise, and the exact path in 1499, all of them on even rows (see the review commits below). The test reports those counts and skips, since no render can serve as a bit-for-bit reference here. - **AMD Radeon (integrated):** - at the first commit: `agc_driver_sample_order` failed with "the 2x color format 9 put in the host's order: sample 0 of pixel (0, 0) holds 0x000000b1 0x00000000, expected 0x00000000 0x00000000 (sample 0)". 0xb1 is sample 1's fill. The grid reference failed with "the exact path: sample 0 of pixel (0, 0) does not hold its own sample index in color"; - with the commits after it, `agc_driver_sample_order` passes (39 swap round trips, 6 shader remap checks, 3 scene checks) and **the exact path holds the guest's depth at the guest's sample locations in 3005 of 3005 sloped samples**. The composite reference reads its depth back at the standard locations on this device too (0 of 3005), so the bit-for-bit comparison skips with the counts. - **Both GPUs, `--repeat until-fail:5`:** `agc_driver_sample_order` and `agc_driver_sample_location_grid_fallback` pass every run; `agc_driver_sample_order_planning` passes every run on the AMD iGPU. On the RTX 3070 machine it failed once in its first three runs with "sample order pipeline tests leaked Vulkan objects": nothing leaked, but each linked pipeline queued an optimized link on the pipeline-library worker, whose calls into the test's mock counters raced with the test thread's. The last commit turns link-time optimization off in that test (ThreadSanitizer on Linux: races in 11 of 11 runs before, none in 20 after; under load 13 of 40,000 runs failed before, none of 60,000 after). GitHub's Windows runner passes it 200 runs in a row. - **The devices' grids** (logged by the third commit): RTX 3070, 2 samples 2x4, 4 samples 2x2, 8 samples 1x2 (`maxSampleLocationGridSize` 1x1 for every count); AMD Radeon, 2x2 at every count. With the per-count grid read, the RTX 3070 hosts a real grid at 2 samples, so Resident Evil Village draws its checkerboard there natively and does not take the stand-in; the stand-in and this PR's exact path serve devices without one. **Linux, lavapipe (Mesa 25.2.8), CI's Linux configure:** - **`agc_driver_sample_order_planning`** (mocks): orders and refusals on capable, gridded and refusing devices; plans per attachment and load/store op; render-pass and library pipelines; the cache key and serializer round trip. - **`agc_driver_sample_order`:** - every colour format through every alias size, and every depth/stencil method, round-trips bit for bit through both directions at each sample count; - `SampleID` and exported coverage reach the guest's samples; - the reference scene draws and reads back through the driver. - **Red runs,** each a temporary sabotage, reverted: - "putting the samples back in the guest's order did not restore every sample bit for bit"; - "guest sample 0 of pixel (5, 0) ran, expected guest mask 10"; - "guest sample 0 of pixel (1, 0) did not run, expected guest mask 1"; - the swap shaders before the constant-index change: "sample order shader 0 picks a pixel's order word or a held sample through an access chain into %23 through the non-constant index %52"; - the depth copy without the named transitions: "the depth swap did not copy its target between transitions that name the stand-in sample locations it was rendered with". - **The grid reference** now classifies every sloped depth sample of each render by the slope's plane equation: at the guest's location, or at the standard 2x location. If even the composite is not read back at the guest's locations, it skips with the counts, because then no render can be compared with it bit for bit. - **`agc_driver_sample_order_grid_reference`** skips on lavapipe, which has no 2x colour and depth targets. - **The review follow-ups** (212c35f08a, c3f947ef47, ee406d6179, 3d2d8e5305), from an after-the-fact completeness review: `agc_driver_sample_order_recipe_depth_locations` (GPU) checks that a depth-only pass opened by a recipe hit still names its locations; a mock test pins the sample-mask throw and its message; the debt entry gives the per-count grids and the throw. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38861679006)) the sample-order tests and `agc_driver_graphics` pass 10 runs in a row on Linux, and the GPU tests skip on both runners. On the RTX 3070 and the AMD iGPU here the recipe test skipped, with the change and without it: both devices read depth drawn at custom sample locations back at the standard 2x locations even in a recorded draw with the named transitions ("of 3005 sloped depth samples, 1 hold the slope's depth at the guest's sample locations and 3004 at the standard 2x locations"), although the depth images carry `VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT`. So no device we have can show this change's before and after; it follows VK_EXT_sample_locations, which leaves such depth undefined after a transition that omits the locations. The other sample-order tests pass on the RTX 3070 at this head. - **oneandonlydean's review on an RTX 4090** ([comment](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6248195691)) brought four test commits: - f90ffa8795 splits each render's guest-location counts by even and odd rows. On the RTX 3070 the exact path's 1499 are all 1,499 even-row samples. None of the 1,506 odd-row ones, the pixels whose sample order changes and which the swap rewrites, match the guest's locations or the standard 2x ones. The AMD iGPU holds 1,499 of 1,499 and 1,506 of 1,506. - 0700f72070: where the recorded draw's depth doesn't read back at the guest's locations, `agc_driver_sample_order_recipe_depth_locations` compares the recipe's replay with the recorded draw bit for bit instead of skipping. - aaffe035ac: a draw builds a recipe only when its pipeline doesn't reorder samples (`!pipeline->ReordersSamples()` in `Draw.cpp`), so the test checks that the checkerboard through the exact path builds no recipe, and that pixel (0,0)'s locations, through the device's grid and without one, build a recipe whose replay matches the recorded draw. - 7f03326540: the grid reference compares the device grid's depth with the composite only where the grid reads it back at the guest's locations, and otherwise compares its color alone. - At 7f03326540, on the RTX 3070 and the AMD iGPU, the recipe test passes 3 of 3 (0 of 4,096 differences in each replay, and no recipe through the exact path). The grid reference skips on both, as before: the composite holds the guest's depth in 0 of 3,005 sloped samples. On GitHub's runners the sample-order tests and those tied to the changed files pass on Linux (68, 4 skipped) and Windows (71, 46 skipped) ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39128134118)). - **Tests for the three answers in [this comment](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6258770847)** (9b7f8cd2e3, 44e8786ba0, ef6ec1e242), Linux, CI's configuration. Each fails with its fix line reverted: - **the location table's index**, with `SampleId` returning the host index instead of `GuestSampleIndex`: `agc_driver_pixel_sample_iteration` fails with "2x: an iterated PERSP_SAMPLE on a reordered pattern varying across the 2x2 grid: the table index's low bits are not the order word's nibble at the shader's SampleId"; - **the position input**, without `|| pixel->ReordersSamples()`: `agc_driver_pixel_sample_iteration` fails with "2x: a pixel shader that only reorders its samples was not given the position input"; - **the coverage order**, without the input's `ReorderedSampleBits`: `agc_driver_sample_order` fails with "4x a quad sample mask reached the pixel shader in the guest's order: guest sample 0 of pixel (3, 0) ran, expected guest mask 2". - **oneandonlydean's three small points** ([comment](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6259270119)) are in a932bcc7d6 and the merges after it: - the versions take the next free numbers (above); - the debt entry names no title IDs, #6451's text in it included; - `agc_driver_sample_order_grid_reference` skips with "skipped, the device does not keep depth drawn at custom sample locations …", which `tools/check_skips.py`'s `DEVICE_LIMITATION` accepts. - **Merged with `main` 7ce3b1df3e** (8c9c8eb5b5, the head; 6d09797d6b before it merged `main` 1ff5c8ac5c), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39557887630)): - These tests and the tests tied to the changed files pass 5 runs in a row on Linux (105 tests, 8 skipped): the sample-order tests, `agc_driver_pixel_sample_iteration`, `agc_driver_graphics`, `agc_shader_memory`, `request_serializer`, `agc_shader_replay_requests` and `agc_shader_disk_cache`. On Windows, 67 of the 116 skip without Vulkan, the GPU tests among them, and the rest pass. - The Windows libkernel suite timed out once, in `guest_raise_in_system_call`. This PR doesn't reach it, and it timed out on an unrelated branch the same night ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39546082452)). - At 6d09797d6b, on a cloud worker, the `^(agc|shader)` tests pass: 859 tests, 0 failed, 59 skipped. - **`ctest -R '^agc'`:** - at the head, 605 of 605 (42 skipped as expected); at e6068b79a6, 604 of 605. The one failure is `agc_driver_preparation_scope_settle`, a load flake that also fails on `main` under the same parallel load; alone it passes 20 of 20; - at the first commit, 605 of 605; - merged with `main` 03c4cb5e78, 609 of 610 with `request_serializer`. The one failure is #5791's `agc_driver_mesh_index_cache`, which crashes llvmpipe's LLVM on `main` too. - **Merged with `main` f474fb7768** (through #6451's merge), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38957464845)): the sample-order tests, `request_serializer`, `agc_shader_memory`, `agc_driver_graphics` and #5881's multisample tests pass 3 of 3 on Linux (64 tests) and Windows (67, of which 45 skip without Vulkan). The run shows as failed only because its Windows job lists `guest_kqueue`, a failure that runner has on `main` too, without a `main` comparison. - **Merged with `main` 9b6837704f** (71de590bd4, the head, with #6012's overlay shaders), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39140766029)): the `^agc` tests pass on Linux (717, 0 failed, 51 skipped), and the suites' only failure is libc's `precise_wait` timing test. On Windows, where 539 of the 717 skip without Vulkan, the only failures are `agc_driver_pm4_replay_tool` and `agc_shader_replay_tool` (exit code 0xc0000139), which fail the same way on that runner for an unrelated branch ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39061670036)). - **Repeats:** the new tests pass `--repeat until-fail:10`. - **583cca0993** (devices without multisampled storage images), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38946933625)): without the change, `agc_driver_sample_order_planning` fails on Linux and Windows with "a depth-only pass on a device without multisampled storage images was reordered"; with it, it passes 5 of 5 on both. - **NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04** (GCC 15.2, Release), run by jotitadev at 3d42f6097, which the current head only merges `main` into, merged onto `main` 12a71f3f5 ([review](https://github.com/boykopovar/AnyPS5/pull/6683#pullrequestreview-5557981777)): the 12 sample-order, sample-mask, serializer and `agc_driver_graphics` tests pass 3/3 on both, and `agc_driver_sample_order_grid_reference` and `agc_driver_sample_order_recipe_depth_locations` skip on both. With only 583cca0993's new line in `SampleOrderRefusal` removed, `agc_driver_graphics` fails with `a depth-only pass on a device without multisampled storage images was reordered`. ### Checklist - [x] Based on `main` 7ce3b1df3e, merged in (#6451 is merged). Overlaps, checked with `git merge-tree` against `main` 5d9dcc42d2, each an adjacent edit where both sides are kept: - **#6470** (pixel shaders run once per pixel and once per sample): 11 files. Both add request fields (`Recompiler.hpp`, `ShaderStageInputInfo.hpp`, `DrawLookup.cpp`, `DrawRegisterKey.cpp`), their serialization and tests, and SPIR-V helpers in `SpirvModuleEmitter.cpp`. See "With #6470" above. - **The `FormatVersion` line** in `ShaderDiskCache.hpp`: #6243, #6280, #6412, #6454, #6486, #6488 and #6296/#6032 (offline shader tools). The version takes the next free number. - **The request serializer and its tests:** #5884 (NGG line strips) and #5405 (spanned wave64 compute), both merged, took versions 31 and 32. #6503 (hardware denormal flush), #6639 (point lists' point size) and #6679 (merged hull programs) add fields next to these and take the next free number. - **`DrawRegisterKey.cpp`:** #6530 (line and polygon smoothing through SAMPLE_COVERAGE) adds to the same pixel-request comparison. Where both apply, coverage this PR maps through the pixel's sample order would include #6530's. - **Multisampled targets:** #6215 (retired targets), #6175 (pass hazards), #5881 (storage-image colour writes, merged; see above), #6635 (multisampled 2D array views) and #6628 (native MSAA spans out of BDA tables) touch `MultisampleTarget` and `Draw.cpp` next to the swap's hooks, as does #6636 (ours, reused address-based draw builds) in `Draw.cpp`. - **Pipelines:** #6539, #6077 and #5609 (cached and continued draws) in `Pipeline.hpp/.cpp`. - **#5907** (one-sample targets at sample 0's locations, merged) in `VulkanDevice.cpp`, `Pipeline.cpp` and the debt entry, and **#5915** and #6571 (CB resolve sample counts) in the same debt entry. #5907 keeps the one-sample case this PR leaves to it. - **`CMakeLists.txt`:** #2434, and #6012 (merged): this branch's merge of `main` 9b6837704f (71de590bd4) keeps #6012's overlay shader loop after this PR's sample-order loop. - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file (none added) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#6451 is merged) - [x] Unblocks: PPSA01556 #5169 (the checkerboard's sample order on GPUs without a 2x2 sample location grid) - [x] GPUs tested: llvmpipe (LLVM 20.1.2), Ubuntu 24.04; NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42) and AMDGPU, Windows 11; NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04 (jotitadev) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-16 05:32:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T05:32:18Z.


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 6628 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp L5
PR 6639 core/shader/recompiler/tests/RequestSerializerTests.cpp L217, L257, L283, L413, L432, L455, L462
PR 6741 core/libs/prx/libSceAgcDriver/CMakeLists.txt L2909, L2913
PR 6801 core/shader/recompiler/tests/RequestSerializerTests.cpp L217, L257, L283, L413, L432, L455, L462
PR 6858 core/shader/recompiler/ShaderDiskCache.hpp L16
PR 6959 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp L206-207
PR 6973 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp L66
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L101, L287, L313, L465-466
PR 6987 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp L66
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L101, L155-157, L287, L313, L465-466
PR 6989 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp L66
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L101, L155-157, L287, L313, L465-466
PR 6995 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp L66
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L101, L155-157, L287, L313, L465-466
PR 7002 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp L66
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L101, L155-157, L287, L313, L465-466
PR 7659 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp L10479
PR 7803 core/libs/prx/libSceAgcDriver/CMakeLists.txt L174
PR 7888 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp L4852, L4970, L5126-5127, L5146-5147, L5149-5150, L5161-5162, L5170-5171, L5179-5180
core/shader/recompiler/tests/RequestSerializerTests.cpp L217, L257, L283, L413, L432, L455, L462
PR 8004 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp L4852, L4970, L5126-5127, L5146-5147, L5150, L5161-5162, L5170-5171, L5179-5180
core/shader/recompiler/tests/RequestSerializerTests.cpp L217, L257, L283, L413, L432, L455-456, L462
PR 8115 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp L265-266
docs/dev/debt/libSceAgcDriver.md L157-158
PR 8604 core/libs/prx/libSceAgcDriver/tests/execution/MultisampleRetirement.cpp L489-490
PR 8612 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp L4852, L4970, L5126-5127, L5146-5147, L5149-5150, L5161-5162, L5170-5171, L5179-5180
core/shader/recompiler/tests/RequestSerializerTests.cpp L217, L257, L283, L413, L432, L455, L462
PR 8658 core/shader/recompiler/CacheKey.hpp L219
PR 8847 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L466
core/libs/prx/libSceAgcDriver/tests/execution/MultisampleRetirement.cpp L489-490
PR 8992 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L2481
PR 9020 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp L265-266
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp L4852, L4970, L5110-5111, L5147-5148
core/shader/recompiler/CacheKey.hpp L219
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp L357, L425, L830, L870
core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp L197
core/shader/recompiler/Recompiler.hpp L192
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp L169
core/shader/recompiler/tests/RequestSerializerTests.cpp L57, L217, L257, L283, L413, L432, L455, L462, L507-508

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 1191 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.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/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5609 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/shader/recompiler/Recompiler.hpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/debt/libSceAgcDriver.md
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6194 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6235 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/debt/libSceAgcDriver.md
PR 6290 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 6501 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6539 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/shader/recompiler/Recompiler.hpp
PR 6548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6604 core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6645 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6879 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.hpp
PR 6924 core/shader/recompiler/ShaderDiskCache.hpp
PR 6946 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/libSceAgcDriver.md
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/libSceAgcDriver.md
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7410 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7484 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 7505 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7550 core/shader/recompiler/ShaderDiskCache.hpp
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7684 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 7689 core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 7800 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7816 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7831 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 8014 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8077 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 8246 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 8278 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8484 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 8489 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 8552 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8564 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp
core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8592 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6208825000 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6208825000). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T05:32:18Z. --- <!-- pr-overlap --> 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 6628](https://www.github.com/boykopovar/AnyPS5/pull/6628) | `core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp` [L5](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp#L5) | | | | [PR 6639](https://www.github.com/boykopovar/AnyPS5/pull/6639) | `core/shader/recompiler/tests/RequestSerializerTests.cpp` [L217](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L217), [L257](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L257), [L283](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L283), [L413](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L413), [L432](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L432), [L455](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L455), [L462](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L462) | | | | [PR 6741](https://www.github.com/boykopovar/AnyPS5/pull/6741) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` [L2909](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/CMakeLists.txt#L2909), [L2913](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/CMakeLists.txt#L2913) | | | | [PR 6801](https://www.github.com/boykopovar/AnyPS5/pull/6801) | `core/shader/recompiler/tests/RequestSerializerTests.cpp` [L217](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L217), [L257](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L257), [L283](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L283), [L413](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L413), [L432](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L432), [L455](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L455), [L462](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L462) | | | | [PR 6858](https://www.github.com/boykopovar/AnyPS5/pull/6858) | `core/shader/recompiler/ShaderDiskCache.hpp` [L16](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/ShaderDiskCache.hpp#L16) | | | | [PR 6959](https://www.github.com/boykopovar/AnyPS5/pull/6959) | `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` [L206-207](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp#L206-L207) | | | | [PR 6973](https://www.github.com/boykopovar/AnyPS5/pull/6973) | `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp` [L66](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp#L66)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L101](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L101), [L287](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L287), [L313](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L313), [L465-466](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L465-L466) | | | | [PR 6987](https://www.github.com/boykopovar/AnyPS5/pull/6987) | `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp` [L66](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp#L66)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L101](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L101), [L155-157](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L155-L157), [L287](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L287), [L313](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L313), [L465-466](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L465-L466) | | | | [PR 6989](https://www.github.com/boykopovar/AnyPS5/pull/6989) | `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp` [L66](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp#L66)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L101](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L101), [L155-157](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L155-L157), [L287](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L287), [L313](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L313), [L465-466](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L465-L466) | | | | [PR 6995](https://www.github.com/boykopovar/AnyPS5/pull/6995) | `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp` [L66](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp#L66)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L101](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L101), [L155-157](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L155-L157), [L287](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L287), [L313](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L313), [L465-466](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L465-L466) | | | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp` [L66](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp#L66)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L101](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L101), [L155-157](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L155-L157), [L287](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L287), [L313](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L313), [L465-466](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L465-L466) | | | | [PR 7659](https://www.github.com/boykopovar/AnyPS5/pull/7659) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` [L10479](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L10479) | | | | [PR 7803](https://www.github.com/boykopovar/AnyPS5/pull/7803) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` [L174](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/CMakeLists.txt#L174) | | | | [PR 7888](https://www.github.com/boykopovar/AnyPS5/pull/7888) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` [L4852](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L4852), [L4970](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L4970), [L5126-5127](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5126-L5127), [L5146-5147](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5146-L5147), [L5149-5150](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5149-L5150), [L5161-5162](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5161-L5162), [L5170-5171](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5170-L5171), [L5179-5180](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5179-L5180)<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` [L217](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L217), [L257](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L257), [L283](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L283), [L413](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L413), [L432](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L432), [L455](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L455), [L462](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L462) | | | | [PR 8004](https://www.github.com/boykopovar/AnyPS5/pull/8004) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` [L4852](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L4852), [L4970](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L4970), [L5126-5127](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5126-L5127), [L5146-5147](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5146-L5147), [L5150](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5150), [L5161-5162](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5161-L5162), [L5170-5171](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5170-L5171), [L5179-5180](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5179-L5180)<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` [L217](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L217), [L257](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L257), [L283](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L283), [L413](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L413), [L432](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L432), [L455-456](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L455-L456), [L462](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L462) | | | | [PR 8115](https://www.github.com/boykopovar/AnyPS5/pull/8115) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp` [L265-266](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp#L265-L266)<br>`docs/dev/debt/libSceAgcDriver.md` [L157-158](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/docs/dev/debt/libSceAgcDriver.md#L157-L158) | | | | [PR 8604](https://www.github.com/boykopovar/AnyPS5/pull/8604) | `core/libs/prx/libSceAgcDriver/tests/execution/MultisampleRetirement.cpp` [L489-490](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/execution/MultisampleRetirement.cpp#L489-L490) | | | | [PR 8612](https://www.github.com/boykopovar/AnyPS5/pull/8612) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` [L4852](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L4852), [L4970](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L4970), [L5126-5127](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5126-L5127), [L5146-5147](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5146-L5147), [L5149-5150](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5149-L5150), [L5161-5162](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5161-L5162), [L5170-5171](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5170-L5171), [L5179-5180](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5179-L5180)<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` [L217](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L217), [L257](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L257), [L283](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L283), [L413](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L413), [L432](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L432), [L455](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L455), [L462](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L462) | | | | [PR 8658](https://www.github.com/boykopovar/AnyPS5/pull/8658) | `core/shader/recompiler/CacheKey.hpp` [L219](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/CacheKey.hpp#L219) | | | | [PR 8847](https://www.github.com/boykopovar/AnyPS5/pull/8847) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L466](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L466)<br>`core/libs/prx/libSceAgcDriver/tests/execution/MultisampleRetirement.cpp` [L489-490](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/execution/MultisampleRetirement.cpp#L489-L490) | | | | [PR 8992](https://www.github.com/boykopovar/AnyPS5/pull/8992) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` [L2481](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp#L2481) | | | | [PR 9020](https://www.github.com/boykopovar/AnyPS5/pull/9020) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp` [L265-266](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp#L265-L266)<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` [L4852](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L4852), [L4970](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L4970), [L5110-5111](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5110-L5111), [L5147-5148](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5147-L5148)<br>`core/shader/recompiler/CacheKey.hpp` [L219](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/CacheKey.hpp#L219)<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp` [L357](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L357), [L425](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L425), [L830](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L830), [L870](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L870)<br>`core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp` [L197](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp#L197)<br>`core/shader/recompiler/Recompiler.hpp` [L192](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/Recompiler.hpp#L192)<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp` [L169](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp#L169)<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` [L57](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L57), [L217](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L217), [L257](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L257), [L283](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L283), [L413](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L413), [L432](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L432), [L455](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L455), [L462](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L462), [L507-508](https://github.com/boykopovar/AnyPS5/blob/e05da53ef3357d8de073a647432e8704cf08fce3/core/shader/recompiler/tests/RequestSerializerTests.cpp#L507-L508) | | | 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 1191](https://www.github.com/boykopovar/AnyPS5/pull/1191) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 4449](https://www.github.com/boykopovar/AnyPS5/pull/4449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4472](https://www.github.com/boykopovar/AnyPS5/pull/4472) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 5372](https://www.github.com/boykopovar/AnyPS5/pull/5372) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6197](https://www.github.com/boykopovar/AnyPS5/pull/6197) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6202](https://www.github.com/boykopovar/AnyPS5/pull/6202) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp`<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6290](https://www.github.com/boykopovar/AnyPS5/pull/6290) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6488](https://www.github.com/boykopovar/AnyPS5/pull/6488) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6604](https://www.github.com/boykopovar/AnyPS5/pull/6604) | `core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 6645](https://www.github.com/boykopovar/AnyPS5/pull/6645) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6924](https://www.github.com/boykopovar/AnyPS5/pull/6924) | `core/shader/recompiler/ShaderDiskCache.hpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6971](https://www.github.com/boykopovar/AnyPS5/pull/6971) | `core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7410](https://www.github.com/boykopovar/AnyPS5/pull/7410) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7550](https://www.github.com/boykopovar/AnyPS5/pull/7550) | `core/shader/recompiler/ShaderDiskCache.hpp` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7684](https://www.github.com/boykopovar/AnyPS5/pull/7684) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp` | | [PR 7689](https://www.github.com/boykopovar/AnyPS5/pull/7689) | `core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7816](https://www.github.com/boykopovar/AnyPS5/pull/7816) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7831](https://www.github.com/boykopovar/AnyPS5/pull/7831) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 8077](https://www.github.com/boykopovar/AnyPS5/pull/8077) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 8246](https://www.github.com/boykopovar/AnyPS5/pull/8246) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 8278](https://www.github.com/boykopovar/AnyPS5/pull/8278) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8484](https://www.github.com/boykopovar/AnyPS5/pull/8484) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 8489](https://www.github.com/boykopovar/AnyPS5/pull/8489) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 8552](https://www.github.com/boykopovar/AnyPS5/pull/8552) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8564](https://www.github.com/boykopovar/AnyPS5/pull/8564) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp`<br>`core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp`<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 8592](https://www.github.com/boykopovar/AnyPS5/pull/8592) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` |
jotitadev commented 2026-10-16 18:00:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T18:00:38Z.

Review: COMMENTED


A question about passes that share a depth target but take different paths, with a mock check, and a Linux run of the tests.

Machine: Linux, NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8). Ubuntu 26.04, i7-8700, GCC 15.2, Release. Head 418d5abb8 merged into main 66e290f1c (clean).

  • ^agc_driver_sample_, agc_driver_graphics, request_serializer, agc_shader_memory (12 tests): pass 3/3 on the RTX 3070 and on lavapipe. agc_driver_sample_order_grid_reference and agc_driver_sample_order_recipe_depth_locations skip on both. On the RTX 3070 under Linux the recipe test gives the same counts as your Windows laptop: 1 hold the slope's depth at the guest's sample locations and 3004 at the standard 2x locations, and the device logs 2 samples 2x4, 4 samples 2x2, 8 samples 1x2.

Mixed passes on one depth target. SampleOrderRefusal is decided per render pass state, and nothing records which order a surface's samples are in between passes. On a device without shaderStorageImageMultisample (MoltenVK on Apple GPUs reports it as false, with a 1x1 grid at 2 and 4 samples), a depth-only pass and a colour+depth pass on the same target take different paths. A temporary print in agc_driver_sample_order_planning, using the test's village pattern and its noStorage context:

noStorage depth-only:  grid 1x1 reorders=1 refusal='' steps=1
  depth-only step attachment=0 method=1 toHost=1 toGuest=1
noStorage color+depth: grid 1x1 reorders=0 refusal='color format 97 has no storage view at 2 samples' steps=0

So a depth prepass stores the target in the guest's order (toGuest), and the colour pass that follows tests against it with no swap, in the stand-in's order. On odd rows each sample is then compared with the depth written at the other half-pixel's position. With #6451 alone both passes kept the stand-in's order and agreed. If that is intended, a note in the debt entry would help; otherwise refusing the whole surface once one pass is refused, or keeping the order per surface, would avoid it. I have not drawn this case on a GPU: the RTX 3070 and lavapipe both have multisampled storage images, so neither takes the refused path.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5551752912 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#pullrequestreview-5551752912). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-16T18:00:38Z. **Review:** COMMENTED --- A question about passes that share a depth target but take different paths, with a mock check, and a Linux run of the tests. **Machine:** Linux, NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8). Ubuntu 26.04, i7-8700, GCC 15.2, Release. Head `418d5abb8` merged into `main` `66e290f1c` (clean). - `^agc_driver_sample_`, `agc_driver_graphics`, `request_serializer`, `agc_shader_memory` (12 tests): pass 3/3 on the RTX 3070 and on lavapipe. `agc_driver_sample_order_grid_reference` and `agc_driver_sample_order_recipe_depth_locations` skip on both. On the RTX 3070 under Linux the recipe test gives the same counts as your Windows laptop: `1 hold the slope's depth at the guest's sample locations and 3004 at the standard 2x locations`, and the device logs `2 samples 2x4, 4 samples 2x2, 8 samples 1x2`. **Mixed passes on one depth target.** `SampleOrderRefusal` is decided per render pass state, and nothing records which order a surface's samples are in between passes. On a device without `shaderStorageImageMultisample` (MoltenVK on Apple GPUs reports it as false, with a 1x1 grid at 2 and 4 samples), a depth-only pass and a colour+depth pass on the same target take different paths. A temporary print in `agc_driver_sample_order_planning`, using the test's `village` pattern and its `noStorage` context: ``` noStorage depth-only: grid 1x1 reorders=1 refusal='' steps=1 depth-only step attachment=0 method=1 toHost=1 toGuest=1 noStorage color+depth: grid 1x1 reorders=0 refusal='color format 97 has no storage view at 2 samples' steps=0 ``` So a depth prepass stores the target in the guest's order (`toGuest`), and the colour pass that follows tests against it with no swap, in the stand-in's order. On odd rows each sample is then compared with the depth written at the other half-pixel's position. With #6451 alone both passes kept the stand-in's order and agreed. If that is intended, a note in the debt entry would help; otherwise refusing the whole surface once one pass is refused, or keeping the order per surface, would avoid it. I have not drawn this case on a GPU: the RTX 3070 and lavapipe both have multisampled storage images, so neither takes the refused path. GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04 Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
EagleBearerYS commented 2026-10-16 18:51:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T18:51:18Z.


@jotitadev thank you for the review, the Linux runs on the RTX 3070 and lavapipe, and the mock check. You're right: the refusal is decided per pass, and on a device without shaderStorageImageMultisample a depth-only pass reordered the target while a colour+depth pass on it was refused, so the colour pass tested against samples in the other order.

583cca0993 makes such a device refuse the exact order for every pass, depth-only passes included, so its depth targets keep the stand-in's order throughout, as with #6451 alone. agc_driver_sample_order_planning now checks your pair on the noStorage context: without the change it fails with "a depth-only pass on a device without multisampled storage images was reordered", and with it it passes on GitHub's Linux and Windows runners.

A device that has multisampled storage images can still refuse a single colour format without a storage view at its sample count. A depth target shared by such a pass and a depth-only pass would then change order between them. The debt entry now says so; a full fix would decide the order per target rather than per pass, which also touches the shader's sample remap, so I've left it for a follow-up.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222491173 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6222491173). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T18:51:18Z. --- @jotitadev thank you for the review, the Linux runs on the RTX 3070 and lavapipe, and the mock check. You're right: the refusal is decided per pass, and on a device without `shaderStorageImageMultisample` a depth-only pass reordered the target while a colour+depth pass on it was refused, so the colour pass tested against samples in the other order. 583cca0993 makes such a device refuse the exact order for every pass, depth-only passes included, so its depth targets keep the stand-in's order throughout, as with #6451 alone. `agc_driver_sample_order_planning` now checks your pair on the `noStorage` context: without the change it fails with "a depth-only pass on a device without multisampled storage images was reordered", and with it it passes on GitHub's Linux and Windows runners. A device that has multisampled storage images can still refuse a single colour format without a storage view at its sample count. A depth target shared by such a pass and a depth-only pass would then change order between them. The debt entry now says so; a full fix would decide the order per target rather than per pass, which also touches the shader's sample remap, so I've left it for a follow-up.
MarcZX10 commented 2026-10-16 22:31:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T22:31:02Z.


I have a focused candidate for issue #6957: sample a multisampled target in SHADER_READ_ONLY_OPTIMAL after storage writes, then restore GENERAL before attachment or storage use. It is separate from sample-order correction, but both modify MultisampleTarget::Sampled and the borrowed Texture constructor. The combined path needs to keep this PR’s restricted sampled-view usage while setting the read-only layout. No urgency; could you advise whether #6683 should land first, or whether you would prefer the layout fix to go first so this PR can rebase on it? I have not opened the follow-up yet.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6225927870 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6225927870). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T22:31:02Z. --- I have a focused candidate for issue #6957: sample a multisampled target in `SHADER_READ_ONLY_OPTIMAL` after storage writes, then restore `GENERAL` before attachment or storage use. It is separate from sample-order correction, but both modify `MultisampleTarget::Sampled` and the borrowed `Texture` constructor. The combined path needs to keep this PR’s restricted sampled-view usage while setting the read-only layout. No urgency; could you advise whether #6683 should land first, or whether you would prefer the layout fix to go first so this PR can rebase on it? I have not opened the follow-up yet.
EagleBearerYS commented 2026-10-16 22:36:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T22:36:53Z.


@MarcZX100 Thanks for checking first. Either order works for us. #6683 is mergeable on current main, so please open yours when it's ready rather than waiting. Whichever lands second rebases onto the other, and if the layout fix lands first, I'll rebase #6683 onto it.

On the combined path, as far as I can see:

  • Sampled keeps passing VK_IMAGE_USAGE_SAMPLED_BIT as the view usage when the target has an order format, so the sampled view doesn't take the image's STORAGE usage, which the target's own format may not support. It then takes your read-only layout, and SAMPLED usage is valid in SHADER_READ_ONLY_OPTIMAL.
  • #6683's sample-order pass also writes the target's samples in place through a storage view in GENERAL (SampleOrders::Storage in SampleOrder.cpp). On the UHD 770, the reordered samples would likely meet the same fetch behaviour as in #6957. Whichever PR lands second should count that pass as a storage write for your transition, so that the next sampled read also goes through SHADER_READ_ONLY_OPTIMAL.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226001469 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6226001469). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T22:36:53Z. --- @MarcZX100 Thanks for checking first. Either order works for us. #6683 is mergeable on current `main`, so please open yours when it's ready rather than waiting. Whichever lands second rebases onto the other, and if the layout fix lands first, I'll rebase #6683 onto it. On the combined path, as far as I can see: - `Sampled` keeps passing `VK_IMAGE_USAGE_SAMPLED_BIT` as the view usage when the target has an order format, so the sampled view doesn't take the image's `STORAGE` usage, which the target's own format may not support. It then takes your read-only layout, and `SAMPLED` usage is valid in `SHADER_READ_ONLY_OPTIMAL`. - #6683's sample-order pass also writes the target's samples in place through a storage view in `GENERAL` (`SampleOrders::Storage` in `SampleOrder.cpp`). On the UHD 770, the reordered samples would likely meet the same fetch behaviour as in #6957. Whichever PR lands second should count that pass as a storage write for your transition, so that the next sampled read also goes through `SHADER_READ_ONLY_OPTIMAL`.
MarcZX10 commented 2026-10-16 22:57:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T22:57:47Z.


Thanks for confirming either integration order. #6635’s author has since asked that their already-approved PR land first to avoid parallel conflicts, so I marked #6971 as draft and will rebase it after #6635 merges. The combined preview compiled the sample-order storage path with the layout transition; I’ll rerun the checks after rebasing.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226252801 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6226252801). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T22:57:47Z. --- Thanks for confirming either integration order. #6635’s author has since asked that their already-approved PR land first to avoid parallel conflicts, so I marked #6971 as draft and will rebase it after #6635 merges. The combined preview compiled the sample-order storage path with the layout transition; I’ll rerun the checks after rebasing.
jotitadev commented 2026-10-17 13:35:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-17T13:35:53Z.

Review: COMMENTED


@EagleBearerYS, re-ran 3d42f6097 for the depth-only point. 583cca099 closes it, and the new check catches it.

Machine: Ubuntu 26.04, i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3). PR merged onto main 12a71f3f5 (clean). ANYPS5_NO_SHADER_CACHE=1, -j1 --timeout 30.

  • The 12 sample-order, sample-mask, serializer and agc_driver_graphics tests: pass 3/3 on the 3070 and on lavapipe. grid_reference and recipe_depth_locations skip on both, as before.
  • With only the new line in SampleOrderRefusal removed (if (!context.storageImageMultisample) ...), agc_driver_graphics fails with a depth-only pass on a device without multisampled storage images was reordered.

The current head 7246963c9 only merges main on top of 3d42f6097; the PR's commits are unchanged.

Not run: Windows, AMD, any title.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5557981777 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#pullrequestreview-5557981777). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-17T13:35:53Z. **Review:** COMMENTED --- @EagleBearerYS, re-ran `3d42f6097` for the depth-only point. `583cca099` closes it, and the new check catches it. **Machine:** Ubuntu 26.04, i7-8700, GCC 15.2, Release, `BUILD_TESTING=ON`. NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3). PR merged onto `main` `12a71f3f5` (clean). `ANYPS5_NO_SHADER_CACHE=1`, `-j1 --timeout 30`. - The 12 sample-order, sample-mask, serializer and `agc_driver_graphics` tests: pass 3/3 on the 3070 and on lavapipe. `grid_reference` and `recipe_depth_locations` skip on both, as before. - With only the new line in `SampleOrderRefusal` removed (`if (!context.storageImageMultisample) ...`), `agc_driver_graphics` fails with `a depth-only pass on a device without multisampled storage images was reordered`. The current head `7246963c9` only merges `main` on top of `3d42f6097`; the PR's commits are unchanged. Not run: Windows, AMD, any title. GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04 Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
EagleBearerYS commented 2026-10-17 13:44:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-17T13:44:39Z.


Thanks for re-running it on the 3070 and lavapipe, and for the check with that line removed. I've added your runs to Tested and the GPU list.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6234607847 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6234607847). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-17T13:44:39Z. --- Thanks for re-running it on the 3070 and lavapipe, and for the check with that line removed. I've added your runs to Tested and the GPU list.
oneandonlydean commented 2026-10-18 09:22:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T09:22:59Z.


On an RTX 4090 (main + this PR), agc_driver_sample_order passes, but grid_reference and recipe_depth_locations both skip because the composite reference holds 0/3005. The same log shows the exact path at 1499/3005 at the guest's locations, while the recorded draw and the recipe's replay are at 1/3005. Could recipe_depth_locations compare the recipe path with the exact path (or assert it is no worse than it) when the composite reference is unusable, instead of skipping? As it stands it executes on none of the four devices tried (3070, AMD iGPU, lavapipe, 4090). Also: is 1499/3005 for the exact path on NVIDIA expected? AMD reports 3005/3005.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248195691 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6248195691). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T09:22:59Z. --- On an RTX 4090 (main + this PR), `agc_driver_sample_order` passes, but `grid_reference` and `recipe_depth_locations` both skip because the composite reference holds 0/3005. The same log shows the exact path at 1499/3005 at the guest's locations, while the recorded draw and the recipe's replay are at 1/3005. Could `recipe_depth_locations` compare the recipe path with the **exact path** (or assert it is no worse than it) when the composite reference is unusable, instead of skipping? As it stands it executes on none of the four devices tried (3070, AMD iGPU, lavapipe, 4090). Also: is 1499/3005 for the exact path on NVIDIA expected? AMD reports 3005/3005.
EagleBearerYS commented 2026-10-18 13:28:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T13:28:36Z.


@oneandonlydean thanks for running them on the 4090. Four test-only commits are now on this branch (head 7f03326540):

  1. f90ffa8795 splits each render's guest-location counts by even and odd rows.
  2. 0700f72070: when the recorded draw's depth doesn't read back at the guest's locations, recipe_depth_locations no longer skips. It compares the recipe's replay with the recorded draw bit for bit, as the device reads both back.
  3. aaffe035ac, on comparing the recipe path with the exact path: the two never meet. A draw builds a recipe only when its pipeline doesn't reorder samples (the !pipeline->ReordersSamples() condition in Draw.cpp), so a pass through the exact path is always built in full, with its swaps. The test now checks that: Resident Evil Village's (PPSA01556) checkerboard through the exact path builds no recipe, while pixel (0,0)'s locations, through the device's grid and without one, still build a recipe whose replay matches the recorded draw. A "no worse than the exact path" check would compare two different scenes, which is why your counts differ (1 against 1,499).
  4. 7f03326540: grid_reference compares the device grid's depth with the composite only where the grid reads it back at the guest's locations, and otherwise compares its color alone.

At 7f03326540, Windows 11, MinGW Release, on our NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42) and the integrated AMD Radeon Graphics (Ryzen 9 5900HS):

  • recipe_depth_locations passes 3 of 3 on both: pixel (0,0)'s replays, with the grid and without it, differ from the recorded draws in 0 of 4,096 samples, and the checkerboard through the exact path builds no recipe.
  • grid_reference skips on both, as on your 4090: the composite of uniform renders holds the guest's depth in 0 of 3,005 sloped samples, so no path can be compared with it bit for bit. That skip comes before commit 4's comparison.
  • On GitHub's runners, the sample-order tests and those tied to the changed files pass on Linux (68, 4 skipped) and Windows (71, 46 skipped) (run).

On the 1,499 of 3,005: it's one row parity. On the RTX 3070 the exact path holds the guest's depth in all 1,499 even-row samples and in none of the 1,506 odd-row ones, which match neither the guest's locations nor the standard 2x ones; the AMD iGPU holds 3,005 of 3,005. The odd rows are the pixels whose sample order changes, the only ones the swap rewrites, through a copy of the depth and a per-sample FragDepth pass (SampleOrder.frag leaves identity-order pixels alone). We haven't found why that rewrite reads back differently on the 3070.

What that means for Resident Evil Village: both GPUs host a sample location grid at 2 samples (the RTX 3070 2x4, the AMD iGPU 2x2), so the title draws its checkerboard natively on them and never takes the exact path; this PR leaves devices with a grid unchanged. In this test, though, depth drawn at custom locations doesn't read back at the guest's locations on either GPU outside the exact path: the device's grid, the composite and pixel (0,0)'s render all read 0 of 3,005 there and 3,005 at the standard 2x locations. Whether that's in our driver or in the test's model of the guest's locations isn't settled yet. It's separate from this PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6250483978 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6250483978). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-18T13:28:36Z. --- @oneandonlydean thanks for running them on the 4090. Four test-only commits are now on this branch (head 7f03326540): 1. f90ffa8795 splits each render's guest-location counts by even and odd rows. 2. 0700f72070: when the recorded draw's depth doesn't read back at the guest's locations, `recipe_depth_locations` no longer skips. It compares the recipe's replay with the recorded draw bit for bit, as the device reads both back. 3. aaffe035ac, on comparing the recipe path with the exact path: the two never meet. A draw builds a recipe only when its pipeline doesn't reorder samples (the `!pipeline->ReordersSamples()` condition in `Draw.cpp`), so a pass through the exact path is always built in full, with its swaps. The test now checks that: Resident Evil Village's (PPSA01556) checkerboard through the exact path builds no recipe, while pixel (0,0)'s locations, through the device's grid and without one, still build a recipe whose replay matches the recorded draw. A "no worse than the exact path" check would compare two different scenes, which is why your counts differ (1 against 1,499). 4. 7f03326540: `grid_reference` compares the device grid's depth with the composite only where the grid reads it back at the guest's locations, and otherwise compares its color alone. At 7f03326540, Windows 11, MinGW Release, on our NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42) and the integrated AMD Radeon Graphics (Ryzen 9 5900HS): - `recipe_depth_locations` passes 3 of 3 on both: pixel (0,0)'s replays, with the grid and without it, differ from the recorded draws in 0 of 4,096 samples, and the checkerboard through the exact path builds no recipe. - `grid_reference` skips on both, as on your 4090: the composite of uniform renders holds the guest's depth in 0 of 3,005 sloped samples, so no path can be compared with it bit for bit. That skip comes before commit 4's comparison. - On GitHub's runners, the sample-order tests and those tied to the changed files pass on Linux (68, 4 skipped) and Windows (71, 46 skipped) ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39128134118)). **On the 1,499 of 3,005:** it's one row parity. On the RTX 3070 the exact path holds the guest's depth in all 1,499 even-row samples and in none of the 1,506 odd-row ones, which match neither the guest's locations nor the standard 2x ones; the AMD iGPU holds 3,005 of 3,005. The odd rows are the pixels whose sample order changes, the only ones the swap rewrites, through a copy of the depth and a per-sample `FragDepth` pass (`SampleOrder.frag` leaves identity-order pixels alone). We haven't found why that rewrite reads back differently on the 3070. **What that means for Resident Evil Village:** both GPUs host a sample location grid at 2 samples (the RTX 3070 2x4, the AMD iGPU 2x2), so the title draws its checkerboard natively on them and never takes the exact path; this PR leaves devices with a grid unchanged. In this test, though, depth drawn at custom locations doesn't read back at the guest's locations on either GPU outside the exact path: the device's grid, the composite and pixel (0,0)'s render all read 0 of 3,005 there and 3,005 at the standard 2x locations. Whether that's in our driver or in the test's model of the guest's locations isn't settled yet. It's separate from this PR.
MarcZX10 commented 2026-10-18 21:20:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T21:20:43Z.


Quick status update: #6971 remains in draft, and its commits are already included in #6973’s published composition with #6635. I’m not opening a separate copy of the layout change. #6973 is still open and conflicts with current main, so that composed stack needs to be rebased before the layout fix can move forward. Your sample-order PR remains separate.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255288219 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6255288219). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T21:20:43Z. --- Quick status update: #6971 remains in draft, and its commits are already included in #6973’s published composition with #6635. I’m not opening a separate copy of the layout change. #6973 is still open and conflicts with current `main`, so that composed stack needs to be rebased before the layout fix can move forward. Your sample-order PR remains separate.
oneandonlydean commented 2026-10-19 00:21:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T00:21:45Z.


@EagleBearerYS this now conflicts with main after #6215 (multisampled target lifetime) in Graphics/src/Draw.cpp and Graphics/src/MultisampleTarget.cpp. It isn't a simple keep-both, because #6215 changed who keeps a multisampled target's images alive and the sample-order pass uses the same objects:

  • AcquireFramebuffer now takes owners only (the persistent vector is gone); a multisampled binding passes binding.multisampleOwner.
  • Sampled() now returns a lease over textures[key], and the target keeps retiredTextures until release().

Could you rebase onto main and keep both behaviours? Three points to settle while doing it:

  1. The reorder targets carry the raw image and OrderView(). Can the target be retired (and its image freed) while recorded reorder work still uses it? Should they hold the same owner the framebuffer now holds?
  2. Should the order-format sampled texture in Sampled() go through textures[key] and the lease like main does, and where does its lifetime sit relative to retiredTextures?
  3. The orderView destroy in release() should follow the same retirement rule as the storage view, so it can't be destroyed while a lease is outstanding.

A test covering a retire during a reordered draw (extending #6215's lifetime test is fine) would settle 1 and 3.

Version note: this PR uses FormatVersion 40 and request 33 (main is 38/32); #7689 claims 39, so there is no clash today.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257013836 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6257013836). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-19T00:21:45Z. --- @EagleBearerYS this now conflicts with main after #6215 (multisampled target lifetime) in `Graphics/src/Draw.cpp` and `Graphics/src/MultisampleTarget.cpp`. It isn't a simple keep-both, because #6215 changed who keeps a multisampled target's images alive and the sample-order pass uses the same objects: - `AcquireFramebuffer` now takes owners only (the `persistent` vector is gone); a multisampled binding passes `binding.multisampleOwner`. - `Sampled()` now returns a lease over `textures[key]`, and the target keeps `retiredTextures` until `release()`. Could you rebase onto main and keep both behaviours? Three points to settle while doing it: 1. The reorder targets carry the raw image and `OrderView()`. Can the target be retired (and its image freed) while recorded reorder work still uses it? Should they hold the same owner the framebuffer now holds? 2. Should the order-format sampled texture in `Sampled()` go through `textures[key]` and the lease like main does, and where does its lifetime sit relative to `retiredTextures`? 3. The `orderView` destroy in `release()` should follow the same retirement rule as the storage view, so it can't be destroyed while a lease is outstanding. A test covering a retire during a reordered draw (extending #6215's lifetime test is fine) would settle 1 and 3. Version note: this PR uses FormatVersion 40 and request 33 (main is 38/32); #7689 claims 39, so there is no clash today.
EagleBearerYS commented 2026-10-19 00:45:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-19T00:45:39Z.


@oneandonlydean thank you for spelling out what #6215 changed and the three points. The branch now merges main instead of rebasing, as for its earlier updates, and the head is adc46f3ea0.

  1. You were right: the color sample-order target was handed out with no owner, so a reordered draw recorded before the target retired could reach a freed image. adc46f3ea0 gives it the same owner the framebuffer holds since #6215 (shared_from_this()), as the depth surface's order target already does. RecordSampleOrder keeps it with the batch.
  2. In the merge, Sampled() takes main's textures[key] lease and only adds the sampled-only usage when the target has an order view. An order-format target is created with storage usage, so makeStorable returns before it moves anything to retiredTextures. Its sampled textures follow main's lifetime unchanged.
  3. release() runs only from the destructor, so orderView is destroyed with storageView once the last owner, lease or kept batch is gone. With point 1's owner, recorded reorder work holds it too.

For 1 and 3, agc_driver_multisample_retirement has a new OrderRemap case next to #6215's SampledRemap. It takes a sample-order target, remaps the guest block so the target retires, and requires the retired image to stay alive while the order target or its batch holds it. On GitHub's Linux runner (run) it fails all 3 runs without the fix ("a held sample-order target lost its image when its MSAA target retired") and passes all 3 with it. It skips on the Windows runner, which has no Vulkan device. The merge itself passes the ^agc tests on Linux (run). On Windows the only failures are the two replay tools (0xc0000139), which fail the same way on unrelated branches.

Thanks for the version check too: 40 and 33 here, and #7689's 39 doesn't clash.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257268733 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6257268733). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-19T00:45:39Z. --- @oneandonlydean thank you for spelling out what #6215 changed and the three points. The branch now merges `main` instead of rebasing, as for its earlier updates, and the head is adc46f3ea0. 1. You were right: the color sample-order target was handed out with no owner, so a reordered draw recorded before the target retired could reach a freed image. adc46f3ea0 gives it the same owner the framebuffer holds since #6215 (`shared_from_this()`), as the depth surface's order target already does. `RecordSampleOrder` keeps it with the batch. 2. In the merge, `Sampled()` takes main's `textures[key]` lease and only adds the sampled-only usage when the target has an order view. An order-format target is created with storage usage, so `makeStorable` returns before it moves anything to `retiredTextures`. Its sampled textures follow main's lifetime unchanged. 3. `release()` runs only from the destructor, so `orderView` is destroyed with `storageView` once the last owner, lease or kept batch is gone. With point 1's owner, recorded reorder work holds it too. For 1 and 3, `agc_driver_multisample_retirement` has a new `OrderRemap` case next to #6215's `SampledRemap`. It takes a sample-order target, remaps the guest block so the target retires, and requires the retired image to stay alive while the order target or its batch holds it. On GitHub's Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39180819079)) it fails all 3 runs without the fix ("a held sample-order target lost its image when its MSAA target retired") and passes all 3 with it. It skips on the Windows runner, which has no Vulkan device. The merge itself passes the `^agc` tests on Linux ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39177735991)). On Windows the only failures are the two replay tools (0xc0000139), which fail the same way on unrelated branches. Thanks for the version check too: 40 and 33 here, and #7689's 39 doesn't clash.
oneandonlydean commented 2026-10-19 01:51:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T01:51:49Z.


@EagleBearerYS thanks for the ownership fix in adc46f3ea0, which checks out. Since then #6470 has merged, and #6683 now conflicts with it in 12 files. Both PRs add per-sample information to the same pixel-stage structures (ShaderPixelStageInfo, its input copy, ShaderInputInfoBuilder, DrawLookup, DrawRegisterKey, ShaderInfoCollector, SpirvModuleEmitter). This one needs a real merge rather than keep-both, so could you rebase onto current main? These are the points the merge has to settle:

  1. Location table index. #6470's EmitSampleOffset reads SampleId through EmitBuiltinU32, which #6683 remaps to the guest index (GuestSampleIndex). Please confirm that the merged EmitSampleOffset indexes the table by the guest sample together with the quad pixel (locations[quad*8 + guest]), not by the raw host SampleId. The patterns #6683 reorders (same positions in another order, e.g. the rowSwap 0x76543201 case) are the ones where SampleLocationsVary() is true, so the 32-entry table is the case that matters. A test with a reordered pattern that varies per pixel would cover it: an off-center barycentric read should land on the guest's location.
  2. Position-input condition. ShaderInfoCollector needs position/FragCoord when ReordersSamples() (#6683) or SampleLocationsVary() (#6470) holds. Presumably these OR together. Can ReordersSamples() be true without SampleLocationsVary()?
  3. Coverage bits with per-sample shading. When the pixel stage iterates samples (#6470), SampleMaskIn carries one bit per invocation, so ReorderedSampleBits has to move that bit to the guest index, and the output mask has to go back to host order. Is there a test for a shader that iterates samples?
  4. Request format. Main is at 34 after #6470, and another approved PR is about to take 35. Please gate #6683's fields on the next free number at rebase time (bump the version to it, don't resolve to main's), and keep both groups of fields in the unsupported/future prefixes and the relabel blocks in ShaderMemory.cpp / RequestSerializerTests.cpp.
  5. FormatVersion. The PR has 40 and main has 39, so 40 stays (the next free number).
  6. Cache key and equality. RecompileCacheKey (CacheKey.hpp) and DrawRegisterKey.cpp must hash and compare both sampleOrder and iteratesSamples/positionLocation/sampleLocations, so that shaders differing in only one group never share an entry.
  7. ShaderDiskCache static_asserts. Please re-check the libstdc++ sizeof/field-count asserts for ShaderPixelInputInfo/ShaderPixelStageInfo with both groups added. They only fire on Linux, so Windows CI would stay green while Linux fails to compile.
  8. Tests that fail without the merge. The position-input condition (2), the table index (1) and the coverage bits (3) each need a test that fails without its merged branch. CI only runs agc_driver_sample_order on Linux llvmpipe and skips the grid-reference and recipe tests there.

Thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257956053 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6257956053). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-19T01:51:49Z. --- @EagleBearerYS thanks for the ownership fix in adc46f3ea0, which checks out. Since then #6470 has merged, and #6683 now conflicts with it in 12 files. Both PRs add per-sample information to the same pixel-stage structures (`ShaderPixelStageInfo`, its input copy, `ShaderInputInfoBuilder`, `DrawLookup`, `DrawRegisterKey`, `ShaderInfoCollector`, `SpirvModuleEmitter`). This one needs a real merge rather than keep-both, so could you rebase onto current main? These are the points the merge has to settle: 1. **Location table index.** #6470's `EmitSampleOffset` reads `SampleId` through `EmitBuiltinU32`, which #6683 remaps to the guest index (`GuestSampleIndex`). Please confirm that the merged `EmitSampleOffset` indexes the table by the guest sample together with the quad pixel (`locations[quad*8 + guest]`), not by the raw host `SampleId`. The patterns #6683 reorders (same positions in another order, e.g. the rowSwap 0x76543201 case) are the ones where `SampleLocationsVary()` is true, so the 32-entry table is the case that matters. A test with a reordered pattern that varies per pixel would cover it: an off-center barycentric read should land on the guest's location. 2. **Position-input condition.** `ShaderInfoCollector` needs position/FragCoord when `ReordersSamples()` (#6683) or `SampleLocationsVary()` (#6470) holds. Presumably these OR together. Can `ReordersSamples()` be true without `SampleLocationsVary()`? 3. **Coverage bits with per-sample shading.** When the pixel stage iterates samples (#6470), `SampleMaskIn` carries one bit per invocation, so `ReorderedSampleBits` has to move that bit to the guest index, and the output mask has to go back to host order. Is there a test for a shader that iterates samples? 4. **Request format.** Main is at 34 after #6470, and another approved PR is about to take 35. Please gate #6683's fields on the next free number at rebase time (bump the version to it, don't resolve to main's), and keep both groups of fields in the unsupported/future prefixes and the relabel blocks in `ShaderMemory.cpp` / `RequestSerializerTests.cpp`. 5. **FormatVersion.** The PR has 40 and main has 39, so 40 stays (the next free number). 6. **Cache key and equality.** `RecompileCacheKey` (CacheKey.hpp) and `DrawRegisterKey.cpp` must hash and compare both `sampleOrder` and `iteratesSamples`/`positionLocation`/`sampleLocations`, so that shaders differing in only one group never share an entry. 7. **ShaderDiskCache static_asserts.** Please re-check the libstdc++ `sizeof`/field-count asserts for `ShaderPixelInputInfo`/`ShaderPixelStageInfo` with both groups added. They only fire on Linux, so Windows CI would stay green while Linux fails to compile. 8. **Tests that fail without the merge.** The position-input condition (2), the table index (1) and the coverage bits (3) each need a test that fails without its merged branch. CI only runs `agc_driver_sample_order` on Linux llvmpipe and skips the grid-reference and recipe tests there. Thanks!
EagleBearerYS commented 2026-10-19 03:07:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-19T03:07:05Z.


@oneandonlydean thank you for the list. The branch merges main over #6470 (745f199d5a), plus d2658d4d2b, and the head is d2658d4d2b. d2658d4d2b sets the sample-order test's pixel stage as DrawDecode now does (iteratesSamples from per-sample shading and sampleLocations): without it, the test's per-sample passes ran once per pixel. On GitHub's runners (run) the ^agc, ^shader and ^recompiler tests pass on Linux, 758 of 758, agc_driver_sample_order among them. On Windows the only failures are the two replay tools (0xc0000139), which fail the same way on unrelated branches.

  1. Location table index. EmitSampleOffset reads SampleId through EmitBuiltinU32, which returns GuestSampleIndex(host). When SampleLocationsVary() is true, it ORs in the quad pixel shifted by 3, so it reads locations[quad * 8 + guest], not the host index.
  2. Position-input condition. They OR together: HasPositionInput() || psDitheredAlphaToCoverage || QuadMasked() || SampleLocationsVary() || ReordersSamples(). A pattern this PR reorders puts the same positions in a different order across pixels, so its locations vary and SampleLocationsVary() holds too. ReordersSamples() stays in the condition so the order doesn't depend on that.
  3. Coverage bits. The input coverage is reordered to the guest's order (ReorderedSampleBits(…, false)) before the shader sees it, and StoreCoverage reorders the output back to host order. When the stage iterates samples, the one host bit maps to the guest index of that invocation. There's no test for an iterated shader yet (see 8).
  4. Request format. #6683's sample order is gated on version 35, after #6470's fields at 34. Writer and reader put #6470's fields first. The unsupported/future prefixes and the relabel blocks in ShaderMemory.cpp and RequestSerializerTests.cpp cover both groups: older versions drop both, and a version 34 request reads no sample order. If the other approved PR takes 35 first, the second to merge moves to the next number.
  5. FormatVersion stays 40.
  6. Cache key and equality. CacheKey.hpp appends iteratesSamples, positionLocation, sampleLocations and sampleOrder. DrawRegisterKey.cpp compares all four, and DrawLookup.cpp hashes them.
  7. Static asserts. ShaderDiskCache.cpp has no sizeof or field-count assert on ShaderPixelInputInfo or ShaderPixelStageInfo. The Linux build above compiles with both groups.
  8. Tests that fail without the merge. These will follow in a later commit: an off-center barycentric read on a reordered pattern that varies per pixel, the position input with only the order, and the coverage bits of an iterated shader.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258770847 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6258770847). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-19T03:07:05Z. --- @oneandonlydean thank you for the list. The branch merges `main` over #6470 (745f199d5a), plus d2658d4d2b, and the head is d2658d4d2b. d2658d4d2b sets the sample-order test's pixel stage as `DrawDecode` now does (`iteratesSamples` from per-sample shading and `sampleLocations`): without it, the test's per-sample passes ran once per pixel. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39188637449)) the `^agc`, `^shader` and `^recompiler` tests pass on Linux, 758 of 758, `agc_driver_sample_order` among them. On Windows the only failures are the two replay tools (0xc0000139), which fail the same way on unrelated branches. 1. **Location table index.** `EmitSampleOffset` reads `SampleId` through `EmitBuiltinU32`, which returns `GuestSampleIndex(host)`. When `SampleLocationsVary()` is true, it ORs in the quad pixel shifted by 3, so it reads `locations[quad * 8 + guest]`, not the host index. 2. **Position-input condition.** They OR together: `HasPositionInput() || psDitheredAlphaToCoverage || QuadMasked() || SampleLocationsVary() || ReordersSamples()`. A pattern this PR reorders puts the same positions in a different order across pixels, so its locations vary and `SampleLocationsVary()` holds too. `ReordersSamples()` stays in the condition so the order doesn't depend on that. 3. **Coverage bits.** The input coverage is reordered to the guest's order (`ReorderedSampleBits(…, false)`) before the shader sees it, and `StoreCoverage` reorders the output back to host order. When the stage iterates samples, the one host bit maps to the guest index of that invocation. There's no test for an iterated shader yet (see 8). 4. **Request format.** #6683's sample order is gated on version 35, after #6470's fields at 34. Writer and reader put #6470's fields first. The unsupported/future prefixes and the relabel blocks in `ShaderMemory.cpp` and `RequestSerializerTests.cpp` cover both groups: older versions drop both, and a version 34 request reads no sample order. If the other approved PR takes 35 first, the second to merge moves to the next number. 5. **FormatVersion** stays 40. 6. **Cache key and equality.** `CacheKey.hpp` appends `iteratesSamples`, `positionLocation`, `sampleLocations` and `sampleOrder`. `DrawRegisterKey.cpp` compares all four, and `DrawLookup.cpp` hashes them. 7. **Static asserts.** `ShaderDiskCache.cpp` has no `sizeof` or field-count assert on `ShaderPixelInputInfo` or `ShaderPixelStageInfo`. The Linux build above compiles with both groups. 8. **Tests that fail without the merge.** These will follow in a later commit: an off-center barycentric read on a reordered pattern that varies per pixel, the position input with only the order, and the coverage bits of an iterated shader.
oneandonlydean commented 2026-10-19 03:52:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T03:52:51Z.


@EagleBearerYS thanks, the merge over #6470 checks out, and so do your answers. A few small things before CI:

  • FormatVersion: #6486 already moved main from 39 to 40, and this branch also says 40, so the two merge as identical lines. Please make it 41.
  • Debt doc: the new line in docs/dev/debt/libSceAgcDriver.md names title ids (PPSA01556, PPSA27836). New doc lines here don't name titles, so please describe the case without the ids. #6451's line has the same ids, so please drop them there too. The two lines will still touch the same spot; whichever PR merges second keeps this PR's longer line.
  • grid_reference skip text: the new skip message in SampleOrder.cpp (skipped, the device reads depth drawn at custom sample locations back at other locations...) doesn't match DEVICE_LIMITATION in tools/check_skips.py, so if that test ever skips on Linux CI, the job fails. Wording it as e.g. skipped, the device does not keep depth drawn at custom sample locations... fixes that.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6259270119 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6259270119). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-19T03:52:51Z. --- @EagleBearerYS thanks, the merge over #6470 checks out, and so do your answers. A few small things before CI: - **FormatVersion:** #6486 already moved main from 39 to 40, and this branch also says 40, so the two merge as identical lines. Please make it 41. - **Debt doc:** the new line in `docs/dev/debt/libSceAgcDriver.md` names title ids (PPSA01556, PPSA27836). New doc lines here don't name titles, so please describe the case without the ids. #6451's line has the same ids, so please drop them there too. The two lines will still touch the same spot; whichever PR merges second keeps this PR's longer line. - **grid_reference skip text:** the new skip message in `SampleOrder.cpp` (`skipped, the device reads depth drawn at custom sample locations back at other locations...`) doesn't match `DEVICE_LIMITATION` in `tools/check_skips.py`, so if that test ever skips on Linux CI, the job fails. Wording it as e.g. `skipped, the device does not keep depth drawn at custom sample locations...` fixes that.
oneandonlydean commented 2026-10-19 04:21:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T04:21:53Z.


@EagleBearerYS heads-up for the same push: #4650 merged an hour ago and now conflicts with this branch in DrawRegisterKey.cpp and tests/ShaderMemory.cpp. #4650 took request format 35 and pipeline journal 4, so please merge main and give this PR the next free numbers there, along with FormatVersion 41.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6259588210 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6259588210). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-19T04:21:53Z. --- @EagleBearerYS heads-up for the same push: #4650 merged an hour ago and now conflicts with this branch in `DrawRegisterKey.cpp` and `tests/ShaderMemory.cpp`. #4650 took request format 35 and pipeline journal 4, so please merge `main` and give this PR the next free numbers there, along with FormatVersion 41.
EagleBearerYS commented 2026-10-21 07:18:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T07:18:20Z.


@oneandonlydean, thanks. All three points are in, and the branch merges current main (7ce3b1df3e); the head is 8c9c8eb5b5.

  • Versions: the request serializer writes 42 (main writes 41, after #4650 and the bumps since), with this PR's sample order after main's stencil operation value export flag, read at version >= 42. The shader cache FormatVersion is 44, since #8295 has just moved main to 43. The pipeline journal isn't changed here.
  • Debt doc: the "Custom MSAA sample locations" entry names no title IDs, #6451's text in it included.
  • Skip text: agc_driver_sample_order_grid_reference now skips with "skipped, the device does not keep depth drawn at custom sample locations …", which check_skips.py's DEVICE_LIMITATION accepts.

The three answers in my earlier comment now have a test each (9b7f8cd2e3, 44e8786ba0, ef6ec1e242), and each fails with its fix line reverted:

  • the location table's index: "the table index's low bits are not the order word's nibble at the shader's SampleId";
  • the position input: "a pixel shader that only reorders its samples was not given the position input";
  • the coverage order: "a quad sample mask reached the pixel shader in the guest's order".

On GitHub's runners (run) they and the sample-order, serializer and shader cache tests pass 5 runs in a row on Linux. On Windows the serializer and shader cache tests pass, and the GPU tests skip without a Vulkan device. At the merge before it (6d09797d6b, main 1ff5c8ac5c), the ^(agc|shader) tests pass on Linux, 0 of 859 failed. The description has the details.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6310377375 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6310377375). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-21T07:18:20Z. --- @oneandonlydean, thanks. All three points are in, and the branch merges current `main` (7ce3b1df3e); the head is 8c9c8eb5b5. - **Versions:** the request serializer writes 42 (`main` writes 41, after #4650 and the bumps since), with this PR's sample order after `main`'s stencil operation value export flag, read at `version >= 42`. The shader cache `FormatVersion` is 44, since #8295 has just moved `main` to 43. The pipeline journal isn't changed here. - **Debt doc:** the "Custom MSAA sample locations" entry names no title IDs, #6451's text in it included. - **Skip text:** `agc_driver_sample_order_grid_reference` now skips with "skipped, the device does not keep depth drawn at custom sample locations …", which `check_skips.py`'s `DEVICE_LIMITATION` accepts. The three answers in my earlier comment now have a test each (9b7f8cd2e3, 44e8786ba0, ef6ec1e242), and each fails with its fix line reverted: - the location table's index: "the table index's low bits are not the order word's nibble at the shader's SampleId"; - the position input: "a pixel shader that only reorders its samples was not given the position input"; - the coverage order: "a quad sample mask reached the pixel shader in the guest's order". On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39557887630)) they and the sample-order, serializer and shader cache tests pass 5 runs in a row on Linux. On Windows the serializer and shader cache tests pass, and the GPU tests skip without a Vulkan device. At the merge before it (6d09797d6b, `main` 1ff5c8ac5c), the `^(agc|shader)` tests pass on Linux, 0 of 859 failed. The description has the details.
oneandonlydean commented 2026-10-21 07:24:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T07:24:42Z.


@EagleBearerYS thanks, checked on 8c9c8eb5b5. The serializer writes 42 and the shader cache FormatVersion is 44, one above main's 41 and 43, and the branch merges main cleanly. HostSampleLocationsFor keeps main's fallback (pixel (0,0)'s locations on a 1x1 grid with the one-time warning) and adds the same-set sample order. The pipeline keys now include the device's sample-location caps. Next is a full CI run on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6310479983 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6310479983). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-21T07:24:42Z. --- @EagleBearerYS thanks, checked on `8c9c8eb5b5`. The serializer writes 42 and the shader cache `FormatVersion` is 44, one above `main`'s 41 and 43, and the branch merges `main` cleanly. `HostSampleLocationsFor` keeps `main`'s fallback (pixel (0,0)'s locations on a 1x1 grid with the one-time warning) and adds the same-set sample order. The pipeline keys now include the device's sample-location caps. Next is a full CI run on this head.
milescoviello commented 2026-10-21 11:09:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T11:09:31Z.


@EagleBearerYS a heads-up after the merge. On an RTX 4070 Ti with the 595.99.02 Linux driver, agc_driver_sample_order, agc_driver_sample_order_grid_reference and agc_driver_sample_order_recipe_depth_locations fail on main: they read back depth other than what was drawn.

The tests read the depth surface by binding its own view as a sampled image. A multisampled depth surface sampled through #7318's shadow image has no SAMPLED usage, so the layer reports VUID-VkWriteDescriptorSet-descriptorType-00337, and this driver returns other depth. The reorder pass itself samples a copy, so the driver code is fine.

#9056 makes the tests read the same kind of copy, and then all 4 pass here. #9057 fixes a separate VUID-VkImageMemoryBarrier-image-03320 in the depth reorder's copy barrier for D32S8. Your review on either would be welcome.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6314466627 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6314466627). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T11:09:31Z. --- @EagleBearerYS a heads-up after the merge. On an RTX 4070 Ti with the 595.99.02 Linux driver, `agc_driver_sample_order`, `agc_driver_sample_order_grid_reference` and `agc_driver_sample_order_recipe_depth_locations` fail on `main`: they read back depth other than what was drawn. The tests read the depth surface by binding its own view as a sampled image. A multisampled depth surface sampled through #7318's shadow image has no `SAMPLED` usage, so the layer reports `VUID-VkWriteDescriptorSet-descriptorType-00337`, and this driver returns other depth. The reorder pass itself samples a copy, so the driver code is fine. #9056 makes the tests read the same kind of copy, and then all 4 pass here. #9057 fixes a separate `VUID-VkImageMemoryBarrier-image-03320` in the depth reorder's copy barrier for D32S8. Your review on either would be welcome. AI-assisted: yes (Claude Code)
EagleBearerYS commented 2026-10-21 11:50:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T11:50:37Z.


@milescoviello, thank you for running these on the RTX 4070 Ti, and for both fixes. Both are right, and both fix code #6683 added:

  • The depth reorder's copy barrier in SampleOrders::Depth named only the depth aspect of a D32S8 copy image. Without separateDepthStencilLayouts, which the driver doesn't enable, VUID-VkImageMemoryBarrier-image-03320 requires both. #9057 fixes it.
  • The tests bind the depth surface's own view as a sampled image. When the device takes #7318's shadow path, that image has no SAMPLED usage. #9056 fixes the tests' reads.

I've left a review comment on each.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6315197493 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6315197493). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-21T11:50:37Z. --- @milescoviello, thank you for running these on the RTX 4070 Ti, and for both fixes. Both are right, and both fix code #6683 added: - The depth reorder's copy barrier in `SampleOrders::Depth` named only the depth aspect of a D32S8 copy image. Without `separateDepthStencilLayouts`, which the driver doesn't enable, VUID-VkImageMemoryBarrier-image-03320 requires both. #9057 fixes it. - The tests bind the depth surface's own view as a sampled image. When the device takes #7318's shadow path, that image has no `SAMPLED` usage. #9056 fixes the tests' reads. I've left a review comment on each.
DavidSamir commented 2026-10-21 12:00:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-21T12:00:22Z.


@EagleBearerYS @milescoviello: an AMD data point for agc_driver_sample_order_grid_reference. On the Radeon 680M it loses the device in the exact path's depth pass, and still does with #9056 and #9057.

Setup: Windows 11 Pro 26200, AMD Radeon 680M (RDNA 2 iGPU; shaderStorageImageMultisample true; largest sample location grid 2x2 at every count), AMD driver 32.0.21030.2001, main 27fabb6b7, alone and with #9056 + #9057 merged.

Failure: in RenderCheckerboard(device, emulated, ...) (the exact path, with sampleLocationGridSampleCounts forced to 0):

[device-fault] result 0: GPU fault
[device-fault] read invalid at 0x200000000 (precision 0x1000)
AGC graphics: vkQueueSubmit recorder: Vulkan result -4

The VUID-VkSubmitInfo-pSignalSemaphores-03242 that follows (a timeline at UINT64_MAX) is the aftermath of the lost device. The reference composite before it renders fine.

Narrowed down with local early returns in SampleOrders (not pushed):

  • skipping Storage() (the compute pass over the colour alias): still faults
  • skipping Depth(): no fault
  • returning after the layout barrier, after vkCmdCopyImage, or after vkUpdateDescriptorSets: no fault
  • no sample-locations chain on vkCmdBeginRenderPass: still faults
  • writing both sampled bindings (a depth-only target writes only 1): still faults
  • skipping only draw(pass.depth, 0u, 0xffu, 0u): no fault

So it's the pass.depth draw itself: the embedded fragment shader sampling the 2x depth copy, with sampleShadingEnable and minSampleShading 1.0. The copy image looks right (DEPTH_STENCIL_ATTACHMENT|TRANSFER_DST|SAMPLED, device-local, bound at offset 0). My suspect is a texelFetch sample index taken from DepthPush.map that is out of range at 2 samples: AMD's driver faults on that, while other drivers may clamp it. I haven't checked the shader source.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6315373710 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6315373710). Originally posted by [DavidSamir](https://github.com/DavidSamir) on 2026-10-21T12:00:22Z. --- @EagleBearerYS @milescoviello: an AMD data point for `agc_driver_sample_order_grid_reference`. On the Radeon 680M it loses the device in the exact path's depth pass, and still does with #9056 and #9057. **Setup:** Windows 11 Pro 26200, AMD Radeon 680M (RDNA 2 iGPU; `shaderStorageImageMultisample` true; largest sample location grid 2x2 at every count), AMD driver 32.0.21030.2001, `main` `27fabb6b7`, alone and with #9056 + #9057 merged. **Failure:** in `RenderCheckerboard(device, emulated, ...)` (the exact path, with `sampleLocationGridSampleCounts` forced to 0): ``` [device-fault] result 0: GPU fault [device-fault] read invalid at 0x200000000 (precision 0x1000) AGC graphics: vkQueueSubmit recorder: Vulkan result -4 ``` The `VUID-VkSubmitInfo-pSignalSemaphores-03242` that follows (a timeline at `UINT64_MAX`) is the aftermath of the lost device. The reference composite before it renders fine. **Narrowed down** with local early returns in `SampleOrders` (not pushed): - skipping `Storage()` (the compute pass over the colour alias): still faults - skipping `Depth()`: no fault - returning after the layout barrier, after `vkCmdCopyImage`, or after `vkUpdateDescriptorSets`: no fault - no sample-locations chain on `vkCmdBeginRenderPass`: still faults - writing both sampled bindings (a depth-only target writes only 1): still faults - skipping only `draw(pass.depth, 0u, 0xffu, 0u)`: no fault So it's the `pass.depth` draw itself: the embedded fragment shader sampling the 2x depth copy, with `sampleShadingEnable` and `minSampleShading` 1.0. The copy image looks right (`DEPTH_STENCIL_ATTACHMENT|TRANSFER_DST|SAMPLED`, device-local, bound at offset 0). My suspect is a `texelFetch` sample index taken from `DepthPush.map` that is out of range at 2 samples: AMD's driver faults on that, while other drivers may clamp it. I haven't checked the shader source. AI-assisted: yes
EagleBearerYS commented 2026-10-21 12:02:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T12:02:08Z.


@DavidSamir, thank you for the Radeon 680M data point and for bisecting it down to the pass.depth draw, with and without #9056 and #9057. We're checking the depth pass's sample indices at 2 samples, starting with the map it reads from DepthPush, and will follow up here with a fix if the fault is in our code.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6315406171 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6315406171). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-21T12:02:08Z. --- @DavidSamir, thank you for the Radeon 680M data point and for bisecting it down to the `pass.depth` draw, with and without #9056 and #9057. We're checking the depth pass's sample indices at 2 samples, starting with the map it reads from `DepthPush`, and will follow up here with a fix if the fault is in our code.
milescoviello commented 2026-10-21 12:21:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T12:21:46Z.


Thanks @EagleBearerYS and @DavidSamir. If a fix for the 680M device loss comes out of this, I can run it on the RTX 4070 Ti under the layer, with #9056 and #9057, to check it changes nothing there.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6315775830 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6315775830). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T12:21:46Z. --- Thanks @EagleBearerYS and @DavidSamir. If a fix for the 680M device loss comes out of this, I can run it on the RTX 4070 Ti under the layer, with #9056 and #9057, to check it changes nothing there. AI-assisted: yes (Claude Code)
EagleBearerYS commented 2026-10-21 13:06:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T13:06:05Z.


@DavidSamir, we've checked what we can here. We haven't found the cause of the Radeon 680M device loss, and there's a branch to try.

What we checked (lavapipe, Mesa 25.2.8, validation layers 1.3.275):

  • Sample indices. A new check applies the depth pass's map rule to 3,003 sample orders: the test's 2x, 4x and 8x orders and 3,000 random ones. Every map word reads only samples below the count, each sample once, in both directions. So an out-of-range sample index isn't it.
  • Validation (core, synchronization and GPU-assisted). lavapipe has no 2x and no VK_EXT_sample_locations, so it can't reach your located 2x D32_SFLOAT path. Over what it does reach (4x, unlocated), it found one error: the 03320 barrier that @milescoviello's #9057 fixes. Your format has no stencil, so that doesn't explain your device loss. Nothing else came up.

The branch: EagleBearerYS/AnyPS5 fix/agc-sample-order-copy-sampled-only (4bdf36e05e), main d099bc6cd8 plus three commits:

  • the index check;
  • #9057's barrier fix, with a test;
  • two changes to the depth pass, each with a test that fails with it reverted:
    • The multisampled copy the pass samples is created with TRANSFER_DST | SAMPLED only, without DEPTH_STENCIL_ATTACHMENT. Where a device refuses that usage, it keeps the old usage and is sampled in DEPTH_STENCIL_READ_ONLY_OPTIMAL.
    • Binding 1 is now written for every method, with the depth view for the depth-only method. Before, it was left unwritten, which is valid since the shader doesn't read it there.

Could you run both trees and post the six logs? Use main d099bc6cd8 rather than 27fabb6b7, so the trees differ only by those three commits. In Git Bash with CI's WinLibs GCC 15.2.0, CMake, Ninja, Python and the LunarG Vulkan SDK (drop the two *_LAUNCHER flags without ccache):

CONFIGURE="-G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
git clone https://github.com/boykopovar/AnyPS5 anyps5-main
cd anyps5-main && git checkout d099bc6cd8 && git submodule update --init --recursive
cmake -S . -B build $CONFIGURE -DANYPS5_AGC_EXECUTION_TESTS=SampleOrder
cmake --build build --target agc_driver_sample_order_tests agc_driver_graphics_tests
cd ..
git clone https://github.com/EagleBearerYS/AnyPS5 anyps5-branch
cd anyps5-branch && git checkout fix/agc-sample-order-copy-sampled-only && git submodule update --init --recursive
cmake -S . -B build $CONFIGURE -DANYPS5_AGC_EXECUTION_TESTS=SampleOrder
cmake --build build --target agc_driver_sample_order_tests agc_driver_graphics_tests
cd ..

Two layer settings files. C:/anyps5-vvl/sync/vk_layer_settings.txt:

khronos_validation.debug_action = VK_DBG_LAYER_ACTION_LOG_MSG
khronos_validation.report_flags = error,warn,perf
khronos_validation.log_filename = stdout
khronos_validation.duplicate_message_limit = 0
khronos_validation.enables = VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT

and C:/anyps5-vvl/gpuav/vk_layer_settings.txt, the same with VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT on the last line.

Then, in each tree:

ctest --test-dir build -R '^agc_driver_sample_order' -V > sample-order-plain.log 2>&1
export VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation
VK_LAYER_SETTINGS_PATH=C:/anyps5-vvl/sync/vk_layer_settings.txt ctest --test-dir build -R '^agc_driver_sample_order' -V > sample-order-sync.log 2>&1
VK_LAYER_SETTINGS_PATH=C:/anyps5-vvl/gpuav/vk_layer_settings.txt ctest --test-dir build -R '^agc_driver_sample_order' -V > sample-order-gpuav.log 2>&1
unset VK_INSTANCE_LAYERS
grep -c "was not found but was requested by env var VK_INSTANCE_LAYERS" sample-order-*.log

That last line prints one count per log; if any of them isn't 0, the layer didn't load. A device loss shows as Vulkan result -4. A Vulkan result 2 is CommandBatch::Wait's fixed 5 s fence wait, which GPU-assisted validation outlasted on lavapipe. If you hit it, raise 5'000'000'000ULL in core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp and rebuild.

@milescoviello, thanks for the offer. Could you run the branch on the RTX 4070 Ti under the layer, with #9056 on top, to check that it changes nothing there? It already carries #9057's change, and merging #9057 into it would conflict on that line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6316800641 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6683#issuecomment-6316800641). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-21T13:06:05Z. --- @DavidSamir, we've checked what we can here. We haven't found the cause of the Radeon 680M device loss, and there's a branch to try. **What we checked** (lavapipe, Mesa 25.2.8, validation layers 1.3.275): - **Sample indices.** A new check applies the depth pass's map rule to 3,003 sample orders: the test's 2x, 4x and 8x orders and 3,000 random ones. Every map word reads only samples below the count, each sample once, in both directions. So an out-of-range sample index isn't it. - **Validation** (core, synchronization and GPU-assisted). lavapipe has no 2x and no `VK_EXT_sample_locations`, so it can't reach your located 2x `D32_SFLOAT` path. Over what it does reach (4x, unlocated), it found one error: the 03320 barrier that @milescoviello's #9057 fixes. Your format has no stencil, so that doesn't explain your device loss. Nothing else came up. **The branch:** `EagleBearerYS/AnyPS5` `fix/agc-sample-order-copy-sampled-only` (4bdf36e05e), `main` d099bc6cd8 plus three commits: - the index check; - #9057's barrier fix, with a test; - two changes to the depth pass, each with a test that fails with it reverted: - The multisampled copy the pass samples is created with `TRANSFER_DST | SAMPLED` only, without `DEPTH_STENCIL_ATTACHMENT`. Where a device refuses that usage, it keeps the old usage and is sampled in `DEPTH_STENCIL_READ_ONLY_OPTIMAL`. - Binding 1 is now written for every method, with the depth view for the depth-only method. Before, it was left unwritten, which is valid since the shader doesn't read it there. **Could you run both trees and post the six logs?** Use `main` d099bc6cd8 rather than 27fabb6b7, so the trees differ only by those three commits. In Git Bash with CI's WinLibs GCC 15.2.0, CMake, Ninja, Python and the LunarG Vulkan SDK (drop the two `*_LAUNCHER` flags without ccache): ```bash CONFIGURE="-G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" git clone https://github.com/boykopovar/AnyPS5 anyps5-main cd anyps5-main && git checkout d099bc6cd8 && git submodule update --init --recursive cmake -S . -B build $CONFIGURE -DANYPS5_AGC_EXECUTION_TESTS=SampleOrder cmake --build build --target agc_driver_sample_order_tests agc_driver_graphics_tests cd .. git clone https://github.com/EagleBearerYS/AnyPS5 anyps5-branch cd anyps5-branch && git checkout fix/agc-sample-order-copy-sampled-only && git submodule update --init --recursive cmake -S . -B build $CONFIGURE -DANYPS5_AGC_EXECUTION_TESTS=SampleOrder cmake --build build --target agc_driver_sample_order_tests agc_driver_graphics_tests cd .. ``` Two layer settings files. `C:/anyps5-vvl/sync/vk_layer_settings.txt`: ``` khronos_validation.debug_action = VK_DBG_LAYER_ACTION_LOG_MSG khronos_validation.report_flags = error,warn,perf khronos_validation.log_filename = stdout khronos_validation.duplicate_message_limit = 0 khronos_validation.enables = VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT ``` and `C:/anyps5-vvl/gpuav/vk_layer_settings.txt`, the same with `VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT` on the last line. Then, in each tree: ```bash ctest --test-dir build -R '^agc_driver_sample_order' -V > sample-order-plain.log 2>&1 export VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LAYER_SETTINGS_PATH=C:/anyps5-vvl/sync/vk_layer_settings.txt ctest --test-dir build -R '^agc_driver_sample_order' -V > sample-order-sync.log 2>&1 VK_LAYER_SETTINGS_PATH=C:/anyps5-vvl/gpuav/vk_layer_settings.txt ctest --test-dir build -R '^agc_driver_sample_order' -V > sample-order-gpuav.log 2>&1 unset VK_INSTANCE_LAYERS grep -c "was not found but was requested by env var VK_INSTANCE_LAYERS" sample-order-*.log ``` That last line prints one count per log; if any of them isn't 0, the layer didn't load. A device loss shows as `Vulkan result -4`. A `Vulkan result 2` is `CommandBatch::Wait`'s fixed 5 s fence wait, which GPU-assisted validation outlasted on lavapipe. If you hit it, raise `5'000'000'000ULL` in `core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp` and rebuild. @milescoviello, thanks for the offer. Could you run the branch on the RTX 4070 Ti under the layer, with #9056 on top, to check that it changes nothing there? It already carries #9057's change, and merging #9057 into it would conflict on that line.
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!6683
No description provided.