[GAME STATUS]: Marvel's Guardians of the Galaxy [PPSA01748] - Crashes on loading screen (Windows) #1004

Open
opened 2026-11-26 09:40:03 +00:00 by github-bot · 5 comments
Owner

@⁠hackerinfo89 on GitHub · 2026-10-03 12:55 UTC · original

Game title

Marvel’s Guardians of the Galaxy

Game ID / serial

PPSA01748

KytyPS5 version

KytyPS5-2026-10-03-f53e5d2

Compatibility status

Logo

Last working build / first broken build

No known working build. First tested on KytyPS5-2026-10-03-f53e5d2.

Result details

The game boots and displays the initial loading screen, but crashes before reaching the main menu.
During startup, the log repeatedly reports unresolved PlayGoDialog_v1 imports:
Unresolved import stub called: Yb60K7BST48[PlayGoDialog_v1][PlayGoDialog_v1.1][Func]

The crash is reproducible across multiple launches, both with and without existing save data.
The reproducible fatal error is:
unsupported sampled depth image: resource=1 encoding=0 view=1 class=1 numeric=1 dimension=3 mip_mode=0 read=1 written=0 atomic=0 compare=0 guest_format=22 swizzle=0x204 image_format=130 view_format=100 image_layers=1 descriptor_type=9 base_array=0 depth=0 descriptor_pitch=1920 target_pitch=1920 ... in D:\a\KytyPS5\KytyPS5\src\graphics\host_gpu\renderer\pipeline\descriptors.cpp:209

Steps to reproduce the result

  1. Open KytyPS5.
  2. Launch Marvel’s Guardians of the Galaxy.
  3. Wait for the initial loading screen to appear.
  4. KytyPS5 crashes before reaching the main menu.

Expected behavior

The game should progress beyond the loading screen and continue to the main menu without crashing.

OS

Windows 11

CPU

AMD Ryzen 5 5600X 6-Core

GPU

AMD Radeon RX 7600

RAM / VRAM

32 GB DDR4 RAM / 8 GB GDDR6 VRAM

Log file upload

Screenshots/video

Image

Extra notes

The issue has been reproduced on multiple launches.
The same unsupported sampled depth image error in descriptors.cpp:209 occurs repeatedly.
The main menu is not reached.
The issue occurs both with a fresh save state and with existing save data.

**@⁠hackerinfo89** on GitHub · 2026-10-03 12:55 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1004) ### Game title Marvel’s Guardians of the Galaxy ### Game ID / serial PPSA01748 ### KytyPS5 version KytyPS5-2026-10-03-f53e5d2 ### Compatibility status Logo ### Last working build / first broken build No known working build. First tested on KytyPS5-2026-10-03-f53e5d2. ### Result details The game boots and displays the initial loading screen, but crashes before reaching the main menu. During startup, the log repeatedly reports unresolved `PlayGoDialog_v1` imports: `Unresolved import stub called: Yb60K7BST48[PlayGoDialog_v1][PlayGoDialog_v1.1][Func]` The crash is reproducible across multiple launches, both with and without existing save data. The reproducible fatal error is: `unsupported sampled depth image: resource=1 encoding=0 view=1 class=1 numeric=1 dimension=3 mip_mode=0 read=1 written=0 atomic=0 compare=0 guest_format=22 swizzle=0x204 image_format=130 view_format=100 image_layers=1 descriptor_type=9 base_array=0 depth=0 descriptor_pitch=1920 target_pitch=1920 ... in D:\a\KytyPS5\KytyPS5\src\graphics\host_gpu\renderer\pipeline\descriptors.cpp:209` ### Steps to reproduce the result 1. Open KytyPS5. 2. Launch Marvel’s Guardians of the Galaxy. 3. Wait for the initial loading screen to appear. 4. KytyPS5 crashes before reaching the main menu. ### Expected behavior The game should progress beyond the loading screen and continue to the main menu without crashing. ### OS Windows 11 ### CPU AMD Ryzen 5 5600X 6-Core ### GPU AMD Radeon RX 7600 ### RAM / VRAM 32 GB DDR4 RAM / 8 GB GDDR6 VRAM ### Log file upload <!-- Failed to upload "_kyty.txt" --> ### Screenshots/video <img width="1282" height="752" alt="Image" src="https://github.com/user-attachments/assets/ea31f609-cb46-4fec-9dcb-e9a1721b251e" /> ### Extra notes The issue has been reproduced on multiple launches. The same unsupported sampled depth image error in descriptors.cpp:209 occurs repeatedly. The main menu is not reached. The issue occurs both with a fresh save state and with existing save data.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:40:04 +00:00
Author
Owner

