Re: [Mesa-dev] [PATCH v2 12/78] i965/nir/vec4: Implement load_const intrinsic

2015-07-27 Thread Jason Ekstrand
On Mon, Jul 27, 2015 at 9:22 AM, Antía Puentes wrote: > Hi! Jason, > > On jue, 2015-07-23 at 15:46 -0700, Jason Ekstrand wrote: > >> > @@ -332,7 +334,22 @@ vec4_visitor::nir_emit_instr(nir_instr *instr) >> > void >> > vec4_visitor::nir_emit_load_const(nir_load_const_instr *instr) >> > { >> > -

Re: [Mesa-dev] [PATCH v2 12/78] i965/nir/vec4: Implement load_const intrinsic

2015-07-27 Thread Antía Puentes
Hi! Jason, On jue, 2015-07-23 at 15:46 -0700, Jason Ekstrand wrote: > > @@ -332,7 +334,22 @@ vec4_visitor::nir_emit_instr(nir_instr *instr) > > void > > vec4_visitor::nir_emit_load_const(nir_load_const_instr *instr) > > { > > - /* @TODO: Not yet implemented */ > > + dst_reg reg = dst_reg(G

Re: [Mesa-dev] [PATCH v2 12/78] i965/nir/vec4: Implement load_const intrinsic

2015-07-23 Thread Jason Ekstrand
On Thu, Jul 23, 2015 at 3:16 AM, Eduardo Lima Mitev wrote: > Similar to fs_nir backend, a nir_local_values map will be filled with > newly allocated registers as the load_const instrinsic instructions are > processed. Later, get_nir_src() will fetch the registers from this map > for sources that a

[Mesa-dev] [PATCH v2 12/78] i965/nir/vec4: Implement load_const intrinsic

2015-07-23 Thread Eduardo Lima Mitev
Similar to fs_nir backend, a nir_local_values map will be filled with newly allocated registers as the load_const instrinsic instructions are processed. Later, get_nir_src() will fetch the registers from this map for sources that are ssa. --- src/mesa/drivers/dri/i965/brw_nir.c| 2 +- src