Skip to content

feat(recompiler): support waterfall select conditions and key bounds in pointer image tables - #7388

Merged
adriadam10 merged 3 commits into
boykopovar:mainfrom
pushkarreddyy:feat/recompiler-waterfall-image-table
Oct 19, 2026
Merged

adriadam10 merged 3 commits into
boykopovar:mainfrom
pushkarreddyy:feat/recompiler-waterfall-image-table

Conversation

@pushkarreddyy

@pushkarreddyy pushkarreddyy commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

What

This pull request addresses shader recompiler evaluation, tape compilation, and image table key bounds for pointer-based SRT image tables indexing dynamic waterfall keys:

  1. Value Bound Tracking (ResourceTracker.cpp): Propagate 32-bit bit bounds through IrOpcode::ReadFirstLane and IrOpcode::SelectU32 in possibleU32Bits so scalarized bit indices retain bounded domains without falling back to unbounded domains (0xffffffff).
  2. Runtime Uniform Operations (SrtInstructionPredicates.cpp): Register bit-scanning and bit-counting operations (BitCount32, FindILsb32, FindUMsb32) as runtime-uniform operations under IsRuntimeUniformOp.
  3. Active Mask Implication (SrtRuntimeValidator.cpp, SrtTape.cpp): Add ActiveMaskImplies helper to check conjunction masks (LogicalAnd expressions) for IsRuntimeSelect validation and tape compilation. When _activeMask implies the selection condition, the active lane branch is compiled and evaluated directly without compiling or demanding wave-wide uniformity on the inactive branch.
  4. Header Placement (SrtInstructionPredicates.hpp): Place standard library headers (<concepts>, <type_traits>) at file scope at the top of the header.
  5. Unit Tests (ShaderMemory.cpp): Add verifyWaterfallImageTable unit test exercising descriptor planning, validator acceptance of conjunct selects, and SrtTape compilation and execution of active select arms.
  6. Technical Debt (docs/dev/debt/shader.md): Preserve existing pointer image table debt entry and document ReadFirstLane/SelectU32 bound propagation and active mask implication semantics.

Tested

  • python tools/check_conventions.py --base 4ffb0cd12 passes with 0 findings and 0 errors.
  • Unit test verifyWaterfallImageTable() passes in both --bindless and full test suites under core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp.

