AMD Vulkan driver bugs that affect KytyPS5 (Adrenalin 26.8.1 to 26.10.1, reported to AMD) #1624

Open
opened 2026-11-26 10:01:52 +00:00 by github-bot · 15 comments
Owner

@⁠Nawid3333 on GitHub · 2026-10-17 22:21 UTC · original

Status (2026-11-19), both GPUs on Adrenalin 26.10.1: fifteen bugs, 1 to 6 in the table below and 7 to 15 in the comments; 1 to 13 are reported to AMD, 14 and 15 are being reported. Fixed: bug 5 (in 26.10.1). Still present: 1, 3, 4, 6, 7, 8, 9, 10 (new in 26.10.1), 11, 12 (new in 26.10.1 on the RX 9070 XT), 13, 14 and 15. Not re-run: 2 (its spin loop can hang the GPU). The retest results are in the comments of 2026-11-01, bug 11 in the comment of 2026-11-02, bug 12 in the comment of 2026-11-04, bug 13 (RX 9070 XT only, found on 26.10.1) in the comment of 2026-11-08, bug 14 (both GPUs, helper invocations in subgroup ballots) in the comment of 2026-11-12, bug 15 (iGPU only, a compute pipeline compile crash, Demon's Souls) in the comment of 2026-11-19.

While testing the shader recompiler on an RX 9070 XT (LLPC) and a Ryzen 7600X integrated GPU (RDNA2, AMD's other shader compiler), both on Adrenalin 26.8.1 and Windows 11, I ran into six bugs in AMD's Vulkan driver. In each case the SPIR-V is valid (spirv-val and the validation layer report nothing), but the result is wrong; for five of the six, the other AMD compiler gets it right. I reported all six to AMD with standalone reproducers through the Adrenalin bug report tool. I'm listing them here so nobody spends time looking for them in Kyty, and so tests that fail only on AMD can be matched to one of them. I re-ran the reproducers on 2026-10-18 on the same driver, and they still fail as described.

# GPU (compiler) What goes wrong Where it shows in Kyty
1 both OpArrayLength of a NonUniform-indexed storage buffer returns the length of the first active lane's buffer for every lane. On the RX 9070 XT, loads and stores through that pointer also go to the first lane's buffer. bounds checks of buffers that each lane selects itself
2 iGPU A Volatile storage-buffer load inside a spin loop is executed only once (moved out of the loop), so the loop never sees another workgroup's store. BufferWorkgroupPublicationWave32/64; #1600, worked around in #1613
3 iGPU A second interpolateAtCentroid/interpolateAtSample of gl_BaryCoordEXT in the same fragment shader returns the previous component. pixel shaders that read centroid/sample barycentrics more than once
4 RX 9070 XT subgroupBallot/Any/All of an ordered not-equal compare (OpFOrdNotEqual, or a < b || a > b) is true for NaN operands: the ballot uses v_cmp_neq instead of v_cmp_lg. Same for f16, f32 and f64. V_CMP_LG_* with a NaN operand; VectorCompareF64Edges fails
5 RX 9070 XT abs(x) < FLT_MIN is compiled as x == 0, so it is false for denormal x (unless DenormPreserve is declared). a denormal flush written that way; found while working on #1565, whose first version checked the integer bits instead
6 RX 9070 XT An output store inside if (!gl_HelperInvocation) loses per-sample shading: it writes the pixel-centre value. GraphicsPerspectiveSample4x with such a guard; see #1574

I'll attach the reproducers (GLSL/SPIR-V, a small Vulkan runner, and the expected and actual results for each GPU) in a comment below.

Written with Claude Code (AI): it found and reduced these, built the reproducers and re-ran them on my PC; I read this before posting it.

**@⁠Nawid3333** on GitHub · 2026-10-17 22:21 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624) **Status (2026-11-19), both GPUs on Adrenalin 26.10.1:** fifteen bugs, 1 to 6 in the table below and 7 to 15 in the comments; 1 to 13 are reported to AMD, 14 and 15 are being reported. Fixed: bug 5 (in 26.10.1). Still present: 1, 3, 4, 6, 7, 8, 9, 10 (new in 26.10.1), 11, 12 (new in 26.10.1 on the RX 9070 XT), 13, 14 and 15. Not re-run: 2 (its spin loop can hang the GPU). The retest results are in the comments of 2026-11-01, bug 11 in the comment of 2026-11-02, bug 12 in the comment of 2026-11-04, bug 13 (RX 9070 XT only, found on 26.10.1) in the comment of 2026-11-08, bug 14 (both GPUs, helper invocations in subgroup ballots) in the comment of 2026-11-12, bug 15 (iGPU only, a compute pipeline compile crash, Demon's Souls) in the comment of 2026-11-19. While testing the shader recompiler on an RX 9070 XT (LLPC) and a Ryzen 7600X integrated GPU (RDNA2, AMD's other shader compiler), both on Adrenalin 26.8.1 and Windows 11, I ran into six bugs in AMD's Vulkan driver. In each case the SPIR-V is valid (spirv-val and the validation layer report nothing), but the result is wrong; for five of the six, the other AMD compiler gets it right. I reported all six to AMD with standalone reproducers through the Adrenalin bug report tool. I'm listing them here so nobody spends time looking for them in Kyty, and so tests that fail only on AMD can be matched to one of them. I re-ran the reproducers on 2026-10-18 on the same driver, and they still fail as described. | # | GPU (compiler) | What goes wrong | Where it shows in Kyty | |---|---|---|---| | 1 | both | `OpArrayLength` of a NonUniform-indexed storage buffer returns the length of the first active lane's buffer for every lane. On the RX 9070 XT, loads and stores through that pointer also go to the first lane's buffer. | bounds checks of buffers that each lane selects itself | | 2 | iGPU | A `Volatile` storage-buffer load inside a spin loop is executed only once (moved out of the loop), so the loop never sees another workgroup's store. | `BufferWorkgroupPublicationWave32/64`; #1600, worked around in #1613 | | 3 | iGPU | A second `interpolateAtCentroid`/`interpolateAtSample` of `gl_BaryCoordEXT` in the same fragment shader returns the previous component. | pixel shaders that read centroid/sample barycentrics more than once | | 4 | RX 9070 XT | `subgroupBallot`/`Any`/`All` of an ordered not-equal compare (`OpFOrdNotEqual`, or `a < b \|\| a > b`) is true for NaN operands: the ballot uses `v_cmp_neq` instead of `v_cmp_lg`. Same for f16, f32 and f64. | `V_CMP_LG_*` with a NaN operand; `VectorCompareF64Edges` fails | | 5 | RX 9070 XT | `abs(x) < FLT_MIN` is compiled as `x == 0`, so it is false for denormal x (unless `DenormPreserve` is declared). | a denormal flush written that way; found while working on #1565, whose first version checked the integer bits instead | | 6 | RX 9070 XT | An output store inside `if (!gl_HelperInvocation)` loses per-sample shading: it writes the pixel-centre value. | `GraphicsPerspectiveSample4x` with such a guard; see #1574 | I'll attach the reproducers (GLSL/SPIR-V, a small Vulkan runner, and the expected and actual results for each GPU) in a comment below. Written with Claude Code (AI): it found and reduced these, built the reproducers and re-ran them on my PC; I read this before posting it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:01:52 +00:00
Author
Owner

@⁠Nawid3333 on GitHub · 2026-10-18 17:31 UTC · original · edited 2026-10-18 17:33 UTC

Here are the reproducers. There is one folder per bug, numbered as in the table above. Each folder has a REPORT.md (what goes wrong, the shader, and the expected and actual results on each GPU), plus the GLSL or SPIR-V, the driver ISA where it matters, and the recorded runs. The small Vulkan tools are included as source only, with no binaries.
KytyPS5-amd-driver-bug-repros-2026-10-18.zip

**@⁠Nawid3333** on GitHub · 2026-10-18 17:31 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6252944596) · edited 2026-10-18 17:33 UTC Here are the reproducers. There is one folder per bug, numbered as in the table above. Each folder has a REPORT.md (what goes wrong, the shader, and the expected and actual results on each GPU), plus the GLSL or SPIR-V, the driver ISA where it matters, and the recorded runs. The small Vulkan tools are included as source only, with no binaries. [KytyPS5-amd-driver-bug-repros-2026-10-18.zip](https://github.com/user-attachments/files/33633842/KytyPS5-amd-driver-bug-repros-2026-10-18.zip)
Author
Owner

@⁠theantipopau on GitHub · 2026-10-19 01:29 UTC · original

Matched each driver bug to the Kyty test that covers the same path, to help quarantine AMD-only failures:

  1. OpArrayLength of NonUniform-indexed SSBO (both compilers) — per-lane buffer bounds checks. Kyty path: SPIR-V length query in spirvEmitterMemoryHelpers.cpp:173 / spirvEmitterProgram.cpp:720; CPU coverage in shaderCfgTests.cpp OpArrayLength checks (e.g. :7171, :10203, :10248).
  2. Volatile load hoisted out of spin loop (iGPU) — BufferWorkgroupPublicationWave32/64 in tests/ShaderRecompilerComputeTests.cpp:33369 (registered :37185-37189, run :43437-43439); see #1600, workaround #1613.
  3. Second interpolateAtCentroid/Sample of gl_BaryCoordEXT returns previous component (iGPU) — TestPerspectiveCentroidInputs in tests/shaderCfgTests.cpp:6577 (checks InterpolateAtCentroid gl_BaryCoordKHR); GPU-side barycentric coverage via GraphicsPerspectiveSample4x (ShaderRecompilerComputeTests.cpp:36754).
  4. subgroupBallot/Any/All of ordered != true for NaN, v_cmp_neq vs v_cmp_lg (9070 XT) — VectorCompareF64Edges in ShaderRecompilerComputeTests.cpp:26181 (registered :37362, run :42989/:43152/:43174); emitter translate cases V_CMP_LG_F32/F16/F64 in Vector.cpp:282/340/412.
  5. abs(x) < FLT_MIN compiled as x == 0, denormals lost (9070 XT) — VectorMadF32FlushesDenorms (:25143), VectorSpecialF32FlushesDenormalInputs (:25837), VectorCompareF32DenormalModes (:26974); per report, #1565 checks integer bits instead.
  6. Store in if (!gl_HelperInvocation) writes pixel-centre under per-sample shading (9070 XT) — GraphicsPerspectiveSample4x in ShaderRecompilerComputeTests.cpp:36754 with that guard; see #1574.

Suggestion: tag these six cases with an AMD-known-failure annotation (or expected-fail on the two AMD compilers) so CI can distinguish driver bugs from recompiler regressions.

**@⁠theantipopau** on GitHub · 2026-10-19 01:29 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6257720502) Matched each driver bug to the Kyty test that covers the same path, to help quarantine AMD-only failures: 1. OpArrayLength of NonUniform-indexed SSBO (both compilers) — per-lane buffer bounds checks. Kyty path: SPIR-V length query in spirvEmitterMemoryHelpers.cpp:173 / spirvEmitterProgram.cpp:720; CPU coverage in shaderCfgTests.cpp OpArrayLength checks (e.g. :7171, :10203, :10248). 2. Volatile load hoisted out of spin loop (iGPU) — BufferWorkgroupPublicationWave32/64 in tests/ShaderRecompilerComputeTests.cpp:33369 (registered :37185-37189, run :43437-43439); see #1600, workaround #1613. 3. Second interpolateAtCentroid/Sample of gl_BaryCoordEXT returns previous component (iGPU) — TestPerspectiveCentroidInputs in tests/shaderCfgTests.cpp:6577 (checks InterpolateAtCentroid gl_BaryCoordKHR); GPU-side barycentric coverage via GraphicsPerspectiveSample4x (ShaderRecompilerComputeTests.cpp:36754). 4. subgroupBallot/Any/All of ordered != true for NaN, v_cmp_neq vs v_cmp_lg (9070 XT) — VectorCompareF64Edges in ShaderRecompilerComputeTests.cpp:26181 (registered :37362, run :42989/:43152/:43174); emitter translate cases V_CMP_LG_F32/F16/F64 in Vector.cpp:282/340/412. 5. abs(x) < FLT_MIN compiled as x == 0, denormals lost (9070 XT) — VectorMadF32FlushesDenorms (:25143), VectorSpecialF32FlushesDenormalInputs (:25837), VectorCompareF32DenormalModes (:26974); per report, #1565 checks integer bits instead. 6. Store in if (!gl_HelperInvocation) writes pixel-centre under per-sample shading (9070 XT) — GraphicsPerspectiveSample4x in ShaderRecompilerComputeTests.cpp:36754 with that guard; see #1574. Suggestion: tag these six cases with an AMD-known-failure annotation (or expected-fail on the two AMD compilers) so CI can distinguish driver bugs from recompiler regressions.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-10-19 02:59 UTC · original

