graphics: prune unused mesh outputs #741

Closed
github-bot wants to merge 1 commit from gh-pr/741/head into gh-pr/741/base
Owner

@⁠carbonimax on GitHub · 2026-09-20 21:01 UTC · original
carbonimax:codex/macos-mesh-output-pruning → main · +84 −6 · 5 files · 1 commits · closed without merging

Summary

  • pass pixel-input metadata into mesh compilation
  • omit mesh parameter outputs that the pixel shader does not consume
  • retain private export staging and fall back conservatively for ambiguous mappings

Motivation

A mesh pipeline used by the game declared 36,864 bytes of mesh output, exceeding the 32,768-byte MoltenVK limit. The pixel shader does not consume three of those parameter locations. This keeps the original 190 vertices and 152 primitives while removing only unused SPIR-V outputs.

Validation

  • Release x86_64 build of shader_cfg_tests
  • shader_cfg_tests exit 0
  • git diff --check
  • independent Astra review: no blocking findings

Runtime validation past the affected frame is intentionally pending this PR build.

Depends on #643; its commits remain visible here until that PR merges.

**@⁠carbonimax** on GitHub · 2026-09-20 21:01 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/741) `carbonimax:codex/macos-mesh-output-pruning` → `main` · +84 −6 · 5 files · 1 commits · closed without merging ## Summary - pass pixel-input metadata into mesh compilation - omit mesh parameter outputs that the pixel shader does not consume - retain private export staging and fall back conservatively for ambiguous mappings ## Motivation A mesh pipeline used by the game declared 36,864 bytes of mesh output, exceeding the 32,768-byte MoltenVK limit. The pixel shader does not consume three of those parameter locations. This keeps the original 190 vertices and 152 primitives while removing only unused SPIR-V outputs. ## Validation - Release x86_64 build of `shader_cfg_tests` - `shader_cfg_tests` exit 0 - `git diff --check` - independent Astra review: no blocking findings Runtime validation past the affected frame is intentionally pending this PR build. Depends on #643; its commits remain visible here until that PR merges.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:31:20 +00:00
github-bot closed this pull request 2026-11-26 09:31:21 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-20 21:13 UTC · original · edited 2026-10-16 06:45 UTC

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

  • Last reviewed commit: 38a4ec5838485da052a5735eb9a7cae7d1e105fb
  • Latest commit, not reviewed: 61833d5de3

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: f643023f-87c7-4133-8e92-f45c67f20962

📥 Commits

Reviewing files that changed from the base of the PR and between b6b7da27b28851a88d96ec7c468a150ca0813644 and 38a4ec5838485da052a5735eb9a7cae7d1e105fb.

📒 Files selected for processing (17)
  • src/graphics/guest_gpu/graphicsRun.cpp
  • src/graphics/host_gpu/renderer/pipeline/descriptors.cpp
  • src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp
  • src/graphics/host_gpu/renderer/render.h
  • src/graphics/host_gpu/renderer/renderCompute.cpp
  • src/graphics/host_gpu/renderer/renderDraw.cpp
  • src/graphics/presentation/window/vulkanWindow.cpp
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterInternal.h
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterMemory.cpp
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterModule.cpp
  • src/graphics/shader/recompiler/ir/ShaderIR.h
  • src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp
  • src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp
  • src/graphics/shader/shader.cpp
  • src/graphics/shader/shaderPixelParameter.cpp
  • tests/ShaderRecompilerComputeTests.cpp
  • tests/shaderCfgTests.cpp
🚧 Files skipped from review as they are similar to previous changes (9)
  • src/graphics/host_gpu/renderer/renderCompute.cpp
  • src/graphics/host_gpu/renderer/render.h
  • src/graphics/guest_gpu/graphicsRun.cpp
  • src/graphics/host_gpu/renderer/pipeline/descriptors.cpp
  • src/graphics/shader/shaderPixelParameter.cpp
  • src/graphics/presentation/window/vulkanWindow.cpp
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterMemory.cpp
  • src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp
  • src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp
Files not reviewed due to moderation or processing errors (4)
  • src/graphics/shader/recompiler/ir/ShaderIR.h
  • tests/shaderCfgTests.cpp
  • src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp
  • src/graphics/host_gpu/renderer/renderDraw.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

The change adds validated pixel-parameter plans with locations and aliases. Graphics pipeline setup tracks single-sample state and links vertex plans to pixel inputs for coupled pipelines. SPIR-V emission supports aliased outputs, single-sample centroid loads, and mesh-output pruning. Static shader keys include the new plan and sampling state. Tests cover these behaviors and add a centroid-only mode.