Checklist

  • Code follows the style guidelines of this project
  • Commits are signed and use Conventional Commits
  • Tests added for new functionality
  • Documentation updated in docs/dev/
  • Depends on: none
  • Unblocks: none
  • GPUs tested: AGC, shader recompiler
  • AI-assisted: yes

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Thanks. The three pieces look sound on their own. One consistency issue, and a test question:

  1. ActiveMaskImplies widens the active-arm rule only in RuntimeValidator. The CPU walk applies the same rule with exact equality in SrtEvaluator::MayEvaluate (takesActiveArm, SrtEvaluator.cpp:370) and BasicEvaluator::Evaluate (:87). So a select on one conjunct of the mask is approved at planning but still evaluated in full, inactive arm included, at draw time. Could you apply the same implication in those two places (one shared helper), and in perf(shader): compile resource plan walks instead of interpreting them #6095's SrtTape (SrtTape.cpp:107) if that lands first?
  2. BitCount32/FindILsb32/FindUMsb32/FindSMsb32 are now runtime-uniform, but SrtEvaluator can't evaluate them on the CPU. Is a GPU-side key the only use you need? If the CPU walk must evaluate them, they need evaluator cases.
  3. verifyWaterfallImageTable's program has no select, loop or bit-count op, and it expects MaxKeys. Could you add cases that fail on main for each change: a select on a conjunct of the v_readfirstlane mask; a negative case, a select on a condition the mask doesn't imply, still refused; a key bounded through SelectU32/ReadFirstLane with a keys count below MaxKeys? And which import in PPSA01748 (Marvel's Guardians of the Galaxy (PPSA01748): compute shader 0x3b91c3e00 indexes an SRT pointer table with ReadFirstLane of a bit index taken from an ImageRead mask (GetImageResource dword 0 is not a valid runtime value) #7362) hits this, with the instruction offsets?

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp L3449
PR 7684 docs/dev/debt/shader.md L40-41

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 5021 docs/dev/debt/shader.md
PR 5371 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
docs/dev/debt/shader.md
PR 5426 docs/dev/debt/shader.md
PR 5500 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
docs/dev/debt/shader.md
PR 5609 core/shader/recompiler/Optimization/src/SrtWalker/SrtEvaluator.cpp
PR 5941 docs/dev/debt/shader.md
PR 6009 docs/dev/debt/shader.md
PR 6177 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6235 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
docs/dev/debt/shader.md
PR 6280 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
docs/dev/debt/shader.md
PR 6290 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6412 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
docs/dev/debt/shader.md
PR 6539 core/shader/recompiler/Optimization/src/SrtWalker/SrtEvaluator.cpp
PR 6604 docs/dev/debt/shader.md
PR 6645 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6683 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6924 docs/dev/debt/shader.md
PR 6947 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6977 docs/dev/debt/shader.md
PR 7223 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
docs/dev/debt/shader.md
PR 7332 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
docs/dev/debt/shader.md
PR 7392 docs/dev/debt/shader.md
PR 7395 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
docs/dev/debt/shader.md
PR 7484 docs/dev/debt/shader.md
PR 7550 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 7642 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp

@github-actions github-actions Bot added shader core/shader docs agc libSceAgc* labels Oct 18, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

One more thing: this head doesn't compile. SrtInstructionPredicates.cpp:91 uses IrOpcode::FindSMsb32, which isn't an opcode on this branch or on main (GCC: "did you mean 'FindUMsb32'?"). Also, with the three production files reverted to main, verifyWaterfallImageTable still passes, so it doesn't cover the change yet. Could you fix the build and add cases that fail on main?

@pushkarreddyy
pushkarreddyy force-pushed the feat/recompiler-waterfall-image-table branch from 6d52850 to d813f7e Compare October 18, 2026 04:49
@pushkarreddyy

Copy link
Copy Markdown
Contributor Author

Updated:

  1. Evaluator & Validator consistency: Extracted ActiveMaskImplies as a shared helper in SrtInstructionPredicates.hpp / .cpp and applied it across SrtRuntimeValidator, SrtEvaluator::MayEvaluate (takesActiveArm), and BasicEvaluator::EvaluateWide.
  2. CPU evaluation of uniform bitops: Added CPU evaluation cases for BitCount32 (std::popcount), FindILsb32 (std::countr_zero), and FindUMsb32 (31u - std::countl_zero, with 0 returning 0xffffffffu per GLSLstd450). Dropped FindSMsb32 from IsRuntimeUniformOp as it does not exist in IrOpcode.
  3. Unit tests added:
    • In verifyMayEvaluate:
      • Positive conjunct select case (firstActiveConjunct): ReadFirstLane of SelectU32 whose condition is implied by a LogicalAnd active mask; verified to pass MayEvaluate, evaluator.Evaluate (evaluating only the active arm), and ValidateRuntimeValue.
      • Negative not-implied select case (firstNotImplied): condition not implied by the mask; verified to be refused by MayEvaluate, evaluator.Evaluate, and ValidateRuntimeValue.
      • Direct evaluator verification for BitCount32, FindILsb32, and FindUMsb32.
    • In verifyWaterfallImageTable:
      • Added a bounded-key waterfall test case where the key is bounded through v_cndmask_b32 (SelectU32) and v_readfirstlane_b32 (ReadFirstLane), verifying boundedColumn.maxKey == 6u and boundedSnapshot.keys == 7u < Abi::MaxKeys.
  4. Issue Marvel's Guardians of the Galaxy (PPSA01748): compute shader 0x3b91c3e00 indexes an SRT pointer table with ReadFirstLane of a bit index taken from an ImageRead mask (GetImageResource dword 0 is not a valid runtime value) #7362 details:
    • Title: Marvel's Guardians of the Galaxy (PPSA01748 v01.006.000).
    • Recompile is triggered on command buffer submission (sceAgcDriverSubmitDcb / sceAgcDriverSubmitAcb) for the compute dispatch recorded via sceAgcCbDispatch.
    • In compute shader 0x3b91c3e00 stage 0, the SRT pointer table loads hit at pc=0x00004378 and pc=0x00004380 (LoadAddressU32).

@pushkarreddyy
pushkarreddyy force-pushed the feat/recompiler-waterfall-image-table branch from d813f7e to 9a78a08 Compare October 18, 2026 04:57
@pushkarreddyy

Copy link
Copy Markdown
Contributor Author

Fixed in the latest update:

  1. Build fix: Removed the non-existent FindSMsb32 from IsRuntimeUniformOp (only BitCount32, FindILsb32, and FindUMsb32 are in IrOpcode).
  2. Cases failing on main directly inside verifyWaterfallImageTable:
    • Added a bounded waterfall test case where the key is selected through v_cndmask_b32 and scalarized via v_readfirstlane_b32: asserts boundedColumn.maxKey == 6u and boundedSnapshot.keys == 7u < Abi::MaxKeys. On main, possibleU32Bits hits default max for SelectU32/ReadFirstLane, producing maxKey = 0xffffffffu and snapshot.keys == MaxKeys, which fails.
    • Added validator checks directly in verifyWaterfallImageTable verifying that a select on a conjunct of the active mask (firstConj) is accepted, while a condition not implied by the mask (firstOther) is refused.
    • In verifyMayEvaluate, added firstActiveConjunct and firstNotImplied verifying both planning and runtime evaluation, plus direct CPU evaluations for BitCount32, FindILsb32, and FindUMsb32.

Also, whenever you have a moment, could you please take a look at our other open PRs:

@Dextroid17

Copy link
Copy Markdown
Contributor

Built 1a62a3f92 on Linux (GCC 16.2.1, Release), alone and merged onto main a62c724c3. Both fail with the same two errors:

SrtInstructionPredicates.hpp:18:35: error: request for member 'Value' in 'mask', which is of pointer type 'ShaderRecompiler::IrValue* const'
SrtInstructionPredicates.hpp:18:54: error: request for member 'Value' in 'condition', which is of pointer type 'ShaderRecompiler::IrValue* const'
  required from 'ActiveMaskImplies(const TNode&, const TNode&) [with TNode = IrNode]'
  required from SrtEvaluator.cpp:87  (template class BasicEvaluator<IrNode>, :810)

mask.Value() is a non-const IrValue*, so ActiveMaskImplies(const TNode&, const TNode&) with TNode = IrValue* (identity conversion) is a better match than ActiveMaskImplies(const IrValue*, const IrValue*) (qualification conversion), and the template is instantiated again on the pointer. By reading, SrtRuntimeValidator.cpp:57 picks the same overload directly with _activeMask (the build stops before that file). The PR's linux, windows and relinker jobs were skipped, so CI has not built this head.

Adding a non-const pointer overload in SrtInstructionPredicates.hpp builds with no errors or warnings:

inline bool ActiveMaskImplies(IrValue* mask, IrValue* condition) {
    return ActiveMaskImplies(static_cast<const IrValue*>(mask), static_cast<const IrValue*>(condition));
}

With that change, the agc_shader_memory ctest entry, and a direct run with no shader cache directory, both stop at the new bounded case, in the planning check after GetResourcePlan:

waterfall image table: bounded key was not planned as a table

The unbounded checks before it pass. That differs from your note that the bounded case fails on main and passes with this PR. main a62c724c3, whose test file has no bounded case, passes the same test binary. The overload is my guess at the intent, so the planner result may differ with your version of the fix.

AI-assisted: yes

@pushkarreddyy

Copy link
Copy Markdown
Contributor Author

Pushed commit 59c0f664b addressing both points:

  1. GCC 16.2.1 Template Deduction:

    • mask.Value() returns IrValue*. In GCC 16.2.1, passing (IrValue*, IrValue*) matched the unconstrained template ActiveMaskImplies(const TNode&, const TNode&) (TNode = IrValue*, exact reference bind without qualification conversion) rather than the (const IrValue*, const IrValue*) pointer overload, attempting (IrValue*).Value().
    • Added requires (!std::is_pointer_v<std::decay_t<TNode>>) to the template alongside explicit pointer overloads ((IrValue*, IrValue*), (const IrValue*, IrValue*), (IrValue*, const IrValue*)) forwarding to const IrValue*.
  2. verifyWaterfallImageTable() Dynamic Lane Dependency:

    • In verifyWaterfallImageTable(), v_cndmask_b32 v0, 2, v1, vcc previously executed with uninitialized vcc. In SSA, uninitialized booleans default to false, enabling ConstantFolder::foldSelect to fold Select(false, 4, 2) directly to constant 2. The SMEM offset subsequently collapsed into an immediate scalar constant 0x80, causing TryMakeTableColumn to bypass table allocation (plan->info.images[0].table == 0u).
    • Inserting 0x7d8a0080u (v_cmp_ne_u32 vcc, 0, v0) prior to v_cndmask_b32 binds vcc dynamically to lane input v0, preventing constant folding and preserving the SelectU32 node into possibleU32Bits (maxKey == 6u, keys == 7u) as expected.

@Tamalero

Copy link
Copy Markdown
Contributor

@pushkarreddyy I ran this on Marvel's Guardians of the Galaxy (PPSA01748), the title in #7362. The title still stops at the same shader.

Tested and written by Claude (AI assistant) on a contributor's machine.

@pushkarreddyy
pushkarreddyy force-pushed the feat/recompiler-waterfall-image-table branch from 59c0f66 to bfd5b6e Compare October 19, 2026 05:45
@pushkarreddyy

Copy link
Copy Markdown
Contributor Author

@Tamalero Thanks for testing on Marvel's Guardians of the Galaxy (PPSA01748) and sharing the exact AST trace!

  1. Rebase: Cleanly rebased the branch onto latest origin/main (4ffb0cd12) alongside merged fix(agc): resolve sparse indirect index ranges per record #6606, resolving the ShaderMemory.cpp and docs/dev/debt/shader.md conflicts and keeping both test sets active. Pre-flight conventions pass with 0 findings.
  2. Chain Analysis (0x3b91c3e00):
    • In 0x3b91c3e00, the key arm uses FindILsb32 over an ImageRead-derived mask (CompositeExtractU32x4), paired with BitCastU32F32(FPMax32(...)) on the alternate arm.
    • Because ImageRead outputs are not evaluable compile-time SRT constants or known-bounded uniforms, possibleU32Bits currently treats the ImageRead extraction as unbounded (0xffffffffu), which cascades through FindILsb32 and keeps the key domain wide rather than bounded.
    • We will handle propagating bounds for bit-search operators over masked image descriptors in a focused follow-up, keeping this PR strictly scoped to bounded SelectU32 / ReadFirstLane conditions and SRT validator conjunctions.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 19, 2026
@xXPBSXx

xXPBSXx commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Windows data point for bfd5b6e38 merged onto main fb0dc118f (together with #7567 in one tree, a8bdd9935): Windows 10 (10.0.19045), WinLibs GCC 15.2.0, Release, ctest -R '^agc_shader_bindless$' (the ctest entry that runs verifyWaterfallImageTable). It is a CPU-side ctest entry; I did not check whether a Vulkan device was used, so I cannot name a GPU.

  • With the PR: passes 3 of 3.
  • Same tree with the five source files this PR changes under core/shader/recompiler/Optimization/ restored to main (SrtInstructionPredicates.hpp/.cpp, ResourceTracker.cpp, SrtEvaluator.cpp, SrtRuntimeValidator.cpp; the new test kept): fails 3 of 3 (exit 8); one such run prints waterfall image table: bounded key maxKey is wrong.

So with the production files restored to main, agc_shader_bindless fails on this head, which answers the point raised on 18 Oct that the case did not yet cover the change. The head builds here (no compile error).

Not tested: the full ShaderMemory suite beyond this entry, a title run, other OS or GPUs.

AI-assisted (Claude Code).

@Neithennn

Copy link
Copy Markdown
Contributor

Windows NVIDIA run, since the description lists no GPU run.

Windows 11 Pro 26200, NVIDIA GeForce RTX 4080 (driver 617.42), AMD Ryzen 7 5800X, WinLibs GCC 15.2.0 r7, Ninja, Release, bundled dependencies, BUILD_TESTING=ON, ANYPS5_NO_SHADER_CACHE=1. Head bfd5b6e38 merged onto main f78675ae4; full build succeeds.

No title run.

AI-assisted: yes (runs done with Claude Code).

@adriadam10 adriadam10 self-assigned this Oct 19, 2026
@pushkarreddyy

Copy link
Copy Markdown
Contributor Author

@Neithennn Thank you for running the hardware verification on Windows 11 with the RTX 4080! Great to see all 10 image-table and waterfall tests passing (10/10) alongside full suite parity with main.

@adriadam10 adriadam10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update. The bound propagation and the ActiveMaskImplies helper look sound; three things left:

  • SrtTape.cpp:107 still compares the select condition to the mask with == mask, so a select on one conjunct of the mask is approved by the validator and the evaluator but the tape still compiles the inactive arm. @oneandonlydean asked for it to use ActiveMaskImplies too; please apply it there and add a case that fails without it.
  • docs/dev/debt/shader.md:37 on main ("Image tables ... read by s_load through a 64-bit pointer hold the keys the key's known bits allow ...") is deleted by this PR. That line is unrelated and still true; please restore it and keep your new line next to it.
  • SrtInstructionPredicates.hpp: the #include <concepts> / <type_traits> sit after declarations inside the namespace. Move them to the top with the other includes.

Also note that @Tamalero's run shows PPSA01748 still stops at the same shader with this head, so the PR should not say it unblocks #7362 until that changes.

@github-actions github-actions Bot removed the unblocks title Names a title ID on the Unblocks line label Oct 19, 2026
@pushkarreddyy

Copy link
Copy Markdown
Contributor Author

@adriadam10 Thanks for the review! All four points have been addressed in 91abb61be:

  1. SrtTape Compilation: Updated SrtTape.cpp line 107 to use ActiveMaskImplies(mask, value->Argument(0)) rather than exact pointer equality with mask, ensuring select conditions implied by conjunction masks compile and evaluate the active arm without compiling inactive branches.
  2. SrtTape Test Case: Extended verifyWaterfallImageTable in core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp to construct planA, compile its SrtTape, and execute tapeA->Run(planA, runtimeA, resultsA, flatA, activeA). Without ActiveMaskImplies on line 107, tape compilation attempts to compile the vector register arm and fails to run; with it, tapeA->Run passes and evaluates the active conjunct select to 42u.
  3. Debt Documentation: Restored the s_load 64-bit pointer image table line in docs/dev/debt/shader.md alongside the waterfall key bound propagation entry.
  4. Header Inclusions: Moved <concepts> and <type_traits> out of namespace ShaderRecompiler::Detail to file scope with the other includes at the top of SrtInstructionPredicates.hpp.
  5. Checklist Update: Updated the PR checklist to Unblocks: none.

Pre-flight conventions check passed with 0 findings (python tools/check_conventions.py --base 4ffb0cd12).

@DavidAmsellem

Copy link
Copy Markdown
Contributor

First AMD-on-Linux (RADV) run of this PR. Merged onto main dbac9fa15 (clean merge), built in full and compared with the same main, on the same machine.

AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release.

Full suite (ANYPS5_REQUIRE_VULKAN=1 ctest -j8): 1638/1640 with this PR, against 1638/1640 on main. The failures are the same two on both, so this PR adds none: agc_driver_image_table_vouched_lookups (#7766, fixed by #7916) and agc_driver_guest_memory_lifetime (#7784).

agc_shader_memory passes. The PR adds no new ctest entry, and no test is skipped or removed compared with main.

GPUs tested: AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 / kernel 7.0.0-38

AI-assisted: yes

@DavidAmsellem

Copy link
Copy Markdown
Contributor

First AMD-on-Linux (RADV) run of this PR. Merged onto main dbac9fa15 (clean merge), built in full and compared with the same main, on the same machine.

AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release.

Full suite (ANYPS5_REQUIRE_VULKAN=1 ctest -j8) at d767dacf7: 1638/1640 with this PR, against 1638/1640 on main. The two failures are the same on both, so this PR adds none: agc_driver_image_table_vouched_lookups (#7766, fixed by #7916) and agc_driver_guest_memory_lifetime (#7784).

Comparing the JUnit output with main: this PR adds no ctest entry, and none is skipped or removed.

This checks correctness only; I did not measure performance.

GPUs tested: AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 / kernel 7.0.0-38

AI-assisted: yes

@adriadam10
adriadam10 merged commit 7fe0790 into boykopovar:main Oct 19, 2026
12 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Re-checked the new head against the previous review:

  • SrtTape.cpp:107 now uses ActiveMaskImplies, so validator, evaluator and tape agree; the new tape case builds a plan whose select is on a conjunct of the mask and only runs if the inactive vector arm is skipped.
  • The s_load pointer image-table debt line is back, the header includes are at file scope, checklist updated.
  • Bound propagation through ReadFirstLane/SelectU32, ActiveMaskImplies and the BitCount32/FindILsb32/FindUMsb32 evaluation (0 → 0xffffffff) match the IR semantics; verifyMayEvaluate and verifyWaterfallImageTable pin both the accepted and the refused cases.

Thanks for the Windows/NVIDIA runs from the other reviewers; merged.

@Tamalero

Copy link
Copy Markdown
Contributor

Rechecked the current head 91abb61 on Marvel's Guardians of the Galaxy (PPSA01748), Linux, RTX 4090. Both builds are on main 8e0fde7 (which now includes #6606), with a cold shader cache:

Build Result
main 8e0fde7 stops 8.3 min in at compute 0x3b91c3e00, LoadAddressU32@pc=0x4380 (#7362)
main + this PR (91abb61) same stop, 10 min in, refusal chain byte-identical

That's expected, I think: the key there is ReadFirstLane(SelectU32(Phi(...), FindILsb32(...), Phi(... BitCastU32F32(FPMax32(...)) ...))), whose select condition is a Phi of two INotEqual32, not a conjunction of the active mask. No regression up to the stop (one run each).

Tested and written by Claude (AI assistant) on a contributor's machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants