graphics: fall back to the stored chain for mip views past MAX_MIP #2357

Open
github-bot wants to merge 1 commit from github-bot/gh-2357 into main AGit
Owner

@⁠wuboo on GitHub · 2026-11-17 18:40 UTC · original
wuboo:pr/logo-mip-view → main · +146 −57 · 4 files · 1 commits · open

Problem

ASTRO BOT (PPSA21564) exits during the PS logo, a few seconds after start, on current main:

unsupported texture mip view changes physical layout: base=6 last=6 max=5 extent=1920x1080x1 tile=27
 in src/graphics/host_gpu/renderer/pipeline/descriptors.cpp

The guest thread is the title-screen resource loader (ProductNextLoad_ATQT / OdxAsyncLoader). The crash is deterministic: 3/3 runs on 41e2147c0 and 1/1 on faec1f45e.

Cause

bd41e2f6c ("rebase texture views that lie entirely past MAX_MIP") handles a view whose levels all sit past MAX_MIP as a separate one-level image of that mip's extent. That fits the No Man's Sky case: a 256x256 kStandard4KB T# with base=1, last=1, max=0 is really a 128x128 image.

The texture here is mip 6 of a 6-level 1920x1080 kRenderTarget image (MAX_MIP 5). That mip still sits in the parent's allocation and is not laid out like a standalone 30x16 image. The rebase does not match, so ResolveTextureMipView returns false. The caller then takes the base >= physical_levels branch added in 39ecbab73, which exits. Before bd41e2f6c, the same view was resolved against the stored chain and the game kept running.

Fix

The view is still rebased first, so the No Man's Sky case works as before. When the standalone-mip reading does not match, ImageInfo is restored and the view is matched against the chain the T# actually stores, which is the pre-bd41e2f6c search. For the logo texture the result is the 1920x1080 chain, with the data size of its six stored levels. A tail mip that is not its own chain is still rejected, and the base < physical_levels clamp path is unchanged.

ResolveTextureMipView moves from descriptors.cpp to imageInfo.cpp/.h so it can be unit-tested. Its body is otherwise the upstream code, split into a helper so it can run twice.

Testing

  • New TestMipViewPastMaxMip in shader_cfg_tests, covering:
    • the No Man's Sky rebase (256x256 -> 128x128, size 0x20000, base 0);
    • a tail mip past MAX_MIP, which is still rejected;
    • the 1920x1080 kRenderTarget mip 6 for k8_8_8_8UNorm, k10_10_10_2UNorm and k16_16_16_16Float, with and without DCC metadata. The view must stay on the 1920x1080 image with the size of the 6-level chain.
  • Mutation check: when the fallback is removed, the test fails on exactly the logo case: format=56 meta=0 ok=0 ... base=6 size=0 chain=12648448.
  • macOS (x86_64 build): ctest gives the same result set with and without the change (45/82 pass; the 37 failures are all GPU tests that cannot load a Vulkan loader on this machine, plus the existing shader_cfg abort in TestGpuProducedWritableDescriptor, which runs after the new test).
  • ASTRO BOT on Windows 11, Ryzen 7 5700X, Radeon RX 9060 XT. Every run used the same replayed pad input and --shader-cache:
    • PS logo: it crashed in 3/3 runs on 41e2147c0 and 1/1 on faec1f45e. With the change it passes in 9/9 runs.
    • With the change, all runs get through the title screen (title_controller_ship), the world map and transition_next.
    • On plain main plus this change, most runs (6/7) then stop with a guest trap in a level-loader thread. That is a separate issue, which goes away with the file-read fix in #2356 (0/2 runs). With both changes, the first planet (underwater_aerial_garden) loads and plays: a 19,500-frame run with no errors, and the image is correct.

AI use & testing

I used AI coding assistants to help investigate the issue, draft the code and write the unit test. I reviewed every line of the diff myself and I am responsible for it.

Testing:

  • Game: ASTRO BOT (PS logo, title screen, world map, first planet).
  • Hardware: Windows 11, Ryzen 7 5700X, Radeon RX 9060 XT (AMD Vulkan driver).
  • Runs with the same replayed input before/after: PS logo crash 4/4 before (3 on 41e2147c0, 1 on faec1f45e) -> 0/9 after.
  • Unit test: TestMipViewPastMaxMip, including a mutation check that fails when the fallback is reverted.
**@⁠wuboo** on GitHub · 2026-11-17 18:40 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2357) `wuboo:pr/logo-mip-view` → `main` · +146 −57 · 4 files · 1 commits · open ## Problem ASTRO BOT (PPSA21564) exits during the PS logo, a few seconds after start, on current `main`: ``` unsupported texture mip view changes physical layout: base=6 last=6 max=5 extent=1920x1080x1 tile=27 in src/graphics/host_gpu/renderer/pipeline/descriptors.cpp ``` The guest thread is the title-screen resource loader (`ProductNextLoad_ATQT` / `OdxAsyncLoader`). The crash is deterministic: 3/3 runs on `41e2147c0` and 1/1 on `faec1f45e`. ## Cause `bd41e2f6c` ("rebase texture views that lie entirely past MAX_MIP") handles a view whose levels all sit past `MAX_MIP` as a separate one-level image of that mip's extent. That fits the No Man's Sky case: a 256x256 `kStandard4KB` T# with base=1, last=1, max=0 is really a 128x128 image. The texture here is mip 6 of a 6-level 1920x1080 `kRenderTarget` image (MAX_MIP 5). That mip still sits in the parent's allocation and is not laid out like a standalone 30x16 image. The rebase does not match, so `ResolveTextureMipView` returns false. The caller then takes the `base >= physical_levels` branch added in `39ecbab73`, which exits. Before `bd41e2f6c`, the same view was resolved against the stored chain and the game kept running. ## Fix The view is still rebased first, so the No Man's Sky case works as before. When the standalone-mip reading does not match, `ImageInfo` is restored and the view is matched against the chain the T# actually stores, which is the pre-`bd41e2f6c` search. For the logo texture the result is the 1920x1080 chain, with the data size of its six stored levels. A tail mip that is not its own chain is still rejected, and the `base < physical_levels` clamp path is unchanged. `ResolveTextureMipView` moves from `descriptors.cpp` to `imageInfo.cpp`/`.h` so it can be unit-tested. Its body is otherwise the upstream code, split into a helper so it can run twice. ## Testing - New `TestMipViewPastMaxMip` in `shader_cfg_tests`, covering: - the No Man's Sky rebase (256x256 -> 128x128, size 0x20000, base 0); - a tail mip past MAX_MIP, which is still rejected; - the 1920x1080 `kRenderTarget` mip 6 for `k8_8_8_8UNorm`, `k10_10_10_2UNorm` and `k16_16_16_16Float`, with and without DCC metadata. The view must stay on the 1920x1080 image with the size of the 6-level chain. - Mutation check: when the fallback is removed, the test fails on exactly the logo case: `format=56 meta=0 ok=0 ... base=6 size=0 chain=12648448`. - macOS (x86_64 build): `ctest` gives the same result set with and without the change (45/82 pass; the 37 failures are all GPU tests that cannot load a Vulkan loader on this machine, plus the existing `shader_cfg` abort in `TestGpuProducedWritableDescriptor`, which runs after the new test). - ASTRO BOT on Windows 11, Ryzen 7 5700X, Radeon RX 9060 XT. Every run used the same replayed pad input and `--shader-cache`: - PS logo: it crashed in 3/3 runs on `41e2147c0` and 1/1 on `faec1f45e`. With the change it passes in 9/9 runs. - With the change, all runs get through the title screen (`title_controller_ship`), the world map and `transition_next`. - On plain `main` plus this change, most runs (6/7) then stop with a guest trap in a level-loader thread. That is a separate issue, which goes away with the file-read fix in #2356 (0/2 runs). With both changes, the first planet (`underwater_aerial_garden`) loads and plays: a 19,500-frame run with no errors, and the image is correct. ### AI use & testing I used AI coding assistants to help investigate the issue, draft the code and write the unit test. I reviewed every line of the diff myself and I am responsible for it. Testing: - Game: ASTRO BOT (PS logo, title screen, world map, first planet). - Hardware: Windows 11, Ryzen 7 5700X, Radeon RX 9060 XT (AMD Vulkan driver). - Runs with the same replayed input before/after: PS logo crash 4/4 before (3 on `41e2147c0`, 1 on `faec1f45e`) -> 0/9 after. - Unit test: `TestMipViewPastMaxMip`, including a mutation check that fails when the fallback is reverted.
A T# whose levels all sit past MAX_MIP is rebased onto a one-level image of
that mip's extent. A render-target mip that is still inside the parent chain
(1920x1080 mip 6 of a 6-level kRenderTarget image, MAX_MIP 5) is not tiled
that way, so the rebase is rejected and the texture path exits on the PS logo
in ASTRO BOT. When the rebase does not match, resolve the view against the
stored chain instead, as before the rebase was added.

ResolveTextureMipView moves to imageInfo so the shader cfg tests can cover the
No Man's Sky rebase, a tail mip that is not its own chain and the 1920x1080
render-target mip.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:18:46 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-17 18:48 UTC · original · edited 2026-11-25 01:37 UTC

Explain Change →

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: b3d15fe9b4789b7a146c26ee9924e8d9124d7bb6
  • Latest commit, not reviewed: deb82cdfa7

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.

Walkthrough

The change adds ResolveTextureMipView to the image information module. It matches stored mip layouts against a calculated physical chain and can try a rebased extent when the base mip exceeds the physical level count. The prior static helper is removed from the descriptor implementation. New tests cover rebasing, tail-mip rejection, and render-target allocation size.

Suggested reviewers: nmzik

Change: Bug fix

Merge Risk: Minimal · previous review b3d15

This change stops texture mip-view resolution from failing when a requested mip lies past MAX_MIP, which lets ASTRO BOT and similar titles get past the crash. Tests cover the new resolution cases, and testers report titles now reaching gameplay. No concrete merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: when a requested mip view lies past MAX_MIP and the standalone rebase does not match, the code falls back to the stored mip chain. The changeset adds ResolveTextureMip…
Description check Passed The description is closely related to the changeset. It explains the crash, its cause in the rebase added by bd41e2f6c, the fallback to the stored chain, the relocation of ResolveTextureMipView to ima…
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: Title check

Explanation

The title names the main change: when a requested mip view lies past MAX_MIP and the standalone rebase does not match, the code falls back to the stored mip chain. The changeset adds ResolveTextureMipView in imageInfo.cpp/.h, adds the stored-chain fallback (MatchStoredMipChain), removes the helper from descriptors.cpp, and adds TestMipViewPastMaxMip. The title is specific and concise, and it is a single sentence.

Full details: Description check

Explanation

The description is closely related to the changeset. It explains the crash, its cause in the rebase added by bd41e2f6c, the fallback to the stored chain, the relocation of ResolveTextureMipView to imageInfo.cpp/.h for unit testing, the new TestMipViewPastMaxMip test, and the mutation check. It also covers test results and objectives.

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 37d0cb60f1fcf935ab987b3b16b3124f9981c5c2 and b3d15fe9b4789b7a146c26ee9924e8d9124d7bb6.