@⁠hackerinfo89 on GitHub · 2026-10-03 20:33 UTC · original

Follow-up with more detail. Tested on main @ 8cbee7f (Windows 11, clang-cl Release, RX 7600). There are three failures in sequence. Each one only shows up once the one before it is patched, so on an unmodified build you'll only see #1.

The fixes below are suggestions that I tested locally. They aren't in any branch, so the code is inline.


1. Sampled depth: pipe-aligned uncompressed depth is rejected

unsupported sampled depth image: resource=1 encoding=0 view=1 ... guest_format=22 swizzle=0x204
  ... descriptor_type=9 ... dwords=03d48800,c1600000,010dc1df,91800204,00000000,00700000,00080000,00000000
  in src/graphics/host_gpu/renderer/pipeline/descriptors.cpp:209

Field 6 = 0x00080000 is only META_PIPE_ALIGNED (bit 19). MetaCompress (bit 21) is clear and MetaAddr() is 0, so this is an uncompressed depth view. The rest of the descriptor decodes consistently: 1920x1080, format 22, tile mode kDepth, kColor2D, R001 swizzle. IsSupportedDepthTextureEncoding only accepts metadata_control == 0 or exactly 0x00280000 (plus the MSAA bit).

Suggested change in IsSupportedDepthTextureEncoding, right after the metadata_control == 0 early return:

// Pipe alignment without HTILE compression or a metadata surface is a plain depth view.
constexpr uint32_t meta_pipe_aligned = 1u << 19u;
if ((metadata_control & ~(1u << 10u)) == meta_pipe_aligned && descriptor.MetaAddr() == 0) {
	return true;
}

With this, the game gets past the crash.


2. Resource tracking: loop-indexed image table isn't planned

shader resource tracking: hash=0xb86c8dfc3f2471af stage=pixel pc=0x00000604
  GetImageResource dword 0 is not a valid runtime value
  in src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp:367

The pixel shader loops over a 16-entry descriptor table:

0x430: s_mov_b32 s48, 1
0x504: loop:
0x588:   s_load_dwordx8 s[8:15], s[50:51], s48<<5
0x604:   image_sample_l v8, v4, s[8:15], s[4:7]   ; same descriptor ...
0x610:   image_sample_l v0, v4, s[8:15], s[4:7]   ; ... sampled twice
0x650:   s_add_i32 s48, s48, 1
0x658:   s_cmp_lt_u32 s48, 16
0x65c:   s_cbranch_scc1 loop

TryMakeIndirectImage rejects it for two independent reasons:

  1. Shared reads. The two samples become two GetImageResource handles over the same eight LoadAddressU32 reads (uses=2 each). The UsesOnly(*read, {&handle}) check requires a single user.
  2. Loop shape. BoundedLoopCount only proves phi = [0, phi+1] guarded by a signed runtime i < n. Here it's phi = [1, next] with an unsigned constant back-edge test ULessThan32(next, 16).

