UFC 6 (PPSA23566): GPU-assisted validation finds LDS data race + depth-compare sampling on R32_SFLOAT view at the cutscene hang (RTX 4090/5090) #1458

Closed
opened 2026-11-26 09:57:11 +00:00 by github-bot · 3 comments
Owner

@⁠Woesch-Nich on GitHub · 2026-10-12 16:18 UTC · original

Game: EA SPORTS UFC 6 (PPSA23566). Related: #1379, #1055
Build: official KytyPS5-2026-10-12-df5b9b9
Hardware: RTX 5090 32 GB, Ryzen 7 9800X3D, Windows 11. Per #1379, the same cutscene runs on RTX 4060 and RTX 3080, but hangs on RTX 4090 and RTX 5090.

Symptom (all builds so far)

The intro cutscene (before the octagon) always ends in a GPU hang: TDR (nvlddmkm event 153) followed by the fatal error in masterSemaphore.cpp (waitSemaphores != success). With progress markers we saw the last completed draw just before the hang. Its position moves from run to run and does not point to one shader. Removing the suspicious draws only moves the hang.

Vulkan validation with --gpu-assisted-validation true

Same game, launch args --screen-width 2560 --screen-height 1440 --present-mode Mailbox --vblank-frequency 120 --gpu-assisted-validation true, Vulkan SDK 1.4.350.0. Kyty treats every validation error as fatal, so each run stops at the first error.

1. At boot (every run): shared-memory data race in a compute shader

vkCmdDispatch(): A data race was detected on the shared memory variable "lds_dwords" in local invocation index 0 while performing a load operation. (Likely against local invocation index 2)
The other access in this race was at: SPIR-V Instruction: OpStore %1459 %1323 0
Stage = Compute.  Global invocation ID (x, y, z) = (128, 0, 0)
Command buffer (0) Compute Dispatch Index 7
Shader Module (internal ID 43)
SPIR-V Instruction: %2201 = OpLoad %1 %2202 0

This looks like an LDS access that is missing a workgroup barrier in the translated compute shader. Such a race depends on how threads are scheduled, which can differ between GPU sizes and generations.

2. With that check switched off (VK_KHRONOS_VALIDATION_GPUAV_SHARED_MEMORY_DATA_RACE=false), at the usual cutscene crash point:

vkCmdDrawIndexed(): the sampled image descriptor [Set 0, Binding 80, Index 1, variable "image_24"] has VkImageView with format of VK_FORMAT_R32_SFLOAT which doesn't support VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT.
The Vulkan spec states: If a VkImageView is sampled with depth comparison, the image view's format features must contain VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT (VUID-vkCmdDrawIndexed-None-06479)

A depth buffer seems to be sampled with a comparison (shadow) sampler through an R32_SFLOAT colour view instead of a depth-format view. This is undefined behaviour, and it happens exactly where the cutscene hangs.

We have not proven that either of these causes the hang. They are the first concrete spec violations we found, and both are the kind of undefined behaviour that can work on one GPU and hang another. Full logs are available on request.

Credits

  • Vince (@⁠Woesch-Nich): ran every test build, day after day, through a week of crashes at the same cutscene.
  • Stevie: a Hermes agent on a local Qwen model, who built and instrumented the test builds.
  • Rot Doc: Claude (Anthropic), who supervised and analysed the logs and found these two validation errors.
**@⁠Woesch-Nich** on GitHub · 2026-10-12 16:18 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1458) **Game:** EA SPORTS UFC 6 (PPSA23566). Related: #1379, #1055 **Build:** official `KytyPS5-2026-10-12-df5b9b9` **Hardware:** RTX 5090 32 GB, Ryzen 7 9800X3D, Windows 11. Per #1379, the same cutscene runs on RTX 4060 and RTX 3080, but hangs on RTX 4090 and RTX 5090. ### Symptom (all builds so far) The intro cutscene (before the octagon) always ends in a GPU hang: TDR (nvlddmkm event 153) followed by the fatal error in `masterSemaphore.cpp` (`waitSemaphores != success`). With progress markers we saw the last completed draw just before the hang. Its position moves from run to run and does not point to one shader. Removing the suspicious draws only moves the hang. ### Vulkan validation with `--gpu-assisted-validation true` Same game, launch args `--screen-width 2560 --screen-height 1440 --present-mode Mailbox --vblank-frequency 120 --gpu-assisted-validation true`, Vulkan SDK 1.4.350.0. Kyty treats every validation error as fatal, so each run stops at the first error. **1. At boot (every run): shared-memory data race in a compute shader** ``` vkCmdDispatch(): A data race was detected on the shared memory variable "lds_dwords" in local invocation index 0 while performing a load operation. (Likely against local invocation index 2) The other access in this race was at: SPIR-V Instruction: OpStore %1459 %1323 0 Stage = Compute. Global invocation ID (x, y, z) = (128, 0, 0) Command buffer (0) Compute Dispatch Index 7 Shader Module (internal ID 43) SPIR-V Instruction: %2201 = OpLoad %1 %2202 0 ``` This looks like an LDS access that is missing a workgroup barrier in the translated compute shader. Such a race depends on how threads are scheduled, which can differ between GPU sizes and generations. **2. With that check switched off (`VK_KHRONOS_VALIDATION_GPUAV_SHARED_MEMORY_DATA_RACE=false`), at the usual cutscene crash point:** ``` vkCmdDrawIndexed(): the sampled image descriptor [Set 0, Binding 80, Index 1, variable "image_24"] has VkImageView with format of VK_FORMAT_R32_SFLOAT which doesn't support VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT. The Vulkan spec states: If a VkImageView is sampled with depth comparison, the image view's format features must contain VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT (VUID-vkCmdDrawIndexed-None-06479) ``` A depth buffer seems to be sampled with a comparison (shadow) sampler through an `R32_SFLOAT` colour view instead of a depth-format view. This is undefined behaviour, and it happens exactly where the cutscene hangs. We have not proven that either of these causes the hang. They are the first concrete spec violations we found, and both are the kind of undefined behaviour that can work on one GPU and hang another. Full logs are available on request. ### Credits - **Vince** ([@⁠Woesch-Nich](https://github.com/Woesch-Nich)): ran every test build, day after day, through a week of crashes at the same cutscene. - **Stevie**: a Hermes agent on a local Qwen model, who built and instrumented the test builds. - **Rot Doc**: Claude (Anthropic), who supervised and analysed the logs and found these two validation errors.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:57:11 +00:00
Author
Owner

