Home | History | Annotate | Download | only in freedreno

Lines Matching refs:tile

43  * GMEM is the small (ie. 256KiB for a200, 512KiB for a220, etc) tile buffer
46 * stencil, if enabled) buffers to fit within GMEM. Before rendering a tile,
47 * if there was not a clear invalidating the previous tile contents, we need
49 * the draw calls, before moving to the next tile, we need to save the tile
66 * Where the per-tile section handles scissor setup, mem2gmem restore (if
271 struct fd_tile *tile = &ctx->tile[t];
274 assert(t < ARRAY_SIZE(ctx->tile));
282 tile->n = tile_n[p]++;
283 tile->p = p;
284 tile->bin_w = bw;
285 tile->bin_h = bh;
286 tile->xoff = xoff;
287 tile->yoff = yoff;
301 struct fd_tile *tile = &ctx->tile[t++];
302 printf("|p:%u n:%u|", tile->p, tile->n);
322 struct fd_tile *tile = &ctx->tile[i];
325 tile->bin_h, tile->yoff, tile->bin_w, tile->xoff);
327 ctx->emit_tile_prep(batch, tile);
330 ctx->emit_tile_mem2gmem(batch, tile);
333 ctx->emit_tile_renderprep(batch, tile);
341 /* emit gmem2mem to transfer tile back to system memory: */
342 ctx->emit_tile_gmem2mem(batch, tile);
438 /* tile needs restore if it isn't completely contained within the
442 skip_restore(struct pipe_scissor_state *scissor, struct fd_tile *tile)
444 unsigned minx = tile->xoff;
445 unsigned maxx = tile->xoff + tile->bin_w;
446 unsigned miny = tile->yoff;
447 unsigned maxy = tile->yoff + tile->bin_h;
452 /* When deciding whether a tile needs mem2gmem, we need to take into
458 fd_gmem_needs_restore(struct fd_batch *batch, struct fd_tile *tile,
465 * if this particular tile needs restoring:
469 skip_restore(&batch->cleared_scissor.color, tile))
473 skip_restore(&batch->cleared_scissor.depth, tile))
477 skip_restore(&batch->cleared_scissor.stencil, tile))