What I tested locally:

  • For (1): allow a table read to also be used by other GetImageResource handles in the same block with identical arguments. Any other kind of user is still rejected.

    // replaces: if (!UsesOnly(*read, image_users)) return false;
    if (!std::ranges::all_of(read->Uses(), [&](const Use& use) {
    	    const auto& user = *use.user;
    	    if (user.GetOpcode() != ValueOpcode::GetImageResource ||
    	        user.NumArgs() != handle.NumArgs() || user.Parent() != handle.Parent()) return false;
    	    for (size_t w = 0; w < handle.NumArgs(); ++w)
    		    if (user.Arg(w).Resolve() != handle.Arg(w).Resolve()) return false;
    	    return true;
        })) {
    	return false;
    }
    
  • For (2): add a constant-bound case, tried first in BoundedLoopCount. It requires that the phi enters at an immediate start < bound, and that the only back edge is the uniform (SCC) true edge of ULessThan32(v, bound), where v is exactly the phi's incoming back value. Then key < bound holds on every iteration and key_count = bound.

    for (uint32_t initial = 0; initial < 2u; ++initial) {
    	const auto back = initial ^ 1u;
    	const auto edge = ConditionalEdge(phi.PhiBlock(back), phi.Parent());
    	if (!edge || !edge->positive || edge->lanes != LaneQuantifier::All) continue;
    	const auto* compare = edge->condition.TryInstruction();
    	uint32_t start = 0, bound = 0;
    	if (compare == nullptr || compare->GetOpcode() != ValueOpcode::ULessThan32 ||
    	    compare->Arg(0).Resolve() != phi.Arg(back).Resolve() ||
    	    !ImmediateU32(compare->Arg(1), bound) ||
    	    !ImmediateU32(phi.Arg(initial), start) || start >= bound) continue;
    	return Value(bound);
    }
    

With both changes, the shader compiles and the game reaches the language/settings menus and accepts input.

I also have resource-tracking tests for this shape locally: accepted shapes, rejections for start ≥ bound, stale compare, signed compare, inverted back edge, a non-image user and a reordered twin handle, plus runtime enumeration of all 16 entries. Happy to share them.


3. Blocker: the SRT is selected by a per-primitive material index

After the initial settings, a draw fails here:

Error: condition (!ShaderRecompiler::IR::MaterializeResources( ... )) is true
  in src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp

Upstream this is a bare EXIT_IF with no reason. I added temporary logging locally to narrow it down. The shader is PS 0x4a260221f9feeae6, and the failing step is SrtWalker::RefreshFlatBuffer returning false.

The shader picks its whole resource table from a flat vertex attribute:

%14 = GetInterpolationParameter 2, 3, 2       ; flat attribute
%17 = BitFieldUExtract %14, 16, 16            ; material index
%40 = ReadFirstLane %17, true
%46 = ShiftLeftLogical32 %40, 3
%51 = ReadConstBuffer %50, %46                ; materials[index].lo
%52 = ReadConstBuffer %50, %46                ; materials[index].hi
%54 = GetAddressResource %51, %52
%55 = LoadAddressU32 %54, 0, 0, true          ; uses=31: every buffer/image/sampler descriptor

Resource tracking accepts the shader, but the CPU can't evaluate %51/%52 because the offset depends on per-primitive interpolant data. As far as I can tell, supporting this needs GPU-side selection of the whole resource set:

  • shader-side loads of the selected material's constants and descriptors,
  • descriptor arrays for the images/samplers any material can reference, indexed by a GPU-computed id,
  • a way to enumerate or bound the candidate materials, e.g. from the material table or from the indices present in the draw's vertex data.

MatchUniformizedMaterialKey already handles a ReadFirstLane-selected key for a single image, so this looks like the same idea applied to the whole SRT pointer.

Two smaller suggestions:

  • Resource tracking could reject a plan whose SRT reads can't be evaluated at draw time, so this fails at compile time with the shader hash.
  • The EXIT_IFs around MaterializeResources in pipelineCache.cpp, and the silent return false paths in MaterializeResources, could report the stage/hash and the reason.

Unrelated: Pm4NativeTargetGeometry test failure on main

shader_recompiler_compute_tests fails at "legacy register holes". #964 (Hades II) added g_hw_sh_indirect_func handlers for SH offsets 0x2/0x3 (SPI_SHADER_USER_DATA_ADDR_LO/HI_PS), which the test lists as removed GCN slots. CI builds this test on Windows but doesn't run it in the ctest -R filter.

Logs and the full shader dumps are available if useful.

