Repository navigation
fix(shader): budget pixel lane proof for NHL 26 replay - #6180
oneandonlydean merged 2 commits into
Conversation
|
Hey Marc, thanks for taking this on. I checked c44c700 on Windows and can confirm it gets the supplied NHL26 capture past the lane-63 stop. This was on main 760ffa6 (including #6015), Release/MinGW GCC 15.2, with SPIRV-Tools enabled and shader caches disabled. I used milescoviello's #6125 at 686ea1d for the replay-tool build repair in every comparison. Your fixture matches the decoded capture from @milchgeldkassierer in #5398 byte for byte. I also reran the saved-EXEC loop tests from the earlier patch attached to #5189, keeping those test additions identical across all three runs:
The added case is a synthetic saved-EXEC loop before UMin, with three mask round trips per iteration and four loop iterations. It fails before this PR too, so this is a remaining case, not a regression introduced here. With caching, the helper-inclusive and asymmetric-upper-mask controls still refuse compilation. The GPU run covered partial waves, four draws per layout, on an NVIDIA RTX 4070 SUPER, driver 617.42, Windows 11 build 26300. The 64-lane layout was still running on 32-lane hardware; this is not native 64-lane validation. Both variants passed the full Windows build. This PR passed all 75 selected tests before the loop additions; the cached variant passed all 75 with them, with no skips. That selection includes the new quad/sample-mask tests and request serialization from #6015. Direct replay emitted identical 70,935-word SPIR-V in both successful variants; the separate PrepareShader path emitted 74,546 words in each. I haven't run NHL26 itself or checked its images, other GPU vendors, arbitrary changing masks, a dedicated mutually dependent-Phi cache case, or the saved loop combined with non-default quad/sample masks. The earlier cached approach remains local, with no competing PR opened. Would you prefer the broader loop case as a follow-up after this lands, or to discuss it here first? For the next title check, the useful evidence is the tested revision, any other local patches, GPU/driver/OS, and a log through the next stopping point. If another shader fails, its complete RecompileRequest would help. We already have the capture needed for this stop. AI-assisted testing and write-up, with an independent review of the changes and before/after evidence. |
1414009 to
35bb567
Compare
35bb567 to
99500f9
Compare
|
Thanks for the detailed comparison. I suggest keeping this PR focused on the lane-63 budget and its captured replay. The saved-EXEC loop case fails for a separate reason and the cached-proof approach changes the analysis mechanism, so it is better discussed and validated as a separate follow-up after this PR is resolved. The evidence you posted is useful for defining that follow-up’s regression cases. |
|
Rebased this PR onto current |
|
Correction to my previous note: the exact GCC 12 compile failure is already addressed by open PR #6306, which adds the missing |
|
Ran the focused test on Linux, since your GCC 12 build stopped before it on the rebased head. GCC 16.2.1 compiles
So on 99500f9 the replay test fails without the budget change and passes with it, and it still passes merged with Heads-up: #6645 edits AI-assisted: yes |
|
Thanks for running the focused replay on the rebased head with the 2048 budget and the 512 negative control. The 3/3 pass/fail result confirms the budget change is necessary on Linux, and the clean merge with main still passes. I noted the adjacent #6645 conflict for coordination. |
|
The budget change and its 512/2048 control look right. One request: could the regression test build the IR in code (like |
|
Thanks. I agree the committed title capture is not a good permanent test fixture. The attached capture has been independently checked against the decoded #5398 request, and the Linux 512/2048 control shows the replay fails with 512 and passes with 2048, but we have not instrumented I started replacing the capture with a generated chain, but couldn't validate that the generated IR actually crosses the 512 proof-visit boundary on this rebased tree, so I have not kept that speculative test. Would you prefer I leave the verified capture replay in place for now, with the request attached to the PR, or hold this PR while I build and validate a synthetic >512-visit case? I can also add temporary instrumentation locally to measure the capture's exact visit count before deciding whether a generated case can represent it. |
|
I replaced the committed NHL capture regression with a generated saved-EXEC test. It builds three loop-carried saved-EXEC masks before a wave64 pixel UMin scan. On Linux, the focused CTest passes with the 2048 budget; with only I also measured the attached NHL 26 request with temporary The updated PR description records the test setup and the overlap with #6645. Thanks for asking for a generated regression and the count; both points are now addressed. |
|
Coordination update: the follow-up on #6582 now reports that the proof-cache candidate from #6645 compiles the retained PRAGMATA request at the original 512-step budget, and that both CPU control tests pass on the reported exact commit. This is reporter validation, not an independent run of #6645, but it materially changes the overlap picture: #6180's budget increase fixes the generated/NHL capture, while the cache proposal may also complete the harder PRAGMATA walk without raising the cap. Both changes touch |
|
Hey folks, small commit clarification on the coordination update above: Ondra97's successful retained PRAGMATA comparison tested overlordxrz-source's b76d8d31bf4cf97d53ec52f45b0dc3937fac5532. It explicitly excluded #6645's production changes. At the time of this check, #6645 still points to e6f33ead6115c06fc58cbde29efb9d2e7e4f284e, which has the earlier cycle-generation-guarded cache, rather than the new active/assumed/settled implementation. Thanks to overlordxrz-source for the rewrite and Ondra97 for running the private capture. I checked b76 against its parent 93e54ce, keeping the cap at 512. Windows 11 Pro build 26300, MinGW GCC 15.2, Release, SPIRV-Tools ON, shader cache disabled. Test and tool additions were identical between the two production variants.
The GPU was an NVIDIA GeForce RTX 4070 SUPER, driver 617.42, with a 32-lane host subgroup. The loop passed four draws for each 32- and 64-lane shader layout, with 840 partial waves per layout. This does not cover a native 64-lane host GPU. After restoring b76 and rebuilding, the NHL output was byte-identical to the first successful run, and the selected CTest set passed again: 16/16, zero skips. Both production variants completed the default full build with the shared prerequisites below. I did not run the entire 1,330-test suite. A separate exact-source IR cycle audit found no defect in its tested proof rules; it also detected deliberately unsafe caching mutations. That is supporting coverage, not a proof of arbitrary shader correctness. Exact setup, build prerequisites, and test-only diffThe candidate changes only I reused MarcZX100's generated test from #6180 head The initial candidate default build stopped because an existing GPU test used 65,536-byte static alignment, above MinGW's 8,192-byte object limit, and the output path was too long. I reproduced both errors by building that same failing target with the parent production source. I retained those failure logs, used a shorter build path, and applied the same already-upstream test/tool repairs to both:
These repairs and the added tests do not change the shader production algorithm. The complete shared additions are below, including the new helper header. diff --git a/core/libs/prx/libSceAgcDriver/CMakeLists.txt b/core/libs/prx/libSceAgcDriver/CMakeLists.txt
index f112af6ad..a36f2f5b5 100644
--- a/core/libs/prx/libSceAgcDriver/CMakeLists.txt
+++ b/core/libs/prx/libSceAgcDriver/CMakeLists.txt
@@ -1526,8 +1526,10 @@ if(BUILD_TESTING)
add_test(NAME agc_shader_layout_pair_off COMMAND agc_shader_memory_tests --layout-pair)
set_tests_properties(agc_shader_layout_pair PROPERTIES ENVIRONMENT "ANYPS5_NO_SHADER_CACHE=1" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
set_tests_properties(agc_shader_layout_pair_off PROPERTIES ENVIRONMENT "ANYPS5_NO_SHADER_CACHE=1;APS5_NO_PERF_LAYOUT_PAIR=1" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
+ add_test(NAME agc_shader_entry_lane_proof_budget COMMAND agc_shader_memory_tests --entry-lane-proof-budget)
+ set_tests_properties(agc_shader_entry_lane_proof_budget PROPERTIES ENVIRONMENT "ANYPS5_NO_SHADER_CACHE=1" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
if(WIN32)
- set_tests_properties(agc_shader_bindless agc_shader_srt_read_patching agc_shader_type_zero_image_materialization agc_shader_frontend_pair agc_shader_frontend_pair_off agc_shader_layout_pair agc_shader_layout_pair_off PROPERTIES ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
+ set_tests_properties(agc_shader_bindless agc_shader_srt_read_patching agc_shader_type_zero_image_materialization agc_shader_frontend_pair agc_shader_frontend_pair_off agc_shader_layout_pair agc_shader_layout_pair_off agc_shader_entry_lane_proof_budget PROPERTIES ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
endif()
foreach(agcTest IN ITEMS agc_vertex_input_tests agc_shared_write_tests agc_driver_tests agc_shader_memory_tests agc_structurizer_tests agc_spirv_module_tests agc_dpp_write_tests agc_masked_select_tests agc_ir_reclaim_tests agc_vector_window_tests agc_constant_bit_test_tests agc_integer_narrowing_tests agc_scalar_select_mask_tests agc_vop1_control_decode_tests agc_validate_program_tests agc_pass_hazards_tests agc_shader_disk_cache_tests agc_shader_device_profile_tests agc_placeholder_images_tests agc_shader_control_flow_tests agc_driver_flip_tests agc_driver_pm4_tests agc_driver_graphics_tests agc_driver_bda_device_tests agc_driver_mesh_tests agc_driver_cmask_fast_clear_tests agc_formatted_buffer_once_tests agc_formatted_buffer_byte_stores_tests ${agcExecutionTests} agc_fma_mix_once_tests)
if(agcTest STREQUAL "agc_driver_constant_store_tests" OR agcTest STREQUAL "agc_driver_flat_apertures_tests" OR agcTest STREQUAL "agc_driver_pipeline_optimized_readback_tests")
diff --git a/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp b/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
index 86f21811f..f895373e9 100644
--- a/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
+++ b/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
@@ -14,6 +14,7 @@
#include "IntermediateRepresentation/IrBuilder.hpp"
#include "IntermediateRepresentation/IrProgram.hpp"
#include "SpirvBackend/SpirvAnalysis.hpp"
+#include "SavedExecMaskLoop.hpp"
#if ANYPS5_ENABLE_SPIRV_TOOLS
#include "SpirvBackend/SpirvOptimizer.hpp"
#endif
@@ -2311,6 +2312,18 @@ void verifyHalfWaveReduction() {
{0u, 0x38000000u, 0x88000000u, spv::OpGroupNonUniformBitwiseOr, "half-wave reduction: the wave64 OR scan did not read lane 31 as a subgroup OR on 32 lanes"},
}};
for (const auto& reduction : scans) require(reductions(pixel(scan(reduction.identity, reduction.vector, reduction.scalar), 32u, true), reduction.reduce) == 1u, reduction.message);
+ auto loopScan = scan(0xffffffffu, 0x26000000u, 0x83800000u);
+ const auto savedMaskLoop = AgcTest::SavedExecMaskLoop(3u);
+ loopScan.insert(loopScan.begin(), savedMaskLoop.begin(), savedMaskLoop.end());
+ auto helperLoop = loopScan;
+ helperLoop[0] = 0xbea204c1u;
+ expectFailure([&] { static_cast<void>(pixel(helperLoop, 32u, true)); }, "v_readlane_b32 of lane 63 is outside the 32-lane host subgroup", "half-wave reduction: a loop initialized with helper lanes was proven to exclude them");
+ auto upperHelperLoop = loopScan;
+ upperHelperLoop[0] = 0xbea2037eu;
+ upperHelperLoop.insert(upperHelperLoop.begin() + 1, 0xbea303c1u);
+ expectFailure([&] { static_cast<void>(pixel(upperHelperLoop, 32u, true)); }, "v_readlane_b32 of lane 63 is outside the 32-lane host subgroup", "half-wave reduction: the low-word loop proof was reused for helper-inclusive upper lanes");
+ require(reductions(pixel(loopScan, 32u, true), spv::OpGroupNonUniformUMin) == 1u, "half-wave reduction: a loop-carried saved EXEC mask exhausted the entry-lane proof on 32 lanes");
+ require(halves(pixel(loopScan, 64u, true), spv::OpGroupNonUniformUMin, 0xffffffffu), "half-wave reduction: a loop-carried saved EXEC mask did not preserve the two half-wave UMin reductions");
auto comparedScan = scan(0u, 0x38000000u, 0x88000000u);
*std::find(comparedScan.begin(), comparedScan.end(), 0xbe98047eu) = 0x8a986a7eu;
comparedScan.insert(comparedScan.begin(), 0x7c080080u);
@@ -2428,6 +2441,46 @@ void verifyHalfWaveReduction() {
expectFailure([&] { static_cast<void>(pixel(umin, 8u, true)); }, "v_permlanex16_b32 from lanes 16-31 is outside the 8-lane host subgroup", "half-wave reduction: the scan built on an 8-lane subgroup");
}
+void verifyEntryLaneProofBudget() {
+ using namespace ShaderRecompiler;
+ static constexpr std::array<std::uint32_t, 5> capabilities{spv::CapabilityGroupNonUniform, spv::CapabilityGroupNonUniformBallot, spv::CapabilityGroupNonUniformShuffle, spv::CapabilityGroupNonUniformArithmetic, spv::CapabilityClipDistance};
+ std::vector<std::uint32_t> code{0xbe98047eu, 0x7e160f00u, 0x8786187eu, 0xbeea287eu, 0xd501000du, 0x001a16c1u};
+ for (const auto control : {0xff01110du, 0xff01120du, 0xff01140du, 0xff01180du}) code.insert(code.end(), {0x261a1afau, control});
+ code.insert(code.end(), {0xd778100cu, 0x0305830du, 0x261a190du, 0xbefe046au, 0xd7600006u, 0x00013f0du, 0xd7600007u, 0x00017f0du, 0x83880706u, 0x7e020208u, 0xf800180fu, 0x01010101u, 0xbf810000u});
+ std::vector<std::uint32_t> savedMaskLoops;
+ for (std::uint32_t loop = 0; loop < 3u; ++loop) {
+ std::vector<std::uint32_t> savedMaskLoop{0xbea2047eu, 0xbea40380u};
+ savedMaskLoop.insert(savedMaskLoop.end(), {0xbefe0422u, 0x7c080080u, 0x8aa26a7eu});
+ const auto branch = 0xbf850000u | static_cast<std::uint16_t>(2 - static_cast<int>(savedMaskLoop.size() + 3u));
+ savedMaskLoop.insert(savedMaskLoop.end(), {0x80248124u, 0xbf0a8424u, branch, 0xbefe0422u});
+ savedMaskLoops.insert(savedMaskLoops.end(), savedMaskLoop.begin(), savedMaskLoop.end());
+ }
+ code.insert(code.begin(), savedMaskLoops.begin(), savedMaskLoops.end());
+
+ ShaderPixelStageInfo pixel{};
+ pixel.inputAddr = PixelInputBit(PixelInput::PositionX);
+ pixel.posX = true;
+ pixel.targetOutputMode[0] = 9u;
+ pixel.targetExportMapping.fill(0xe4u);
+ RecompileRequest request{};
+ request.shader = {ShaderStage::Fragment, 0x30000u, code, 0, {}};
+ request.context.waveSize = 64u;
+ request.context.pixel = pixel;
+ request.target.vulkanVersion = 0x00401000u;
+ request.target.spirvVersion = 0x00010300u;
+ request.target.subgroupSize = 32u;
+ request.target.supportedCapabilities = capabilities;
+ request.layout.pushConstantSizeBytes = 128u;
+ request.useCache = false;
+ const auto spirv = Recompile(request).spirv;
+ std::uint32_t reductions = 0;
+ for (std::size_t cursor = 5; cursor < spirv.size() && (spirv[cursor] >> 16u) != 0u; cursor += spirv[cursor] >> 16u) {
+ if ((spirv[cursor] & 0xffffu) == static_cast<std::uint32_t>(spv::OpGroupNonUniformUMin) && (spirv[cursor] >> 16u) == 6u && spirv[cursor + 4u] == spv::GroupOperationReduce) ++reductions;
+ }
+ require(reductions == 1u, "a wave64 pixel UMin scan after loop-carried saved EXEC masks did not use a 32-lane subgroup reduction");
+}
+
+
void verifyNarrowVertexWave() {
using namespace ShaderRecompiler;
static constexpr std::array<std::uint32_t, 5> capabilities{spv::CapabilityGroupNonUniform, spv::CapabilityGroupNonUniformBallot, spv::CapabilityGroupNonUniformShuffle, spv::CapabilityGroupNonUniformArithmetic, spv::CapabilityClipDistance};
@@ -5158,6 +5211,11 @@ int main(int argc, char** argv) {
std::cout << "Both push-constant layouts of a pixel shader compile from one program unchanged\n";
return 0;
}
+ if (argc == 2 && std::string_view(argv[1]) == "--entry-lane-proof-budget") {
+ verifyEntryLaneProofBudget();
+ std::cout << "The wave64 pixel entry-lane proof handles loop-carried saved EXEC masks on a 32-lane host\n";
+ return 0;
+ }
if (argc == 2 && std::string_view(argv[1]) == "--bindless") {
verifyImageTableKeys();
verifyImageTables();
diff --git a/core/libs/prx/libSceAgcDriver/tests/execution/GpuIndirectArgumentsMisalignedWriterAhead.cpp b/core/libs/prx/libSceAgcDriver/tests/execution/GpuIndirectArgumentsMisalignedWriterAhead.cpp
index 704f0fa84..d676613e0 100644
--- a/core/libs/prx/libSceAgcDriver/tests/execution/GpuIndirectArgumentsMisalignedWriterAhead.cpp
+++ b/core/libs/prx/libSceAgcDriver/tests/execution/GpuIndirectArgumentsMisalignedWriterAhead.cpp
@@ -7,6 +7,7 @@
#include <cstring>
#include <initializer_list>
#include <iostream>
+#include <span>
#include <stdexcept>
#include <string>
#include <vector>
@@ -22,7 +23,8 @@ alignas(256) std::array<std::uint32_t, 7> CounterCode{0xf4080200u, 0xfa000000u,
constexpr std::size_t BlockBytes = 65536;
constexpr std::uint32_t ArgumentsOffset = 4;
-alignas(BlockBytes) std::array<std::uint8_t, BlockBytes> Block{};
+std::array<std::uint8_t, BlockBytes * 2 - 1> BlockStorage{};
+const std::span<std::uint8_t, BlockBytes> Block{reinterpret_cast<std::uint8_t*>((reinterpret_cast<std::uintptr_t>(BlockStorage.data()) + BlockBytes - 1) & ~(BlockBytes - 1)), BlockBytes};
alignas(256) std::array<std::uint32_t, 4> WriterDescriptor{};
alignas(256) std::array<std::uint32_t, 4> Counter{};
alignas(256) std::array<std::uint32_t, 4> CounterDescriptor{};
diff --git a/core/libs/prx/libSceAgcDriver/tests/execution/PixelWaveReduction.cpp b/core/libs/prx/libSceAgcDriver/tests/execution/PixelWaveReduction.cpp
index 7c007900a..a9e7de6c2 100644
--- a/core/libs/prx/libSceAgcDriver/tests/execution/PixelWaveReduction.cpp
+++ b/core/libs/prx/libSceAgcDriver/tests/execution/PixelWaveReduction.cpp
@@ -2,6 +2,7 @@
#include "prx/libSceAgcDriver/Graphics/include/Draw.hpp"
#include "Recompiler.hpp"
#include "VulkanTestDevice.hpp"
+#include "../SavedExecMaskLoop.hpp"
#include <algorithm>
#include <array>
#include <cstdio>
@@ -193,6 +194,15 @@ int main() {
{"OR", 0u, 0x38000000u, 0x88000000u, [](std::uint32_t left, std::uint32_t right) { return left | right; }},
}};
for (const auto& layout : layouts) {
+ auto loopCode = PixelCode(reductions[0]);
+ const auto maskLoop = AgcTest::SavedExecMaskLoop(3u);
+ loopCode.insert(loopCode.begin(), maskLoop.begin(), maskLoop.end());
+ std::uint32_t loopPartial = 0;
+ for (std::uint32_t pass = 0; pass < 4; ++pass) {
+ Draw(*device, loopCode, layout);
+ loopPartial += Check(reductions[0], target.subgroupSize);
+ }
+ std::printf("UMin through a saved EXEC loop, laid out for %u lanes on %u-lane subgroups: %u partial waves over 4 draws\n", layout.subgroupSize, target.subgroupSize, loopPartial);
for (const auto& reduction : reductions) {
for (const bool windowed : {false, true}) {
auto code = PixelCode(reduction);
diff --git a/core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp b/core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
index 524575eef..9d5378691 100644
--- a/core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
+++ b/core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
@@ -147,7 +147,7 @@ bool Replay(const char* path) {
if (g_disassemble) {
spvtools::SpirvTools tools(SPV_ENV_VULKAN_1_2);
std::string text;
- if (tools.Disassemble(result.spirv, &text, SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES)) std::printf("%s\n", text.c_str());
+ if (tools.Disassemble(result.spirv.data(), result.spirv.size(), &text, SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES)) std::printf("%s\n", text.c_str());
}
#else
if (g_disassemble) std::printf(" (--dis needs ANYPS5_ENABLE_SPIRV_TOOLS=ON)\n");
diff --git a/core/libs/prx/libSceAgcDriver/tests/SavedExecMaskLoop.hpp b/core/libs/prx/libSceAgcDriver/tests/SavedExecMaskLoop.hpp
new file mode 100644
--- /dev/null
+++ b/core/libs/prx/libSceAgcDriver/tests/SavedExecMaskLoop.hpp
@@ -0,0 +1,19 @@
+#ifndef CORE_LIBS_PRX_LIBSCEAGCDRIVER_TESTS_SAVEDEXECMASKLOOP_HPP
+#define CORE_LIBS_PRX_LIBSCEAGCDRIVER_TESTS_SAVEDEXECMASKLOOP_HPP
+
+#include <cstdint>
+#include <vector>
+
+namespace AgcTest {
+
+inline std::vector<std::uint32_t> SavedExecMaskLoop(std::uint32_t rounds) {
+ std::vector<std::uint32_t> code{0xbea2047eu, 0xbea40380u};
+ for (std::uint32_t step = 0; step < rounds; ++step) code.insert(code.end(), {0xbefe0422u, 0x7c080080u, 0x8aa26a7eu});
+ const auto branch = 0xbf850000u | static_cast<std::uint16_t>(2 - static_cast<int>(code.size() + 3));
+ code.insert(code.end(), {0x80248124u, 0xbf0a8424u, branch, 0xbefe0422u});
+ return code;
+}
+
+}
+
+#endifThe selected CTest expression was: I configured The clean merge-tree check against upstream @Ondra97, could you repeat the retained PRAGMATA request on b76 with SPIRV-Tools ON, keeping the same private input, and report the validator result, exit status and word count? The payload can stay private. That would close the remaining capture-validation gap before deciding who carries the rewrite and how #6180/#6645 should be sequenced. AI-assisted testing and write-up: Codex, with a separate Codex review. |
|
Quick follow-up on the b76 comparison above: I reran it against current upstream 6a32550fd18606452187c557a8be29a427cc2141. The public NHL 26 request still fails there, and passes with overlordxrz-source's b76d8d31bf4cf97d53ec52f45b0dc3937fac5532 applied. The cap stays at 512.
Both test sets had zero skips. The execution-test filter was empty and the build contained no The integration retains upstream's Tested on NVIDIA GeForce RTX 4070 SUPER, driver 617.42, Windows 11 Pro build 26300, MinGW GCC 15.2, Release, SPIRV-Tools ON, shader cache disabled. The saved-EXEC pixel loop passed rendered-value checks for both 32- and 64-lane shader layouts on 32-lane host subgroups: four draws and 840 partial waves per layout. This does not test a native 64-lane host GPU. Only The test additions were identical between arms: MarcZX100's generated case from #6180 head Selected CTest namesThe opt-in repeats were This adds current-main integration evidence for the existing #6180/#6645 discussion; no duplicate PR. It does not demonstrate NHL 26 gameplay or a title unblock, and I have not run the private PRAGMATA capture, AMD or Linux here. AI assistance was used for the validation setup and write-up, with an independent review before posting. |
What
Raise the bounded
EntryLaneWalkproof budget from 512 to 2048 so a wave64 pixel shader can complete lane-63 analysis on a 32-lane host. Add a generated regression shader with loop-carried saved EXEC masks followed by a wave64 UMin scan; it verifies the 32-lane subgroup reduction is emitted. Resolves #5398.Tested
Linux x86_64, GCC 12.2, Release. Built
tests/agc_shader_memory_tests;ctest --test-dir /tmp/build-6180-proof-budget -R '^agc_shader_entry_lane_proof_budget$' --output-on-failurepassed (1/1). With the same generated request, a 512-budget control fails at the lane-63 read and the 2048 budget passes.python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.For the NHL 26 request from #5398, temporary local
EntryLaneWalk::Spendinstrumentation duringagc_shader_replay --preparerecorded 1,369 successful steps in each of its two proof walks, no budget refusals, and 679 steps remaining from the 2,048 budget. The instrumentation and captured request are not part of this PR. The Linux GCC 12 build needed the independent dependent-template compile fix from #6306 temporarily in the local tree; that adjustment is not part of this PR. No GPU runtime validation was performed.Checklist
mainNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repositorySpirvAluEmitterMath.cpp; coordinate integration with that proof-cache changev_readlane_b32) on a 32-lane host, NHL 26 (PPSA26785) stops at start-up #5398