Repository navigation
fix(agc): pin spanned waves to 32 lanes on Intel's Windows driver - #24300
oneandonlydean merged 1 commit into
Conversation
Since boykopovar#8004 a spanned wave64 compute program on a device with compute subgroups narrower than 32 lanes is built for any subgroup size. Intel's Windows driver (UHD Graphics a7a8, 101.7084) builds DOOM Native Port's present program at SIMD16 and its output has wrong 16-lane runs every frame; pinned to 32 lanes it has none. The cause is not found, so that driver keeps the 32-lane layout.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
Unable to conduct the review because the repository reader is not available through the tools provided in this session, so the prepared review files and pinned source could not be inspected.
What I ran
No commands; repo_read.py could not be run.
Results
| Check | Result | Note |
|---|---|---|
| Review inputs | not run | Reader access unavailable |
| Source audit | not run | Changed files not inspected |
Findings
Blocking
None verified.
Non-blocking
None verified.
Not verified
The description, commits, diff, manifest, changed-file texts, source code at the pinned head, and checks were not read or run. No files can be reported as read or excluded.
To get this to a good state
Provide a session with access to the specified repository reader and review folder, then inspect the changed files and produce the draft verdict.
|
Head No new failures and no new validation messages on either GPU.
Layer runs used AI-assisted: yes |
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
The changed line only takes effect when the Vulkan driver id is This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
|
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.
|
mihiii1337
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The policy change is scoped to VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS, leaves Wave64 spanning enabled, and only disables the any-subgroup-size path whose ballot implementation requires full 32-lane host subgroups. I found no blocking issue in the production line or debt fragment.
What I ran
Reviewed exact head 6baf0ecb1be2a15ea45761ad02e4bb8a611ee4ba, cleanly merged into main 66328cd1ff35c66e90d12c86c9bc90caaac5fef2 as tree 0c97a062595c6f335d1eac55faca72cae183ebf9.
On Windows 11 with WinLibs GCC 15.2.0 r7, I ran agc_driver_spanned_ballot_sequence and agc_driver_lds_mask_waterfall in three fresh CTest processes per arm on the physical Intel Raptor Lake-S Mobile GPU (8086:a78b, driver 101.6127 / Vulkan 1.3.295). The Intel ICD was pinned, Vulkan was required, the shader cache was disabled, and Khronos Validation 1.4.369 with synchronization validation was inserted in every process.
Results
main: both tests passed 3/3; the production log reportedspans full subgroups: 1, of any size: 1.- PR merge: both tests passed 3/3; the production log reported
spans full subgroups: 1, of any size: 0. - Both fixtures explicitly completed their two-lane and spanned cases in every run. The fixture executables were byte-identical between arms; only
libSceAgcDriver.prxchanged among those three binaries. - Across all 12 Vulkan test processes: zero skips, VUIDs, synchronization hazards, missing-layer errors, or other GPU candidates.
tools/debt_fold.py --checkandtools/check_conventions.py --base 66328cd1ff35c66e90d12c86c9bc90caaac5fef2passed. Hosted Windows, conventions, eligibility, and portability checks are green at the reviewed head.
Findings
Blocking
None.
Non-blocking
None.
Not verified
This is a second Intel Windows device/driver data point and confirms the intended production policy branch plus the synthetic dispatches. It does not reproduce the author's original SIMD16 wrong-result case or test the reported DOOM image corruption/title path. No RTX rerun was needed because the changed condition is false there.
AI-assisted: yes.
What
Since #8004, a spanned wave64 compute program on a device whose compute subgroups can be narrower than 32 lanes is built with
spannedAnySubgroup: no required subgroup size,REQUIRE_FULL_SUBGROUPS | ALLOW_VARYING_SUBGROUP_SIZE, and the three-barrierwave_exchangeballot. #8004 was measured on Mesa ANV (Intel Arc, Linux).On Intel's Windows driver this gives wrong results. DOOM Native Port (PPSA99666, catalog 1.1.1) converts its 320×200 frame to the display buffer with one wave64 compute program,
0x202c81800, that spans. The driver builds it at SIMD16, and every frame shows short horizontal dashes in 16-pixel runs that move from frame to frame. A run of 16 neighbouring pixels is 16 neighbouring lanes, one host subgroup. The same program pinned to 32 lanes (#7922's layout) has none.The SPIR-V of that program is structurally convergent: every
OpControlBarriersits in a block that all invocations reach, the loop exits on the wave ballot, andSubgroupIdis declared but never loaded. I did not find the cause, so this change only keeps that driver at the pinned 32-lane layout. Spanning stays on there.VulkanDevice.cpp:spannedAnySubgroupis not set forVK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS.This gives up #8004's narrower SIMD widths on that driver, so register-heavy spanned programs compile at SIMD32 there again.
Tested
Windows 11 Home 10.0.26300, Intel UHD Graphics (
8086:a7a8, Raptor Lake), driver 101.7084, Vulkan 1.4.323, WinLibs GCC 15.2.0 r7 UCRT, Release.mainis86d2ba260c; the uncommitted_putenv_sguard of #19899 inUploadCacheReadOnlyFlush.cppwas needed to build.DOOM Native Port, title screen, 25 s from a cold start, no input,
APS5_DUMP_FRAMES=320 APS5_DUMP_FRAMES_EVERY=1 APS5_DUMP_SCALE=2. The count is the number of pixels in frames 201–298 that differ by more than 40 from both neighbouring frames while those two agree within 6, i.e. pixels wrong for exactly one frame:of any sizelog linemainA second count takes the most common value of each pixel of the menu text (
DOOM SHAREWARE: EPISODE 1,ADD GAMES...and the two lines at the bottom) over frames 201–300 and counts pixels more than 40 away from it:mainWith this PR the menu frames hold two pictures that differ only in 54 pixels at the skull cursor (its blink); on
mainall 100 are different. In a level (Episode 1, started and walked through withtools/pad_timeline.py), the last 300 frames with this PR have no pixel of the status-bar labels or the frame border away from its usual value. I did not getmaininto a level in the same scripted run, so there is no in-level count formain.The same frames are not black in either column. On the earlier
maine7b62639d1, with the same pin applied through a temporary local switch, the counts were 225724 and 220537 against 0 and 0.APS5_PIPELINE_STATS=1reportssubgroup=16for that program without the pin.Focused tests with the validation layer,
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest --test-dir build -R 'spanned|request_serializer|agc_shader_memory|compute_pipeline_capture|lds|ballot|wave|subgroup|readlane|dpp|permlane' -j 4 -V, layer 1.4.363 (LunarG SDK 1.4.363.0):Insert instance layerwas not found but was requestedVUID-mainagc_driver_pixel_lds_limitagc_driver_pixel_lds_limitagc_driver_pixel_lds_limitis the Intel Windows device loss #21683 fixes.spanned ballot sequenceandLDS mask waterfallpass both spanned and at two lanes on both sides.ctest -R '^agc'with this PR (2029 tests): 8 fail, all independent of spanning on this machine. Four are fixed by #21683, #21713, #21741 and #21749, and three by #20831.agc_driver_gds_m0_basefails because its 64-bit GDS atomic case (3761cef) needsshaderBufferInt64Atomics, which this device lacks.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)