~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/imagination/rogue/rogue.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
   *regarray_cached = regarray;
145
145
   regarray->cached = regarray_cached;
146
146
 
147
 
   assert(updated);
148
147
   return updated;
149
148
}
150
149
 
372
371
}
373
372
 
374
373
PUBLIC
 
374
rogue_reg *rogue_special_reg(rogue_shader *shader, unsigned index)
 
375
{
 
376
   return rogue_reg_cached(shader, ROGUE_REG_CLASS_SPECIAL, index);
 
377
}
 
378
 
 
379
PUBLIC
375
380
rogue_reg *rogue_vtxin_reg(rogue_shader *shader, unsigned index)
376
381
{
377
382
   return rogue_reg_cached(shader, ROGUE_REG_CLASS_VTXIN, index);
587
592
}
588
593
 
589
594
PUBLIC
 
595
rogue_regarray *
 
596
rogue_shared_regarray(rogue_shader *shader, unsigned size, unsigned start_index)
 
597
{
 
598
   return rogue_regarray_cached(shader,
 
599
                                size,
 
600
                                ROGUE_REG_CLASS_SHARED,
 
601
                                start_index);
 
602
}
 
603
 
 
604
PUBLIC
590
605
rogue_regarray *rogue_ssa_vec_regarray(rogue_shader *shader,
591
606
                                       unsigned size,
592
607
                                       unsigned start_index,
1229
1244
{
1230
1245
   rogue_build_ctx *ctx;
1231
1246
 
1232
 
   ctx = rzalloc_size(compiler, sizeof(*ctx));
 
1247
   ctx = rzalloc_size(NULL, sizeof(*ctx));
1233
1248
   if (!ctx)
1234
1249
      return NULL;
1235
1250