Thanks. Upstream CI builds shader_recompiler_compute_tests on Windows and macOS but runs it on no platform (the test steps in build.yml run only the CPU suites), so an expected-fail tag would only change local runs on AMD GPUs. For 1, #1603 stops using OpArrayLength for storage-buffer accesses (only the GDS buffer keeps one). On the RX 9070 XT (driver 26.8.1) that also avoids the wrong loads and stores: they go to the first active lane's buffer only when an OpArrayLength uses the same pointer, which is why IndirectBufferStore passes with #1603.

**@⁠Nawid3333** on GitHub · 2026-10-19 02:59 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6258694363) Thanks. Upstream CI builds `shader_recompiler_compute_tests` on Windows and macOS but runs it on no platform (the test steps in `build.yml` run only the CPU suites), so an expected-fail tag would only change local runs on AMD GPUs. For 1, #1603 stops using `OpArrayLength` for storage-buffer accesses (only the GDS buffer keeps one). On the RX 9070 XT (driver 26.8.1) that also avoids the wrong loads and stores: they go to the first active lane's buffer only when an `OpArrayLength` uses the same pointer, which is why `IndirectBufferStore` passes with #1603.
Author
Owner

@⁠theantipopau on GitHub · 2026-10-19 03:25 UTC · original

Thanks for confirming #1603 against the 9070 XT - I've approved it, so the OpArrayLength item here should resolve when it merges (GDS-only OpArrayLength remaining). Good catch on the CI coverage gap: since build.yml runs only the CPU suites, AMD-specific expected-fail tags would indeed only bite local runs. I'll keep that in mind when tagging quarantine tests - they belong with a local-AMD-runner note rather than relying on CI to enforce them.

**@⁠theantipopau** on GitHub · 2026-10-19 03:25 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6258974464) Thanks for confirming #1603 against the 9070 XT - I've approved it, so the OpArrayLength item here should resolve when it merges (GDS-only OpArrayLength remaining). Good catch on the CI coverage gap: since build.yml runs only the CPU suites, AMD-specific expected-fail tags would indeed only bite local runs. I'll keep that in mind when tagging quarantine tests - they belong with a local-AMD-runner note rather than relying on CI to enforce them.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-10-23 16:54 UTC · original

Three more AMD driver bugs, reported to AMD the same way with standalone reproducers (7 and 8 on 2026-10-18, 9 on 2026-10-23), same driver 26.8.1, numbered on from the table above:

