feat(agc): render layered draws into 3D color targets #1077
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1077"
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 alfalfa-star on 2026-10-07T09:21:27Z.
What
Layered draws into 3D color targets render, where they were rejected with
color views of several array slices are unsupported. Titles fill a volume with one instanced draw:CB_COLOR_VIEWcovers several depth slices, and the vertex stage picks each primitive's slice through the misc position export (PA_CL_VS_OUT_CNTLUSE_VTX_RENDER_TARGET_INDX with VS_OUT_MISC_VEC_ENA).Builds on #423, which carries
PA_CL_VS_OUT_CNTLto the recompiler. Until it merges, the bottom of this branch carries #423 at577b8d57squashed into one commit (author kept), withPA_CL_VS_OUT_CNTLread from request version 17 becausemainnow writes 16, followed by @johnmaia's b599cfc1 (prepare vertex programs with the position export layout), which #423 is taking in. This PR isfeat(agc): render layered draws into 3D color targetsplus two test commits formain's changes (the legacy vertex info test reads version 16; the layered test passes the new GPU flag toMutation::Add).DecodeColorBuffertakes the slice range of a 3D target intoColorTarget::layers, clamped to the surface's last slice. It allows DCC on 3D targets and sizes a tiled 3D target by its whole surface (SurfaceForTargetmoves toState.cpp).DecodeStatesetsState::renderLayersand, for a layered draw, USE_VTX_RENDER_TARGET_INDX (State::layerExports). Targets of different slice counts and layered draws with a depth target throw.State::layerExportsinto thePA_CL_VS_OUT_CNTLbits that #423 passes. #423 already passes VS_OUT_MISC_VEC_ENA, so only the render target index is added, and only for layered draws. Elsewhere the layer export stays ignored, as before.gl_LayerdeclaresShaderViewportIndexLayerEXTandSPV_EXT_shader_viewport_index_layerwhen the device offers them, instead of SPIR-V 1.5ShaderLayer, which the driver's Vulkan 1.1 target cannot take. The device enablesVK_EXT_shader_viewport_index_layerwhen present. Graphics validation accepts the capability, the extension and a vertexLayeroutput when it is enabled, and a per-primitiveLayeroutput of a mesh stage.Tested
Linux 7.2.9 (Arch), Mesa 26.2.4 RADV, RX 9070 XT.
agc_driver_layered_volume_draw. It draws into a 4-slice, 64 KiB-tiled RGBA8 volume through a view of slices 1..3, three bands with one per layer (the layer comes from the misc export), and reads every slice back with the R_X swizzle equation (its slice input included). Slice 0 stays untouched and slice 1 + L holds only band L. WithpaClVsOutCntlleft at 0, it fails as expected (layer 1's band lands in slice 1). It skips withoutVK_EXT_shader_viewport_index_layer, which lavapipe has.exp pos1), checks that it declares aLayeroutput, and validates it against the layered state. Without the meshLayerrule in the validator, this case fails. It does not draw, because lavapipe's LLVM backend aborts while compiling that mesh pipeline (Cannot emit physreg copy instruction), which a test cannot catch. On RADV the same mesh draw renders the bands into the right slices.agc_vertex_layer_exportrecompiles a vertex shader with a misc layer export. It declares the extension's capability under SPIR-V 1.3 when it is offered,ShaderLayerwith SPIR-V 1.5 when it is not, and nogl_Layerwithout USE_VTX_RENDER_TARGET_INDX.agc_driver_graphicscovers the slice-range decode (layers, clamping, refusals, a DCC 3D target, the export bit) and the validation of a vertexLayeroutput with and without the extension.writable guest memory overlaps an immutable snapshot), which is not part of this PR.cteston #423 + this PR: 397 of 397 pass; 468 of 468 after the rebase onto #423's current head.main90c152e8(2026-10-11): fullctest818/818 pass (4video_out_flip_*skipped), RX 9070 XT, RADV.agc_driver_layered_volume_drawdraws (not skipped).tools/check_conventions.pypasses.main(with scripted pad input only): plainmainaborts after about 35 s atcolor views of several array slices are unsupportedon its 64x64x64 lighting volumes. With this branch it records those draws and next stops after about 38 s at #1409 (storage image access to depth/stencil surface ... is not implemented).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T12:31:36Z.
Review: CHANGES_REQUESTED
Thanks. Build and ctest are green merged onto current
main(396/396). Before this can go in, part of it needs to come out and a test needs to go in:ShaderVertexStageInfo::paClVsOutCntland plumbs it throughRecompiler.hpp,CacheKey.hpp,RequestSerializer.cpp(version 9),DrawLookup.cpp,sameVertexInfoandShaderInputInfoBuilder.cpp, with its round-trip test inShaderMemory.cpp. This PR adds the same plumbing again. CONTRIBUTING asks that no two open PRs implement the same thing. TheDraw.cpp:139assignment also collides: #423 stores the clip/cull bits in that field and this PR storesgraphics.layerExports, so whichever lands second drops the other's bits. Please remove the duplicated plumbing, list #423 under Depends on, and add the layer bits (USE_VTX_RENDER_TARGET_INDX, VS_OUT_MISC_VEC_ENA) to #423's mask for layered draws. The rest of the PR stays as it is: theCB_COLOR_VIEWslice range, the 2D-array attachment views, the framebuffer layers, theVK_EXT_shader_viewport_index_layerpath and the validation.Texture.cpp:998-1001), the framebuffer layer count (Pipeline.cpp:73-74) and gl_Layer selecting the slice relative toSLICE_STARTare never run. An execution test that draws into a 4-slice 3D target with a view of slices 1..3 (one primitive per layer via the misc export), then reads every slice back, would pin it. Slice 0 should stay untouched and slices 1-3 should hold their primitive's value. lavapipe exposesVK_EXT_shader_viewport_index_layer, so it runs on CI.tests/Mesh.cppandtests/execution/Pixel*.cppalready have the draw harness.ShaderValidation.cpp:112now accepts a per-primitiveLayeroutput in mesh stages, butvalidationTestsonly covers the vertex case. A mesh case would cover it.We couldn't check the slice mapping on hardware: our oracle only runs compute, not draws. The TechnicalDebt line covering that is fine.
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-07T13:02:02Z.
@adriadam10 Thanks. All three points are done in 6017bd9a, and the branch is now stacked on #423.
paClVsOutCntlfield, the version 9 serializer, the cache key, the draw lookup hash,sameVertexInfo,ShaderInputInfoBuilderand theShaderMemoryround trip. #423's commits sit under this one (rebased onto currentmain) and are listed under Depends on. AtDraw.cpp:139the line is now #423's mask, OR'd withgraphics.layerExports, so neither PR drops the other's bits. #423's mask already includes VS_OUT_MISC_VEC_ENA (bit 21), which also shifts the clip/cull vectors, solayerExportsonly adds USE_VTX_RENDER_TARGET_INDX (bit 18), and only when the color view covers several slices.mainaddedimageInt64AtomicstoValidateShaders/Inspect, in the spot where #375 addsgeometryShader/sampleRateShading. I kept main's flag first, so #375's positional test calls inGraphics.cpp(thefalse, false, true, trueones) gain onefalse.agc_driver_layered_volume_draw, as you described. It renders into a 4-slice 64 KiB-tiled RGBA8 volume through a view of slices 1..3. Each primitive's layer comes from the misc export (one band per layer). Every slice is read back through the R_X swizzle equation with its slice input, which matters: the XOR pattern differs per slice, so a 2D detile reads the wrong texels. Slice 0 must stay untouched and slice 1 + L must hold only band L. WithpaClVsOutCntlforced to 0 it fails (layer 1's band lands in slice 1). It skips withoutVK_EXT_shader_viewport_index_layer, which lavapipe has.exp pos1added for the layer, so the per-primitiveLayeroutput goes throughValidateShadersin the draw and onto the target. It also fails with the export off. I covered it there rather than invalidationTests, because a mesh module that passes the rest of the mesh validation (modes, push block, output arrays, primitive indices) by hand would mostly test the hand-built module.ctest: 397/397 on Linux (RADV, RX 9070 XT).Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-07T13:25:46Z.
CI fix in d86365c7. The Windows build lacked
std::aligned_alloc; the test now allocates the volume like the other execution tests (VirtualAllocon Windows). On lavapipe, the mesh case aborted inside LLVM while compiling the mesh pipeline (Cannot emit physreg copy instruction), so it now recompiles and validates the layered mesh program without drawing it. The description has the details.Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-08T16:54:00Z.
Rebased onto #423's current head (
577b8d57, now onmain), aed33bf7. Conflicts resolved with main's 8_SRGB attachment proxy (layered targets are 3D, so they never take the proxy path, which is 2D only) and the CMASK changes.SurfaceForTargetmoved to State.cpp with main's body (dccPipeAlignedincluded).viewportIndexLayernow comes after #423'sclipDistance/cullDistance.ctest: 468/468, andagc_driver_layered_volume_drawdraws on RADV.Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-08T17:28:40Z.
CI fix in f402eab0.
agc_vertex_layer_exportasked for a SPIR-V 1.3 target in its no-extension case but expected a 1.5 module (ShaderLayer), which SPIRV-Tools refuses ("module version exceeds requested SPIR-V target"). That case now targets Vulkan 1.2 / SPIR-V 1.5, as a device withoutVK_EXT_shader_viewport_index_layerwould need forShaderLayer. 471/471 pass withANYPS5_ENABLE_SPIRV_TOOLS=ON. The Windows timeouts inagc_driver_vertex_clip_cull_drawand_no_keycome from #423: its own head times out on the same two tests.Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-10T08:04:35Z.
Status: the conflicts with
mainare in the five #423 commits this PR is stacked on (#423 is in draft and conflicts withmainitself). @MichonGoddijn231849 is reworking it so prepared vertex artifacts takePA_CL_VS_OUT_CNTLinto account. Once #423 is updated, I'll rebase onto its new head, so the layer bits go into the mask it ends up preparing with. The #448 row from the overlap bot is #423's two test files (VertexClipCullDistances.cpp,VertexClipCullDraw.cpp), not this PR's own change.Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T09:51:18Z.
Rebased onto
main90c152e8, since it conflicted in seven files and testers on #2783 and #2102 asked for a testable head.577b8d57(Michon kept as author). ItsPA_CL_VS_OUT_CNTLfield moves to request version 17, becausemainnow writes 16. @johnmaia's b599cfc1 follows it under their name. @MichonGoddijn231849, once #423's runtime-enable rework is up, I'll rebase onto it and drop these two commits.main: plainmainaborts after about 35 s atcolor views of several array slices are unsupportedon its 64x64x64 lighting volumes. With this branch it records them and next stops at #1409.ctest818/818 (RX 9070 XT, RADV);tools/check_conventions.pypasses.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T09:58:23Z.
@adriadam10 Would you be able to check this since this has been rebased a couple of times.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T10:08:47Z.
Review: CHANGES_REQUESTED
Thanks for the rebase. Build and the PR's tests pass merged onto current
main(RADV;agc_driver_layered_volume_drawdraws, it doesn't skip). One thing blocks this:LayeredVolumeDraw.cpp:150and:193setpaClVsOutCntlandstate.layerExportsby hand and calldevice.Draw, soDriver::drawnever runs. Removing| graphics.layerExportsatDraw/Draw.cpp:148leaves every test green, and so would dropping the0x207bit-18 read inDecodeStatecombined with the registry path. Please add a case that goes through the real path: register0x207with USE_VTX_RENDER_TARGET_INDX set in the queue context, a shader registered before the draw (ShaderRegistry.cpp:607and:796mask that bit out when preparing, so this is the path the "prepared at registration, layered variant at draw" log line inReportPreparedAtUsedescribes), and the same band/slice readback. It must fail when the| graphics.layerExportsis removed.agc_driver_graphicsrows cover the decode, but the draw test uses RGBA8 without DCC, and PPSA14632's volumes are DCC. Either draw one with DCC, or throw on DCC until it is covered.Imported from boykopovar/AnyPS5. Originally posted by orishamir on 2026-10-11T10:08:48Z.
Windows + NVIDIA run of
5e14fe0dmerged ontomain5c4bc7d6(clean), since the PR's runs are RADV: Windows 11 Pro 26300, RTX 4080 driver 616.56, WinLibs GCC 15.2.0 r7, Release,BUILD_TESTING=ON, the CIwindowsjob's configure flags. The build is clean.agc_descriptor_pool_reset_failure,agc_driver_pm4_failure,agc_vertex_layer_export,agc_position_invariance: pass 5/5.agc_driver_layered_volume_drawfails at once, every run: so on this GPU the layer from the misc export does not route the second band to its slice; slice 1 holds band 1's value where band 0's is expected (the mesh case is not reached).agc_driver_vertex_clip_cull_drawandagc_driver_vertex_clip_cull_draw_no_key(the #423 commit): each prints its finalvertex clip and cull distance draws passedline and then hangs until ctest's 120 s timeout, in the named run and again in the full suite, so the process does not exit after the checks.windows_exceptions, which fails onmainitself since #1423 (reported there).No revert-pin this time (my script passed the file list wrong); the failures above are the point.
AI-assisted: yes (Claude Code Fable 5.1 xhigh)
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T11:22:12Z.
@adriadam10 thanks, all three addressed in three new commits on top (head
95d7536c, no force push):Driver wiring (
c6c1cc5f). Newagc_driver_layered_volume_submitgoes through the real path:CB_COLOR_ATTRIB3resource type 3D with 64 KiB R_X tiling,CB_COLOR_VIEWslices 1-3);0x207with USE_VTX_RENDER_TARGET_INDX and the misc vector set;AgcDriverRegisterShader), thensceAgcDriverSubmitDcb;agc_driver_layered_volume_draw.Negative checks, each with
ANYPS5_NO_SHADER_CACHE=1:| graphics.layerExportsinDriver::drawfails it:slice 1 texel (16, 0) channel 0 is 255, expected 64 (another layer's band);DecodeState's bit-18 read with 0 fails it the same way.DCC on a 3D target (same test). It draws the volume twice more under DCC (
CB_COLOR_INFODCC_ENABLE, keys atCB_COLOR_DCC_BASE):0xff;0000fast-clear keys, every texel the draw doesn't write reads as the clear color after the write-back, including slice 0 outside the view, and all keys end uncompressed.Making
DecodeColorBufferdrop DCC for volumes fails the fast-clear case (slice 0 texel (0, 0) ... is 64, expected 0), so the decode is now pinned too. Only uniform keys are interpreted, as for 2D targets. The key extent (one key per 256 bytes over every slice) is an assumption about the console's 3D layout, now in the TechnicalDebt entry (95d7536c).Also (
b70f6acd). The[gpu] layer/viewport index vertex exports are ignoredline was still printed for layered draws that route the index. It is now reported only for bits a draw doesn't route, and the comment saying layer exports are never routed is removed.#423. Understood. Once its runtime-enable rework lands I'll rebase onto it and drop the two squashed commits.
Full
ctest819/819 (RADV, RX 9070 XT); conventions pass.@orishamir thanks for the NVIDIA run. Your
agc_driver_layered_volume_drawfailure is byte for byte what the new test prints when the layer export is removed from the vertex stage. So on your GPU the render target index never reachesLayer, while the attachment side (2D-array view of the2D_ARRAY_COMPATIBLE3D image, framebufferlayers) works. Could you run that test once more with:ANYPS5_NO_SHADER_CACHE=1, to rule out a cached artifact;VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation);BuiltIn Layer?I don't have NVIDIA hardware. The
agc_driver_vertex_clip_cull_draw*hang after the final line comes from #423's commit. I'll pass it to @MichonGoddijn231849 with that rework.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T11:41:09Z.
Review: CHANGES_REQUESTED
Thanks for the extra driver-level test and the DCC coverage. Build and the PR's tests pass here merged onto current
main(RADV;agc_driver_layered_volume_drawand_submitdraw, they don't skip). One thing blocks this:agc_driver_layered_volume_drawfailing on every run (slice 1 texel (16, 0) channel 0 is 255, expected 64), i.e. the render target index from the misc export never reachesLayeron that driver. We can't reproduce it without NVIDIA, and the NVIDIA run is part of how AGC/recompiler PRs are checked before merging. Please follow up on the data requested above (ANYPS5_NO_SHADER_CACHE=1, validation layer, SPIR-V dump of the vertex stage) together with @orishamir; a likely area to look at is howShaderViewportIndexLayerEXT/SPV_EXT_shader_viewport_index_layeris declared for a vertex stage on that driver (capability, extension andLayeroutput vs. the device features enabled). Once the test passes on NVIDIA this is ready from our side.agc_driver_vertex_clip_cull_drawand_no_key(the #423 commits) hang after their final line on Windows. That is #423's, but this PR can't land before it, so it stays blocked until #423 is out of draft and rebased.Imported from boykopovar/AnyPS5. Originally posted by orishamir on 2026-10-11T11:54:32Z.
@alfalfa-star, the three checks on Windows 11 + RTX 4080 (driver 616.56),
95d7536cmerged ontomain0f863c10:agc_driver_layered_volume_drawalready setsANYPS5_NO_SHADER_CACHE=1and the test compiles withuseCache = false, so my first run had no cache either. With the variable set again: the same line, 3/3.agc_driver_layered_volume_submitfails with the same slice-1 line, 3/3.WARNING-VkImageSubresourceRange-layerCount-compatibility, 4 times (barriers withlayerCount1 on the 3D image).geometryResult.spirv):OpCapability ShaderViewportIndexLayerEXT,OpExtension "SPV_EXT_shader_viewport_index_layer",OpDecorate %gl_Layer BuiltIn Layeron an output in the entry point's interface, and oneOpStore %gl_Layerof the vertex buffer's layer dword& 2047.spirv-val --target-env vulkan1.2andvulkan1.3pass.Reading back all four slices shows where the bands go: all three land in slice 1. They still all land in slice 1 when the store is patched to a constant 1 or 2. So the
Layerwrite is not applied at all, whatever its value.Cause: this device reports
pipelineLibrary=1, soPipeline::Begintakes the dynamic-rendering path. That path setsrendering.layerCount = 1(Pipeline.cpp:546here, 544 onmain). The render-pass path gives the framebufferstate.renderLayersinstead. Writing aLayerat or pastlayerCountis undefined, and the validation layer does not flag it. Your RADV runs pass, so RADV either routes it anyway or takes the render-pass path; NVIDIA puts everything in layer 0.With that line changed locally to
rendering.layerCount = state.renderLayers != 0 ? state.renderLayers : 1u;:agc_driver_layered_volume_submitpasses its checks (layered volume draws through the driver passed). It then segfaults on exit, as it also does after the failure without the change.agc_driver_layered_volume_drawpasses the vertex case and stops in the mesh case withmissing or incompatible shader execution mode. The mesh program built for this device hasLocalSize 32 1 1, but the test passessubgroupSize = 64toValidateShaders, so the check expects 64. With the device's 32 it accepts the program.agc_driver_graphics,agc_pipeline_library,agc_pipeline_library_fast_only,agc_driver_prepared_graphicsandagc_vertex_layer_exportpass.Not checked: the change on RADV, a full suite with it, or the exit segfault. Without the change the full suite is 833/839 here: the two layered tests, the clip/cull pair,
windows_exceptions(frommain), and oneagc_driverheap-corruption abort that passed 10/10 when run alone.AI-assisted: yes (Claude Code Opus 5.5 xhigh)
Imported from boykopovar/AnyPS5. Originally posted by ThatsLeo on 2026-10-11T12:01:10Z.
Stray (PPSA02101 v01.002, UE4) needs this. It renders into a 3D color target with one view over 65 slices (
CB_COLOR_VIEW0x80000, slices 0-64,CB_COLOR_ATTRIB3type 2), and without this PR it stops withcolor views of several array slices are unsupported, as in #2102.I merged
f402eab0(this PR's head then; I have not retested95d7536c) ontomainf1ae427bfor Stray. The conflicts were all additions on both sides:ValidateShadersandInspectarguments;Contextflags;SurfaceForTargetmoving toState.cpp;AttachmentView;Graphics.cppandShaderMemory.cpp;LayeredVolumeDrawneededmain'sMutation::Addgpu flag.With it, Stray gets past those draws and renders its first screens (#2749). Intel Arc (Meteor Lake), Mesa 26.2.3 ANV, which has
VK_EXT_shader_viewport_index_layer.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-12T17:33:51Z.
Status update.
NVIDIA routing (@adriadam10's review): @orishamir found the cause: the dynamic-rendering path that devices with pipeline libraries take sets
VkRenderingInfo::layerCount = 1, so every layer lands in the first slice. @AlxcBTW's bdd55e037 passes the framebuffer's layer count there and fixes the layered tests for NVIDIA (subgroup size in the mesh case, clean shutdown). I'll take that commit, with authorship kept.Waiting on #423: this PR needs #423's
PA_CL_VS_OUT_CNTLplumbing and carries a squashed copy of it until #423 merges. #423 was rebuilt onmaintoday. Rather than rebase this branch onto every new #423 head, I'll rebase once #423 lands. Then this PR is only its own commits plus the fix above.Testing it now: #3763 (@eljackjoestar-cmd) carries this PR rebased onto a recent
main, with the samelayerCountfix, so that's the easiest branch to test titles on until then.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T08:50:20Z.
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.
main)core/libs/prx/libSceAgcDriver/tests/execution/VertexClipCullDistances.cppcore/libs/prx/libSceAgcDriver/tests/execution/VertexClipCullDraw.cppImported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-13T10:07:05Z.
Kena (PPSA01746) needs the DCC part of this. On
main2a2a3dc65(with #423 merged) it runs to 101 s and stops withAGC graphics: mipmapped or DCC 3D color targets are unsupported.I printed the decoded target in front of that check: slot 0, 64 slices, max mip 0, DCC enabled (
CB_COLOR_ATTRIB30x4ec6c03f, info word 0x10040730). That is the DCC case this PR lifts; the surface has no mips.I could not run the title on this branch, it conflicts with
mainsince #423 merged. I will run it after a rebase and report where it gets to.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T10:36:20Z.
Closing as merged through #3763: your commits are on main with your authorship (
1055617751crender layered draws into 3D color targets, the layered volume tests, the layer-export reporting fix and the DCC key extent note), with the dynamic-rendering layer count on top. Thanks for the work on this.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T10:37:22Z.
@fma-rc #3763 is merged with these commits, and
mipmapped or DCC 3D color targets are unsupportedis gone from main. Does PPSA01746 get past 101 s on current main now? If it stops again, the next log line would help.Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-13T11:26:02Z.
Yes, it gets past that check. On
mainb1328fc0fPPSA01746 creates the two 200x113 targets with 64 slices and no longer throws on them. Two runs then stop a little later in the same place (77 s and 86 s into the run, the difference is shader cache warm-up):The
layer/viewport indexline is printed once per run, right before the stop. I have not looked at which read hits 0xdfac00000008 yet, so I can't say whether the two lines are related. I'll get a backtrace for it and open an issue with that.Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-13T16:19:26Z.
@fma-rc I hit the same
0xdfac00000008stop with Kena on PPSA01802, so here is what I found, in case it saves you the backtrace.NUM_RECORDS, here 8) in the low half and word 3 in the high half, cut to 48 bits. Kena's V# word 3 looks like0x0004dfac, which gives0xdfac00000008(I also saw0x9fac...). The SRT walker follows that "pointer" while evaluating a shader's descriptor sources, andCheckRangethrows on the unreadable range.mainb1328fc0falready has #3952 (branch-decided descriptor sources) and still stops, which matches what I saw.EvaluateRuntimeSourcesImpl(SrtDescriptorEvaluation.cpp) is reported the same way the flat-SRT path already does it (ReportInaccessibleReads), so that descriptor becomes a null descriptor instead of ending the title. That stand-in was part of the local stack on which Kena reached gameplay. I haven't proposed it as a PR yet, because it hides the read instead of explaining why the shader's source resolves to V# words. A backtrace from your side (APS5_TRACE_UNREADABLE=1prints the caller's offset) would show whether it's the same walker path.The
[gpu] layer/viewport index vertex exports are ignored (PA_CL_VS_OUT_CNTL=0x01240000)line is most likely unrelated. It is printed because bit 24 is outsidelayerExportseven though the layered draw is routed (@queeeef noted the same on #2102).AI-assisted: yes (Claude Code)
Pull request closed