**@⁠hackerinfo89** on GitHub · 2026-10-03 20:33 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1004#issuecomment-5973230510) Follow-up with more detail. Tested on `main` @ `8cbee7f` (Windows 11, clang-cl Release, RX 7600). There are three failures in sequence. Each one only shows up once the one before it is patched, so on an unmodified build you'll only see #1. The fixes below are suggestions that I tested locally. They aren't in any branch, so the code is inline. --- ### 1. Sampled depth: pipe-aligned uncompressed depth is rejected ``` unsupported sampled depth image: resource=1 encoding=0 view=1 ... guest_format=22 swizzle=0x204 ... descriptor_type=9 ... dwords=03d48800,c1600000,010dc1df,91800204,00000000,00700000,00080000,00000000 in src/graphics/host_gpu/renderer/pipeline/descriptors.cpp:209 ``` Field 6 = `0x00080000` is only `META_PIPE_ALIGNED` (bit 19). `MetaCompress` (bit 21) is clear and `MetaAddr()` is 0, so this is an uncompressed depth view. The rest of the descriptor decodes consistently: 1920x1080, format 22, tile mode `kDepth`, kColor2D, R001 swizzle. `IsSupportedDepthTextureEncoding` only accepts `metadata_control == 0` or exactly `0x00280000` (plus the MSAA bit). Suggested change in `IsSupportedDepthTextureEncoding`, right after the `metadata_control == 0` early return: ```cpp // Pipe alignment without HTILE compression or a metadata surface is a plain depth view. constexpr uint32_t meta_pipe_aligned = 1u << 19u; if ((metadata_control & ~(1u << 10u)) == meta_pipe_aligned && descriptor.MetaAddr() == 0) { return true; } ``` With this, the game gets past the crash. --- ### 2. Resource tracking: loop-indexed image table isn't planned ``` shader resource tracking: hash=0xb86c8dfc3f2471af stage=pixel pc=0x00000604 GetImageResource dword 0 is not a valid runtime value in src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp:367 ``` The pixel shader loops over a 16-entry descriptor table: ``` 0x430: s_mov_b32 s48, 1 0x504: loop: 0x588: s_load_dwordx8 s[8:15], s[50:51], s48<<5 0x604: image_sample_l v8, v4, s[8:15], s[4:7] ; same descriptor ... 0x610: image_sample_l v0, v4, s[8:15], s[4:7] ; ... sampled twice 0x650: s_add_i32 s48, s48, 1 0x658: s_cmp_lt_u32 s48, 16 0x65c: s_cbranch_scc1 loop ``` `TryMakeIndirectImage` rejects it for two independent reasons: 1. **Shared reads.** The two samples become two `GetImageResource` handles over the same eight `LoadAddressU32` reads (`uses=2` each). The `UsesOnly(*read, {&handle})` check requires a single user. 2. **Loop shape.** `BoundedLoopCount` only proves `phi = [0, phi+1]` guarded by a signed runtime `i < n`. Here it's `phi = [1, next]` with an unsigned constant back-edge test `ULessThan32(next, 16)`. What I tested locally: - **For (1):** allow a table read to also be used by other `GetImageResource` handles in the same block with identical arguments. Any other kind of user is still rejected. ```cpp // replaces: if (!UsesOnly(*read, image_users)) return false; if (!std::ranges::all_of(read->Uses(), [&](const Use& use) { const auto& user = *use.user; if (user.GetOpcode() != ValueOpcode::GetImageResource || user.NumArgs() != handle.NumArgs() || user.Parent() != handle.Parent()) return false; for (size_t w = 0; w < handle.NumArgs(); ++w) if (user.Arg(w).Resolve() != handle.Arg(w).Resolve()) return false; return true; })) { return false; } ``` - **For (2):** add a constant-bound case, tried first in `BoundedLoopCount`. It requires that the phi enters at an immediate `start < bound`, and that the only back edge is the uniform (SCC) true edge of `ULessThan32(v, bound)`, where `v` is exactly the phi's incoming back value. Then `key < bound` holds on every iteration and `key_count = bound`. ```cpp for (uint32_t initial = 0; initial < 2u; ++initial) { const auto back = initial ^ 1u; const auto edge = ConditionalEdge(phi.PhiBlock(back), phi.Parent()); if (!edge || !edge->positive || edge->lanes != LaneQuantifier::All) continue; const auto* compare = edge->condition.TryInstruction(); uint32_t start = 0, bound = 0; if (compare == nullptr || compare->GetOpcode() != ValueOpcode::ULessThan32 || compare->Arg(0).Resolve() != phi.Arg(back).Resolve() || !ImmediateU32(compare->Arg(1), bound) || !ImmediateU32(phi.Arg(initial), start) || start >= bound) continue; return Value(bound); } ``` With both changes, the shader compiles and the game reaches the language/settings menus and accepts input. I also have resource-tracking tests for this shape locally: accepted shapes, rejections for start ≥ bound, stale compare, signed compare, inverted back edge, a non-image user and a reordered twin handle, plus runtime enumeration of all 16 entries. Happy to share them. --- ### 3. Blocker: the SRT is selected by a per-primitive material index After the initial settings, a draw fails here: ``` Error: condition (!ShaderRecompiler::IR::MaterializeResources( ... )) is true in src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp ``` Upstream this is a bare `EXIT_IF` with no reason. I added temporary logging locally to narrow it down. The shader is PS `0x4a260221f9feeae6`, and the failing step is `SrtWalker::RefreshFlatBuffer` returning false. The shader picks its whole resource table from a flat vertex attribute: ``` %14 = GetInterpolationParameter 2, 3, 2 ; flat attribute %17 = BitFieldUExtract %14, 16, 16 ; material index %40 = ReadFirstLane %17, true %46 = ShiftLeftLogical32 %40, 3 %51 = ReadConstBuffer %50, %46 ; materials[index].lo %52 = ReadConstBuffer %50, %46 ; materials[index].hi %54 = GetAddressResource %51, %52 %55 = LoadAddressU32 %54, 0, 0, true ; uses=31: every buffer/image/sampler descriptor ``` Resource tracking accepts the shader, but the CPU can't evaluate `%51`/`%52` because the offset depends on per-primitive interpolant data. As far as I can tell, supporting this needs GPU-side selection of the whole resource set: - shader-side loads of the selected material's constants and descriptors, - descriptor arrays for the images/samplers any material can reference, indexed by a GPU-computed id, - a way to enumerate or bound the candidate materials, e.g. from the material table or from the indices present in the draw's vertex data. `MatchUniformizedMaterialKey` already handles a `ReadFirstLane`-selected key for a single image, so this looks like the same idea applied to the whole SRT pointer. Two smaller suggestions: - Resource tracking could reject a plan whose SRT reads can't be evaluated at draw time, so this fails at compile time with the shader hash. - The `EXIT_IF`s around `MaterializeResources` in `pipelineCache.cpp`, and the silent `return false` paths in `MaterializeResources`, could report the stage/hash and the reason. --- ### Unrelated: `Pm4NativeTargetGeometry` test failure on `main` `shader_recompiler_compute_tests` fails at "legacy register holes". #964 (Hades II) added `g_hw_sh_indirect_func` handlers for SH offsets `0x2`/`0x3` (`SPI_SHADER_USER_DATA_ADDR_LO/HI_PS`), which the test lists as removed GCN slots. CI builds this test on Windows but doesn't run it in the `ctest -R` filter. Logs and the full shader dumps are available if useful.
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-12 05:23 UTC · original