# GPU (compiler) What goes wrong Where it shows in Kyty
7 iGPU vkCreateComputePipelines crashes the process (access violation at amdvlk64.dll+0x22241FC) when a compute shader has an OpSpecConstantOp Select with a vector result. The same Select with scalar results works. Kyty's own texture-tiling pipelines (uvec4 ?: chains on a specialization constant): the RDNA2 crash in #821. #1152 rewrites those selects as if/else, and the crash is gone on my iGPU with it.
8 iGPU On the graphics queue, vkCmdCopyImage of depth and stencil into a depth/stencil attachment image with 2 or more mip levels never writes the second aspect: the stencil keeps its old data, or the depth is garbled if the stencil is copied first. depth/stencil copies into images with mips (the compute suite's ImageTransitionState fails on the iGPU)
9 RX 9070 XT vkCreateComputePipelines crashes inside the driver for some valid compute shaders that declare OpExecutionMode MaximallyReconvergesKHR (VK_KHR_shader_maximal_reconvergence, feature enabled); the same shaders without the mode compile. The iGPU compiles them. nothing in main: only a lab test of the mode for #1511

Reproducers (source only, no binaries, plus the recorded runs) are attached below.

KytyPS5-amd-driver-bug-repros-7-9-2026-10-23.zip

**@⁠Nawid3333** on GitHub · 2026-10-23 16:54 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6370154078) Three more AMD driver bugs, reported to AMD the same way with standalone reproducers (7 and 8 on 2026-10-18, 9 on 2026-10-23), same driver 26.8.1, numbered on from the table above: | # | GPU (compiler) | What goes wrong | Where it shows in Kyty | |---|---|---|---| | 7 | iGPU | `vkCreateComputePipelines` crashes the process (access violation at `amdvlk64.dll+0x22241FC`) when a compute shader has an `OpSpecConstantOp` `Select` with a vector result. The same `Select` with scalar results works. | Kyty's own texture-tiling pipelines (`uvec4` `?:` chains on a specialization constant): the RDNA2 crash in #821. #1152 rewrites those selects as `if`/`else`, and the crash is gone on my iGPU with it. | | 8 | iGPU | On the graphics queue, `vkCmdCopyImage` of depth and stencil into a depth/stencil attachment image with 2 or more mip levels never writes the second aspect: the stencil keeps its old data, or the depth is garbled if the stencil is copied first. | depth/stencil copies into images with mips (the compute suite's `ImageTransitionState` fails on the iGPU) | | 9 | RX 9070 XT | `vkCreateComputePipelines` crashes inside the driver for some valid compute shaders that declare `OpExecutionMode MaximallyReconvergesKHR` (`VK_KHR_shader_maximal_reconvergence`, feature enabled); the same shaders without the mode compile. The iGPU compiles them. | nothing in main: only a lab test of the mode for #1511 | Reproducers (source only, no binaries, plus the recorded runs) are attached below. [KytyPS5-amd-driver-bug-repros-7-9-2026-10-23.zip](https://github.com/user-attachments/files/33882773/KytyPS5-amd-driver-bug-repros-7-9-2026-10-23.zip)
Author
Owner

@⁠Nawid3333 on GitHub · 2026-10-23 17:13 UTC · original

Status of the nine bugs (2026-10-23): Kyty-side workarounds, related issues, retests

# Kyty-side workaround Retested on a newer driver
1 #1603 (open, approved, not merged): bounds storage-buffer accesses by the exact descriptor range instead of OpArrayLength; on the RX 9070 XT it also avoids this bug's wrong loads and stores. It also covers #1595 (AMD's OpArrayLength rounds a range up to a multiple of 4 bytes). not yet
2 #1613 (open), tracked in #1600 not yet
3 none not yet
4 none not yet
5 partial: #1565 (open) flushes compare operands with an integer-bits test; main's other f32 denormal flushes (EmitFlushF32DenormToSignedZero) still use abs(x) < FLT_MIN and declare no DenormPreserve not yet
6 none; it matters for issue #1574 (open): the forks' change there guards exports with !HelperInvocation, which hits this bug not yet
7 #1152 (open), the crash in #821 not yet
8 none not yet
9 not needed in main (only a lab test for #1511 declares the mode) not yet

SPIR-V tools (bug 7's construct)

The same OpSpecConstantOp Select with a vector result also trips SPIRV-Tools' --fold-spec-const-op-composite: it folds it to a zero vector (KhronosGroup/SPIRV-Tools#6976), and it can make a constant refer to a constant declared later (KhronosGroup/SPIRV-Tools#6987). Both are open, and both have a fix waiting: KhronosGroup/SPIRV-Tools#6843 for the first (approved on 2026-10-20, not merged yet) and KhronosGroup/SPIRV-Tools#6993 for the second (opened on 2026-10-22, not reviewed yet). Anyone running spirv-opt with --fold-spec-const-op-composite over Kyty's tiler shaders hits them until #1152 is in or the fixes land.

Mesa side (RADV/ACO)

While testing #1603's per-lane buffer path, the same path as bug 1, NeySlim and I found a separate bug in RADV (not in AMD's Windows driver), and he confirmed it on his Radeon 8060S: ACO retargets s_bitset0 to exec and drops the VCC condition, so a nested if-guard is lost and lanes outside it store or load. On his RDNA 3.5 GPU that ended in a GPUVM fault and a ring reset in IndirectBufferStore. Report: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/16618 (26.2 regression, RDNA2 to RDNA4; 26.0.8 is fine). Fix: Rhys Perry's MR https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/45419 (reviewed by Georg Lehmann, not merged yet). Separately, the per-lane push-constant index was a Kyty bug, fixed in #1603's second commit; Mesa issue https://gitlab.freedesktop.org/mesa/mesa/-/work_items/16130 explains why it showed on RADV.

Retesting on newer drivers

Newer Adrenalin drivers exist (26.9.1, 26.10.1), and none of the nine bugs has been retested on them yet; the nine bugs are verified on 26.8.1 only. If you are on a newer driver, you can run the attached reproducers (bugs 1-6 in the 2026-10-18 comment, 7-9 in today's) and post the result here: GPU, driver version, and pass/fail per bug.

**@⁠Nawid3333** on GitHub · 2026-10-23 17:13 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6370521866) **Status of the nine bugs (2026-10-23): Kyty-side workarounds, related issues, retests** | # | Kyty-side workaround | Retested on a newer driver | |---|---|---| | 1 | #1603 (open, approved, not merged): bounds storage-buffer accesses by the exact descriptor range instead of `OpArrayLength`; on the RX 9070 XT it also avoids this bug's wrong loads and stores. It also covers #1595 (AMD's `OpArrayLength` rounds a range up to a multiple of 4 bytes). | not yet | | 2 | #1613 (open), tracked in #1600 | not yet | | 3 | none | not yet | | 4 | none | not yet | | 5 | partial: #1565 (open) flushes compare operands with an integer-bits test; main's other f32 denormal flushes (`EmitFlushF32DenormToSignedZero`) still use `abs(x) < FLT_MIN` and declare no `DenormPreserve` | not yet | | 6 | none; it matters for issue #1574 (open): the forks' change there guards exports with `!HelperInvocation`, which hits this bug | not yet | | 7 | #1152 (open), the crash in #821 | not yet | | 8 | none | not yet | | 9 | not needed in main (only a lab test for #1511 declares the mode) | not yet | **SPIR-V tools (bug 7's construct)** The same `OpSpecConstantOp` `Select` with a vector result also trips SPIRV-Tools' `--fold-spec-const-op-composite`: it folds it to a zero vector (KhronosGroup/SPIRV-Tools#6976), and it can make a constant refer to a constant declared later (KhronosGroup/SPIRV-Tools#6987). Both are open, and both have a fix waiting: KhronosGroup/SPIRV-Tools#6843 for the first (approved on 2026-10-20, not merged yet) and KhronosGroup/SPIRV-Tools#6993 for the second (opened on 2026-10-22, not reviewed yet). Anyone running spirv-opt with `--fold-spec-const-op-composite` over Kyty's tiler shaders hits them until #1152 is in or the fixes land. **Mesa side (RADV/ACO)** While testing #1603's per-lane buffer path, the same path as bug 1, NeySlim and I found a separate bug in RADV (not in AMD's Windows driver), and he confirmed it on his Radeon 8060S: ACO retargets `s_bitset0` to exec and drops the VCC condition, so a nested if-guard is lost and lanes outside it store or load. On his RDNA 3.5 GPU that ended in a GPUVM fault and a ring reset in `IndirectBufferStore`. Report: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/16618 (26.2 regression, RDNA2 to RDNA4; 26.0.8 is fine). Fix: Rhys Perry's MR https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/45419 (reviewed by Georg Lehmann, not merged yet). Separately, the per-lane push-constant index was a Kyty bug, fixed in #1603's second commit; Mesa issue https://gitlab.freedesktop.org/mesa/mesa/-/work_items/16130 explains why it showed on RADV. **Retesting on newer drivers** Newer Adrenalin drivers exist (26.9.1, 26.10.1), and none of the nine bugs has been retested on them yet; the nine bugs are verified on 26.8.1 only. If you are on a newer driver, you can run the attached reproducers (bugs 1-6 in the 2026-10-18 comment, 7-9 in today's) and post the result here: GPU, driver version, and pass/fail per bug.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-10-27 16:24 UTC · original

Update on the Mesa item in the previous comment: the fix is merged. Mesa MR !45419 (aco/opt_postRA: check for tied defs in try_optimize_branching_sequence, by Rhys Perry) landed in Mesa main today, 2026-10-27, and Mesa issue mesa/mesa#16618 was closed by the merge.

That was the ACO bug (a Mesa 26.2 regression) that retargeted s_bitset0 to exec and dropped the VCC condition: in #1603's RADV testing it caused the GPUVM fault and gfx ring reset on NeySlim's Radeon 8060S in the IndirectBufferStore path. On RADV, Mesa 26.0.8 is unaffected (the regression came with 26.2) and anything that includes !45419 is fixed; released builds from before today's merge (26.2.4 tested) still have it unless it gets backported to a stable branch.

This does not change the nine-bug table in the previous comment: those bugs are in AMD's Windows Adrenalin driver (verified on 26.8.1), not RADV, so they still need retesting on a newer Adrenalin driver.

Written with GitHub Copilot (AI), posted at Nawid's request.

**@⁠Nawid3333** on GitHub · 2026-10-27 16:24 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6447421748) Update on the Mesa item in the previous comment: the fix is merged. [Mesa MR !45419](https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/45419) (`aco/opt_postRA: check for tied defs in try_optimize_branching_sequence`, by Rhys Perry) landed in Mesa main today, 2026-10-27, and Mesa issue [mesa/mesa#16618](https://gitlab.freedesktop.org/mesa/mesa/-/work_items/16618) was closed by the merge. That was the ACO bug (a Mesa 26.2 regression) that retargeted `s_bitset0` to exec and dropped the VCC condition: in #1603's RADV testing it caused the GPUVM fault and gfx ring reset on NeySlim's Radeon 8060S in the `IndirectBufferStore` path. On RADV, Mesa 26.0.8 is unaffected (the regression came with 26.2) and anything that includes !45419 is fixed; released builds from before today's merge (26.2.4 tested) still have it unless it gets backported to a stable branch. This does not change the nine-bug table in the previous comment: those bugs are in AMD's Windows Adrenalin driver (verified on 26.8.1), not RADV, so they still need retesting on a newer Adrenalin driver. Written with GitHub Copilot (AI), posted at Nawid's request.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-10-27 16:49 UTC · original · edited 2026-10-27 17:36 UTC

The RX 9070 XT now runs Adrenalin 26.10.1 (Vulkan driver 2.0.416; on 26.8.1 it reported 2.0.395). It has a new bug, numbered on from bugs 1 to 9 above:

# GPU (compiler) What goes wrong Where it shows in Kyty
10 RX 9070 XT OpImageQuerySizeLod and OpImageQueryLevels on a NonUniform-indexed sampled image return the size and mip count of the image that the subgroup's first lane selected, in every lane of that subgroup (each lane's own LOD is still applied). It is the same symptom as bug 1, for image queries. IMAGE_GET_RESINFO with a per-lane image index; IndirectImageQueryDimensions (shader_recompiler_compute_tests --indirect-image-only) fails. No Kyty-side workaround yet.

In Kyty's IndirectImageQueryDimensions, lane 1 now gets {1,1,0,2} instead of {2,1,0,3} on the RX 9070 XT. The test passed on the same GPU with 26.8.1 (my runs on 2026-10-22 and 2026-10-24) and still passes on the iGPU. On 26.10.1 it fails the same way with a build made on 2026-10-22, before the driver update, and with today's build, so this looks like a regression in a driver after 26.8.1. The indirect gather and fetch tests that run before it (IndirectImageGather*, IndirectImageFetch*) pass, so only the queries look affected.

Standalone reproducer: one 64-invocation workgroup and three R32G32B32A32_SFLOAT 2D images (2x2 with 2 mips, 4x2 with 3, 8x8 with 4) in a texture2D images[3] array, with shaderSampledImageArrayDynamicIndexing and shaderSampledImageArrayNonUniformIndexing enabled. Each lane reads its selector (the host writes lane % 3) and its LOD (lane & 1) from a buffer and runs

const uint s = io.sel[lane];
ivec2 size = textureSize(images[nonuniformEXT(s)], io.lod[lane]);
int levels = textureQueryLevels(images[nonuniformEXT(s)]);

In the SPIR-V (glslang), the index, the access chain and the loaded image are decorated NonUniform. On the RX 9070 XT, 42 of 64 lanes are wrong, for the size alone, the levels alone and both, at subgroup size 32, 64 and the driver's default. In the per-lane output, each wrong lane gets the answer for the image its subgroup's first lane selected (lane 0 with subgroup size 64; lanes 0 and 32 with 32). With the selectors rotated so that lane 0 picks the 8x8 image, the wrong lanes in a 64-lane subgroup report the 8x8 image's size at their own LOD and 4 levels. When every lane selects the same image (the 4x2 one), the result is right. spirv-val and the validation layer report nothing. On the Ryzen 7600X iGPU (AMD's other compiler; its driver reports 25.10.42, Vulkan driver 2.0.353) every lane is right. The reproducer was written after the driver update, so it has not run on 26.8.1. I reported this one to AMD the same way on 2026-10-27.

