perf(shader): compute v_dot4 with packed integer dot products #5337
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5337"
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 ErenYeager1836 on 2026-10-13T17:26:23Z.
What
v_dot4_i32_i8,v_dot4c_i32_i8andv_dot4_u32_u8extract the four bytes of each source, multiply them pairwise and add the products to the accumulator. On GPUs supportingVK_KHR_shader_integer_dot_productwith packed 4x8-bit dot products, this maps to hardware instructions (OpSDot/OpUDotwithPackedVectorFormat4x8Bit, e.g.IDP.4Aon NVIDIA) instead of individual byte extracts and arithmetic.DotProductandDotProductInput4x8BitPackedSPIR-V capabilities when supported by the Vulkan target.SDot4x8andUDot4x8lowered directly to packed dot instructions.core/libs/prx/libSceAgcDriver/tests/execution/IntegerDot.cpp.Carried from @karanvora2599 with author attribution preserved.
Tested
agc_driver_integer_dottest suite in AgcDriver execution tests. Passes conventions check.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)Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-13T21:53:51Z.
@ErenYeager1836, this is #4061 rebased onto
main. #4061 was closed because no title's shaders runv_dot4_*: there are none in fma-rc's 837 shaders from 11 titles, so there's no frame to measure it on. Unless a title you run uses it, I'd close this one. If one does, its trace is what's missing.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:28:31Z.
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.
Pull request closed