@⁠hackerinfo89 thanks for the detailed breakdown. I opened #1438 for the first stop (the pipe-aligned uncompressed depth view, DWORD6 0x00080000). It accepts that control the same way as an all-zero one, and adds your descriptor to CheckDepthTextureEncoding.

When you have a moment, could you run its CI build (or main + the patch) and say where GotG stops now? Resource tracking has changed a lot since 8cbee7f, so I'm not sure the loop-indexed image table in PS 0xb86c8dfc3f2471af still fails on current main. The last ~300 lines of _kyty.txt would be enough.

**@⁠overlordxrz-source** on GitHub · 2026-10-12 05:23 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1004#issuecomment-6118282719) @⁠hackerinfo89 thanks for the detailed breakdown. I opened #1438 for the first stop (the pipe-aligned uncompressed depth view, DWORD6 `0x00080000`). It accepts that control the same way as an all-zero one, and adds your descriptor to `CheckDepthTextureEncoding`. When you have a moment, could you run its CI build (or main + the patch) and say where GotG stops now? Resource tracking has changed a lot since 8cbee7f, so I'm not sure the loop-indexed image table in PS `0xb86c8dfc3f2471af` still fails on current main. The last ~300 lines of `_kyty.txt` would be enough.
Author
Owner

@⁠hackerinfo89 on GitHub · 2026-10-12 07:43 UTC · original

