diff options
author | Matt Turner <[email protected]> | 2015-11-19 21:48:47 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-11-20 17:39:34 -0800 |
commit | 0684aed8abc51308945ead050d2452b522937c0a (patch) | |
tree | 8dc7acb52e993181dcc8101c365d212b4c41019e /src/mesa/drivers/dri | |
parent | c875e3cdd21811ad6669160d59fa39a4526ef872 (diff) |
i965/vec4: Initialize nir_inputs with src_reg().
nir_locals, nir_ssa_values, and nir_system_values are all dst_reg (not
that that makes a whole lot of sense to me), and only nir_inputs is a
src_reg.
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp index 28656d45b33..7e17a6a6246 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp @@ -122,7 +122,7 @@ vec4_visitor::nir_setup_inputs() { nir_inputs = ralloc_array(mem_ctx, src_reg, nir->num_inputs); for (unsigned i = 0; i < nir->num_inputs; i++) { - nir_inputs[i] = dst_reg(); + nir_inputs[i] = src_reg(); } nir_foreach_variable(var, &nir->inputs) { |