Files selected for processing: 3

  • src/graphics/host_gpu/renderer/image/imageInfo.cpp
  • src/graphics/host_gpu/renderer/image/imageInfo.h
  • tests/shaderCfgTests.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-11-17 18:48 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2357#issuecomment-6957620690) · edited 2026-11-25 01:37 UTC <!-- coderabbit-ai-generated:v1 --> <!-- 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/2357?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></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: b3d15fe9b4789b7a146c26ee9924e8d9124d7bb6 > - Latest commit, not reviewed: deb82cdfa7bab6ce8d1bf84952df83f5771bce74 > > 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_status_start --> No actionable comments were generated in the recent review. <!-- recent_review_status_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> <br> The change adds `ResolveTextureMipView` to the image information module. It matches stored mip layouts against a calculated physical chain and can try a rebased extent when the base mip exceeds the physical level count. The prior static helper is removed from the descriptor implementation. New tests cover rebasing, tail-mip rejection, and render-target allocation size. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"b3d15fe9b4789b7a146c26ee9924e8d9124d7bb6" --> <!-- change_assessment_priority:{"version":1,"urgency":"p1","manual":false} --> **Change:** Bug fix <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · previous review <code>b3d15</code></summary> <dl> <dd> <br> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `b3d15` --> <!-- final_review_risk_coverage:{"sourceCommitId":"b3d15fe9b4789b7a146c26ee9924e8d9124d7bb6","coveredCommitId":"b3d15fe9b4789b7a146c26ee9924e8d9124d7bb6","kind":"reviewed"} --> This change stops texture mip-view resolution from failing when a requested mip lies past MAX_MIP, which lets ASTRO BOT and similar titles get past the crash. Tests cover the new resolution cases, and testers report titles now reaching gameplay. No concrete merge-blocking risk remains. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4</strong></summary> <dl> <dd> <br> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title names the main change: when a requested mip view lies past MAX_MIP and the standalone rebase does not match, the code falls back to the stored mip chain. The changeset adds ResolveTextureMip… | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description is closely related to the changeset. It explains the crash, its cause in the rebase added by bd41e2f6c, the fallback to the stored chain, the relocation of ResolveTextureMipView to ima… | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> <br> **Explanation** The title names the main change: when a requested mip view lies past MAX_MIP and the standalone rebase does not match, the code falls back to the stored mip chain. The changeset adds ResolveTextureMipView in imageInfo.cpp/.h, adds the stored-chain fallback (MatchStoredMipChain), removes the helper from descriptors.cpp, and adds TestMipViewPastMaxMip. The title is specific and concise, and it is a single sentence. </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> <br> **Explanation** The description is closely related to the changeset. It explains the crash, its cause in the rebase added by bd41e2f6c, the fallback to the stored chain, the relocation of ResolveTextureMipView to imageInfo.cpp/.h for unit testing, the new TestMipViewPastMaxMip test, and the mutation check. It also covers test results and objectives. </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=2357)! 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> <br> - [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> <!-- tips_end --> <!-- recent_review_start --> <h6> <details> <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review info</strong></summary> <dl> <dd> <br> <!-- review_info_content --> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/30781dcda029cbd669aa81337ac2902c9c3015d8/.coderabbit.yaml>) - **Commit**: [30781dc](<https://github.com/KytyPS5/KytyPS5/commit/30781dcda029cbd669aa81337ac2902c9c3015d8>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `32665d7a-8077-42a3-8e70-a8037b6a149e` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 37d0cb60f1fcf935ab987b3b16b3124f9981c5c2 and b3d15fe9b4789b7a146c26ee9924e8d9124d7bb6. </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 3</strong></summary> <dl> <dd> <br> * `src/graphics/host_gpu/renderer/image/imageInfo.cpp` * `src/graphics/host_gpu/renderer/image/imageInfo.h` * `tests/shaderCfgTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- recent_review_end -->
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-18 22:28 UTC · original

