[spirv] improved spir-v shader opt #239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "spirv-opt"
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?
increases speed ~tenfold for Spir-V output optimization
Co-authored-by: wildcard nubieluv@gmail.com
Signed-off-by: crueter crueter@eden-emu.dev
@ -487,3 +505,4 @@
std::vector<u32> EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_info,
IR::Program& program, Bindings& bindings, bool optimize) {
EmitContext ctx{profile, runtime_info, program, bindings};
// Reserve capacity for interfaces to reduce allocations
Do not reserve such a low amount of memory, reserve a whole page ATLEAST (4096 / sizeof(T))
https://www.youtube.com/watch?v=algDLvbl1YY
Yes right I forgot to add the comment //guess, increase or decrease accordingly😆
d3e3467b86
to458c09e553
458c09e553
toeabcaa2f3e
@wildcard, do you want to make the change noted by Lizzie or merge this as is?
just remove the reserve completely for now same as the original
@wildcard wrote in #239 (comment):
Do you want to make the change so I can merge?
done, removed the reserve
Approved for merge.