Repository navigation
Conversation
…ntShaderBarycentric
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 04c27d769 on Windows 11: pytest tests/test_make_game_translator_flags.py -q -> 26 passed, 7 subtests passed; git diff --check clean.
--bary-fallback is now enabled by itself when the probed GPU lacks fragmentShaderBarycentric, instead of requiring the user to pass it; an explicit off still wins. The added subtests cover the automatic-on, the explicit choice and the already-capable device. No blocking issue.
|
On an Intel UHD Graphics 770 (Windows, driver 32.0.101.7088), the real device probe reported
For the follow-up already noted on #4309, the same computed fixture can check the C++ helper once it consumes |
|
Tested Commands and results:
Red control: AI-assisted (Devin). |
Kam471
left a comment
There was a problem hiding this comment.
Superseded: #4772 covers the same automatic flag with a broader rule (--bary-fallback and --mesh-compute, driven by the new vk_subgroup_info feature fields) and conflicts with this branch in make_game.py (git merge-tree refs/remotes/pr/4772 refs/remotes/pr/4762 -> exit 1). #4772 was verified at 17d40e2 (116 passed, 100 subtests). Consider closing this one in its favor.
whattheflop
left a comment
There was a problem hiding this comment.
AI-assisted Windows CPU integration check of this head 04c27d76 and #4760 690b9711 on 98fa503f. The edits merged cleanly in scratch, tree 2a89c3cd.
Across 19 synthetic build invocations, both shards and FSPX received the same flags. Changing optimization or barycentric fallback independently invalidated shader reuse, the shard plan and the FSPX fingerprint. Identical settings reused all three. An inconclusive probe preserved recorded automatic fallbacks. Two hand-written fixtures produced eight Vulkan 1.2 modules across both fallback and optimization settings. All eight validated, and optimization preserved the expected CPU output words and fragment interfaces. Focused pytest on uv CPython 3.12.13 passed 25 tests and seven subtests.
One docs follow-up: docs/design.md:425 still says the device never selects --bary-fallback. This head selects it on per_vertex_inputs=false. The raw-barycentric geometry stage tracked in #4309 is still a separate runtime dependency.
|
Closing in favour of #4772, which makes the same default ( I checked #4772 at |
Item: new BUILD item, claimed at #4571 (comment) (my sweep finding #4571 (comment)). Related: #804 (the flag), #4309 (runtime half), #3898.
What broke.
--bary-fallbackexists, butmake_game.pynever selects it. Wheretools/vk_subgroup_info.pyreportsper_vertex_inputsfalse (nofragmentShaderBarycentric, or MoltenVK) it turned on only--f16-interp-fallback, so on an Intel UHD 770 the whole corpus was translated withBaryCoordKHR. In my #4628 sweep (480 of 12,101 pixel shaders) 207 of them could not be created on that GPU for that reason. Repro on main:python -I tests/test_make_game_translator_flags.pyafter pointingper_vertex=Falseatrun_mainshows only--f16-interp-fallbackin the flags.Fix. In that case
main()also turns on--bary-fallback(explicit flags still work, a probe that can't answer keeps a recorded flag like the other automatic ones, and a probe that answers still decides). The--bary-fallbackhelp says so. The 8 shaders in the sample with a computed I/J pair are still refused until #3898; the shaders that read raw barycentrics need the geometry shader of #4309 at draw time.Tested. Linux, Python 3.12.16:
tests/test_make_game_translator_flags.py(26, the device test now covers both flags and an explicit--bary-fallback; the probe-failure tests keep three automatic flags),tests/test_docs_cli_flags.py,tests/test_make_game_argparse.py,_wave64,_preflight.Negative control. With
make_game.pyfrom upstream/main the translator-flags tests fail (4 failures).Real-shader before/after pass counts on Intel are on #4628's follow-up and will be posted on this PR.
AI-assisted.