Full shader
#version 460
#extension GL_EXT_nonuniform_qualifier : require
#extension GL_EXT_samplerless_texture_functions : require
layout(local_size_x = 64) in;
layout(set = 0, binding = 0) uniform texture2D images[3];
layout(set = 0, binding = 1, std430) buffer IO {
  uint sel[64];
  int lod[64];
  uvec4 result[64];
} io;

void main() {
  const uint lane = gl_LocalInvocationIndex;
  const uint s = io.sel[lane];
  ivec2 size = textureSize(images[nonuniformEXT(s)], io.lod[lane]);
  int levels = textureQueryLevels(images[nonuniformEXT(s)]);
  io.result[lane] = uvec4(uvec2(size), s, uint(levels));
}

Retest of bug 1 on 26.10.1: the reproducer's output on the RX 9070 XT is identical to its 2026-10-19 run on 26.8.1, so OpArrayLength of a NonUniform-indexed storage buffer still returns the length of the first active lane's buffer there. The iGPU still runs Vulkan driver 2.0.353, the same build as on 26.8.1, so bug 1 on the iGPU and bugs 2 to 9 are not retested on a newer driver yet.

**@⁠Nawid3333** on GitHub · 2026-10-27 16:49 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6447977351) · edited 2026-10-27 17:36 UTC The RX 9070 XT now runs Adrenalin 26.10.1 (Vulkan driver 2.0.416; on 26.8.1 it reported 2.0.395). It has a new bug, numbered on from bugs 1 to 9 above: | # | GPU (compiler) | What goes wrong | Where it shows in Kyty | |---|---|---|---| | 10 | RX 9070 XT | `OpImageQuerySizeLod` and `OpImageQueryLevels` on a NonUniform-indexed sampled image return the size and mip count of the image that the subgroup's first lane selected, in every lane of that subgroup (each lane's own LOD is still applied). It is the same symptom as bug 1, for image queries. | `IMAGE_GET_RESINFO` with a per-lane image index; `IndirectImageQueryDimensions` (`shader_recompiler_compute_tests --indirect-image-only`) fails. No Kyty-side workaround yet. | In Kyty's `IndirectImageQueryDimensions`, lane 1 now gets `{1,1,0,2}` instead of `{2,1,0,3}` on the RX 9070 XT. The test passed on the same GPU with 26.8.1 (my runs on 2026-10-22 and 2026-10-24) and still passes on the iGPU. On 26.10.1 it fails the same way with a build made on 2026-10-22, before the driver update, and with today's build, so this looks like a regression in a driver after 26.8.1. The indirect gather and fetch tests that run before it (`IndirectImageGather*`, `IndirectImageFetch*`) pass, so only the queries look affected. Standalone reproducer: one 64-invocation workgroup and three `R32G32B32A32_SFLOAT` 2D images (2x2 with 2 mips, 4x2 with 3, 8x8 with 4) in a `texture2D images[3]` array, with `shaderSampledImageArrayDynamicIndexing` and `shaderSampledImageArrayNonUniformIndexing` enabled. Each lane reads its selector (the host writes `lane % 3`) and its LOD (`lane & 1`) from a buffer and runs ```glsl const uint s = io.sel[lane]; ivec2 size = textureSize(images[nonuniformEXT(s)], io.lod[lane]); int levels = textureQueryLevels(images[nonuniformEXT(s)]); ``` In the SPIR-V (glslang), the index, the access chain and the loaded image are decorated `NonUniform`. On the RX 9070 XT, 42 of 64 lanes are wrong, for the size alone, the levels alone and both, at subgroup size 32, 64 and the driver's default. In the per-lane output, each wrong lane gets the answer for the image its subgroup's first lane selected (lane 0 with subgroup size 64; lanes 0 and 32 with 32). With the selectors rotated so that lane 0 picks the 8x8 image, the wrong lanes in a 64-lane subgroup report the 8x8 image's size at their own LOD and 4 levels. When every lane selects the same image (the 4x2 one), the result is right. spirv-val and the validation layer report nothing. On the Ryzen 7600X iGPU (AMD's other compiler; its driver reports 25.10.42, Vulkan driver 2.0.353) every lane is right. The reproducer was written after the driver update, so it has not run on 26.8.1. I reported this one to AMD the same way on 2026-10-27. <details><summary>Full shader</summary> ```glsl #version 460 #extension GL_EXT_nonuniform_qualifier : require #extension GL_EXT_samplerless_texture_functions : require layout(local_size_x = 64) in; layout(set = 0, binding = 0) uniform texture2D images[3]; layout(set = 0, binding = 1, std430) buffer IO { uint sel[64]; int lod[64]; uvec4 result[64]; } io; void main() { const uint lane = gl_LocalInvocationIndex; const uint s = io.sel[lane]; ivec2 size = textureSize(images[nonuniformEXT(s)], io.lod[lane]); int levels = textureQueryLevels(images[nonuniformEXT(s)]); io.result[lane] = uvec4(uvec2(size), s, uint(levels)); } ``` </details> Retest of bug 1 on 26.10.1: the reproducer's output on the RX 9070 XT is identical to its 2026-10-19 run on 26.8.1, so `OpArrayLength` of a NonUniform-indexed storage buffer still returns the length of the first active lane's buffer there. The iGPU still runs Vulkan driver 2.0.353, the same build as on 26.8.1, so bug 1 on the iGPU and bugs 2 to 9 are not retested on a newer driver yet.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-01 18:17 UTC · original

