Skip to content

microsoft/compiler: Handle holes in driver_location when adding sysvals

All of the full runtime+compiler stacks reassign these driver_location values to compact them and sort between shader stages, but for the spirv2dxil tool, we leave the original shader's "location" intact. That means that there can be holes in the driver_location space, and simply counting how many inputs there are can lead to collisions. So instead place all sysvals after the last-used driver_location.

Closes: #7811 (closed)

/cc @RandomShaper @egalli

Merge request reports