However, I am curious on how 1/2 helps valgrind, since I don't see how a larger `ins->src_count` can cause problems in the `ins->handler_idx == VKD3DSIH_DEF` and `ins->handler_idx == VKD3DSIH_DEFI` branches. I am missing something? Additional parameters for valgrind, perhaps?
No, it only shows up with some local patches for sm1 -> spirv. But I did use valgrind to find it, so, credit where it's due.