Thanks for picking this up! I tested the CI build for #1438 (Source build ff716f3) and the depth fix works. It gets past the old crash, I now get a new full screen image followed by the loading screen (icon in the bottom right), but then it stops at the same second problem as before:

shader resource tracking: hash=0xb86c8dfc3f2471af stage=pixel pc=0x00000604 GetImageResource dword 0 is not a valid runtime value in src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp:506

So the loop-indexed image table still fails on current main. It's the same loop as in my earlier comment:

0x430: s_mov_b32 s48, 1
0x504: loop:
0x588:   s_load_dwordx8 s[8:15], s[50:51], s48<<5
0x604:   image_sample_l v8, v4, s[8:15], s[4:7]
0x610:   image_sample_l v0, v4, s[8:15], s[4:7]
0x650:   s_add_i32 s48, s48, 1
0x658:   s_cmp_lt_u32 s48, 16
0x65c:   s_cbranch_scc1 loop
In the IR the counter is Phi [1, entry], [next, latch], and the only way back to the loop header is the true edge of ULessThan32(next, 16). As far as I can tell BoundedLoopCount still needs the counter to start at 0, so this one doesn't get a bound.

I've attached the last 300 lines of _kyty.txt as you asked, plus the full shader log for 0xb86c8dfc3f2471af (native IR before resource tracking), which is probably more useful since the tail is mostly thread priority noise. Shader logging was on, which is also why it sat on a black screen for a minute or two before the crash, as the log ended up at 2.6 GB.

_kyty(300).txt

_kyty(shader).txt

Happy to test again whenever there's something new to try.

**@⁠hackerinfo89** on GitHub · 2026-10-12 07:43 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1004#issuecomment-6119938471) Thanks for picking this up! I tested the CI build for #1438 (Source build ff716f3) and the depth fix works. It gets past the old crash, I now get a new full screen image followed by the loading screen (icon in the bottom right), but then it stops at the same second problem as before: ``` shader resource tracking: hash=0xb86c8dfc3f2471af stage=pixel pc=0x00000604 GetImageResource dword 0 is not a valid runtime value in src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp:506 ``` So the loop-indexed image table still fails on current main. It's the same loop as in my earlier comment: ``` 0x430: s_mov_b32 s48, 1 0x504: loop: 0x588: s_load_dwordx8 s[8:15], s[50:51], s48<<5 0x604: image_sample_l v8, v4, s[8:15], s[4:7] 0x610: image_sample_l v0, v4, s[8:15], s[4:7] 0x650: s_add_i32 s48, s48, 1 0x658: s_cmp_lt_u32 s48, 16 0x65c: s_cbranch_scc1 loop In the IR the counter is Phi [1, entry], [next, latch], and the only way back to the loop header is the true edge of ULessThan32(next, 16). As far as I can tell BoundedLoopCount still needs the counter to start at 0, so this one doesn't get a bound. ``` I've attached the last 300 lines of _kyty.txt as you asked, plus the full shader log for 0xb86c8dfc3f2471af (native IR before resource tracking), which is probably more useful since the tail is mostly thread priority noise. Shader logging was on, which is also why it sat on a black screen for a minute or two before the crash, as the log ended up at 2.6 GB. [_kyty(300).txt](https://github.com/user-attachments/files/33326074/_kyty.300.txt) [_kyty(shader).txt](https://github.com/user-attachments/files/33326078/_kyty.shader.txt) Happy to test again whenever there's something new to try.
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-12 08:56 UTC · original

@⁠hackerinfo89 thanks for testing #1438 and for the full shader dump. It made this one easy to pin down.

