~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/asahi/lib/agx_tilebuffer.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:
66
66
   }
67
67
 
68
68
   assert(offset_B <= 64 && "TIB strides must be <= 64");
 
69
 
 
70
   /* Multisampling needs a nonempty allocation.
 
71
    * XXX: Check this against hw
 
72
    */
 
73
   if (nr_samples > 1)
 
74
      offset_B = MAX2(offset_B, 1);
 
75
 
69
76
   tib.sample_size_B = ALIGN_POT(offset_B, 8);
70
77
 
71
78
   tib.tile_size = agx_select_tile_size(tib.sample_size_B * nr_samples);