Suggested reviewers: nmzik

Priority: ➖ Normal

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 38a4e

The previously reported mesh-output pruning risk does not affect the inspected draw path. No actionable merge-blocking issue remains after normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ❓ Inconclusive Docstring coverage is 4.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 254 functions across 42 files. (2 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: pruning unused mesh outputs. It is concise and directly matches the pull request objectives.
Description check ✅ Passed The description directly explains the mesh-output pruning, pixel-input metadata, conservative fallback behavior, motivation, and validation results.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 4.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 254 functions across 42 files. (2 skipped: 2 too large.)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-20 21:13 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/741#issuecomment-5752701805) · edited 2026-10-16 06:45 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/741"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=2" alt="Review in Change Stack →" width="220" height="32"></a> <!-- review_stack_entry_end --> <!-- This is an auto-generated comment: review paused by coderabbit.ai --> > [!NOTE] > ## Reviews paused > > It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the `reviews.auto_review.auto_pause_after_reviewed_commits` setting. > > - Last reviewed commit: 38a4ec5838485da052a5735eb9a7cae7d1e105fb > - Latest commit, not reviewed: 61833d5de33230e710a5330118561ab6918bc512 > > Use the following commands to manage reviews: > - `@coderabbitai resume` to resume automatic reviews. > - `@coderabbitai review` to trigger a single review. > > Use the checkboxes below for quick actions: > - [ ] <!-- {"checkboxId":"7f6cc2e2-2e4e-497a-8c31-c9e4573e93d1"} --> ▶️ Resume reviews > - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> 🔍 Trigger review <!-- end of auto-generated comment: review paused by coderabbit.ai --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary><strong>ℹ️ Recent review info</strong></summary> <dl> <dd> <details> <summary><strong>⚙️ Run configuration</strong></summary> <dl> <dd> **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `f643023f-87c7-4133-8e92-f45c67f20962` </dd> </dl> </details> <details> <summary><strong>📥 Commits</strong></summary> <dl> <dd> Reviewing files that changed from the base of the PR and between b6b7da27b28851a88d96ec7c468a150ca0813644 and 38a4ec5838485da052a5735eb9a7cae7d1e105fb. </dd> </dl> </details> <details> <summary><strong>📒 Files selected for processing (17)</strong></summary> <dl> <dd> * `src/graphics/guest_gpu/graphicsRun.cpp` * `src/graphics/host_gpu/renderer/pipeline/descriptors.cpp` * `src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp` * `src/graphics/host_gpu/renderer/render.h` * `src/graphics/host_gpu/renderer/renderCompute.cpp` * `src/graphics/host_gpu/renderer/renderDraw.cpp` * `src/graphics/presentation/window/vulkanWindow.cpp` * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterInternal.h` * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterMemory.cpp` * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterModule.cpp` * `src/graphics/shader/recompiler/ir/ShaderIR.h` * `src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp` * `src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp` * `src/graphics/shader/shader.cpp` * `src/graphics/shader/shaderPixelParameter.cpp` * `tests/ShaderRecompilerComputeTests.cpp` * `tests/shaderCfgTests.cpp` </dd> </dl> </details> <details> <summary><strong>🚧 Files skipped from review as they are similar to previous changes (9)</strong></summary> <dl> <dd> * src/graphics/host_gpu/renderer/renderCompute.cpp * src/graphics/host_gpu/renderer/render.h * src/graphics/guest_gpu/graphicsRun.cpp * src/graphics/host_gpu/renderer/pipeline/descriptors.cpp * src/graphics/shader/shaderPixelParameter.cpp * src/graphics/presentation/window/vulkanWindow.cpp * src/graphics/shader/recompiler/backend/spirv/spirvEmitterMemory.cpp * src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp * src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp </dd> </dl> </details> <details> <summary><strong>Files not reviewed due to moderation or processing errors (4)</strong></summary> <dl> <dd> * src/graphics/shader/recompiler/ir/ShaderIR.h * tests/shaderCfgTests.cpp * src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp * src/graphics/host_gpu/renderer/renderDraw.cpp </dd> </dl> </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary><strong>📝 Walkthrough</strong></summary> <dl> <dd> The change adds validated pixel-parameter plans with locations and aliases. Graphics pipeline setup tracks single-sample state and links vertex plans to pixel inputs for coupled pipelines. SPIR-V emission supports aliased outputs, single-sample centroid loads, and mesh-output pruning. Static shader keys include the new plan and sampling state. Tests cover these behaviors and add a centroid-only mode. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ➖ Normal <!-- change_assessment_commit:"38a4ec5838485da052a5735eb9a7cae7d1e105fb" --> **Change:** Bug fix <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong>⚪ Minimal</strong> · up to <code>38a4e</code></summary> <dl> <dd> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** _⚪ Minimal_ · up to `38a4e` --> <!-- final_review_risk_coverage:{"sourceCommitId":"38a4ec5838485da052a5735eb9a7cae7d1e105fb","coveredCommitId":"38a4ec5838485da052a5735eb9a7cae7d1e105fb","kind":"reviewed"} --> The previously reported mesh-output pruning risk does not affect the inspected draw path. No actionable merge-blocking issue remains after normal checks. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>🚥 Pre-merge checks | ✅ 4 | ❌ 1</strong></summary> <dl> <dd> ### ❌ Failed checks (1 inconclusive) | Check name | Status | Explanation | Resolution | | :---------------- | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ❓ Inconclusive | Docstring coverage is 4.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 254 functions across 42 files. (2 skipped:… | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary><strong>✅ Passed checks (4 passed)</strong></summary> <dl> <dd> | Check name | Status | Explanation | | :------------------------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ✅ Passed | The title clearly identifies the main change: pruning unused mesh outputs. It is concise and directly matches the pull request objectives. | | Description check | ✅ Passed | The description directly explains the mesh-output pruning, pixel-input metadata, conservative fallback behavior, motivation, and validation results. | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | </dd> </dl> </details> <details> <summary><strong>Full details: Docstring Coverage</strong></summary> <dl> <dd> **Explanation** Docstring coverage is 4.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 254 functions across 42 files. (2 skipped: 2 too large.) </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=741)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>❤️ Share</strong></summary> <dl> <dd> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-22 09:56 UTC · original · reviewed

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟠 Major · Invert the parameter-plan validity check. · spirvEmitterMesh.cpp:37

src/graphics/shader/recompiler/backend/spirv/spirvEmitterMesh.cpp:37
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Invert the parameter-plan validity check.

When pixel->parameter_plan.valid is true and no aliases exist, this condition returns true before consumed_locations is evaluated. The normal valid mapping therefore retains every parameter output, so unused outputs are not pruned and the mesh can still exceed MoltenVK's output limit.

Return conservatively when the plan is invalid:

Proposed correction
-	    pixel->parameter_plan.valid || !pixel->parameter_plan.aliases.empty()) {
+	    !pixel->parameter_plan.valid || !pixel->parameter_plan.aliases.empty()) {

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 77e2ac67-ebb6-4e50-b497-a548cd8ca79f

📥 Commits

Reviewing files that changed from the base of the PR and between 23c9ae8abc4e0395dc6b4f3062378206817abc77 and fea7f91dc255337e09d599282b366f42f66caa65.

📒 Files selected for processing (8)
  • src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp
  • src/graphics/host_gpu/renderer/pipeline/pipelineCache.h
  • src/graphics/host_gpu/renderer/renderDraw.cpp
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterMesh.cpp
  • src/graphics/shader/recompiler/ir/ShaderIR.h
  • src/graphics/shader/shader.cpp
  • src/graphics/shader/shader.h
  • tests/shaderCfgTests.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-22 09:56 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/741#pullrequestreview-5276525672) · **reviewed** > [!CAUTION] > Some comments are outside the diff and can’t be posted inline due to GitHub limitations. > > **⚠️ Outside diff range comments (1)** > > <details> > <summary><em>🟠 Major</em> · Invert the parameter-plan validity check. · <code>spirvEmitterMesh.cpp:37</code></summary><blockquote> > > `src/graphics/shader/recompiler/backend/spirv/spirvEmitterMesh.cpp:37` > _🩺 Stability & Availability_ | _🟠 Major_ | _⚡ Quick win_ > > **Invert the parameter-plan validity check.** > > When `pixel->parameter_plan.valid` is true and no aliases exist, this condition returns `true` before `consumed_locations` is evaluated. The normal valid mapping therefore retains every parameter output, so unused outputs are not pruned and the mesh can still exceed MoltenVK's output limit. > > Return conservatively when the plan is invalid: > > <details> > <summary>Proposed correction</summary> > > ```diff > - pixel->parameter_plan.valid || !pixel->parameter_plan.aliases.empty()) { > + !pixel->parameter_plan.valid || !pixel->parameter_plan.aliases.empty()) { > ``` > </details> > > <!-- cr-comment:v1:32cf0b881328939184225784 --> > > </blockquote></details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `77e2ac67-ebb6-4e50-b497-a548cd8ca79f` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 23c9ae8abc4e0395dc6b4f3062378206817abc77 and fea7f91dc255337e09d599282b366f42f66caa65. </details> <details> <summary>📒 Files selected for processing (8)</summary> * `src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp` * `src/graphics/host_gpu/renderer/pipeline/pipelineCache.h` * `src/graphics/host_gpu/renderer/renderDraw.cpp` * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterMesh.cpp` * `src/graphics/shader/recompiler/ir/ShaderIR.h` * `src/graphics/shader/shader.cpp` * `src/graphics/shader/shader.h` * `tests/shaderCfgTests.cpp` </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 8 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
Author
Owner

@⁠carbonimax on GitHub · 2026-10-01 16:59 UTC · original

The outside-diff review found a real bug: MeshOutputIsConsumed tested parameter_plan.valid with the wrong polarity. The updated branch keeps the conservative fallback for invalid plans and permits pruning for valid plans. The regression now sets a valid plan for the pruning case and an invalid plan for the fallback case.

Main has also been merged while preserving its updated render-target mask and shader APIs. Host/build results for the updated head are recorded below; the original GPU observations remain historical.

**@⁠carbonimax** on GitHub · 2026-10-01 16:59 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/741#issuecomment-5936348309) The outside-diff review found a real bug: MeshOutputIsConsumed tested parameter_plan.valid with the wrong polarity. The updated branch keeps the conservative fallback for invalid plans and permits pruning for valid plans. The regression now sets a valid plan for the pruning case and an invalid plan for the fallback case. Main has also been merged while preserving its updated render-target mask and shader APIs. Host/build results for the updated head are recorded below; the original GPU observations remain historical.
Author
Owner

@⁠carbonimax on GitHub · 2026-10-01 17:39 UTC · original

CI update: Windows and Linux builds pass. The macOS job builds successfully, then fails in the unchanged page_manager test (fixed low mach_vm_allocate failed), with 12/13 tests passing. Local x86_64 Release build and shader_cfg_tests pass for this head. The macOS job on main 44798085 also fails in page_manager on fixed low mach_vm_allocate. These PRs do not modify the reservation tests or their implementation.

I tried rerunning the failed job, but GitHub requires repository admin rights. Could a maintainer rerun the failed macOS job? No reservation-code workaround is included in this PR.

**@⁠carbonimax** on GitHub · 2026-10-01 17:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/741#issuecomment-5937013997) CI update: Windows and Linux builds pass. The macOS job builds successfully, then fails in the unchanged `page_manager` test (`fixed low mach_vm_allocate failed`), with 12/13 tests passing. Local x86_64 Release build and shader_cfg_tests pass for this head. The macOS job on main 44798085 also fails in `page_manager` on fixed low mach_vm_allocate. These PRs do not modify the reservation tests or their implementation. I tried rerunning the failed job, but GitHub requires repository admin rights. Could a maintainer rerun [the failed macOS job](https://github.com/KytyPS5/KytyPS5/actions/runs/36896071380)? No reservation-code workaround is included in this PR.
Author
Owner

@⁠carbonimax on GitHub · 2026-10-01 19:58 UTC · original

The macOS CI reservation failure is now addressed by a test-only fix. The tests no longer assume that the low address 0x200010000 is free: Mach chooses available memory while preserving the offset within the 4 MiB tracker region and checking that the allocation remains in the valid low guest range. The extended-range test keeps its fixed address.

A regression case deliberately occupies the preferred address, verifies relocation without overwriting that mapping, and retains the existing protection and region-boundary assertions. Both memory_tracker and page_manager fail with the fixed-address allocator and pass with the corrected allocator (2/2), on the same tests. The tested memory sources and helper are identical across #633, #643 and #741. No emulator runtime or submission protocol change is included.

The updated head triggers a fresh CI run; local success is not being reported as a GitHub CI result.

**@⁠carbonimax** on GitHub · 2026-10-01 19:58 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/741#issuecomment-5939454074) The macOS CI reservation failure is now addressed by a test-only fix. The tests no longer assume that the low address 0x200010000 is free: Mach chooses available memory while preserving the offset within the 4 MiB tracker region and checking that the allocation remains in the valid low guest range. The extended-range test keeps its fixed address. A regression case deliberately occupies the preferred address, verifies relocation without overwriting that mapping, and retains the existing protection and region-boundary assertions. Both memory_tracker and page_manager fail with the fixed-address allocator and pass with the corrected allocator (2/2), on the same tests. The tested memory sources and helper are identical across #633, #643 and #741. No emulator runtime or submission protocol change is included. The updated head triggers a fresh CI run; local success is not being reported as a GitHub CI result.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.