summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-01-13 15:07:18 -0800
committerKenneth Graunke <[email protected]>2016-01-14 21:32:59 -0800
commit3657cbf24f3b0baf7e3382e572d97a36b0ed4103 (patch)
tree45231be098a9d612ead3a045eb0c76e34958c05d
parenta3500f943e2c61c0aed043108132f35b79d16676 (diff)
i965: Apply add_const_offset_to_base for vec4 VS inputs too.
This shouldn't hurt anything, and I'm about to introduce a pass that will want it. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_nir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 55ba732dec2..935529a6003 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -220,6 +220,11 @@ brw_nir_lower_inputs(nir_shader *nir,
*/
nir_lower_io(nir, nir_var_shader_in, type_size_vec4);
+ /* This pass needs actual constants */
+ nir_opt_constant_folding(nir);
+
+ add_const_offset_to_base(nir, nir_var_shader_in);
+
if (is_scalar) {
/* Finally, translate VERT_ATTRIB_* values into the actual registers.
*
@@ -229,11 +234,6 @@ brw_nir_lower_inputs(nir_shader *nir,
*/
GLbitfield64 inputs_read = nir->info.inputs_read;
- /* This pass needs actual constants */
- nir_opt_constant_folding(nir);
-
- add_const_offset_to_base(nir, nir_var_shader_in);
-
nir_foreach_function(nir, function) {
if (function->impl) {
nir_foreach_block(function->impl, remap_vs_attrs, &inputs_read);