~mmach/netext73/mesa-haswell

« back to all changes in this revision

Viewing changes to src/gallium/drivers/freedreno/freedreno_gmem.c

  • Committer: mmach
  • Date: 2022-09-22 20:02:48 UTC
  • Revision ID: netbit73@gmail.com-20220922200248-7y4wybmdgipuwdiw
2022-09-22 21:17:09

Show diffs side-by-side

added added

removed removed

Lines of Context:
427
427
      yoff += bh;
428
428
   }
429
429
 
 
430
   /* Swap the order of alternating rows to form an 'S' pattern, to improve
 
431
    * cache access patterns (ie. adjacent bins are likely to access adjacent
 
432
    * portions of textures)
 
433
    */
 
434
   if (!FD_DBG(NOSBIN)) {
 
435
      for (i = 0; i < gmem->nbins_y; i+=2) {
 
436
         unsigned col0 = gmem->nbins_x * i;
 
437
         for (j = 0; j < gmem->nbins_x/2; j++) {
 
438
            swap(gmem->tile[col0 + j], gmem->tile[col0 + gmem->nbins_x - j - 1]);
 
439
         }
 
440
      }
 
441
   }
 
442
 
430
443
   if (BIN_DEBUG) {
431
444
      t = 0;
432
445
      for (i = 0; i < gmem->nbins_y; i++) {
716
729
    * bypass.
717
730
    */
718
731
   if (batch->tessellation) {
719
 
      debug_assert(ctx->emit_sysmem_prep);
 
732
      assert(ctx->emit_sysmem_prep);
720
733
      sysmem = true;
721
734
   }
722
735