Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/normalise.c:
elsenormaliser->temp_is_instance_id |= 1ull << ins->dst->reg.idx[0].offset;*instruction_count = 0;return VKD3D_OK;- }
- if (normaliser->phase_body_idx == ~0u)
normaliser->phase_body_idx = normaliser->instructions.count;- if (ins->handler_idx != VKD3DSIH_RET)
return VKD3D_OK;- count = normaliser->instructions.count - normaliser->phase_body_idx;
- if (!shader_instruction_array_reserve(&normaliser->instructions, count * (normaliser->instance_count - 1)))
return VKD3D_ERROR_OUT_OF_MEMORY;
Maybe this was meant to be a call to `shader_normaliser_new_instructions()`?