I re-ran the reproducers on the current drivers. The RX 9070 XT runs Adrenalin 26.10.1 (Vulkan driver 2.0.416, LLPC); the Ryzen 7600X iGPU now reports 25.10.42 (AMD proprietary shader compiler, Vulkan driver 2.0.353). One bug is fixed; every other bug I re-ran is still there:

# GPU (compiler) Result on the current driver
1 both still present on both: on the iGPU 3 of the 4 checks still fail, as before; the RX 9070 XT result is from 2026-10-27
4 RX 9070 XT still present: the ballot of an ordered not-equal compare with a NaN operand is still set (w[4] = 1, expected 0)
5 RX 9070 XT fixed in 26.10.1: abs(x) < FLT_MIN now gives 1 1 1 1 1 1 0 0 for the eight inputs, as expected (5 of 5 runs); the pipeline ISA is 940 bytes now, 1035 bytes on 26.8.1
6 RX 9070 XT still present: the store guarded by !gl_HelperInvocation still loses per-sample shading (3d7fffff instead of 3da80000)
7 iGPU still present: vkCreateComputePipelines still crashes on the OpSpecConstantOp vector select
8 iGPU still present: the copy into the 2-mip depth/stencil image still does not write the stencil aspect (same 12 pass / 22 fail as on 26.8.1)
9 RX 9070 XT still present: creating the compute pipeline with MaximallyReconvergesKHR still crashes inside the driver (3 of 3 runs); the same module without that execution mode compiles
10 RX 9070 XT found on this driver on 2026-10-27 (my previous comment)

I did not re-run bug 2 (its spin loop can hang the GPU) or bug 3 (its reproducer runs in Kyty's graphics test harness, which no longer starts on this iGPU because it now requires mesh shaders).

**@⁠Nawid3333** on GitHub · 2026-11-01 18:17 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6561947911) I re-ran the reproducers on the current drivers. The RX 9070 XT runs Adrenalin 26.10.1 (Vulkan driver 2.0.416, LLPC); the Ryzen 7600X iGPU now reports 25.10.42 (AMD proprietary shader compiler, Vulkan driver 2.0.353). One bug is fixed; every other bug I re-ran is still there: | # | GPU (compiler) | Result on the current driver | |---|---|---| | 1 | both | still present on both: on the iGPU 3 of the 4 checks still fail, as before; the RX 9070 XT result is from 2026-10-27 | | 4 | RX 9070 XT | still present: the ballot of an ordered not-equal compare with a NaN operand is still set (`w[4] = 1`, expected 0) | | 5 | RX 9070 XT | **fixed in 26.10.1**: `abs(x) < FLT_MIN` now gives `1 1 1 1 1 1 0 0` for the eight inputs, as expected (5 of 5 runs); the pipeline ISA is 940 bytes now, 1035 bytes on 26.8.1 | | 6 | RX 9070 XT | still present: the store guarded by `!gl_HelperInvocation` still loses per-sample shading (`3d7fffff` instead of `3da80000`) | | 7 | iGPU | still present: `vkCreateComputePipelines` still crashes on the `OpSpecConstantOp` vector select | | 8 | iGPU | still present: the copy into the 2-mip depth/stencil image still does not write the stencil aspect (same 12 pass / 22 fail as on 26.8.1) | | 9 | RX 9070 XT | still present: creating the compute pipeline with `MaximallyReconvergesKHR` still crashes inside the driver (3 of 3 runs); the same module without that execution mode compiles | | 10 | RX 9070 XT | found on this driver on 2026-10-27 (my previous comment) | I did not re-run bug 2 (its spin loop can hang the GPU) or bug 3 (its reproducer runs in Kyty's graphics test harness, which no longer starts on this iGPU because it now requires mesh shaders).
Author
Owner

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

The Ryzen 7600X iGPU now runs Adrenalin 26.10.1 as well (Windows driver 32.0.21045.16010, AMD proprietary shader compiler, Vulkan driver 2.0.353). I re-ran its reproducers; all four are still there, with the same results as on 26.8.1:

# GPU (compiler) Result on 26.10.1
1 both iGPU: 3 of the 4 checks still fail
3 iGPU the second interpolateAtCentroid of gl_BaryCoordEXT still returns the first component: (0.125, 0.125) instead of (0.125, 0.25), which the RX 9070 XT writes with the same build
7 iGPU vkCreateComputePipelines still crashes on the OpSpecConstantOp vector select
8 iGPU the copy into the 2-mip depth/stencil image still does not write the stencil aspect (same 12 pass / 22 fail)

For bug 3 I built the same test branch as in the original report; unlike current main's test harness, it still starts on this iGPU. I did not re-run bug 2 (its spin loop can hang the GPU).

**@⁠Nawid3333** on GitHub · 2026-11-01 22:22 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6564763419) The Ryzen 7600X iGPU now runs Adrenalin 26.10.1 as well (Windows driver 32.0.21045.16010, AMD proprietary shader compiler, Vulkan driver 2.0.353). I re-ran its reproducers; all four are still there, with the same results as on 26.8.1: | # | GPU (compiler) | Result on 26.10.1 | |---|---|---| | 1 | both | iGPU: 3 of the 4 checks still fail | | 3 | iGPU | the second `interpolateAtCentroid` of `gl_BaryCoordEXT` still returns the first component: `(0.125, 0.125)` instead of `(0.125, 0.25)`, which the RX 9070 XT writes with the same build | | 7 | iGPU | `vkCreateComputePipelines` still crashes on the `OpSpecConstantOp` vector select | | 8 | iGPU | the copy into the 2-mip depth/stencil image still does not write the stencil aspect (same 12 pass / 22 fail) | For bug 3 I built the same test branch as in the original report; unlike current main's test harness, it still starts on this iGPU. I did not re-run bug 2 (its spin loop can hang the GPU).
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-02 01:26 UTC · original

One more AMD driver bug, numbered on from bugs 1 to 10 above, reported to AMD the same way on 2026-11-02. Both GPUs run Adrenalin 26.10.1 (RX 9070 XT: Vulkan driver 2.0.416, LLPC; Ryzen 7600X iGPU: Vulkan driver 2.0.353) and behave the same:

