Repository navigation
fix(agc): refuse mesh-path draws on a device without mesh shaders before validating them - #6523
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Tested on Linux x86-64 (Release build, lavapipe / llvmpipe LLVM 20.1.2), with 4e35f3a merged into main 44df216:
AI-assisted: yes (Claude Code) |
|
Rebase handoff — rebased onto current Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
To pick it up: Head is |
|
Correction on the |
4e35f3a to
68e90bb
Compare
|
@blawesom thank you for the rebase and the full-suite run. I've taken it as is: the branch is now at AI-assisted (Claude Code). |
|
A run on a GPU that has mesh shaders, to check that nothing changes where the new refusal does not apply: NVIDIA GeForce RTX 4090, driver 617.42, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release,
AI-assisted: yes (Claude Code) |
…ore validating them A draw on the mesh path was validated before its pipeline checked for mesh shader support, so on a device without VK_EXT_mesh_shader (an RDNA1 RX 5700 XT) Sackboy: A Big Adventure (PPSA01289) stopped on "subgroup capability 61 is unsupported for shader stage 128" instead of the actual cause. ValidateShaders now takes the device's mesh shader support and refuses such a draw first with "device does not support mesh shaders". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
68e90bb to
60a2aa4
Compare
Requested by billy
What
Before: on a device without
VK_EXT_mesh_shader, a draw on the mesh path (an NGG geometry or fast-launch program) was validated before anything checked for mesh shader support. A mesh shader that uses subgroup operations then stopped on a misleading error. Sackboy: A Big Adventure (PPSA01289) on an AMD Radeon RX 5700 XT (RDNA1, no mesh shaders on AMD's Windows driver) stopped with:The
device does not support mesh shaderscheck inDraw.cppcame only after validation.After:
ValidateShaderstakes the device's mesh shader support and refuses a mesh-path draw first, so the same draw stops with:Nothing new runs. This only reports the real cause, so a tester on a GPU without mesh shaders knows the draw cannot work there rather than chasing a subgroup problem.
How
ValidateShadersgets a trailingmeshShaderparameter (defaulttrue, so existing callers and tests keep their behaviour), andDraw.cpppassescontext.meshShader. The check sits right after the existing path and stage-configuration checks, before any shader is inspected.Graphics.cppadds a case: the decoded NGG mesh state is validated withmeshShaderfalse and must fail with the new message.Tested
Windows 11 (26200), MinGW-w64 GCC 15, Release, AMD Radeon RX 5700 XT (driver 32.0.21045.5002), on
mainb7cedd900.agc_driver_graphicspasses, and fails with the check removed.tools/check_conventions.py --base origin/mainpasses. Sackboy (PPSA01289), with #6236 andAPS5_PLAYGO_UNLISTED_CHUNKS=absent, now stops withdevice does not support mesh shadersinstead of the subgroup error. Not tested: Linux, a GPU with mesh shaders (the check passes there becausemeshShaderis true).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code