Home
last modified time | relevance | path

Searched refs:bin_h (Results 1 – 6 of 6) sorted by relevance

/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_gmem.c82 uint32_t bin_w, uint32_t bin_h, struct fd_gmem_stateobj *gmem) in total_size() argument
89 total = gmem->cbuf_base[i] + cbuf_cpp[i] * bin_w * bin_h; in total_size()
95 total = gmem->zsbuf_base[0] + zsbuf_cpp[0] * bin_w * bin_h; in total_size()
100 total = gmem->zsbuf_base[1] + zsbuf_cpp[1] * bin_w * bin_h; in total_size()
119 uint32_t bin_w, bin_h; in calculate_tiles() local
161 bin_h = align(height, gmem_alignh); in calculate_tiles()
182 while (total_size(cbuf_cpp, zsbuf_cpp, bin_w, bin_h, gmem) > gmem_size) { in calculate_tiles()
183 if (bin_w > bin_h) { in calculate_tiles()
188 bin_h = align(height / nbins_y, gmem_alignh); in calculate_tiles()
192 DBG("using %d bins of size %dx%d", nbins_x*nbins_y, bin_w, bin_h); in calculate_tiles()
[all …]
Dfreedreno_gmem.h46 uint16_t bin_w, bin_h; member
56 uint16_t bin_h, nbins_y; member
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_gmem.c170 emit_gmem2mem_surf(batch, tile->bin_w * tile->bin_h, pfb->zsbuf); in fd2_emit_tile_gmem2mem()
234 unsigned bin_h = tile->bin_h; in fd2_emit_tile_mem2gmem() local
246 y1 = ((float)tile->yoff + bin_h) / ((float)pfb->height); in fd2_emit_tile_mem2gmem()
306 OUT_RING(ring, xy2d(bin_w, bin_h)); /* PA_SC_WINDOW_SCISSOR_BR */ in fd2_emit_tile_mem2gmem()
312 OUT_RING(ring, fui(-(float)bin_h/2.0)); /* PA_CL_VPORT_YSCALE */ in fd2_emit_tile_mem2gmem()
313 OUT_RING(ring, fui((float)bin_h/2.0)); /* PA_CL_VPORT_YOFFSET */ in fd2_emit_tile_mem2gmem()
329 emit_mem2gmem_surf(batch, bin_w * bin_h, pfb->zsbuf); in fd2_emit_tile_mem2gmem()
355 reg = A2XX_RB_DEPTH_INFO_DEPTH_BASE(align(gmem->bin_w * gmem->bin_h, 4)); in fd2_emit_tile_init()
380 A2XX_PA_SC_SCREEN_SCISSOR_BR_Y(tile->bin_h)); in fd2_emit_tile_prep()
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_gmem.c347 unsigned bin_h = tile->bin_h; in fd4_emit_tile_mem2gmem() local
354 y1 = ((float)tile->yoff + bin_h) / ((float)pfb->height); in fd4_emit_tile_mem2gmem()
405 OUT_RING(ring, A4XX_GRAS_CL_VPORT_YOFFSET_0((float)bin_h/2.0)); in fd4_emit_tile_mem2gmem()
406 OUT_RING(ring, A4XX_GRAS_CL_VPORT_YSCALE_0(-(float)bin_h/2.0)); in fd4_emit_tile_mem2gmem()
412 A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y(bin_h - 1)); in fd4_emit_tile_mem2gmem()
420 A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y(bin_h - 1)); in fd4_emit_tile_mem2gmem()
424 A4XX_RB_MODE_CONTROL_HEIGHT(gmem->bin_h)); in fd4_emit_tile_mem2gmem()
457 bin_h = gmem->bin_h; in fd4_emit_tile_mem2gmem()
507 A4XX_RB_MODE_CONTROL_HEIGHT(gmem->bin_h) | in fd4_emit_tile_mem2gmem()
673 A4XX_VSC_BIN_SIZE_HEIGHT(gmem->bin_h)); in fd4_emit_tile_init()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_gmem.c303 A3XX_VSC_BIN_SIZE_HEIGHT(gmem->bin_h)); in emit_binning_workaround()
555 unsigned bin_h = tile->bin_h; in fd3_emit_tile_mem2gmem() local
562 y1 = ((float)tile->yoff + bin_h) / ((float)pfb->height); in fd3_emit_tile_mem2gmem()
607 OUT_RING(ring, A3XX_GRAS_CL_VPORT_YOFFSET((float)bin_h/2.0 - 0.5)); in fd3_emit_tile_mem2gmem()
608 OUT_RING(ring, A3XX_GRAS_CL_VPORT_YSCALE(-(float)bin_h/2.0)); in fd3_emit_tile_mem2gmem()
616 A3XX_GRAS_SC_WINDOW_SCISSOR_BR_Y(bin_h - 1)); in fd3_emit_tile_mem2gmem()
622 A3XX_GRAS_SC_SCREEN_SCISSOR_BR_Y(bin_h - 1)); in fd3_emit_tile_mem2gmem()
662 bin_h = gmem->bin_h; in fd3_emit_tile_mem2gmem()
941 A3XX_VSC_BIN_SIZE_HEIGHT(gmem->bin_h)); in fd3_emit_tile_init()
991 uint32_t y2 = tile->yoff + tile->bin_h - 1; in fd3_emit_tile_renderprep()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_gmem.c89 size = stride * gmem->bin_h; in emit_mrt()
146 size = stride * gmem->bin_h; in emit_zs()
193 size = stride * gmem->bin_h; in emit_zs()
272 A5XX_VSC_BIN_SIZE_HEIGHT(gmem->bin_h)); in update_vsc_pipe()
321 A5XX_RB_CNTL_HEIGHT(gmem->bin_h)); in emit_binning_pass()
425 uint32_t y2 = tile->yoff + tile->bin_h - 1; in fd5_emit_tile_prep()
504 size = stride * gmem->bin_h; in emit_mem2gmem_surf()
542 A5XX_RB_CNTL_HEIGHT(gmem->bin_h) | in fd5_emit_tile_mem2gmem()
578 A5XX_RB_CNTL_HEIGHT(gmem->bin_h)); in fd5_emit_tile_renderprep()