docs: record how EXEC written as a value is read on narrow subgroups #800
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/800"
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?
Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-06T03:34:23Z.
What
Adds a TechnicalDebt line for a
mainlimitation found on #751, as suggested there.laneCount1 inSpirvEmitter::Emit), andLaneIdlowers togl_SubgroupInvocationID.TranslationContext::threadBit(ExecMask.cpp) then reads an EXEC written as a value (s_mov_b32/s_mov_b64) at bitLaneId & 31of EXEC_LO, so every lane at or above the host subgroup size (lanes 8..63 on llvmpipe, in wave32 and wave64) reads the bit of a lower lane. An EXEC from a compare stays consistent because its ballot is subgroup-local too.agc_driver_image_sample_derivatives, and #751's broadcast check).Tested
main481c85e7: configure-DBUILD_TESTING=ON, full build,--target libs,ctest:ctest --output-on-failure)VK_DRIVER_FILES): 357/357 pass;agc_driver_flat_storeis left out there because it takes several minutes on Windows llvmpipev_mov_b32probe on the Intel UHD iGPU with compute subgroups forced to 8 and 16 lanes.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T05:34:01Z.
Thanks for writing this down. One wording check, if I'm reading
threadBitright: the bit index isLaneId & 31, andLaneIdis the hostSubgroupLocalInvocationId. On an 8-wide subgroup that means guest lane 12 would read bit 4 of EXEC_LO rather than bit 12, so lanes 8..31 would be affected too, not only 32..63. If that matches what you saw, maybe "lanes at or above the host subgroup size read bit (invocation id) of EXEC_LO" would describe it more exactly. If narrow subgroups map guest lanes some other way that I've missed, the line is fine as it is.Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-06T05:43:57Z.
You read it right.
LaneIdis the subgroup invocation id, so on an 8-wide subgroup guest lane 12 reads bit 4 of EXEC_LO, and every lane from the subgroup size up is affected, in wave32 as well as wave64. That matches the #751 probe: a wave32 EXEC of 0x3c3ca5a5 wrote lanes 0xa5a5a5a5. The line now reads "at bit (subgroup invocation id) of EXEC_LO, so lanes at or above the subgroup size read a lower lane's bit". The commit message and description are updated, and the branch is rebased ontomain481c85e7.