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>
This commit is contained in:
Jason Ekstrand
2017-05-03 16:56:15 -07:00
parent 36764b6923
commit 5e832302dc
2 changed files with 2 additions and 2 deletions

View File

@@ -279,7 +279,7 @@ brw_nir_lower_vs_inputs(nir_shader *nir,
int attr = nir_intrinsic_base(intrin);
int slot = _mesa_bitcount_64(nir->info.inputs_read &
BITFIELD64_MASK(attr));
nir_intrinsic_set_base(intrin, 4 * slot);
nir_intrinsic_set_base(intrin, slot);
}
}
}