tests: skip rasterization cases instead of aborting the suite on limited GPUs #875
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!875
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/875/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@theantipopau on GitHub · 2026-09-27 21:45 UTC · original
theantipopau:vk-harness-skip→main· +102 −52 · 1 files · 1 commits · merged 2026-09-28 21:41 UTCSummary
VulkanHarnesstreated a missing GPU capability as a test failure. Theconstructor called
so any device lacking one of eight production features never reached a single
test case. The binary aborted during construction and took the entire suite
with it — 79 host-side and compute cases that have nothing to do with
rasterization.
This is a hard abort, not a skip. It means the suite is only runnable on a
GPU that happens to expose the full production feature set, which is why this
has gone unnoticed: Windows CI only builds this target and runs a
-R "^(audio_out2_port|ime_dialog|lru_cache|...)$"subset, so no automatedrun has ever exercised the failure.
Before
Local AMD device, no
VK_EXT_attachment_feedback_loop_dynamic_state:Zero test cases executed.
After
79 cases now execute (55 host-side, 24 compute) where 0 did before.
What changed
m_rasterization_supportedis computed in the constructor and reported viaRasterizationSupported(). It is no longer a fatalRequire.depthClipEnable,depthClipControl,colorWriteEnable,attachmentFeedbackLoopLayout,attachmentFeedbackLoopDynamicState,provokingVertexLast) and the sixcorresponding extensions are only requested when the device reports them.
Requesting an unsupported feature fails
vkCreateDevice, so the chain has tobe built conditionally.
RunGraphicsCasecounts and skips graphics cases instead of running them.mainthat rasterize are gated. Host-side checks(
CheckRenderTargetFormatContract, the PM4 parser checks, opcode coverage,…) and every compute case run unconditionally.
so it cannot drift from the number of guarded calls.
Devices with the full feature set
m_rasterization_supportedistrue, every extension and feature is requestedexactly as before, every guard is taken, and
SkippedCaseCount()is0. Thispath is unchanged.
Testing
compute cases execute, no abort.
(
ScalarSaveExecOps); it is a real failure in the recompiler, not aconsequence of this change, and is being looked at separately.
@coderabbitai[bot] on GitHub · 2026-09-27 21:50 UTC · original · edited 2026-09-28 20:38 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
5ccd705b-d272-43d2-a06b-3fdc10d132b4📥 Commits
Reviewing files that changed from the base of the PR and between 8a238b35b778169ce2702c250755fb7a73b63479 and
f00124e79e.📒 Files selected for processing (1)
tests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
Walkthrough
The Vulkan test harness now detects whether all required production rasterization features are available. When they are unavailable, device creation omits rasterization-specific feature enables and extensions. Rasterization-dependent graphics cases and device checks are skipped, while host-side checks continue. The runner reports skipped checks and graphics cases.
Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
f0012Devices without rasterization support can run the remaining checks with skips reported. No actionable merge-blocking risk remains.
Architecture Summary
Architecture risk: 🔵 Low · up to
f0012The change affects 1 system.
Changed systems:
testsArchitecture concerns
No architecture-level concerns identified.
Review details
Systems and components
Before / after behavior
VulkanHarnessadds accessors for rasterization support and the skipped-case count, plus a method to increment that count.VulkanHarnessadds state recording whether rasterization is supported and how many graphics cases were skipped.🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@ -16132,0 +16144,4 @@std::printf("[host] ProductionRasterization unavailable, rasterization cases ""will be skipped\n");}@coderabbitai[bot] on GitHub · 2026-09-27 21:50 UTC · original
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 16987
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 41893
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 42420
Derive runtime feature flags from device enablement.
When
m_rasterization_supportedis false, device creation omits the feedback-loop and provoking-vertex extensions.EnsureRuntimeContext()still sets both flags totrue. A feature-dependent render path can then selecteAttachmentFeedbackLoopOptimalEXT, issuesetAttachmentFeedbackLoopEnableEXT, or add provoking-vertex pipeline state without the enabled extensions.The currently ungated
CheckImageTransitionStateandCheckPm4*checks exercise image barriers and PM4 state. They do not themselves trigger this Vulkan path. Keep the runtime context consistent with the device:Suggested fix
@ -35543,0 +35580,4 @@#endif} else {skipped_device_checks = true;}@coderabbitai[bot] on GitHub · 2026-09-27 21:50 UTC · original
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 1946
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 17292
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 27853
Run
CheckNativeIndirectDispatch()without the rasterization gate.CheckNativeIndirectDispatch()uses compute shaders,DispatchDirect,CpOpDispatchIndirect, and buffer-cache operations. It does not create a graphics pipeline or issue rasterization commands. WhenRasterizationSupported()is false, the current gate skips this compute check even though its required device features remain enabled. Move this call before the gate.Suggested fix
📝 Committable suggestion
@coderabbitai[bot] on GitHub · 2026-09-27 21:50 UTC · original · reviewed
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
ee0d5843-91b1-4c42-84a8-6aa13e5c077c📥 Commits
Reviewing files that changed from the base of the PR and between
421684e75fand 8a238b35b778169ce2702c250755fb7a73b63479.📒 Files selected for processing (1)
tests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
@theantipopau on GitHub · 2026-09-27 22:06 UTC · original
What this unlocks, measured
With the abort replaced by a skip, the suite runs end to end on a device that
lacks the production rasterization features. Full run:
Failnormally callsstd::abort(), so the six were enumerated by running oncewith a temporary non-fatal
Fail(not part of this PR). Two of the eightoriginally found have been fixed in #876; the remaining six are listed below.
ScalarSaveExecOpsScalarOrn2SaveexecUsesSourceOrNotExecVectorFractF16CapturedAndEdgesFloatInlineConstantF16UsesNumericValueBufferStoreFormatXyzwFloat16ConvertsComponentsBranchVccnzUsesWaveMaskBranchVccnzUsesCarryProducedWaveMaskBufferStoreFormatXAddTidUsesLaneIndexNone of these are reachable today on any machine that is missing one of the
eight rasterization features, which is why they have survived.
The three f16 cases: 1 ULP
Both are exactly one ULP low, in the last mantissa bit — the signature of a
rounding-mode difference rather than a wrong computation. Both case names
(
...Captured...) suggest the expectations were read back from a hardware dump,so this may be host rounding rather than a recompiler defect. Flagging rather
than claiming a bug: it needs someone who knows which rounding the emitter is
supposed to produce.
The remaining launch-configuration cases
BranchVccnzUsesWaveMask,BranchVccnzUsesCarryProducedWaveMaskandBufferStoreFormatXAddTidUsesLaneIndexshare the root cause diagnosed in #876— the harness dispatches a 1x1x1 workgroup by default, so
OpGroupNonUniformBallotsees one invocation and wave-mask results aredegenerate. These three do set
threads_numexplicitly (to 4), so they arelaunching a populated 4-lane subgroup and are a different problem:
Lane 0 of each 4-lane group takes the branch and the other three do not. These
look like genuine
V_CMP/V_ADDCwave-mask or workgroup-id reconstructionissues rather than harness configuration, and I have not diagnosed them.
Practical note
shader_recompiler_compute_testsis not in any CI job — the Windows job buildslauncherand runsctest -R "^(audio_out2_port|ime_dialog|lru_cache|resource_tracking|scalar_provenance|resource_materialization|shader_vertex_metadata|virtual_memory_allocation)$".So nothing in CI would have caught the original abort either. A cheap
regression guard would be a job that at least constructs the harness and
reports the skip, on whatever GPU the runner has.