@⁠Woesch-Nich on GitHub · 2026-10-12 16:34 UTC · original

Two additions, same build (df5b9b9), RTX 5090:

A. The R32_SFLOAT depth-compare view (error 2) samples the same memory the draw renders depth into
Our own instrumented build logged the bound images per draw at the cutscene hang. The draw where the GPU stalls (VS522/PS521 in our numbering) has the D32_SFLOAT_S8_UINT 3840x2160 depth target at guest address 0x0011c0790000 bound as its depth attachment. The same guest address is also bound as a sampled image, through a second, separately created image (the R32_SFLOAT alias that validation flagged). Because Kyty's depth-feedback detection compares ImageId/view identity rather than guest memory, it does not see this as a feedback loop: no feedback-loop layout, no barrier, no copy. So it looks like the draw reads, with a comparison sampler, the memory it is writing depth into, through an aliased colour-format image. That is undefined behaviour on two counts.

B. Third validation error (run with errors 1 and 2 filtered, at startup before the cutscene)

vkCreateImageView(): pCreateInfo->format VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 with tiling VK_IMAGE_TILING_OPTIMAL doesn't support VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT.
(VUID-VkImageViewCreateInfo-usage-08931)

An RGB9E5 image is created as a colour attachment. NVIDIA cannot render to RGB9E5 (AMD/PS5 hardware can), so this render target needs a fallback format on NVIDIA.

Note on hardware: we do not yet know why 4060/3080 run the cutscene while 4090/5090 hang. These violations are present on any NVIDIA card. One unproven guess: a VRAM-size-dependent texture-cache decision (for example, whether the aliased image is kept resident or recreated or copied) decides whether the aliasing in A actually happens.

**@⁠Woesch-Nich** on GitHub · 2026-10-12 16:34 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1458#issuecomment-6128440488) Two additions, same build (`df5b9b9`), RTX 5090: **A. The R32_SFLOAT depth-compare view (error 2) samples the same memory the draw renders depth into** Our own instrumented build logged the bound images per draw at the cutscene hang. The draw where the GPU stalls (VS522/PS521 in our numbering) has the D32_SFLOAT_S8_UINT 3840x2160 depth target at guest address `0x0011c0790000` bound as its depth attachment. The same guest address is also bound as a sampled image, through a second, separately created image (the `R32_SFLOAT` alias that validation flagged). Because Kyty's depth-feedback detection compares ImageId/view identity rather than guest memory, it does not see this as a feedback loop: no feedback-loop layout, no barrier, no copy. So it looks like the draw reads, with a comparison sampler, the memory it is writing depth into, through an aliased colour-format image. That is undefined behaviour on two counts. **B. Third validation error (run with errors 1 and 2 filtered, at startup before the cutscene)** ``` vkCreateImageView(): pCreateInfo->format VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 with tiling VK_IMAGE_TILING_OPTIMAL doesn't support VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT. (VUID-VkImageViewCreateInfo-usage-08931) ``` An RGB9E5 image is created as a colour attachment. NVIDIA cannot render to RGB9E5 (AMD/PS5 hardware can), so this render target needs a fallback format on NVIDIA. Note on hardware: we do not yet know why 4060/3080 run the cutscene while 4090/5090 hang. These violations are present on any NVIDIA card. One unproven guess: a VRAM-size-dependent texture-cache decision (for example, whether the aliased image is kept resident or recreated or copied) decides whether the aliasing in A actually happens.
Author
Owner

@⁠Woesch-Nich on GitHub · 2026-10-13 12:50 UTC · original

Follow-up on df5b9b9, RTX 5090. We fixed the validation errors from this issue locally. All of them are now clean, and the cutscene hang remains.