You were right about the cause. BoundedLoopCount is BoundedLoop on main now, and it still only bounds a counter that starts at 0 and is tested before the body. This loop starts at 1 and tests s48 + 1 < 16 on the way back, so the image table never got a key range.

I opened #1444 for it. When the header Phi starts at a constant and its only way back is the uniform true edge of next < limit, the table is now bounded to the keys the loop actually visits (1..15 here). Entry 0 is read separately after the loop, so it isn't enumerated. It has a test built from this shader's IR shape. It's based on main and doesn't depend on #1438.

The CI build of #1444 alone will still hit the depth crash, so a retest needs both patches on main. When you have time, could you try it and say where GotG stops now? I'd expect it to reach the per-material SRT stop (0x4a260221f9feeae6) you described earlier. That one needs a different fix.

**@⁠overlordxrz-source** on GitHub · 2026-10-12 08:56 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1004#issuecomment-6120991199) @⁠hackerinfo89 thanks for testing #1438 and for the full shader dump. It made this one easy to pin down. You were right about the cause. `BoundedLoopCount` is `BoundedLoop` on main now, and it still only bounds a counter that starts at 0 and is tested before the body. This loop starts at 1 and tests `s48 + 1 < 16` on the way back, so the image table never got a key range. I opened #1444 for it. When the header Phi starts at a constant and its only way back is the uniform true edge of `next < limit`, the table is now bounded to the keys the loop actually visits (1..15 here). Entry 0 is read separately after the loop, so it isn't enumerated. It has a test built from this shader's IR shape. It's based on main and doesn't depend on #1438. The CI build of #1444 alone will still hit the depth crash, so a retest needs both patches on main. When you have time, could you try it and say where GotG stops now? I'd expect it to reach the per-material SRT stop (`0x4a260221f9feeae6`) you described earlier. That one needs a different fix.
Author
Owner

@⁠hackerinfo89 on GitHub · 2026-10-12 09:13 UTC · original

Tested a local build of main (dad900c6) with #1438 and #1444 both applied: Guardians now gets past both earlier stops. It goes through the first loading screen, first-time settings, the Square Enix and Eidos Montréal

intro animations and the second loading screen, then music starts on a black screen before it stops at the third issue I mentioned:

shader resource tracking: hash=0x4a260221f9feeae6 stage=pixel pc=0x000001d8 GetImageResource dword 0 is not a valid runtime value in src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp:506

That’s the shader that picks its whole SRT from a per-primitive material index (flat interpolant → ReadFirstLane → materials[index]). It’s now rejected during resource tracking rather than failing later in RefreshFlatBuffer, which is clearer. I’ve attached the full shader log for it from this build (disassembly, CFG and native IR before resource tracking) in case it helps whoever picks it up. I had red zone protection off for this run, so the two PRs are what fix the first two stops. Thanks!

main-1438-1444-shader-4a260221.txt

**@⁠hackerinfo89** on GitHub · 2026-10-12 09:13 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1004#issuecomment-6121246394) Tested a local build of main (`dad900c6`) with #1438 and #1444 both applied: Guardians now gets past both earlier stops. It goes through the first loading screen, first-time settings, the Square Enix and Eidos Montréal intro animations and the second loading screen, then music starts on a black screen before it stops at the third issue I mentioned: ``` shader resource tracking: hash=0x4a260221f9feeae6 stage=pixel pc=0x000001d8 GetImageResource dword 0 is not a valid runtime value in src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpp:506 ``` That’s the shader that picks its whole SRT from a per-primitive material index (flat interpolant → `ReadFirstLane` → `materials[index]`). It’s now rejected during resource tracking rather than failing later in RefreshFlatBuffer, which is clearer. I’ve attached the full shader log for it from this build (disassembly, CFG and native IR before resource tracking) in case it helps whoever picks it up. I had red zone protection off for this run, so the two PRs are what fix the first two stops. Thanks! [main-1438-1444-shader-4a260221.txt](https://github.com/user-attachments/files/33329134/main-1438-1444-shader-4a260221.txt)
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/KytyPS5--KytyPS5#1004
No description provided.