Home
last modified time | relevance | path

Searched refs:bin_w (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
160 bin_w = align(width, gmem_alignw); in calculate_tiles()
166 while (bin_w > max_width) { in calculate_tiles()
168 bin_w = align(width / nbins_x, gmem_alignw); 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()
[all …]
Dfreedreno_gmem.h46 uint16_t bin_w, bin_h; member
57 uint16_t bin_w, nbins_x; member
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_gmem.c50 uint32_t bin_w, bool decode_srgb) in emit_mrt() argument
55 if (bin_w) { in emit_mrt()
101 if (bin_w) { in emit_mrt()
102 stride = bin_w * rsc->cpp; in emit_mrt()
120 if (bin_w || (i >= nr_bufs) || !bufs[i]) { in emit_mrt()
303 struct pipe_surface **bufs, uint32_t nr_bufs, uint32_t bin_w) in emit_mem2gmem_surf() argument
308 emit_mrt(ring, nr_bufs, bufs, bases, bin_w, false); in emit_mem2gmem_surf()
346 unsigned bin_w = tile->bin_w; in fd4_emit_tile_mem2gmem() local
352 x1 = ((float)tile->xoff + bin_w) / ((float)pfb->width); in fd4_emit_tile_mem2gmem()
403 OUT_RING(ring, A4XX_GRAS_CL_VPORT_XOFFSET_0((float)bin_w/2.0)); in fd4_emit_tile_mem2gmem()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_gmem.c48 struct pipe_surface **bufs, uint32_t *bases, uint32_t bin_w, in emit_mrt() argument
54 if (bin_w) { in emit_mrt()
98 if (bin_w) { in emit_mrt()
99 stride = bin_w * rsc->cpp; in emit_mrt()
117 if (bin_w || (i >= nr_bufs) || !bufs[i]) { in emit_mrt()
302 OUT_RING(ring, A3XX_VSC_BIN_SIZE_WIDTH(gmem->bin_w) | in emit_binning_workaround()
418 A3XX_RB_RENDER_CONTROL_BIN_WIDTH(ctx->gmem.bin_w)); in fd3_emit_tile_gmem2mem()
482 struct pipe_surface **psurf, uint32_t bufs, uint32_t bin_w) in emit_mem2gmem_surf() argument
494 emit_mrt(ring, bufs, psurf, bases, bin_w, false); in emit_mem2gmem_surf()
511 OUT_RING(ring, A3XX_RB_DEPTH_PITCH(4 * batch->ctx->gmem.bin_w)); in emit_mem2gmem_surf()
[all …]
/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()
233 unsigned bin_w = tile->bin_w; in fd2_emit_tile_mem2gmem() local
244 x1 = ((float)tile->xoff + bin_w) / ((float)pfb->width); in fd2_emit_tile_mem2gmem()
306 OUT_RING(ring, xy2d(bin_w, bin_h)); /* PA_SC_WINDOW_SCISSOR_BR */ in fd2_emit_tile_mem2gmem()
310 OUT_RING(ring, fui((float)bin_w/2.0)); /* PA_CL_VPORT_XSCALE */ in fd2_emit_tile_mem2gmem()
311 OUT_RING(ring, fui((float)bin_w/2.0)); /* PA_CL_VPORT_XOFFSET */ in fd2_emit_tile_mem2gmem()
329 emit_mem2gmem_surf(batch, bin_w * bin_h, pfb->zsbuf); in fd2_emit_tile_mem2gmem()
352 OUT_RING(ring, gmem->bin_w); /* RB_SURFACE_INFO */ in fd2_emit_tile_init()
355 reg = A2XX_RB_DEPTH_INFO_DEPTH_BASE(align(gmem->bin_w * gmem->bin_h, 4)); in fd2_emit_tile_init()
379 OUT_RING(ring, A2XX_PA_SC_SCREEN_SCISSOR_BR_X(tile->bin_w) | in fd2_emit_tile_prep()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_gmem.c88 stride = gmem->bin_w * rsc->cpp; in emit_mrt()
145 stride = cpp * gmem->bin_w; in emit_zs()
192 stride = 1 * gmem->bin_w; in emit_zs()
271 OUT_RING(ring, A5XX_VSC_BIN_SIZE_WIDTH(gmem->bin_w) | in update_vsc_pipe()
320 OUT_RING(ring, A5XX_RB_CNTL_WIDTH(gmem->bin_w) | in emit_binning_pass()
424 uint32_t x2 = tile->xoff + tile->bin_w - 1; in fd5_emit_tile_prep()
503 stride = gmem->bin_w * rsc->cpp; in emit_mem2gmem_surf()
541 OUT_RING(ring, A5XX_RB_CNTL_WIDTH(gmem->bin_w) | in fd5_emit_tile_mem2gmem()
577 OUT_RING(ring, A5XX_RB_CNTL_WIDTH(gmem->bin_w) | in fd5_emit_tile_renderprep()