i965: Move multiply by 4 for VS ATTR setup into the scalar backend.
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 May 2017 23:56:15 +0000 (16:56 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 May 2017 22:07:47 +0000 (15:07 -0700)
commit5e832302dcd10ab2d7f50b2f991129d8969273cb
tree6ef865f2e112d95bf7b52859fb2fdc10d2ef3e0d
parent36764b6923620f3e3c5f547b12d1201e1498c9c6
i965: Move multiply by 4 for VS ATTR setup into the scalar backend.

The vec4 backend will want to count in units of vec4s, not scalar
components.  The simplest solution is to move the multiplication by 4
into the scalar backend.  This also improves consistency with how we
count varyings.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_nir.c