tests: Vulkan compute tests fail on RX 9070 XT in device setup #2036

Open
opened 2026-11-26 10:12:33 +00:00 by github-bot · 0 comments
Owner

@⁠Nawid3333 on GitHub · 2026-10-31 21:29 UTC · original

What happens

Since ee034be4b ("shader: rely on robustBufferAccess2 for storage buffer bounds"), the Vulkan cases of shader_recompiler_compute_tests fail on my AMD Radeon RX 9070 XT (Windows 11, AMD driver 26.10.1, Vulkan 1.4.359). Device setup aborts before any test runs.

Why

Two checks in tests/ShaderRecompilerComputeTests.cpp (Vulkan device setup) fail on this driver:

  1. The harness requires robustness2_properties.robustStorageBufferAccessSizeAlignment == 1u ("byte-granular per-pipeline robustBufferAccess2 is not supported"). The driver reports 4. The Vulkan spec allows 1 or 4.

  2. The harness requests VK_EXT_pipeline_robustness by name in the device extension list. Pipeline robustness is core in Vulkan 1.4 and this driver does not list the EXT name, so vkCreateDevice returns VK_ERROR_EXTENSION_NOT_PRESENT. The emulator itself does not request this extension.

Effect

  • Every Vulkan case of that binary cannot run on this GPU, for example buffer_cache_dirty_gc and buffer_cache_ranges.
  • Games are not affected: the emulator treats robustBufferAccess2 as a feature switch (vulkanWindow.cpp robust_buffer_access_enabled, shader bounds checks otherwise) and does not require byte-granular alignment.

I relaxed both checks locally and buffer_cache_dirty_gc passes. buffer_cache_ranges then stops on the D24S8 depth-stencil format (format=129), which #1811 addresses.

Possible fix

One direction: require only the robustBufferAccess2 and pipelineRobustness feature bits, queried through the core 1.4 features or through the EXT when the driver lists it, and run the byte-granular cases only when the alignment is 1; otherwise take the shader bounds-check path the emulator already uses on such drivers.

**@⁠Nawid3333** on GitHub · 2026-10-31 21:29 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2036) ## What happens Since ee034be4b ("shader: rely on robustBufferAccess2 for storage buffer bounds"), the Vulkan cases of `shader_recompiler_compute_tests` fail on my AMD Radeon RX 9070 XT (Windows 11, AMD driver 26.10.1, Vulkan 1.4.359). Device setup aborts before any test runs. ## Why Two checks in `tests/ShaderRecompilerComputeTests.cpp` (Vulkan device setup) fail on this driver: 1. The harness requires `robustness2_properties.robustStorageBufferAccessSizeAlignment == 1u` ("byte-granular per-pipeline robustBufferAccess2 is not supported"). The driver reports 4. The Vulkan spec allows 1 or 4. 2. The harness requests `VK_EXT_pipeline_robustness` by name in the device extension list. Pipeline robustness is core in Vulkan 1.4 and this driver does not list the EXT name, so `vkCreateDevice` returns `VK_ERROR_EXTENSION_NOT_PRESENT`. The emulator itself does not request this extension. ## Effect - Every Vulkan case of that binary cannot run on this GPU, for example `buffer_cache_dirty_gc` and `buffer_cache_ranges`. - Games are not affected: the emulator treats robustBufferAccess2 as a feature switch (`vulkanWindow.cpp` `robust_buffer_access_enabled`, shader bounds checks otherwise) and does not require byte-granular alignment. I relaxed both checks locally and `buffer_cache_dirty_gc` passes. `buffer_cache_ranges` then stops on the D24S8 depth-stencil format (`format=129`), which #1811 addresses. ## Possible fix One direction: require only the robustBufferAccess2 and pipelineRobustness feature bits, queried through the core 1.4 features or through the EXT when the driver lists it, and run the byte-granular cases only when the alignment is 1; otherwise take the shader bounds-check path the emulator already uses on such drivers.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:12:33 +00:00
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#2036
No description provided.