# GPU (compiler) What goes wrong Where it shows in Kyty
11 both After a vkAllocateDescriptorSets call for several sets fails with VK_ERROR_OUT_OF_POOL_MEMORY, the same pool (created without VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT) refuses even one set that fits an empty pool, until vkResetDescriptorPool. the !Allocate(layout, fresh_batch) exit in descriptorHeap.cpp (Ghost of Yōtei; GTA V in #829). #1758 avoids it by allocating one set per call.

The failed call must destroy the sets it created, and the spec says fragmentation must not make an allocation fail in a pool that never freed a set. The validation layer reports nothing. RADV behaves the same (measured in #1758).

Standalone reproducer (pool sizes of Kyty's DescriptorHeap, one binding of N sampled images), identical on both GPUs:

N per set sets that fit, one per call 1 set after a failed 32-set call 1 set after a reset
1024 13 VK_ERROR_OUT_OF_POOL_MEMORY VK_SUCCESS
2390 5 VK_ERROR_OUT_OF_POOL_MEMORY VK_SUCCESS
8192 1 VK_ERROR_OUT_OF_POOL_MEMORY VK_SUCCESS
**@⁠Nawid3333** on GitHub · 2026-11-02 01:26 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6566883104) One more AMD driver bug, numbered on from bugs 1 to 10 above, reported to AMD the same way on 2026-11-02. Both GPUs run Adrenalin 26.10.1 (RX 9070 XT: Vulkan driver 2.0.416, LLPC; Ryzen 7600X iGPU: Vulkan driver 2.0.353) and behave the same: | # | GPU (compiler) | What goes wrong | Where it shows in Kyty | |---|---|---|---| | 11 | both | After a `vkAllocateDescriptorSets` call for several sets fails with `VK_ERROR_OUT_OF_POOL_MEMORY`, the same pool (created without `VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT`) refuses even one set that fits an empty pool, until `vkResetDescriptorPool`. | the `!Allocate(layout, fresh_batch)` exit in `descriptorHeap.cpp` (Ghost of Yōtei; GTA V in #829). #1758 avoids it by allocating one set per call. | The failed call must destroy the sets it created, and the spec says fragmentation must not make an allocation fail in a pool that never freed a set. The validation layer reports nothing. RADV behaves the same (measured in #1758). Standalone reproducer (pool sizes of Kyty's `DescriptorHeap`, one binding of N sampled images), identical on both GPUs: | N per set | sets that fit, one per call | 1 set after a failed 32-set call | 1 set after a reset | |---|---|---|---| | 1024 | 13 | `VK_ERROR_OUT_OF_POOL_MEMORY` | `VK_SUCCESS` | | 2390 | 5 | `VK_ERROR_OUT_OF_POOL_MEMORY` | `VK_SUCCESS` | | 8192 | 1 | `VK_ERROR_OUT_OF_POOL_MEMORY` | `VK_SUCCESS` |
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-04 03:29 UTC · original

One more AMD driver bug, numbered on from bugs 1 to 11 above; I'm reporting it to AMD the same way. Both GPUs run Adrenalin 26.10.1 (RX 9070 XT: Vulkan driver 2.0.416, LLPC; Ryzen 7600X iGPU: Vulkan driver 2.0.353) and behave the same:

# GPU (compiler) What goes wrong Where it shows in Kyty
12 both GLSL.std.450 NMin/NMax with a constant signaling-NaN operand fold to the quieted NaN instead of the other operand: NMin(0x7fa00001, 2.0) gives 0x7fe00001. The same operations on operands loaded from memory give 2.0. VectorMinMaxF32NanAndSignedZeroEdges in the native AMD profile (--float-min-max-only, #1761) expects 0x40000000 and gets 0x7fe00001; it passed on the RX 9070 XT with 26.8.1

GLSL.std.450 says for both: "If one operand is a NaN, the other operand is the result", and the module declares SignedZeroInfNanPreserve 32, as Kyty's modules do. The ISA of the constant version has no min or max instruction left, only the literal 0x7fe00001, so the value is folded at compile time. The validation layer reports nothing.

Standalone reproducer (SPIR-V assembly; the operands are OpConstant + OpBitcast, or loaded from the buffer), identical on both GPUs; each pair in both operand orders:

a, b NMin and NMax, constant operands NMin and NMax, runtime operands
0x7fa00001 (signaling NaN), 0x40000000 (2.0) 0x7fe00001 0x40000000
0xffa00001 (negative signaling NaN), 0x40000000 0xffe00001 0x40000000
0x7fc00001 (quiet NaN), 0x40000000 0x40000000 0x40000000
0x3f800000 (1.0), 0x40000000 0x3f800000 / 0x40000000 0x3f800000 / 0x40000000

The constant case, from the reproducer:

%k7fa00001 = OpConstant %uint 0x7fa00001
%k40000000 = OpConstant %uint 0x40000000
%f7fa00001 = OpBitcast %float %k7fa00001
%f40000000 = OpBitcast %float %k40000000
%r0_0 = OpExtInst %float %glsl NMin %f7fa00001 %f40000000   ; 0x7fe00001 on both GPUs, expected 0x40000000

#2096 does not touch the native path; the exact path it changes passes these cases.

**@⁠Nawid3333** on GitHub · 2026-11-04 03:29 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6621761278) One more AMD driver bug, numbered on from bugs 1 to 11 above; I'm reporting it to AMD the same way. Both GPUs run Adrenalin 26.10.1 (RX 9070 XT: Vulkan driver 2.0.416, LLPC; Ryzen 7600X iGPU: Vulkan driver 2.0.353) and behave the same: | # | GPU (compiler) | What goes wrong | Where it shows in Kyty | |---|---|---|---| | 12 | both | GLSL.std.450 `NMin`/`NMax` with a constant signaling-NaN operand fold to the quieted NaN instead of the other operand: `NMin(0x7fa00001, 2.0)` gives `0x7fe00001`. The same operations on operands loaded from memory give `2.0`. | `VectorMinMaxF32NanAndSignedZeroEdges` in the native AMD profile (`--float-min-max-only`, #1761) expects `0x40000000` and gets `0x7fe00001`; it passed on the RX 9070 XT with 26.8.1 | GLSL.std.450 says for both: "If one operand is a NaN, the other operand is the result", and the module declares `SignedZeroInfNanPreserve 32`, as Kyty's modules do. The ISA of the constant version has no min or max instruction left, only the literal `0x7fe00001`, so the value is folded at compile time. The validation layer reports nothing. Standalone reproducer (SPIR-V assembly; the operands are `OpConstant` + `OpBitcast`, or loaded from the buffer), identical on both GPUs; each pair in both operand orders: | a, b | NMin and NMax, constant operands | NMin and NMax, runtime operands | |---|---|---| | `0x7fa00001` (signaling NaN), `0x40000000` (2.0) | `0x7fe00001` | `0x40000000` | | `0xffa00001` (negative signaling NaN), `0x40000000` | `0xffe00001` | `0x40000000` | | `0x7fc00001` (quiet NaN), `0x40000000` | `0x40000000` | `0x40000000` | | `0x3f800000` (1.0), `0x40000000` | `0x3f800000` / `0x40000000` | `0x3f800000` / `0x40000000` | The constant case, from the reproducer: ``` %k7fa00001 = OpConstant %uint 0x7fa00001 %k40000000 = OpConstant %uint 0x40000000 %f7fa00001 = OpBitcast %float %k7fa00001 %f40000000 = OpBitcast %float %k40000000 %r0_0 = OpExtInst %float %glsl NMin %f7fa00001 %f40000000 ; 0x7fe00001 on both GPUs, expected 0x40000000 ``` #2096 does not touch the native path; the exact path it changes passes these cases.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-08 16:04 UTC · original

One more AMD driver bug, numbered on from bugs 1 to 12 above; I'm reporting it to AMD the same way. Both GPUs run Adrenalin 26.10.1 (RX 9070 XT: Vulkan driver 2.0.416, LLPC; Ryzen 7600X iGPU: Vulkan driver 2.0.353, AMD proprietary shader compiler):

# GPU (compiler) What goes wrong Where it shows in Kyty
13 RX 9070 XT (LLPC) vkCreateComputePipelines crashes with an access violation inside amdvlk64.dll on a valid compute shader with a double-precision select chain: a max by ordered compare, then a select on isnan() of the input, then isnan() of that result. The iGPU compiles the same shader. VectorMinMaxF64CapturedAndEdges (--cmp-eq-f64-only) takes the test process down: Kyty lowers each V_MIN_F64/V_MAX_F64 to an ordered compare, a signed-zero select and a NaN select, so one 64-bit min/max feeding another tests isnan() of such a chain

Minimal shader (GLSL, glslangValidator -V --target-env vulkan1.1; spirv-val reports nothing):

#version 450
layout(local_size_x = 1) in;
layout(std430, set = 0, binding = 0) buffer Words { uint w[]; } words;
void main() {
  double zero = 0.0;
  double x = packDouble2x32(uvec2(32u, words.w[32]));
  double m = zero > x ? zero : x;
  m = isnan(x) ? zero : m;
  double r = isnan(m) ? x : zero;
  words.w[32] = unpackDouble2x32(r).y;
}
Shader RX 9070 XT iGPU
the shader above crash in vkCreateComputePipelines compiles
without the line m = isnan(x) ? zero : m; compiles compiles
the same with float instead of double compiles compiles
zero == x instead of zero > x compiles compiles
Kyty's module of the test, and spirv-reduce's minimum of it crash (for Kyty's module, cdb shows the same address in amdvlk64.dll) compiles

The validation layer reports nothing before the crash, and the crash stays with all implicit layers disabled. Removing the SignedZeroInfNanPreserve 64 execution mode from the reduced module does not change it. In the shaders our runs decoded from four games, V_MIN_F64/V_MAX_F64 do not occur, so I know of no game that hits it.

**@⁠Nawid3333** on GitHub · 2026-11-08 16:04 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6723757432) One more AMD driver bug, numbered on from bugs 1 to 12 above; I'm reporting it to AMD the same way. Both GPUs run Adrenalin 26.10.1 (RX 9070 XT: Vulkan driver 2.0.416, LLPC; Ryzen 7600X iGPU: Vulkan driver 2.0.353, AMD proprietary shader compiler): | # | GPU (compiler) | What goes wrong | Where it shows in Kyty | |---|---|---|---| | 13 | RX 9070 XT (LLPC) | `vkCreateComputePipelines` crashes with an access violation inside `amdvlk64.dll` on a valid compute shader with a double-precision select chain: a max by ordered compare, then a select on `isnan()` of the input, then `isnan()` of that result. The iGPU compiles the same shader. | `VectorMinMaxF64CapturedAndEdges` (`--cmp-eq-f64-only`) takes the test process down: Kyty lowers each `V_MIN_F64`/`V_MAX_F64` to an ordered compare, a signed-zero select and a NaN select, so one 64-bit min/max feeding another tests `isnan()` of such a chain | Minimal shader (GLSL, `glslangValidator -V --target-env vulkan1.1`; spirv-val reports nothing): ```glsl #version 450 layout(local_size_x = 1) in; layout(std430, set = 0, binding = 0) buffer Words { uint w[]; } words; void main() { double zero = 0.0; double x = packDouble2x32(uvec2(32u, words.w[32])); double m = zero > x ? zero : x; m = isnan(x) ? zero : m; double r = isnan(m) ? x : zero; words.w[32] = unpackDouble2x32(r).y; } ``` | Shader | RX 9070 XT | iGPU | |---|---|---| | the shader above | crash in `vkCreateComputePipelines` | compiles | | without the line `m = isnan(x) ? zero : m;` | compiles | compiles | | the same with `float` instead of `double` | compiles | compiles | | `zero == x` instead of `zero > x` | compiles | compiles | | Kyty's module of the test, and spirv-reduce's minimum of it | crash (for Kyty's module, cdb shows the same address in `amdvlk64.dll`) | compiles | The validation layer reports nothing before the crash, and the crash stays with all implicit layers disabled. Removing the `SignedZeroInfNanPreserve 64` execution mode from the reduced module does not change it. In the shaders our runs decoded from four games, `V_MIN_F64`/`V_MAX_F64` do not occur, so I know of no game that hits it.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-12 16:32 UTC · original

One more AMD driver bug, numbered on from bugs 1 to 13 above; I'm reporting it to AMD the same way. Both GPUs run Adrenalin 26.10.1 (RX 9070 XT: Vulkan driver 2.0.416, LLPC; Ryzen 7600X iGPU: Vulkan driver 2.0.353, AMD proprietary shader compiler):

# GPU (compiler) What goes wrong Where it shows in Kyty
14 both Fragment-shader helper invocations are missing from subgroupBallot although the entry point declares MaximallyReconvergesKHR, under which "helper invocations must remain active for all instructions". On the RX 9070 XT two ballots in the same shader disagree (subgroupBallot(true) has 1 bit set, subgroupBallot(gl_HelperInvocation) 3) while subgroupShuffle returns the helper's value, and RequireFullQuadsKHR changes nothing. On the iGPU the helpers are missing from both ballots and from the shuffle unless RequireFullQuadsKHR is declared. pixel shaders that run S_WQM_B64 exec and then read other lanes (DPP, row shuffles): the recompiler checks the source lane with subgroupBallot(true), so a read from a helper lane returns the inactive-lane value instead of the helper's value. In Ghost of Yōtei, 4 of the 32 captured pixel shaders with implicit-LOD samples feed such a read into texture coordinates

Minimal shader (GLSL, glslangValidator -V --target-env vulkan1.3; spirv-val reports nothing). One triangle covers only pixel (1,0) of a 2×2 target, so the other three pixels of its quad run as helper invocations; value of quad lane 0 (pixel (0,0)) is 100:

#version 450
#extension GL_KHR_shader_subgroup_ballot : require
#extension GL_KHR_shader_subgroup_shuffle : require
#extension GL_EXT_maximal_reconvergence : require
layout(location = 0) out uvec4 result;
void main() [[maximally_reconverges]] {
  uvec2 pixel = uvec2(gl_FragCoord.xy);
  uint value = 100u + pixel.x + 2u * pixel.y;
  float slope = dFdx(gl_FragCoord.x * gl_FragCoord.x);
  uint active_count = subgroupBallotBitCount(subgroupBallot(true));
  uint helper_count = subgroupBallotBitCount(subgroupBallot(gl_HelperInvocation));
  uint shuffled = subgroupShuffle(value, gl_SubgroupInvocationID & ~3u);
  result = uvec4(active_count, helper_count, shuffled, floatBitsToUint(slope));
}

What the covered pixel writes (the spec result with MaximallyReconvergesKHR is 4 3 100; the fourth word is dFdx = 2.0 everywhere):

Execution modes RX 9070 XT iGPU
none 1 3 100 1 0 0
MaximallyReconvergesKHR 1 3 100 1 0 0
RequireFullQuadsKHR 1 3 100 4 3 100
both 1 3 100 4 3 100

Without MaximallyReconvergesKHR the spec lets helpers be inactive for group operations other than derivative and quad operations, so the first row is only for comparison. A control shader that also calls subgroupQuadBroadcast gives 4 3 100 100 on both GPUs with every combination. Adding a third ballot (of a predicate that is true at run time) to the shader above drops the RX 9070 XT's subgroupBallot(gl_HelperInvocation) count from 3 to 0, while the shuffle still returns 100. The validation layer was loaded in all 24 runs and reported nothing.

In our GPU test of a DPP read from a helper lane after S_WQM_B64 exec, declaring RequireFullQuadsKHR in the recompiled pixel shader makes the iGPU return the helper lane's value; the RX 9070 XT still returns the inactive-lane value. I haven't checked other vendors yet.

**@⁠Nawid3333** on GitHub · 2026-11-12 16:32 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-6829541707) One more AMD driver bug, numbered on from bugs 1 to 13 above; I'm reporting it to AMD the same way. Both GPUs run Adrenalin 26.10.1 (RX 9070 XT: Vulkan driver 2.0.416, LLPC; Ryzen 7600X iGPU: Vulkan driver 2.0.353, AMD proprietary shader compiler): | # | GPU (compiler) | What goes wrong | Where it shows in Kyty | |---|---|---|---| | 14 | both | Fragment-shader helper invocations are missing from `subgroupBallot` although the entry point declares `MaximallyReconvergesKHR`, under which "helper invocations must remain active for all instructions". On the RX 9070 XT two ballots in the same shader disagree (`subgroupBallot(true)` has 1 bit set, `subgroupBallot(gl_HelperInvocation)` 3) while `subgroupShuffle` returns the helper's value, and `RequireFullQuadsKHR` changes nothing. On the iGPU the helpers are missing from both ballots and from the shuffle unless `RequireFullQuadsKHR` is declared. | pixel shaders that run `S_WQM_B64 exec` and then read other lanes (DPP, row shuffles): the recompiler checks the source lane with `subgroupBallot(true)`, so a read from a helper lane returns the inactive-lane value instead of the helper's value. In Ghost of Yōtei, 4 of the 32 captured pixel shaders with implicit-LOD samples feed such a read into texture coordinates | Minimal shader (GLSL, `glslangValidator -V --target-env vulkan1.3`; spirv-val reports nothing). One triangle covers only pixel (1,0) of a 2×2 target, so the other three pixels of its quad run as helper invocations; `value` of quad lane 0 (pixel (0,0)) is 100: ```glsl #version 450 #extension GL_KHR_shader_subgroup_ballot : require #extension GL_KHR_shader_subgroup_shuffle : require #extension GL_EXT_maximal_reconvergence : require layout(location = 0) out uvec4 result; void main() [[maximally_reconverges]] { uvec2 pixel = uvec2(gl_FragCoord.xy); uint value = 100u + pixel.x + 2u * pixel.y; float slope = dFdx(gl_FragCoord.x * gl_FragCoord.x); uint active_count = subgroupBallotBitCount(subgroupBallot(true)); uint helper_count = subgroupBallotBitCount(subgroupBallot(gl_HelperInvocation)); uint shuffled = subgroupShuffle(value, gl_SubgroupInvocationID & ~3u); result = uvec4(active_count, helper_count, shuffled, floatBitsToUint(slope)); } ``` What the covered pixel writes (the spec result with `MaximallyReconvergesKHR` is `4 3 100`; the fourth word is `dFdx` = 2.0 everywhere): | Execution modes | RX 9070 XT | iGPU | |---|---|---| | none | 1 3 100 | 1 0 0 | | `MaximallyReconvergesKHR` | 1 3 100 | 1 0 0 | | `RequireFullQuadsKHR` | 1 3 100 | 4 3 100 | | both | 1 3 100 | 4 3 100 | Without `MaximallyReconvergesKHR` the spec lets helpers be inactive for group operations other than derivative and quad operations, so the first row is only for comparison. A control shader that also calls `subgroupQuadBroadcast` gives `4 3 100 100` on both GPUs with every combination. Adding a third ballot (of a predicate that is true at run time) to the shader above drops the RX 9070 XT's `subgroupBallot(gl_HelperInvocation)` count from 3 to 0, while the shuffle still returns 100. The validation layer was loaded in all 24 runs and reported nothing. In our GPU test of a DPP read from a helper lane after `S_WQM_B64 exec`, declaring `RequireFullQuadsKHR` in the recompiled pixel shader makes the iGPU return the helper lane's value; the RX 9070 XT still returns the inactive-lane value. I haven't checked other vendors yet.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-19 14:52 UTC · original

