feat(agc): publish a written native multisample D32S8 surface to its guest planes on a guest read #13021
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13021"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by JAB-dev on 2026-10-29T21:58:14Z.
What
Arcade Game Zone (PPSA19015) stops on a guest read of a native multisample D32S8 depth surface that a draw has written, with
sample-preserving guest publication of native multisample depth is not implemented. With this change, a guest read now publishes the surface back to guest memory, and the title keeps playing: it ran for 27 minutes without a stop on this change together with the pull requests listed below.A read over a written native multisample D32S8 surface (a CPU read, a DMA source, a texture, storage, index or vertex read) now reads the samples back in the guest's layer, row, column, fragment order, retiles them into the Z_X planes with the descriptor's pipe-bank XOR, and rewrites the HTILE words to the expanded clear word. The surface keeps its host image and stays resident. The planes the guest wrote are never overwritten: the guest's bytes are snapshotted when the host takes ownership (and again after a proven whole-plane clear), and a byte is taken from the host only where the write tracker proves the guest did not write it. A byte it cannot prove (the guest stored the value the byte already held, which the tracker cannot tell from no store) throws
native multisample depth publication cannot distinguish an unwritten byte from a same-value guest storerather than guess. A capture that cannot be taken (a colour alias, a pending GPU write, an unproven store since import) leaves the owner unavailable for publication: draws keep rendering and a guest read throws the earlier refusal. D16 and D32-only owners, unproven clear transitions and publication inside a GPU completion still throw.After a guest byte was merged over the host's, a later draw on that target throws
guest writes over native multisample depthinstead of re-importing a cleared image. Publication's own stores are recorded as possible stores, not complete ones, so the HTILE clear proof is unaffected;WriteChangedand every other caller are unchanged frommain.Late guest stores. Each changed byte is exchanged with a compare-and-swap (8-byte words when aligned, bytes otherwise) only while it still holds the snapshot value, and a part is refused when the tracker saw a CPU store since its last collect. A late store of any other value is kept and the read throws
guest writes raced native multisample depth publication; planes already committed stay published and later reads throw. The one case still overwritten is a CPU store of the snapshot's own value that lands in a byte the host changes while that part commits. It is in the debt entry.Lock order.
GpuMutex,surfacesMutex, the multisample targets mutex, thenguardedMutexordepthGuardMutex, then the write tracker. The allocation lease is a snapshot taken under the registry mutex and released at once, and publication dropsdepthGuardMutexbefore the colour-target lookup. Publication runs withGpuMutexheld, so the flush hook re-enters it at depth 2 and never releases it whilesurfacesMutexis held. By reading the code, no production thread takesGpuMutexwhile holding the targets mutex (nothing enforces it, and some tests acquire targets withoutGpuMutex): acquisition, sampling, storage and resolve record commands underGpuMutex, andNoteColorMetadataFillholds the targets mutex withoutGpuMutexbut waits on nothing. Read-guard callers withoutGpuMutexare game-thread host reads and the PM4 DMA-source check; they takeGpuMutexas their outermost driver lock.Other titles.
NoteDepthSurfaceWritereturns at once for a single-sample target. For a multisample depth-writing draw it takes the surfaces lock, marks every active matching owner as host-written, and throwsa native multisample depth attachment was retired while its draw resolved resourceswhen no active owner matches the draw's target; it now runs after the resources and the recipe proof, so a draw that a proof or a resource build refuses no longer marks the surface written.Evidence limits. The Z_X retile, the pipe-bank XOR and the HTILE word expansion are checked against this driver's own import path, not against an independent reading of the console. The title run was on a stack of four changes (this one, the stencil plane change, the staged 4_4_4_4 partial write change and the D32S8 import change), not on this one alone.
Tested
Windows 11, NVIDIA RTX 4070 SUPER, driver 610.88.
agc_driver_native_depth_publication(new): 2, 4 and 8 samples with each kind of clear; guest writes to depth, stencil and HTILE pages; a driver store of the same value; a queued fill; partial unmaps, remapped and inaccessible holes; a write during the copy; a concurrent read from two threads; a colour alias, a pending draw and publication inside a GPU completion (each throws with its own message); a draw after publishing sees the published samples; a DCC colour target over a host-written surface throws instead of deadlocking. A guest store after the last validation and one between the plane commits are kept and refused;WriteChangedIfHeldis checked on unaligned heads and tails, on a byte the host leaves alone and on a byte it changes; publication while another thread holds the GPU mutex and the multisampled target list completes once it is released. States that are valid but not implemented (a GPU completion, a colour alias, a pending draw, a same-value store, a DCC target) assert that a refusal changes no guest byte and keeps the owner, and that a publication writes only host bytes and keeps every byte the guest stored.agc_driver_native_multisample_depthand the otheragc_driver_native_depth_*tests,agc_driver_multisample_retirement,DepthPlaneFill,DepthSurfaceFromStorageandNativeDepthBdaClear.agc_drivertests that touch draws, targets, multisampling and pipelines, andcheck_conventions.py.mainwith the open D32S8 import change) in all 37 focused tests (the VUIDs areVUID-VkDeviceCreateInfo-pNext-pNext,VUID-VkPhysicalDeviceProperties2-pNext-pNext,VUID-VkGraphicsPipelineCreateInfo-renderPass-06053andVUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605, all reported by the base), and no log reportswas not found but was requested by env var VK_INSTANCE_LAYERS.agc_driver_native_depth_publicationreports none.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)DepthSurface.cppand its test, and the maintainers can pick the order🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-30T23:56:01Z.
Review: COMMENTED
Linux run of head
bb085f7a40, since the description and the AMD data point are both Windows. On Linux NVIDIA the queued-fill HTILE check that skips on bunbeans2-arch's RX 9070 XT does run.Setup: Ubuntu 26.04, GCC 15.2, Release. RTX 3070 (NVIDIA 595.99.02) and lavapipe (Mesa 26.0.3), one at a time via
VK_DRIVER_FILES. Khronos validation layer 1.4.341,ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1,ctest -j1. The head merged--no-ffonto currentmainde96e3efbdwith no conflicts. Every executable of the focused set was rebuilt for the tree.agc_driver_native_multisample_depth, theagc_driver_native_depth_*tests (includingpublication,driver_pathanddriver_queued_fill),multisample_retirement,depth_plane_fillanddepth_surface_from_storage. 15/15 in 3 of 3 runs on each device, 0VUID-lines.agc_driver_native_depth_driver_queued_fillis not skipped here:cases checked=6 unavailable=0. Each case printscleared by a queued DMA_DATA fill of 128 KiB from its HTILE through the driver and sampled.cases checked=4 unavailable=2. The 2-sample cases are the unavailable ones; the 4- and 8-sample cases pass.agc_driver_native_depth_bda_clearskips on lavapipe (the device does not keep write watching for native clear imports), as onmain.^agcsuite (without display/flip/lds_atomics64, no layer,--timeout 60) on #13023's head, which contains this branch: 1136/1136 on the RTX 3070 and 1136/1136 on lavapipe.ninja allplus everyagc*_teststarget builds. GCC prints no warnings on the lines this PR adds.GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02, Linux); lavapipe (Mesa 26.0.3, Linux).
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:50:44Z.
Review: COMMENTED
For the reviewer's benefit: this branch carries about 40 commits, including the whole separate-stencil import series (
feat(agc): import cleared native multisample D32S8 targets..., thefix(agc): ... native multisample depth ...run and a merge oforigin/pr-9533), and #13023 carries the same commits plus its own. The "What" describes only the publication change. Please state which commits in this PR are new here and which belong to the prerequisite PR(s), and what the dependency order is (Depends on), so the two can be reviewed and merged without the same hunks landing twice. A diff of +2368/-171 over 16 files is hard to attribute otherwise.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-02T21:16:15Z.
Review: APPROVED
Reviewed — approved
The merged tree builds, and the new publication test and its neighbours pass on lavapipe. Two mutations each make the new test fail: one turns publication off, the other removes the compare-and-swap guard on late guest stores. I found nothing blocking; three non-blocking notes on scope and documentation follow.
What I ran
Head
f6e7798ba98dd9aa8e0ad7a2036588c61a65684c,main9090972b7e91fd266819cbd77a8b058e177b5682, merged--no-ffin a clean worktree (Debian 13 VM, 2× Xeon Gold 6136, GCC 14.2.0, lavapipe Mesa 26.1.6 / LLVM 19, no GPU).Results
git diff --checkcheck_conventions.pydocs/dev/debt/libSceAgcDriver.md:67has 3982 characters (the limit is 1000)libs(script)maintoo (agc_driver_division, the denormal-mode tests,unwrap_self,vector_constant_factor_tininess)agc_driver_native_depth_bda_clear, which skips on lavapipe onmaintoo)agc_driver_native_depth_publicationcheckedfor 2, 4 and 8 samples and each kind of clear, write and unmapVUID-lines, no "was not found but was requested" linePublication test, end of the verbose run
Negative control
The new tests call entry points that only this PR adds (
WriteChangedIfHeld,SetDepthPublicationHookForTest,WithMultisampleTargetsLockForTest), so restoring the production files frommainwould only break the build. I mutated the production code instead:DepthSurface.cpp, I replaced thepublishWrittenDepth(written)call inRequireNoResidentDepthRead_nid_no_patchwith a no-op.agc_driver_native_depth_publicationfailed:AGC graphics: sample-preserving guest publication of native multisample depth is not implemented.GuestMemory.cpp'sWriteChangedIfHeld, I replaced both compare-and-swaps with plain stores and turned off the "CPU store since last collect" refusal. The test failed:AGC graphics: a guarded publication store overwrote a guest byte stored after the snapshot. The late-store tests that the first review requested do catch the race they target.After both mutations I restored the merged files, rebuilt and re-ran the test, which passed.
git status --porcelainis empty.Findings
Blocking
None.
Non-blocking
NoteDepthSurfaceWritenow throws for every multisample depth draw, not only for this feature's owners (core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp:2644-2655).!anyDepthGuard()early return is gone, so every multisample depth-writing draw now takessurfacesMutex.Require(attached, "a native multisample depth attachment was retired while its draw resolved resources")throws when no active surface matches.I found no case where
mainkept rendering and this now throws:mainalready threw "not implemented", becauseNoteHostWriteused to run first.Still, please mention the new throw in the description, or make it cheap to rule out on other titles.
Capture cost on the draw path is unmeasured. When a written D32S8 owner's host-written flag first goes from false to true,
NoteHostWrite(DepthSurface.cpp:705-725) runsCollectWritesUncachedand copies all three planes. That happens on the first depth write after import and again after every publication, insideprepareDrawwithGpuMutexandsurfacesMutexheld. For a 1080p 4× D32S8 target that is about 41 MB per draw-then-read cycle, on top of the publication readback. A title that publishes every frame pays this per frame. This is not aperfPR, so no numbers are required, but one frame-time pair on the PPSA19015 scene would show whether it matters.The debt entry does not list the "another identity" refusal.
hostEverWrittenstops the retirement at line 2626.a native multisample depth attachment over the planes of a host-written owner of another identity is not implemented(line 2757; at head).mainalso throws in that case, with a different message, so this is not a regression.The new "Native D32S8 guest publication" entry only says that a plane that took a guest byte throws at its next use. Please add this case. The same entry is the one that trips the 1000-character warning; the rationale in it (late-store and same-value detail) could be shortened.
On the earlier review: requests 1, 2, 4, 5 and 6 are addressed in the code and the description, and the two mutations above confirm request 1. Request 3, the overlap with #9950 over
PublishToGuest, is still the maintainers' decision.Not verified
targetsMutex()holder now goes throughTargetsLock, soHoldsMultisampleTargetsLocksees all of them, and thatsurfacesMutexis recursive. I did not trace every path that might holdsurfacesMutexwithoutGpuMutexand then reach the read guard throughGuestMemory::Reador the host read hook.recordDispatchandStartDrawPassreordering (commit24869a37ea) has no test. As the author says, the fixtures do not reproduce a flush between bind and record.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-02T23:48:41Z.
Review: APPROVED
Re-checked — approved
Since my last review the only change is a merge of
main(456c2ef40b). It resolves a conflict inVulkanDevice.cppcorrectly:RequireGuestBuffers()still runs beforerecordDispatchtakes its command buffer. The focused depth tests pass, and the two new failures in the script's run come frommain, not from this PR.What changed since my last review
0a3252876ftof6e7798ba9) are unchanged. The range-diff shows every one as=.456c2ef40b, mergesorigin/mainand resolves a conflict incore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp.main, the PR's only change to that file is still the singleresources.RequireGuestBuffers();line inrecordDispatch.mainadded the scratch-pool block right after that point. The merge keeps the check before that block, beforeTakeDispatchOrder, and beforerecorder.Commands/OverlapCommandstakecommands.24869a37ea(the command buffer freed by a publication flush, reported by XatiX on PPSA06866) survives the merge.What I ran
Head
456c2ef40b64786b4ce572b6632a001e88f96fda,main5cb015caaaaf83f8ee431414ee6a457b5b307d49, merged--no-ff(treeeae4fc57aa52e4cf7087939c3780c46c1b7781c6) in a clean worktree. The machine is a Debian 13 VM with 2× Xeon Gold 6136, GCC 14.2.0 and lavapipe (Mesa 26.1.6 / LLVM 19); there is no GPU.git diff --checkcheck_conventions.pydocs/dev/debt/libSceAgcDriver.md:67has 3982 characters (unchanged)libs(script)main(see below); 6 known failures;unwrap_selffixed relative to the older baselineagc_driver_image_sample_lod_clamp_shader_lanemain(thread 0 component 1 is 0.000000, expected 0.062500). It comes frommain: the MIN_LOD work merged after the baseline (a5c53e975c,fe18496c95). Not this PR.unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_groupos.chownreturnsEINVALin this sandbox. The test was added onmainafter the baseline, and this PR touches no file intools/. Environmental, not this PR.agc_driver_native_depth_bda_clear, which skips on lavapipe onmaintoo)Negative control
The tests are unchanged since my last review. The two production mutations I ran then each made
agc_driver_native_depth_publicationfail: one turned publication off, the other removed the compare-and-swap. The only production change since then is the merge resolution, which leaves the PR's code paths the same, so I did not repeat them. After the main-restore check above,git status --porcelainis empty and the focused set passes on the rebuilt merged tree.Previous findings
NoteDepthSurfaceWritethrows for every multisample depth draw when no active surface matches (DepthSurface.cpp:2655). Still open, non-blocking. The code is unchanged and the description does not mention the new throw.NoteHostWrite(DepthSurface.cpp:705) copies all three planes on each false-to-true flip. Still open, non-blocking. No frame-time numbers yet.DepthSurface.cpp:2758), and the entry is 3982 characters. Still open, non-blocking.docs/dev/debt/libSceAgcDriver.mdstill does not mention it.New findings
Blocking
None.
Non-blocking
None.
Not verified
recordDispatch/StartDrawPassordering still has no test. I checked it by reading the merged code only.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T06:22:56Z.
Review: APPROVED
Re-checked — approved
Since my last review the only change is a merge of
main(6e2b8263c2). It resolves a conflict inDraw.cppcorrectly: it keepsmain's stencil write intent view and the PR's lateNoteDepthSurfaceWrite, and the guest buffer check still runs beforeStartDrawPass. The focused depth tests pass.What changed since my last review
0a3252876ftof6e7798ba9) are unchanged. The range-diff shows=for every one.6e2b8263c2, mergesorigin/mainand resolves a conflict incore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp. Againstmain, the mergedDraw.cppstill differs only in the PR's three edits:resources.RequireGuestBuffers();runs beforePrepareMeshWindowandStartDrawPassinrecordDraw(Draw.cpp:2504).prepareDraw,NoteDepthSurfaceWritemoves from the depth view block to just afterresolveDrawResources(Draw.cpp:3089).DrawWithRecipe, it moves afterCheckBufferAliases(Draw.cpp:3879).mainalso brought inwritesStencilTargetandDepthSurfaceViewWithStencilWriteIntent. The merge takesmain's view lines unchanged and does not bring back the oldDepthSurfaceViewcall.writesDepthTargetnow treats all-KEEP stencil ops as no write, and the PR's movedNoteDepthSurfaceWriteuses that definition. This matchesmain's intent.mainwidened the write tracker generations tostd::uint64_t. I checked that the PR's additions do not store a generation in a 32-bit type.cpuUnchanged,UnchangedSinceLastCollectand the publication stores all takestd::uint64_t.VulkanDevice.cppstill differs frommainonly by the oneresources.RequireGuestBuffers();line inrecordDispatch.What I ran
Head
6e2b8263c24640287f790cd0e3a5dfc80d6cc349,maind1ae628bc2f62459cce1e9872ba5632c938c71f2, merged--no-ff(tree25e7f9399ff516f50ab05a1638edd12278d1bc41) in a clean worktree. The machine is a Debian 13 VM with 2× Xeon Gold 6136, GCC 14.2.0 and lavapipe (Mesa 26.1.6 / LLVM 19). It has no GPU.git diff --checkcheck_conventions.pydocs/dev/debt/libSceAgcDriver.md:67has 3982 characters (unchanged)libs(script)main(agc_driver_division, the denormal-mode tests,vector_constant_factor_tininess,unwrap_self_…)check_skips.pyagc_driver_native_depth_bda_clear, which skips on lavapipe onmaintoo)The script's baseline is the same commit as
mainthis time, so the two failures frommainthat I noted last time are not counted against this run.Negative control
None this time. The tests are unchanged since my last review, and the production change is only a merge resolution that leaves the PR's code paths the same. In an earlier round, two production mutations each made
agc_driver_native_depth_publicationfail: one turned publication off, the other removed the compare-and-swap.git status --porcelainis empty.Previous findings
NoteDepthSurfaceWritethrows for every multisample depth draw when no active surface matches (nowDepthSurface.cpp:2671). Still open, non-blocking. The code is unchanged, and the description still does not mention this new throw.NoteHostWrite(nowDepthSurface.cpp:721) copies all three planes on each false-to-true flip. Still open, non-blocking. There are still no frame-time numbers.DepthSurface.cpp:2778), and the entry is 3982 characters. Still open, non-blocking.docs/dev/debt/libSceAgcDriver.mdstill has no mention of it.New findings
Blocking
None.
Non-blocking
None.
Not verified
recordDispatch/StartDrawPassordering still has no test. I checked it by reading the merged code only.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T09:20:44Z.
Review: APPROVED
Re-checked — approved
The only change since my last review is a merge of
main(0180bafe62). It resolves the conflicts inGuestMemory.cppand the AGC debt file correctly, and it brings in #14005's D32S8 owner without HTILE. The PR now refuses that owner cleanly. The focused depth tests pass. The one new validation message the script reported comes frommain's own test, not from this PR.What changed since my last review
0a3252876ftof6e7798ba9) are unchanged. The range-diff shows=for each one.0180bafe62, mergesorigin/main4f41f4c375. It resolves conflicts inExecution/src/GuestMemory.cppanddocs/dev/debt/libSceAgcDriver.md:GuestMemory.cpp:main(#6185) splitWriteChangedinto a staticwriteChanged(..., keepGuest)and addedWriteChangedKeepingGuest. The merge keeps both ofmain's functions unchanged. The PR's own additions sit beside them:cpuUnchanged,UnchangedSinceLastCollect, thewalkedparameter ofrangeUnchanged(defaulttrue, so existing callers behave as before),storeOwn'scompleteparameter (defaulttrue) andWriteChangedIfHeld.WriteChangedis stillmain's for every other caller.main's edits to the "Native multisampled depth sampling" entry. It also keeps the PR's dropped "Guest publication of a written surface" phrase, which was oneandonlydean's earlier request, and the new "Native D32S8 guest publication" entry.main, #14005 addsuniformPlaneTarget: D32S8 with a separate stencil plane and no HTILE, whosesampling.initialhas 2 ranges ({depth, stencil}). I checked how the PR handles these owners:NoteHostWritecaptures both ranges (DepthSurface.cpp:797).PublishToGuestthen refuses with... not implemented for this owner, becausepublication.size() == 3ufails (DepthSurface.cpp:2170). This happens before any readback dispatch.RebasePublication(2u)andRebasePublication(1u)cannot index out of range for these owners. The stencil-fill path that setsstencilClearGenerationrequiressampling.initial.size() > 2u. Both places that setclearGenerationneed an HTILE range, and this owner has none.main, only with a different message.What I ran
Head
0180bafe62f4dee4cdc04aee0d565be70c838460,main4f41f4c375f5abb487dbd184fbc150f31994d762, merged--no-ff(treed8eebd68d272cf9c6f239d7842d913b1dfd5119b) in a clean worktree. The machine is a Debian 13 VM with 2× Xeon Gold 6136, GCC 14.2.0 and lavapipe (Mesa 26.1.6, LLVM 19). It has no GPU.git diff --checkcheck_conventions.pydocs/dev/debt/libSceAgcDriver.md:69has 3982 characters (unchanged)libs(script)main:agc_driver_division, the denormal-mode tests,vector_constant_factor_tininessandunwrap_self_…check_skips.pyagc_driver_native_depth_uniform_planes, a test the baseline did not run. It comes frommain; details belowagc_driver_native_depth_bda_clear, which skips on lavapipe onmaintooWhere the
VUID-vkCmdDispatch-groupCountX-00386comes fromfetch.Run(batch.Handle(), extent.width * extent.height * samples)inCheckUniformPlanesWithoutHtile, which issues one workgroup per sample. It runs twice per value pair: once for the depth fetch and once for the stencil fetch.mainwith #14005. It is byte-identical in the merged tree (thediffabove prints nothing).PublishToGuestrefuses before its readback.main, which should split the dispatch across X/Y.I tried a second check: restore
main's versions of the PR's files and rebuild, to rerun the test onmaindirectly. The build tree could not be regenerated in this sandbox:configure_filefails with "Operation not permitted". I restored the merged files without rebuilding anything, so the binaries I tested are the script's build of the merged tree.git status --porcelainis empty.Previous findings
NoteDepthSurfaceWritethrows for every multisample depth draw when no active surface matches (nowDepthSurface.cpp:2741). Still open, non-blocking. The code is unchanged and the description still does not mention this throw.NoteHostWrite(nowDepthSurface.cpp:792-808) copies every plane on each false-to-true flip. Still open, non-blocking. It now also runs for #14005's owners without HTILE, which can never be published (see the new finding), so that copy buys nothing for them. There are still no frame-time numbers.DepthSurface.cpp:2848), and the entry is 3982 characters. Still open, non-blocking. The debt file still does not mention it.New findings
Blocking
None.
Non-blocking
PublishToGuestand are refused, but neither the debt entry nor the description says so (core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp:2170,docs/dev/debt/libSceAgcDriver.md:68).main, a two-plane D32S8 owner now exists.sample-preserving guest publication of native multisample depth is not implemented for this owner.--uniform-planesfixture are onmain, take hugodearaujo's two-plane change (skip the HTILE rewrite when there is none) as a follow-up.NoteHostWritefor owners that cannot be published.Not verified
agc_driver_native_depth_uniform_planesonmaindirectly: the build tree could not be regenerated in this sandbox. Its VUID is attributed tomainby reading the code: the function that emits it is unchanged frommain, and the dispatch size matches the test's own fetch.recordDispatch/StartDrawPassordering still has no test. I checked it only by reading the merged code.agc_driver_native_depth_publicationfail.