Repository navigation
shader-compiler: Lower wave32 masked DPP prefixes and totals in wave allocation - #181
Conversation
|
im gonna hold on this for now, as locally, this caused compilation failures for myself. i will look into it |
663e87d to
b6a1d4c
Compare
|
@brcly , okay, did some updates tho. Can you try it once again? It also was failing on my machine before. Now it passes. |
|
Automated review against current main found a blocking correctness issue: the new wave32/fallback paths no-op DPP bodies without retaining the previous liveness proof for scratch registers. A later read of a nopped temporary can therefore receive stale/undefined data, and this also regresses the older wave64 pixel lowering. Please restore/adapt the dead-register proof and add a negative test. The current smoke test also does not write/verify the prefix result, so it cannot detect a numerical miscompile. |
5c0f31d to
b488e50
Compare
|
@tsunderejay, can you re-verify this PR with the latest changes? |
b488e50 to
eeb5ee0
Compare
|
Okay, nevermind. I rebased on main and it has more errors now. |
|
Gonna hold off on this just now as I'm working on a fix for differentiating AMD and Nvidia GPU's Main will be updated when it's implemented. I will eventually move to branches and such; it's just in this part of development. I'm trying to get something that's as close to "working" as possible before going after certain individual improvements. I didn't expect this repo to blow up as quickly as it did and for so many people to help drive it to a usable state. I thank you for your efforts so far, we'll get there! |
|
Okay. NP. Do you have any direction which I can look that that will not interfere with your upcoming changes? |
eeb5ee0 to
38842d2
Compare
|
Rebased on top of main with applying changes. |
38842d2 to
679e2fe
Compare
|
Rebased once again + ran GPU tests. |
42c8c2d to
c1758cf
Compare
|
Thanks for sticking with this through the rebases. I tested it merged onto current 1.
|
| Build | Requests that translate |
|---|---|
main |
35,832 |
| with this PR | 35,830 |
None are gained and two are lost (009e1e82…, 1dc7a878…). Both translate on main and are refused here with wave reduction in divergent control flow. It looks like the new check rejects programs the existing path already handles. Could it fall back to the previous behaviour when it can't prove the new lowering?
On these recorded requests the PR doesn't translate anything main refuses. Is there a program it newly enables? That would make a good coverage case.
c1758cf to
e162cb2
Compare
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
e162cb2 to
0fd78a7
Compare
|
Hello. Thanks for your reply.
|
Summary
Lower wave32 masked DPP prefixes and totals in wave allocation. prepare now handles prefixes (always) and pixel totals (always); compute totals are left for wave_sum. Added lower_problematic_totals/total_to_wave_active_sum in wave_alloc.rs and, in the lockstep-failure branch of pipeline.rs, lowers the totals that wave_sum rejects on divergent control flow to WaveActiveSum before re-validating. Extracted check_region from wave_sum.rs so wave_alloc reuses the exact per-region control-flow check. Full suite: 303 lib + 2 integration pass; 30/32 target shaders compile (the 2 remaining fail on a pre-existing, unrelated constant-lane gather limitation).
Verified on Lanes
A pull request is not merged until Lanes passes on a GPU. Run:
python tuxbox.py checkpassed on this branchGPU, driver and backend:
Paste the summary printed at the end:
Checks
CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of
tuxbox-d3d12.If this pull request changes evidence JSON, regenerate the results table and the progress map and include both files:
python tuxbox.py status > docs/RESULTS.md python tuxbox.py status --svg docs/progress.svg