Repository navigation
Conversation
…its guest planes on access A guest read, DMA copy source or texture, storage, index or vertex read over a native multisample depth surface that a draw had written threw sample-preserving guest publication of native multisample depth is not implemented (Sonic Superstars PPSA06888 boykopovar#5382, Monster Hunter Wilds PPSA24191 boykopovar#7972, Onimusha PPSA27836 boykopovar#6570). The access now completes the pending fast clear and recorder work, reads the samples back in the guest layer, row, column, fragment order with the merged multisample readback, retiles them into the Z_X plane with the descriptor pipe-bank XOR through MultisampleTextureLayout, and rewrites every HTILE word to the expanded clear word (Mesa radv_get_htile_initial_value: 0xfffc000f without stencil, ZMask 0xf with the full Z range otherwise) before retiring the surface like an unwritten one. Written D16 surfaces, surfaces the device stores in another format and surfaces it cannot sample still throw with their own messages. The console HTILE after a DB decompress and its compressed plane bytes are not measured.
# Conflicts: # core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_native_multisample_depth_tests.cmake
|
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.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A writable buffer can become backed by a newly created native depth owner after its resource set was cached. If publication first occurs in
Bind, it may synchronize and end a command buffer the cached dispatch already acquired. RunrequireGuestBuffers()inRevalidateafter registered-image identity validation and before every resource proof, including the epoch shortcut, so publication/refusal completes before cached recording.The November 11 integration used main
bc94a8e423ea026aadbb29165fed1ad2db471154. The carried boykopovar#9950 publisher retains Ethan Barr's authorship and matches boykopovar#10469's refreshed production implementation, including main's snapshot/readback helpers, overwritten-plane proofs and colour-alias retirement. boykopovar#10469 and boykopovar#10492 remain independent after boykopovar#9950. The three cached-publication fixture functions remain byte-identical to the previous submission, retaining import-watch skips and explicit driver shutdown. All new main test registrations are preserved alongside this PR's three modes.The confirmed order remains boykopovar#9950, then boykopovar#10469/boykopovar#10492, then boykopovar#10497, then boykopovar#7002. The #7002 author confirmation retains the early transition before epoch proof and the deferred feedback scan before either colour/depth publication pass. boykopovar#7002 remains draft; its combined colour stack is not qualified here.
The November 19 main sync carries the shared D32 publication update from boykopovar#10469. Main's reuse policy remains in place. The cached resource guard still runs before the epoch proof, and repeated staging uploads retain the transfer-write dependency.
Tested
The November 19 Windows Release retest used main
b68affac18ca39391a3800d5cb51735d085c014dand PR head804659939aebb28904cbc3e64146b33c4d6b364e. Both full runtime builds passed with WinLibs GCC 15.2.0. The same 31 focused Vulkan CTests passed on both revisions. All three PR-specific publication CTests passed, including cached draw recording and its buffer store. The RTX 4070 Ti SUPER on driver 621.24 and Khronos validation 1.4.335 were confirmed in every log. The runs logged no VUID or synchronization hazards. Two internal HTILE write-coverage assertions skipped on each revision.The separate boykopovar#10469 plus boykopovar#10492 merge preview conflicts in
NativeMultisampleDepth.cpp. The November 19 runs cover each PR's main-based revision independently. Earlier reports below apply to the revisions they list.November 11, 2026 (Europe/Prague): submitted head
ec6f18ac80329de04ed7e50a56c1bc76b87ceac8, based on mainbc94a8e423ea026aadbb29165fed1ad2db471154.Windows 11 Pro 10.0.26300; AMD Ryzen 9 7900X; 31.66 GiB RAM; NVIDIA GeForce RTX 4070 Ti SUPER, driver 621.01. WinLibs GCC 15.2.0 r7 UCRT, CMake 4.1.2, Ninja 1.13.2, Python 3.14.7. Release full-runtime configuration with
BUILD_TESTING=ONandANYPS5_ENABLE_SPIRV_TOOLS=ON. Production relinker, all libraries and the four focused fixture targets build successfully.The main comparison ran at
60ec4a7bcd05d6700c987adaabad19c2acd2142e; the only subsequent base change is in the unrelatedGuestNpCommonRuntime.cppfixture. Repository blobs for production code, dependencies, build scripts and the focused tests are identical between that baseline and the submitted base, so that baseline is reused. The submitted head was rebuilt and the entire selection rerun after the final rebase.Both arms require Vulkan, disable normal shader caches, enable
APS5_VERIFY_SHAPE_MEMO=1and use the same explicit Khronos validation 1.4.335 path and layer logging. The logs confirm the selected RTX 4070 Ti SUPER and matching inserted Khronos/OBS/Overwolf/NVIDIA layers. Neither log contains a missing requested layer, VUID, validation error or synchronization hazard. The single skip in each arm isagc_driver_native_depth_driver_queued_fill.All three added modes execute and pass: cached writable-buffer publication, the dispatch-items variant and cached draw publication with
APS5_DRAW_PIPELINE=1. The full selection also covers current D32S8 publication, overwritten-plane, single-sample-view and pending-unit cases. A source-order check confirms registered-image identity validation precedes publication, which precedes both epoch/full proofs. Conventions (one debt-length warning, zero errors), whitespace and strict main-sync checks pass.The 2,007-head depth overlap snapshot used for boykopovar#10469 exited 2 because conflicting branches prevented complete comparisons. Its shared depth/debt diffs were manually inspected and reused for the byte-identical publisher. The added
Revalidatetransition was checked against current main and boykopovar#7002's confirmed order; no clean full overlap result or combined colour/fault-slot stack is claimed. Existing contributor reports retain their original revision/platform scope. No full CTest or new title/console run is claimed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)