[Mesa-dev] [PATCH 1/2] freedreno_ir3: Use nir_foreach_variable

Rob Clark robdclark at gmail.com
Sat Oct 31 10:17:32 PDT 2015


On Sat, Oct 31, 2015 at 10:51 AM, Boyan Ding <boyan.j.ding at gmail.com> wrote:
> Ping?

oh, didn't see this earlier..

Reviewed-by: Rob Clark <robdclark at gmail.com>

(I'll push it when I get a chance if someone doesn't beat me to it..)

> 2015-10-16 15:15 GMT+08:00 Boyan Ding <boyan.j.ding at gmail.com>:
>> Signed-off-by: Boyan Ding <boyan.j.ding at gmail.com>
>> ---
>>  src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
>> index 8c9234b..157dc73 100644
>> --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
>> +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
>> @@ -2325,17 +2325,17 @@ emit_instructions(struct ir3_compile *ctx)
>>         }
>>
>>         /* Setup inputs: */
>> -       foreach_list_typed(nir_variable, var, node, &ctx->s->inputs) {
>> +       nir_foreach_variable(var, &ctx->s->inputs) {
>>                 setup_input(ctx, var);
>>         }
>>
>>         /* Setup outputs: */
>> -       foreach_list_typed(nir_variable, var, node, &ctx->s->outputs) {
>> +       nir_foreach_variable(var, &ctx->s->outputs) {
>>                 setup_output(ctx, var);
>>         }
>>
>>         /* Setup variables (which should only be arrays): */
>> -       foreach_list_typed(nir_variable, var, node, &ctx->s->globals) {
>> +       nir_foreach_variable(var, &ctx->s->globals) {
>>                 declare_var(ctx, var);
>>         }
>>
>> --
>> 2.6.1
>>


More information about the mesa-dev mailing list