[Mesa-dev] [PATCH 1/2] i965/vec4: Initialize nir_inputs with src_reg().

Francisco Jerez currojerez at riseup.net
Fri Nov 20 05:25:36 PST 2015


Matt Turner <mattst88 at gmail.com> writes:

> 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 <currojerez at riseup.net>

> ---
>  src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
> index 3d186b4..3b7c28d 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) {
> -- 
> 2.4.9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151120/259c2371/attachment.sig>


More information about the mesa-dev mailing list