What the root causes were

  1. Null compare texture. The R32_SFLOAT depth-compare view from error 2 (Set 0, Binding 80, "image_24") is Kyty's default/null image. The game binds a T# with guest address 0 to a slot that the shader samples with depth compare. The same image is also compare-sampled by a compute shader (Binding 24). Kyty's null image is a colour format, so VUID-*-None-06479 fires.
  2. Feedback check by identity. Kyty detects depth feedback by ImageId and view identity. Draws that sample the bound depth target's memory through a second, aliased image are therefore not detected.

What the patch does (vs df5b9b92, 6 files)

  • It detects depth feedback by guest address overlap and binds a same-format depth copy for those draws.
  • For compare-sampled images that are not in a depth format, it binds a depth-format twin. For images with no backing, that twin is a cleared 1×1 depth dummy (1.0). This applies on the draw, dispatch and indirect-dispatch paths.
  • Patch: https://gist.github.com/Woesch-Nich/e23226b4ebfcc56062b006851fd51dc9. It still contains a few [c9]/[c10] log lines, and it is a workaround to show the cause, not a polished PR.

Result with --gpu-assisted-validation true

  • 06479 is gone completely.
  • One remaining pre-existing error was filtered: VUID-vkCmdDispatch-viewType-07752, where image_7 is bound as a 2D view but the shader declares a 3D image.
  • The run then reaches the cutscene with zero validation errors and still dies the same way: GPU hang, TDR (nvlddmkm 153), then masterSemaphore.cpp:53.
  • So these were real spec violations, but not the cause of the 4090/5090 hang.
  • One side effect: with the fixes, the hang no longer stalls the whole PC as it does with the official build, where it sometimes caused a BSOD.

Credits

  • Vince (@⁠Woesch-Nich): ran every build and every validation run.
  • Stevie: a Hermes agent on a local Qwen model. He built c9–c10d and found the null-texture and compute-shader paths.
  • Rot Doc: Claude (Anthropic). He supervised and analysed the logs.
**@⁠Woesch-Nich** on GitHub · 2026-10-13 12:50 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1458#issuecomment-6145943184) Follow-up on `df5b9b9`, RTX 5090. We fixed the validation errors from this issue locally. All of them are now clean, and the cutscene hang **remains**. **What the root causes were** 1. **Null compare texture.** The `R32_SFLOAT` depth-compare view from error 2 (`Set 0, Binding 80, "image_24"`) is Kyty's default/null image. The game binds a T# with guest address 0 to a slot that the shader samples with depth compare. The same image is also compare-sampled by a compute shader (`Binding 24`). Kyty's null image is a colour format, so `VUID-*-None-06479` fires. 2. **Feedback check by identity.** Kyty detects depth feedback by ImageId and view identity. Draws that sample the bound depth target's memory through a second, aliased image are therefore not detected. **What the patch does (vs `df5b9b92`, 6 files)** - It detects depth feedback by guest address overlap and binds a same-format depth copy for those draws. - For compare-sampled images that are not in a depth format, it binds a depth-format twin. For images with no backing, that twin is a cleared 1×1 depth dummy (1.0). This applies on the draw, dispatch and indirect-dispatch paths. - Patch: https://gist.github.com/Woesch-Nich/e23226b4ebfcc56062b006851fd51dc9. It still contains a few `[c9]`/`[c10]` log lines, and it is a workaround to show the cause, not a polished PR. **Result with `--gpu-assisted-validation true`** - `06479` is gone completely. - One remaining pre-existing error was filtered: `VUID-vkCmdDispatch-viewType-07752`, where `image_7` is bound as a 2D view but the shader declares a 3D image. - The run then reaches the cutscene with **zero** validation errors and still dies the same way: GPU hang, TDR (nvlddmkm 153), then `masterSemaphore.cpp:53`. - So these were real spec violations, but not the cause of the 4090/5090 hang. - One side effect: with the fixes, the hang no longer stalls the whole PC as it does with the official build, where it sometimes caused a BSOD. ### Credits - **Vince** ([@⁠Woesch-Nich](https://github.com/Woesch-Nich)): ran every build and every validation run. - **Stevie**: a Hermes agent on a local Qwen model. He built c9–c10d and found the null-texture and compute-shader paths. - **Rot Doc**: Claude (Anthropic). He supervised and analysed the logs.
Author
Owner

@⁠Nmzik on GitHub · 2026-10-18 16:46 UTC · original

Duplicate of #1555.

Consolidating compatibility evidence for PPSA23566 in the newer report #1555. This older report has no posted screenshots or video in its body or comments. Its logs and discussion remain available here; this closure consolidates reports and does not mark the reported behavior as fixed.

**@⁠Nmzik** on GitHub · 2026-10-18 16:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1458#issuecomment-6252480623) Duplicate of #1555. Consolidating compatibility evidence for PPSA23566 in the newer report #1555. This older report has no posted screenshots or video in its body or comments. Its logs and discussion remain available here; this closure consolidates reports and does not mark the reported behavior as fixed.
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#1458
No description provided.