Re: [Mesa-dev] [PATCH 6/8] glsl: Use a new foreach_list2 macro for walking two lists at once.

2014-01-13 Thread Kenneth Graunke
On 01/13/2014 09:58 AM, Ian Romanick wrote: > On 01/11/2014 02:37 AM, Kenneth Graunke wrote: >> When handling function calls, we often want to walk through the list of >> formal parameters and list of actual parameters at the same time. >> (Both are guaranteed to be the same length.) >> >> Previous

Re: [Mesa-dev] [PATCH 6/8] glsl: Use a new foreach_list2 macro for walking two lists at once.

2014-01-13 Thread Ian Romanick
On 01/11/2014 02:37 AM, Kenneth Graunke wrote: > When handling function calls, we often want to walk through the list of > formal parameters and list of actual parameters at the same time. > (Both are guaranteed to be the same length.) > > Previously, we used a pattern of: > >exec_list_iterat

[Mesa-dev] [PATCH 6/8] glsl: Use a new foreach_list2 macro for walking two lists at once.

2014-01-11 Thread Kenneth Graunke
When handling function calls, we often want to walk through the list of formal parameters and list of actual parameters at the same time. (Both are guaranteed to be the same length.) Previously, we used a pattern of: exec_list_iterator 1st_iter = <1st list>.iterator(); foreach_iter(exec_lis