nir: Return correct size in nir_assign_io_var_locations()
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 17 May 2019 12:56:45 +0000 (14:56 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Mon, 8 Jul 2019 12:14:53 +0000 (14:14 +0200)
commitf3e2c65041f274901018bbb5018e75b2f8ee4d8b
treea6d7ecf4cdb1a68649a23d5a8aa17bc707290b60
parentdd81d8808d30459592a1fff2673e768951426364
nir: Return correct size in nir_assign_io_var_locations()

It was double-counting cases where multiple variables were assigned to
the same slot, and not handling the case where the last variable is a
compact variable.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/nir/nir_linking_helpers.c