28b87260
by Henri Verbeet at 2026-02-05T18:02:31+01:00
vkd3d-shader/ir: Properly determine the defined block count in vsir_cfg_init(). (Valgrind)
Blocks are added by label index, not sequentially, so we need the
highest value of "label" for which we created a block. In many cases
we'd end up with the same value for "defined_block_count" regardless,
but hull shader phases may have label indices higher than the number of
labels in the phase.
Encountered in hlsl/tessellation-patch-vars.shader_test.