A second game for this check: Resonance: A Plague Tale Legacy (PPSA30601, #2374) stops at the logo on main with unsupported texture mip view changes physical layout: base=8 last=8 max=7 extent=512x512x1 tile=5 (descriptors.cpp:606). @⁠Crispy81 ran this PR's Windows build (run 44176181642, head deef97a01) and it goes in game, with screenshots in #2374.

**@⁠Nawid3333** on GitHub · 2026-11-18 22:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2357#issuecomment-6993494777) A second game for this check: Resonance: A Plague Tale Legacy (PPSA30601, #2374) stops at the logo on main with `unsupported texture mip view changes physical layout: base=8 last=8 max=7 extent=512x512x1 tile=5` (descriptors.cpp:606). @⁠Crispy81 ran this PR's Windows build ([run 44176181642](https://github.com/KytyPS5/KytyPS5/actions/runs/44176181642), head deef97a01) and it goes in game, with screenshots in [#2374](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/2374).
Author
Owner

@⁠rigeri1 on GitHub · 2026-11-19 21:11 UTC · original

Tested the CI Windows build from run 44176181642 (pr/logo-mip-view) with ASTRO BOT (PPSA21567) — @⁠Nawid3333 asked in #2368 for reports on how far the game gets.

Result: the fix works. On the release build KytyPS5-2026-11-19-5ad27cd this game stopped in the ps_logo level with unsupported texture mip view changes physical layout: base=6 last=6 max=5 extent=1920x1080x1 tile=27 (descriptors.cpp:606). With this PR the game goes far past that point:

ps_logo → title screen → world map → hub_crashsite_tutorial → intro cinematics → world map → hub_crashsite → underwater_aerial_garden → StartLevel aerial_garden — actual gameplay loads and runs. Clean exit, no crash (I closed the emulator myself).

Notes from this run (low-end hardware: Ryzen 7 5800H, RTX 3060 Laptop 6 GB, 16 GB RAM, Windows 10 19045):

  • Video memory went far over budget (overlay: 9.39 GB used of 5.10 GB) and system RAM reached 14.82 / 15.35 GB — I stopped at this point because the machine was close to running out of memory. So the mip-view fallback keeps the game going, but on a 6 GB card it is expensive memory-wise.
  • Cutscene audio is not in sync with the video (audio finishes before the picture does).
  • Some intro parts run at a 30 FPS cap.
  • DualSense works fully.
  • One warning in the log: primitive restart is not implemented for mesh shaders; continuing draw (primitive=5 indexed=1).

Full console log and an in-game overlay screenshot are available on request.


Note: I am not a programmer and my English is poor, so an AI assistant analyzed the log(s) and prepared this comment for publication from my Russian notes. The testing itself and the hardware are mine.

**@⁠rigeri1** on GitHub · 2026-11-19 21:11 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2357#issuecomment-7022340233) Tested the CI Windows build from run 44176181642 (`pr/logo-mip-view`) with ASTRO BOT (PPSA21567) — @⁠Nawid3333 asked in #2368 for reports on how far the game gets. **Result: the fix works.** On the release build `KytyPS5-2026-11-19-5ad27cd` this game stopped in the `ps_logo` level with `unsupported texture mip view changes physical layout: base=6 last=6 max=5 extent=1920x1080x1 tile=27` (descriptors.cpp:606). With this PR the game goes far past that point: `ps_logo` → title screen → world map → `hub_crashsite_tutorial` → intro cinematics → world map → `hub_crashsite` → `underwater_aerial_garden` → **`StartLevel aerial_garden` — actual gameplay loads and runs**. Clean exit, no crash (I closed the emulator myself). Notes from this run (low-end hardware: Ryzen 7 5800H, RTX 3060 Laptop 6 GB, 16 GB RAM, Windows 10 19045): - Video memory went far over budget (overlay: **9.39 GB used of 5.10 GB**) and system RAM reached 14.82 / 15.35 GB — I stopped at this point because the machine was close to running out of memory. So the mip-view fallback keeps the game going, but on a 6 GB card it is expensive memory-wise. - Cutscene audio is not in sync with the video (audio finishes before the picture does). - Some intro parts run at a 30 FPS cap. - DualSense works fully. - One warning in the log: `primitive restart is not implemented for mesh shaders; continuing draw (primitive=5 indexed=1)`. Full console log and an in-game overlay screenshot are available on request. --- *Note: I am not a programmer and my English is poor, so an AI assistant analyzed the log(s) and prepared this comment for publication from my Russian notes. The testing itself and the hardware are mine.*
Author
Owner

@⁠wuboo on GitHub · 2026-11-19 23:38 UTC · original

Thanks for testing on different hardware. Good to see it gets through the PS logo and into aerial_garden.

On the memory numbers: the fallback in this PR does not allocate anything new. When the rebase does not fit, it resolves the view against the image that already exists. So the VRAM and RAM use you saw comes from the rest of the game, not from this change. The audio sync, the 30 FPS cap in the intro and the mesh-shader primitive restart warning are also outside this PR.

**@⁠wuboo** on GitHub · 2026-11-19 23:38 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2357#issuecomment-7025327088) Thanks for testing on different hardware. Good to see it gets through the PS logo and into aerial_garden. On the memory numbers: the fallback in this PR does not allocate anything new. When the rebase does not fit, it resolves the view against the image that already exists. So the VRAM and RAM use you saw comes from the rest of the game, not from this change. The audio sync, the 30 FPS cap in the intro and the mesh-shader primitive restart warning are also outside this PR.
Author
Owner

@⁠rigeri1 on GitHub · 2026-11-20 00:46 UTC · original

Thanks for testing on different hardware. Good to see it gets through the PS logo and into aerial_garden.

On the memory numbers: the fallback in this PR does not allocate anything new. When the rebase does not fit, it resolves the view against the image that already exists. So the VRAM and RAM use you saw comes from the rest of the game, not from this change. The audio sync, the 30 FPS cap in the intro and the mesh-shader primitive restart warning are also outside this PR.

Correct, my AI didn’t quite understand the task. The PR works, the game and levels launch. The rest is already testing of the game itself, which should be placed elsewhere. Don’t judge me too harshly, I’m just learning to test 🙃

**@⁠rigeri1** on GitHub · 2026-11-20 00:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2357#issuecomment-7026738600) > Thanks for testing on different hardware. Good to see it gets through the PS logo and into aerial_garden. > > On the memory numbers: the fallback in this PR does not allocate anything new. When the rebase does not fit, it resolves the view against the image that already exists. So the VRAM and RAM use you saw comes from the rest of the game, not from this change. The audio sync, the 30 FPS cap in the intro and the mesh-shader primitive restart warning are also outside this PR. Correct, my AI didn’t quite understand the task. The PR works, the game and levels launch. The rest is already testing of the game itself, which should be placed elsewhere. Don’t judge me too harshly, I’m just learning to test 🙃
Author
Owner

@⁠santisfied on GitHub · 2026-11-20 03:47 UTC · original · edited 2026-11-20 09:58 UTC

Same issue. Windows build [run 44176181642] works, Will this fix be merged into the main branch?

**@⁠santisfied** on GitHub · 2026-11-20 03:47 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2357#issuecomment-7029758778) · edited 2026-11-20 09:58 UTC Same issue. Windows build [run 44176181642] works, Will this fix be merged into the main branch?
Author
Owner

@⁠mrfelek on GitHub · 2026-11-24 01:20 UTC · original

Tried the Linux artifact of the CI run you linked (run 45269682636; the binary reports git = d89233a, the CI merge of 37d0cb6). Setup: ASTRO BOT (PPSA21564), Linux, Radeon 780M, Mesa 26.0.8 RADV, headless with no controller input, --game <dir> --no-splash --skip-notice-screen.

  • The official KytyPS5-2026-11-23-4e90654 build stops about 36 s after start, right after title_controller_ship starts, with unsupported texture mip view changes physical layout: base=6 last=6 max=5 extent=1920x1080x1 tile=27 (as reported in #2368).
  • The d89233a artifact runs the same setup for the full 300 s: no descriptors.cpp stop, no device loss, no GPU ring timeout, GPU busy 92% on average.

Without controller input it stays in title_controller_ship, so this only shows that it gets past the stop. I couldn't check how far the game gets after the title screen, and my screen captures of the headless display were black, so I didn't check the picture either.

**@⁠mrfelek** on GitHub · 2026-11-24 01:20 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2357#issuecomment-7119000509) Tried the Linux artifact of the CI run you linked (run 45269682636; the binary reports `git = d89233a`, the CI merge of `37d0cb6`). Setup: ASTRO BOT (PPSA21564), Linux, Radeon 780M, Mesa 26.0.8 RADV, headless with no controller input, `--game <dir> --no-splash --skip-notice-screen`. - The official `KytyPS5-2026-11-23-4e90654` build stops about 36 s after start, right after `title_controller_ship` starts, with `unsupported texture mip view changes physical layout: base=6 last=6 max=5 extent=1920x1080x1 tile=27` (as reported in #2368). - The `d89233a` artifact runs the same setup for the full 300 s: no `descriptors.cpp` stop, no device loss, no GPU ring timeout, GPU busy 92% on average. Without controller input it stays in `title_controller_ship`, so this only shows that it gets past the stop. I couldn't check how far the game gets after the title screen, and my screen captures of the headless display were black, so I didn't check the picture either.
Author
Owner

@⁠wuboo on GitHub · 2026-11-24 02:38 UTC · original

Thanks for checking on Linux/RADV with the 780M. That matches what I see on Windows: the descriptors.cpp stop after title_controller_ship (the one in #2368) goes away and the game keeps running. On my side, with pad input, it continues past the title screen into aerial_garden, and the picture there matches my earlier test runs of this PR.

**@⁠wuboo** on GitHub · 2026-11-24 02:38 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2357#issuecomment-7120334791) Thanks for checking on Linux/RADV with the 780M. That matches what I see on Windows: the `descriptors.cpp` stop after `title_controller_ship` (the one in #2368) goes away and the game keeps running. On my side, with pad input, it continues past the title screen into aerial_garden, and the picture there matches my earlier test runs of this PR.
Author
Owner

@⁠mrfelek on GitHub · 2026-11-25 16:49 UTC · original

Retested the current head deb82cdfa with the Linux artifact of run 45527078424, same setup as before (ASTRO BOT PPSA21564, Linux, Radeon 780M, Mesa 26.0.8 RADV, headless, no input). It reaches Level has started: title_controller_ship and is still running at 300 s, when the script stops it. The log has no unsupported texture mip view line, there are no amdgpu ring timeouts, and the GPU is about 92% busy. My screen captures of the headless session come out black on both builds, so this confirms only that the run continues past the old stop, not that the picture is right.

AI-assisted.

**@⁠mrfelek** on GitHub · 2026-11-25 16:49 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2357#issuecomment-7168576107) Retested the current head `deb82cdfa` with the Linux artifact of run 45527078424, same setup as before (ASTRO BOT PPSA21564, Linux, Radeon 780M, Mesa 26.0.8 RADV, headless, no input). It reaches `Level has started: title_controller_ship` and is still running at 300 s, when the script stops it. The log has no `unsupported texture mip view` line, there are no amdgpu ring timeouts, and the GPU is about 92% busy. My screen captures of the headless session come out black on both builds, so this confirms only that the run continues past the old stop, not that the picture is right. AI-assisted.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2357/head:github-bot/gh-2357'
git switch 'github-bot/gh-2357'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2357'
git switch 'github-bot/gh-2357'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2357'
git switch 'github-bot/gh-2357'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2357'
git switch 'main'
git merge --squash 'github-bot/gh-2357'
git switch 'main'
git merge --ff-only 'github-bot/gh-2357'
git switch 'main'
git merge 'github-bot/gh-2357'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.