Re: [Mesa-dev] [PATCH v3 018/104] nir: Add a deref path helper struct

2018-04-05 Thread Jason Ekstrand
On Thu, Apr 5, 2018 at 10:06 AM, Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > Hello, > > > + if (count <= max_short_path_len) { > > + /* If we're under max_short_path_len, just use the short path. */ > > + path->path = head; > > + goto done; > > + } > > + >

Re: [Mesa-dev] [PATCH v3 018/104] nir: Add a deref path helper struct

2018-04-05 Thread Caio Marcelo de Oliveira Filho
Hello, > + if (count <= max_short_path_len) { > + /* If we're under max_short_path_len, just use the short path. */ > + path->path = head; > + goto done; > + } > + > + path->path = ralloc_array(mem_ctx, nir_deref_instr *, count + 1); > + head = tail = path->path + count; > +

[Mesa-dev] [PATCH v3 018/104] nir: Add a deref path helper struct

2018-04-03 Thread Jason Ekstrand
This commit introduces a new nir_deref.h header for helpers that are less common and really only needed by a few heavy-duty passes. In this header is a new struct for representing a full deref path which can be walked in either direction. --- src/compiler/Makefile.sources | 1 + src/compiler/nir