perf(shader): use table-driven formatted loads and fold constant table lookups #8721
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8721"
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 hamb3r on 2026-10-20T22:19:54Z.
What
genericFormattedLoadpath inSpirvRuntimeBuffer.cppfor all formatted buffer loads (!store), shifting non-dword descriptor-backed loads right by the subword byte offset whenmemory.gpuDescriptoris false and gating active/required component checks throughSelectinstead of emitting a 57-caseOpSwitchacross everyIrBufferFormatfor each formatted load.SpecializeSpirv(SpirvSpecialization.cpp) to fold constant loads from read-onlyStorageClassPrivatecomposite tables (OpVariableinitialized byOpConstantCompositeand only accessed via constant-indexOpAccessChain/OpInBoundsAccessChain+OpLoad) and simplify identityOpLogicalAnd/OpLogicalOr(true && x -> x,false || x -> x) and identical-armOpSelectoperands so specialized shaders fold known buffer formats to a single conversion path and prune unused component branches.Tested
x86_64), NVIDIA GeForce RTX 3080 (driver 617.14), AMD Ryzen 7 7700:agc_shader_memory,agc_vector_window,agc_driver_pixel_sample_iteration,agc_spirv_module,agc_formatted_buffer_once,agc_driver_buffer_format,agc_redundant_value_elimination,agc_shader_srt_read_patching,agc_formatted_buffer_byte_stores,agc_driver_gated_dispatch_capture,agc_driver_image_sample_unnormalized,agc_driver_image_store_sint,agc_driver_image_table,agc_driver_prepared_shaders_indirect) withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:mainand this branch.was not found but was requested by env var VK_INSTANCE_LAYERSand 0VUID-validation errors are logged.PPSA01341v01.007.000,APS5_TRACE_FRAMES=0:5):frames 0:5decreased by 65,455,891 bytes (249.12 MB->186.69 MB,-25.06%), with the largest formatted-buffer compute shaders shrinking from5.86 MBto4.01 MB.Vulkan.ComputePipelinedropped from35186.352to15480.517ms/frame (-56.00%),Driver.Dispatch.prepared_invocationdropped from1210.725to498.748ms/frame (-58.81%),gpu_busy_ms_per_presentdropped from51.609to23.870ms (-53.75%), andwindow.msdropped from181523.249to79598.147ms (-56.15%).tools/trace_digest.py—main(ca74ef2177ee)frames 0:5 from present 0: 5 presents, frame p50 970.2 / p90 178158.2 / p99 178158.2 / max 178158.2 ms, GPU busy 51.6 ms per present
NVIDIA GeForce RTX 3080, NVIDIA 617.14, Windows 10.0.19045, 1920x1080, commit
ca74ef2177, dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 290048.8, Driver.Packet.memory_wait 251696.5, Driver.Packet.dispatch 38274.4, Driver.Dispatch 38227.1, Vulkan.ComputePipeline 35186.4, Driver.Dispatch.prepared_invocation 1210.4, Driver.Dispatch.materialize 601.1, Vulkan.Dispatch 489.1, Vulkan.Dispatch.shader_resources 476.1, Resources.Prepare 331.4
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
tools/trace_digest.py— PR (815919fe7b93)frames 0:5 from present 0: 5 presents, frame p50 2208.1 / p90 73516.8 / p99 73516.8 / max 73516.8 ms, GPU busy 23.9 ms per present
NVIDIA GeForce RTX 3080, NVIDIA 617.14, Windows 10.0.19045, 1920x1080, commit 815919fe7b93, dropped: no
Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 127000.1, Driver.Packet.memory_wait 109456.3, Driver.Packet.dispatch 17506.6, Driver.Dispatch 17489.2, Vulkan.ComputePipeline 15480.5, Driver.Dispatch.materialize 501.5, Driver.Dispatch.prepared_invocation 498.4, Vulkan.Dispatch 485.9, Vulkan.Dispatch.shader_resources 472.4, GpuMutex.wait.dispatch 314.5
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T22:22:15Z.
I reviewed the current head
815919fe7b. The nine reported same-head tests and validation-layer runs are useful, but the diff adds no regression cases for the new specialization rules. Could you add a smallSpecializeSpirvtest for a constant-index private composite load folding, plus controls showing a dynamic index or a store through the access chain prevents that fold? A focused direct-buffer formatted-load case with 8/16-bit data at byte offsets 1–3 would also cover the newsubwordOffsetpath. These are the key safety conditions for the table recognition and descriptor-backed extraction; the current runtime suite may not distinguish their failure modes.Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-20T23:18:40Z.
Added the requested regression tests in
f8170fb78d(test(shader): cover private table specialization folding and subword formatted loads):SpecializeSpirvprivate composite table folding + controls (testPrivateCompositeTableLoadFoldingincore/libs/prx/libSceAgcDriver/tests/SpirvModule.cppandtestSpecializedPrivateCompositeTableLoadincore/libs/prx/libSceAgcDriver/tests/SpirvOptimizer.cpp):OpAccessChainandOpInBoundsAccessChaininto aStorageClassPrivatecomposite table (OpVariableinitialized byOpConstantComposite), a constant index (including one produced by constant-folded arithmetic) folds theOpLoadto the corresponding element constant and removes the dead access chain.%lane) or anOpStorethrough an access chain into the table (privateTables.erase(...)) prevents folding and preserves theOpAccessChainandOpLoad.SpirvSpecialization.cpptoVisitIdOperandsso literal constant operands (e.g.OpConstant ... 16orOpTypeInt 32) cannot collide with a private table or access-chain ID.RunSubwordOffsets/CheckSubwordOffsetsincore/libs/prx/libSceAgcDriver/tests/execution/BufferFormat.cpp):!memory.gpuDescriptor)buffer_load_format_xandbuffer_load_format_xywith8_UINT,8_SINT,16_UINT,16_SINT, and8_8_UINTat unaligned byte offsets1..3across all 32 lanes on the GPU, covering both unsigned (OpBitFieldUExtract) and signed (OpBitFieldSExtract) extraction along thesubwordOffsetpath.agc_spirv_module,agc_formatted_buffer_once,agc_driver_buffer_format,agc_driver_gpu_buffer_format,agc_driver_formatted_store,agc_driver_formatted_store_unaligned,agc_driver_buffer_unaligned_base) withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation— all passed with 0VUID-validation errors.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T23:23:48Z.
Review: APPROVED
Thanks for adding these cases. The specialization tests now cover both access-chain opcodes, a constant-folded index, dynamic-index and mutation controls; the direct-buffer execution test covers signed/unsigned subword extraction at unaligned offsets. I also checked the changed operand scan: it visits ID operands rather than treating literal words as IDs, and it preserves the paired literal width for 64-bit
OpSwitchselectors. The focused suite and validation-layer results you reported address my requested coverage. Hosted checks are still pending policy checks, and the full build/runtime jobs are not available on this PR run.Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-20T23:40:44Z.
Ran line-by-line
gcovdiff coverage againstorigin/main..HEADacross the focused suite onf8170fb78dand found 4 executable lines incore/shader/recompiler/SpirvBackend/src/SpirvSpecialization.cpp(out of 62 in that file and 11 inSpirvRuntimeBuffer.cpp) that were still unexecuted:text 3075 : 754 : } else if (instruction[4] == instruction[5]) { ##### : 755 : instruction = Make(spv::OpCopyObject, {instruction[1], instruction[2], instruction[4]}); ##### : 756 : changed = true; ... 232* : 772 : } else if (const auto right = value(instruction[4]); right && *right == 0u) { ##### : 773 : instruction = Make(spv::OpCopyObject, {instruction[1], instruction[2], instruction[3]}); ##### : 774 : changed = true;Amended the test commit in
efc3bd2efdsotestPrivateCompositeTableLoadFolding(SpirvModule.cpp) andtestSpecializedPrivateCompositeTableLoad(SpirvOptimizer.cpp) route the constant table index through a dynamic-left / constant-false-rightOpLogicalOr(%cond = OpLogicalOr %bool %rawCond %false) and an identical-armOpSelect(%index = OpSelect %uint %cond %baseIndex %baseIndex), asserting both opcodes are simplified away before folding theOpLoad.Re-running
gcovconfirms 100.0% diff line coverage across all modified files (11/11inSpirvRuntimeBuffer.cpp,62/62inSpirvSpecialization.cpp):text 3081 : 754 : } else if (instruction[4] == instruction[5]) { 6 : 755 : instruction = Make(spv::OpCopyObject, {instruction[1], instruction[2], instruction[4]}); 6 : 756 : changed = true; ... 238 : 772 : } else if (const auto right = value(instruction[4]); right && *right == 0u) { 6 : 773 : instruction = Make(spv::OpCopyObject, {instruction[1], instruction[2], instruction[3]}); 6 : 774 : changed = true;cc @MarcZX10
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T23:48:36Z.
Review: APPROVED
Reviewed the latest head
efc3bd2efd. The added SPIR-V inputs exerciseOpLogicalOrwith a false right operand and an identical-armOpSelect, then assert both are simplified before constant-table folding; the optimizer and specialization test versions cover the same paths.git diff --checkand the conventions checker pass. I did not run the C++ test binaries locally; the author reports focused tests and 100% changed-line coverage. My approval applies to this head.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T05:58:00Z.
@hamb3r thanks, the subword tests and the table-fold controls cover what MarcZX10 asked for. I checked the direct-buffer path against
readBuffer, and for every field that fits in its dword, a 32-bit read plus the(addr & 3) * 8extract matches the old per-format result. Three things:780284c150describes the dropped call as a redundant spirv-opt pass, but its fifth argument isoptimize = false, so it only validated the module after the descriptor compaction. That compaction decides "used" from AccessChain/Load/CopyObject operands, and that validation was its only check. Do you have a timing for this commit on its own? Otherwise it may be better to keep the validation. Since a maintainer added it, I will leave that call to them.genericFormattedLoad, a 16-bit field at byte offset 3 now reachesOpBitFieldUExtractwith offset 24 and count 16, which SPIR-V leaves undefined (the new test stops at +2). Could you clamp the count to32 - offsetthere, or explain why that case cannot happen?PureInstructionnow treats everyOpExtInstas pure. That holds for GLSL.std.450 today. Checking the set id would keep it true if a NonSemantic set such as DebugPrintf is ever imported.Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-21T07:42:42Z.
Addressed all three points in
00f7cb9c21:Recompiler.cpp):ValidateAndOptimizeSpirv(materialized, target.vulkanVersion, target.spirvVersion, target.nonConstantImageOffsets, false)after the descriptor-compaction loop inbuildSpecializedModule(Recompiler.cppis no longer modified by this PR, and### Whatin the PR description has been updated accordingly).rawright by the subword bit offset before bitfield extraction (SpirvRuntimeBuffer.cpp,BufferFormat.cpp):genericFormattedLoad, non-gpuDescriptorloads now shiftrawright bySelect(state, u32, dword, constant(0u), (addresses[component].guest & 3u) << 3u)(OpShiftRightLogical, where the shift is in{0, 8, 16, 24} < 32) and keepbitOffset = Select(state, u32, packed, field(state, bitOffsets, component * 8u, 8u), constant(0u))(0for all non-packed formats), sobitOffset + bits[component] <= 32holds for all formats and subword alignments without undefinedOpBitFieldUExtract/OpBitFieldSExtractbehavior at byte offset+3.RunSubwordOffsets/CheckSubwordOffsetsinBufferFormat.cppto test byte offset+3for16_UINTand16_SINTas well.OpExtInstpurity toGLSL.std.450(SpirvSpecialization.cpp,SpirvModule.cpp):GLSL.std.450OpExtInstImportresult IDs inglslExtInstSetsduringSpecialization's initial instruction scan and gatedcase spv::OpExtInst:inPureInstructiononinstruction.size() >= 5u && glslExtInstSets.contains(instruction[3]).testPrivateCompositeTableLoadFoldinginSpirvModule.cppto verify that unusedGLSL.std.450OpExtInstinstructions are removed while liveGLSL.std.450and unused non-GLSL.std.450OpExtInstinstructions are preserved.Verification
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation):ctest --test-dir build-portable -R "^(agc_spirv_module|agc_formatted_buffer_once|agc_driver_buffer_format|agc_driver_gpu_buffer_format|agc_driver_formatted_store|agc_driver_formatted_store_unaligned|agc_driver_buffer_unaligned_base|agc_driver_tbuffer_format_d16)$" -V: 8/8 Passed,0VUID-validation errors.gcovdiff coverage (-O0 --coverage):core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp:10 / 10(100.0%)core/shader/recompiler/SpirvBackend/src/SpirvSpecialization.cpp:90 / 90(100.0%)100 / 100(100.0%)Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-21T07:44:28Z.
@oneandonlydean Thanks for the thorough review and especially for catching the 16-bit +3 subword bitfield bounds case and the post-compaction validation pass — all three points are addressed in
00f7cb9c21and ready for another look when you have a moment.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T08:11:32Z.
@hamb3r thanks,
00f7cb9c2covers all three. The validation call is back exactly as it was.OpExtInstcounts as pure only for an import of exactlyGLSL.std.450, and the new test keeps both a live GLSL call and aNonSemanticone. The otherPureInstructioncaller still treatsOpExtInstas impure, which is whatmaindoes.One follow-up on the subword fix. On the direct-buffer path, a 16-bit field at byte offset 3 is now the dword shifted right by 24, so it returns byte 3 with a zero high byte.
mainreads the field's two bytes at that address (EmitBdaReadByteswithwidth / 8), so its high byte is byte 4 of the next dword. The SPIR-V is now defined, but the value differs frommain, and the new16_UINT +3/16_SINT +3expectations (word >> 24) pin the truncated value. Could a field that crosses its dword ((addr & 3) * 8 + bits > 32) keepmain's byte read, or the next dword be combined in? If you think the truncation is right, please explain why.Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-21T09:56:46Z.
@oneandonlydean On
main, the direct-buffer path (!memory.gpuDescriptor) actually producedword >> 24as well —EmitBdaReadBytesingenericFormattedLoadwas only reachable whenmemory.gpuDescriptor == true:What
mainexecuted for!memory.gpuDescriptor:formatSwitchonmain,genericFormattedLoadwas gated onif (!store && memory.gpuDescriptor)(moreover,EmitBdaReadBytesrequires a 64-bit BDA guest address andstate.bdaPointerFunction != 0, whereasaddresses[component].gueston the direct-buffer path is a 32-bit buffer-relative byte offset).!memory.gpuDescriptor,mainfell through to theOpSwitchcallingformatted->readBuffer(context, instruction, addresses[component].guest, info.packedBitfield ? 32u : bits).readBuffer(lines 182–189),lowandhighonly combine adjacent storage-buffer words to compensate for the descriptor's base misalignment (baseMisalignment(context, instruction)), and thencombine(low, high)shifts that single reconstructed view dword right bysubwordShift = (address & 3u) << 3u: Followed informatted(line 364) byOpBitFieldUExtract/OpBitFieldSExtractatbitOffset = 0withcount = bits.Hardware reference in
BufferUnalignedBase.cpp:ViewFieldinBufferUnalignedBase.cpp: which extracts subword fields by shifting the containing view dwordViewDword(view, byte / 4u)right by(byte % 4u) * 8uwithout reading from the next view dword.So shifting the reconstructed 32-bit view dword right by
(address & 3u) << 3ubefore extractingbits[component]atbitOffset = 0preservesmain's exact direct-buffer behavior fromformatted->readBuffer.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T10:11:43Z.
@hamb3r you're right, thanks for tracing it. On
mainthe direct-buffer path never reachedEmitBdaReadBytes.genericFormattedLoadis gated onmemory.gpuDescriptor, andreadBuffertakes the BDA read only for GPU descriptors. Without one,combineshifts the reconstructed dword right by(address & 3) << 3and masks tobits, so a 16-bit field at byte offset 3 already came back as byte 3 with a zero high byte. Your change keeps that exactly, so I withdraw that follow-up. It doesn't block this PR.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T12:16:54Z.
@hamb3r thanks again for the patience on the subword question. The full CI run on
00f7cb9c2(merged intomainb3f4783ab) fails three tests that pass onmainin the same configuration:agc_shader_memorytwo-lane uniform values: the scalar multiply must be emitted once per invocationagc_vector_windowa sampler dword spilled into a relatively read register keeps its definition through v_readlaneagc_driver_pixel_sample_iterationAGC graphics: 2x: a pixel shader that only reorders its samples was not given the position inputAll three compile shaders through
Recompile, which runsSpecializeSpirvon every module (Recompiler.cpp:788). So the new folds reach them:GLSL.std.450OpExtInsttreated as pure,OpLogicalAnd/OpLogicalOrshort-circuits,OpSelectwith equal operands, and the constant private-table loads.ca74ef2177), andmainhasn't touched any of this PR's files since. They should fail on the branch alone.agc_shader_memorycountsOpIMulin the output, and the per-invocation variant must have exactly one more than the uniform one. It fails on both platforms, so it looks deterministic: one of the folds probably removes or shares that multiply.mainis merged in. It needs the position input whenever the sample order alone reorders. A fold that turns that dependency into a constant would drop the input.Could you merge current
main, run those three, and find which fold changes each result? If a fold is wrong for these shapes, it should either keep the instruction or check the condition that makes folding safe. If a test's expectation is too strict, say why in the PR before changing it.Imported from boykopovar/AnyPS5. Originally posted by janzezno on 2026-10-21T14:56:10Z.
Run on AMD hardware.
Host: Arch Linux, kernel 7.2.11, AMD Radeon RX 7900 GRE (RADV NAVI31), Mesa 26.2.5, GCC 16.2.1, Release,
BUILD_TESTING=ON.maincecb540a6; PR head00f7cb9c2merged on top (clean merge).Your nine tests, plus the other buffer-format and formatted-store tests and
agc_spirv_module:main: 15 of 15 pass. PR: 15 of 15 pass, includingagc_driver_buffer_format,agc_driver_gpu_buffer_format,agc_driver_tbuffer_format_d16and bothagc_driver_formatted_storetests.VUID-messages in either run, and the validation layer loaded in both.Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-21T15:12:41Z.
@oneandonlydean Merged current
main(2f161d4f33), reproduced all three failures, and resolved them incbdbc601dc:agc_shader_memoryandagc_vector_window:OpLogicalAnd(false, non_const) -> 0uandOpLogicalOr(true, non_const) -> 1uinSpecialization::evaluatefoldedaccess.inBoundsinbyteAddress(OpLogicalAnd(resource.valid, OpLogicalAnd(nonzero(format), inBounds))) tofalsewhen a test's output V# haddata_format == 0(word3 = 0xfacuor0u) whilerecordsor the address was runtime. That causedsimplifyControlFlow()to prune thewriteBufferstore block andremoveDeadComputations()to strip the tested upstream instructions (OpIMulinagc_shader_memoryand the spilled samplerOpImageSampleImplicitLodchain inagc_vector_window).OpLogicalAnd/OpLogicalOrconstant evaluation fromevaluate()(keeping only identity simplificationtrue && x -> xandfalse || x -> xinfold()), and updatedgenericFormattedLoadinSpirvRuntimeBuffer.cppto gateactive[component]andrequired[component]throughSelectso unused components still fold tofalsevia constant-conditionOpSelectand have their branches pruned bysimplifyControlFlow().agc_driver_pixel_sample_iteration(ExpectOrderModulesfrom#6683):spv::OpExtInsttoPureInstructionandVisitInputschangedremoveDeadComputations()on pixel shaders withiterated = falseand a reorderedsampleOrder, eliminating the otherwise-unusedstate.sampleOrderWord(BuiltInFragCoord) computation checked byExpectOrderModules.PureInstructionandVisitInputstomain'sOpExtInsthandling; becausegenericFormattedLoadprunes inactive components at theEmitValueOrZeroIfConditionblock level viaSelect,agc_formatted_buffer_oncecontinues to pass (2075 words for 1 load, 2389 for 3; GPU-selected 16379 and 17169; vertex 2266 specialized, 2755 registration).Verified with
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:agc_shader_memory,agc_vector_window,agc_driver_pixel_sample_iteration,agc_spirv_module,agc_formatted_buffer_once, andagc_driver_buffer_formatall pass with 0VUID-validation errors.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T02:26:26Z.
@hamb3r thanks for
cbdbc601dc. The three tests from the last round now pass on the full CI run (agc_shader_memory on Linux and Windows, agc_vector_window and agc_driver_pixel_sample_iteration on Linux). One bar test now fails on Linux only:main8c26eac3cd.main's own push run at that same commit passes this test on Linux and Windows, so the change comes from this PR.one.words < gpuOne.words / 2(FormattedBufferOnce.cpp). 8643 words is close to what every format's decoder costs, so the known-descriptor load isn't pruned on Linux. Your comment quotes 2075 words for one load.I think the likely spot is the pruning that
cbdbc601dcmoved. With the one-sidedOpLogicalAnd(false, x)/OpLogicalOr(true, x)evaluation removed, unused components now rely onSelect(active[component], ..., false)ingenericFormattedLoadfolding to a constant condition. Since the result differs between toolchains, I'd check whether that fold depends on processing order: iteration over a hash container, or a fixed number of rounds in thewhile (changed)loop in SpirvSpecialization.cpp.Could you run
agc_formatted_buffer_onceon Linux with GCC (CI uses Ubuntu 24.04) on a merge with currentmain, and post theoneandgpuOneword counts? The failure message prints them; if the test passes for you there, a print of the twoCount()results would show where your toolchain and CI differ.Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T08:05:51Z.
Reviewing
cbdbc601dcfor a possible Windows007 cross-test after our current pinned baseline. Current maind6eafa54dplus two HLE/import fixes generates compute pipelines around3.58–3.66million SPIR-V words on RTX5070Ti617.42; representative cold pipeline creations take133–147s. Raw requests/captures stay local. Startup is still warming, so I have no menu-speed or size-reduction result for your PR.Your published head merges cleanly into the same base (local source-only530dd84f8). I noted the latest Linux-only
agc_formatted_buffer_oncepruning-bar failure and the earlier three regressions that cbdbc fixed. I will include all four, plus both buffer-format paths and the native load/store cases under the real Khronos1.4.363 layer, before any title run. No concurrent compilation/native tests while the baseline game is running. Is there a newer head for the Linux pruning issue, or is cbdbc still the right cross-test target? I can investigate a local reproduction once this run ends; no duplicate implementation planned. AI-assisted: Codex.Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T11:54:37Z.
Updated to your current
a31c679cdahead (includes6e6c15962a and main4777caca). Source-only integration merges cleanly on our current007 stack:https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-oct22-formatted-current (38f1f43574ae)
Conventions:0errors, one existing long host-import debt warning. UNBUILT/UNTESTED here; runtime remains the separate8942cb7c interior-import test.
The newer runtime removes the dominant finite12.5MiB region from the sampled upload log, but still reaches huge level pipelines:3,586,267words took141686ms and3,663,117words138065ms on RTX5070Ti617.42. Currently past those compiles without a logged fatal, still black/no verified gameplay. No raw requests/captures uploaded.
Next after this bounded run: WindowsOFF paired controls, including all the previous regressions, formatted_buffer_once, spirv_module/optimizer, shader_memory/vector_window, pixel_sample_iteration and native buffer-format/load/store cases with the actual validation layer. The reported Private-to-Function fix is retained; I will not carry the old cbdbc study forward. Thanks for the specific failure analysis. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T12:17:38Z.
Windows cross-test of updated #8721 head
a31c679cda(including6e6c15962a), integrated as 38f1f43574ae1c81c50e9fd3dc30a3cc9e9ed5b0 on our 007 stack 8942cb7c407aa0eb17be391d0b5ac714e6b58776:This Windows build has ANYPS5_ENABLE_SPIRV_TOOLS=OFF. The optimizer-specific test is not registered, so this does not verify the actual optimizer pass or the ON configuration. A production-only negative control is also still pending. The candidate is pushed on Scramblrrrr/AnyPS5 branch codex/first-light-oct22-formatted-current, but is not staged into the game runtime and has not been title-tested. Pausing here at the user's request; thanks for the Function-storage fix.