[GH-ISSUE #1138] Investigate the effect of SPIRV-Opt on performance. #352

Open
opened 2026-02-27 21:05:52 +03:00 by kerem · 0 comments
Owner

Originally created by @R1chterScale on GitHub (Sep 28, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1138

May be worth investigating given the relatively limited optimisation passes that are currently utilised in the shader recompiler. Have confirmed that it works on dumped shaders and at the very least there is a notable reduction in file size. Though notably it must use the SPV_ENV_UNIVERSAL_1_6 environment as it errors out when confined to the Vulkan 1.3 spec with the error:

Structure id 33 decorated as Block for variable in PushConstant storage class must follow relaxed storage buffer layout rules: member 2 is an improperly straddling vector at offset 8

or some variation thereof.

Originally created by @R1chterScale on GitHub (Sep 28, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1138 May be worth investigating given the relatively limited optimisation passes that are currently utilised in the shader recompiler. Have confirmed that it works on dumped shaders and at the very least there is a notable reduction in file size. Though notably it must use the `SPV_ENV_UNIVERSAL_1_6` environment as it errors out when confined to the Vulkan 1.3 spec with the error: `Structure id 33 decorated as Block for variable in PushConstant storage class must follow relaxed storage buffer layout rules: member 2 is an improperly straddling vector at offset 8` or some variation thereof.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#352
No description provided.