nir,zink: Redefine flat_mask in terms of I/O locations
Robust against separable shaders, and still makes sense for lowered I/O drivers, whereas just counting FS variables and expecting them to match with the VS is... questionable.
Closes !26379 (closed) (also follow up to)
Edited by Antonino Maniscalco