Fix AMD RDNA startup crash and rendering corruption #28

Manually merged
github merged 1 commit from gh-pr/28/head into gh-pr/28/base 2026-11-26 09:09:14 +00:00
Owner

@⁠kirathenotebook on GitHub · 2026-07-17 12:12 UTC · original
kirathenotebook:amd-rdna-support → main · +27 −11 · 2 files · 1 commits · merged 2026-07-18 07:46 UTC

What changed

  • Drop the unused VK_FORMAT_D24_UNORM_S8_UINT device check that rejected some AMD GPUs.
  • Only treat VALIDATION-type Vulkan messages as fatal, not GENERAL-type ones.
  • Restrict compute queues to the graphics queue's family.
  • Force per-invocation lane mask emulation for 64-wide waves, since RDNA's lane layout differs from GCN despite matching wave size.

Why

On AMD Radeon GPUs the emulator failed to find a suitable device, crashed during queue setup, or rendered corrupted output, while NVIDIA was unaffected.

Each change removes an assumption in device selection, debug message handling, queue selection, or shader lane-mask emulation that happened to hold for NVIDIA but not for AMD.

Validation

  • Built on Windows with clang-cl. Note: the latest Vulkan SDK (1.4.350) fails to build against the pinned Vulkan-Headers submodule; used 1.4.328.1 instead, which matches it.
  • Tested on a Radeon RX 9070 XT + Ryzen 7 9800X3D.
  • Alex Kidd in Miracle World DX and Dreaming Sarah now boot and render correctly (previously failed to start or rendered corrupted).
  • Not yet verified for regressions on NVIDIA hardware; testing from someone with an NVIDIA GPU would help confirm no regression there.

AI assistance disclosure

AI assistance was used to diagnose the root cause of each issue and prepare the initial patch. The contributor reviewed the complete diff and tested it on the affected AMD hardware before opening this pull request.

**@⁠kirathenotebook** on GitHub · 2026-07-17 12:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/28) `kirathenotebook:amd-rdna-support` → `main` · +27 −11 · 2 files · 1 commits · merged 2026-07-18 07:46 UTC # What changed - Drop the unused VK_FORMAT_D24_UNORM_S8_UINT device check that rejected some AMD GPUs. - Only treat VALIDATION-type Vulkan messages as fatal, not GENERAL-type ones. - Restrict compute queues to the graphics queue's family. - Force per-invocation lane mask emulation for 64-wide waves, since RDNA's lane layout differs from GCN despite matching wave size. # Why On AMD Radeon GPUs the emulator failed to find a suitable device, crashed during queue setup, or rendered corrupted output, while NVIDIA was unaffected. Each change removes an assumption in device selection, debug message handling, queue selection, or shader lane-mask emulation that happened to hold for NVIDIA but not for AMD. # Validation - Built on Windows with clang-cl. Note: the latest Vulkan SDK (1.4.350) fails to build against the pinned Vulkan-Headers submodule; used 1.4.328.1 instead, which matches it. - Tested on a Radeon RX 9070 XT + Ryzen 7 9800X3D. - Alex Kidd in Miracle World DX and Dreaming Sarah now boot and render correctly (previously failed to start or rendered corrupted). - Not yet verified for regressions on NVIDIA hardware; testing from someone with an NVIDIA GPU would help confirm no regression there. # AI assistance disclosure AI assistance was used to diagnose the root cause of each issue and prepare the initial patch. The contributor reviewed the complete diff and tested it on the affected AMD hardware before opening this pull request.
# What changed
- Drop the unused VK_FORMAT_D24_UNORM_S8_UINT device check that
  rejected some AMD GPUs.
- Only treat VALIDATION-type Vulkan messages as fatal, not
  GENERAL-type ones.
- Restrict compute queues to the graphics queue's family.
- Force per-invocation lane mask emulation for 64-wide waves, since
  RDNA's lane layout differs from GCN despite matching wave size.

# Why
On AMD Radeon GPUs the emulator failed to find a suitable device,
crashed during queue setup, or rendered corrupted output, while
NVIDIA was unaffected.

Each change removes an assumption in device selection, debug
message handling, queue selection, or shader lane-mask emulation
that happened to hold for NVIDIA but not for AMD.

# Validation
- Built on Windows with clang-cl. Note: the latest Vulkan SDK
  (1.4.350) fails to build against the pinned Vulkan-Headers
  submodule; used 1.4.328.1 instead, which matches it.
- Tested on a Radeon RX 9070 XT + Ryzen 7 9800X3D.
- Alex Kidd in Miracle World DX and Dreaming Sarah now boot and
  render correctly (previously failed to start or rendered
  corrupted).
- Not yet verified for regressions on NVIDIA hardware; testing from
  someone with an NVIDIA GPU would help confirm no regression there.

# AI assistance disclosure
AI assistance was used to diagnose the root cause of each issue and
prepare the initial patch. The contributor reviewed the complete
diff and tested it on the affected AMD hardware before opening this
pull request.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:09:13 +00:00
github manually merged commit c826d11b5b into gh-pr/28/base 2026-11-26 09:09:14 +00:00
Author
Owner

@⁠ahmeddzairdev-ctrl on GitHub · 2026-07-17 14:53 UTC · original

are you willing to build it ? i wanna test it on my rx 7600

**@⁠ahmeddzairdev-ctrl** on GitHub · 2026-07-17 14:53 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/28#issuecomment-5004519304) are you willing to build it ? i wanna test it on my rx 7600
Author
Owner

@⁠Nmzik on GitHub · 2026-07-17 19:21 UTC · original

@⁠kirathenotebook Thank you! I’ll test it on my NVIDIA GPU and report back on whether it still works

**@⁠Nmzik** on GitHub · 2026-07-17 19:21 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/28#issuecomment-5006735657) @⁠kirathenotebook Thank you! I’ll test it on my NVIDIA GPU and report back on whether it still works
This discussion has been locked. Commenting is limited to contributors.
No description provided.