One more AMD driver bug, numbered on from bugs 1 to 14 above; I'm reporting it to AMD the same way. Both GPUs run Adrenalin 26.10.1 (RX 9070 XT: LLPC; Ryzen 7600X iGPU: AMD proprietary shader compiler):

# GPU (compiler) What goes wrong Where it shows in Kyty
15 iGPU (RDNA2) vkCreateComputePipelines crashes inside the driver (access violation, the process exits with 0xC0000005) on a valid compute shader whose loop carries both an image sample result and the result of a subgroup shuffle whose index is itself a shuffle result. The RX 9070 XT compiles the same module. Demon's Souls on an RX 6800 XT (#2341): the game's compute shader 0x3bcd5b00b85a5447

The smallest crashing module is 1.8 KB of SPIR-V 1.3; spirv-val --target-env vulkan1.1 reports nothing. The loop:

%217 = OpGroupNonUniformShuffle %uint Subgroup %uint_0 %210   ; %210 = a value loaded from a storage buffer
%228 = OpGroupNonUniformShuffle %uint Subgroup %217 %217      ; index = a shuffle result
loop header: %232 = OpPhi (%uint_32 entry, %233 latch), %235 = OpPhi (%uint_32 entry, %236 latch)
             exit when %232 == 1 (loop-varying)
body:        %245 = OpSelect %211 %228 %235 ; a branch on FUnordNotEqual(1.0, bitcast(%245)) ...
             %291 = OpImageSampleExplicitLod %v4float (sampled image) %199 Lod 0.0
             %289 = OpBitcast %uint (component 0 of %291)
latch:       %233 = OpPhi (... %289 ...), %236 = OpPhi (... %277 ...)

One change at a time (iGPU result; the RX 9070 XT compiles every variant):

Variant iGPU
the game's shader (OpImageSampleDrefExplicitLod) crash
plain OpImageSampleExplicitLod instead of the Dref sample crash
without SignedZeroInfNanPreserve / SPV_KHR_float_controls crash
no shuffles (%245 selects %210) compiles
only the first shuffle (%245 selects %217) compiles
the sample replaced by an integer add compiles
the sample replaced by a storage buffer load compiles

So the crash needs both the shuffle-of-a-shuffle value entering the loop and an image sample result carried by a loop phi; the Dref form and the float-controls mode do not matter. A required subgroup size of 64 (VK_EXT_subgroup_size_control) crashes the same way.

**@⁠Nawid3333** on GitHub · 2026-11-19 14:52 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1624#issuecomment-7012642975) One more AMD driver bug, numbered on from bugs 1 to 14 above; I'm reporting it to AMD the same way. Both GPUs run Adrenalin 26.10.1 (RX 9070 XT: LLPC; Ryzen 7600X iGPU: AMD proprietary shader compiler): | # | GPU (compiler) | What goes wrong | Where it shows in Kyty | |---|---|---|---| | 15 | iGPU (RDNA2) | `vkCreateComputePipelines` crashes inside the driver (access violation, the process exits with 0xC0000005) on a valid compute shader whose loop carries both an image sample result and the result of a subgroup shuffle whose index is itself a shuffle result. The RX 9070 XT compiles the same module. | Demon's Souls on an RX 6800 XT (#2341): the game's compute shader `0x3bcd5b00b85a5447` | The smallest crashing module is 1.8 KB of SPIR-V 1.3; `spirv-val --target-env vulkan1.1` reports nothing. The loop: ``` %217 = OpGroupNonUniformShuffle %uint Subgroup %uint_0 %210 ; %210 = a value loaded from a storage buffer %228 = OpGroupNonUniformShuffle %uint Subgroup %217 %217 ; index = a shuffle result loop header: %232 = OpPhi (%uint_32 entry, %233 latch), %235 = OpPhi (%uint_32 entry, %236 latch) exit when %232 == 1 (loop-varying) body: %245 = OpSelect %211 %228 %235 ; a branch on FUnordNotEqual(1.0, bitcast(%245)) ... %291 = OpImageSampleExplicitLod %v4float (sampled image) %199 Lod 0.0 %289 = OpBitcast %uint (component 0 of %291) latch: %233 = OpPhi (... %289 ...), %236 = OpPhi (... %277 ...) ``` One change at a time (iGPU result; the RX 9070 XT compiles every variant): | Variant | iGPU | |---|---| | the game's shader (`OpImageSampleDrefExplicitLod`) | crash | | plain `OpImageSampleExplicitLod` instead of the Dref sample | crash | | without `SignedZeroInfNanPreserve` / `SPV_KHR_float_controls` | crash | | no shuffles (`%245` selects `%210`) | compiles | | only the first shuffle (`%245` selects `%217`) | compiles | | the sample replaced by an integer add | compiles | | the sample replaced by a storage buffer load | compiles | So the crash needs both the shuffle-of-a-shuffle value entering the loop and an image sample result carried by a loop phi; the Dref form and the float-controls mode do not matter. A required subgroup size of 64 (`VK_EXT_subgroup_size_control`) crashes the same way.
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#1624
No description provided.