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()
118 uint32_t bin_w, bin_h; in calculate_tiles() local
159 bin_w = align(width, gmem_alignw); in calculate_tiles()
165 while (bin_w > max_width) { in calculate_tiles()
167 bin_w = align(width / nbins_x, gmem_alignw); in calculate_tiles()
181 while (total_size(cbuf_cpp, zsbuf_cpp, bin_w, bin_h, gmem) > gmem_size) { in calculate_tiles()
182 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()
302 struct pipe_surface **bufs, uint32_t nr_bufs, uint32_t bin_w) in emit_mem2gmem_surf() argument
307 emit_mrt(ring, nr_bufs, bufs, bases, bin_w, false); in emit_mem2gmem_surf()
345 unsigned bin_w = tile->bin_w; in fd4_emit_tile_mem2gmem() local
351 x1 = ((float)tile->xoff + bin_w) / ((float)pfb->width); in fd4_emit_tile_mem2gmem()
402 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()
296 OUT_RING(ring, A3XX_VSC_BIN_SIZE_WIDTH(gmem->bin_w) | in emit_binning_workaround()
412 A3XX_RB_RENDER_CONTROL_BIN_WIDTH(ctx->gmem.bin_w)); in fd3_emit_tile_gmem2mem()
476 struct pipe_surface **psurf, uint32_t bufs, uint32_t bin_w) in emit_mem2gmem_surf() argument
488 emit_mrt(ring, bufs, psurf, bases, bin_w, false); in emit_mem2gmem_surf()
505 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.c164 emit_gmem2mem_surf(batch, tile->bin_w * tile->bin_h, pfb->zsbuf); in fd2_emit_tile_gmem2mem()
227 unsigned bin_w = tile->bin_w; in fd2_emit_tile_mem2gmem() local
238 x1 = ((float)tile->xoff + bin_w) / ((float)pfb->width); in fd2_emit_tile_mem2gmem()
300 OUT_RING(ring, xy2d(bin_w, bin_h)); /* PA_SC_WINDOW_SCISSOR_BR */ in fd2_emit_tile_mem2gmem()
304 OUT_RING(ring, fui((float)bin_w/2.0)); /* PA_CL_VPORT_XSCALE */ in fd2_emit_tile_mem2gmem()
305 OUT_RING(ring, fui((float)bin_w/2.0)); /* PA_CL_VPORT_XOFFSET */ in fd2_emit_tile_mem2gmem()
323 emit_mem2gmem_surf(batch, bin_w * bin_h, pfb->zsbuf); in fd2_emit_tile_mem2gmem()
346 OUT_RING(ring, gmem->bin_w); /* RB_SURFACE_INFO */ in fd2_emit_tile_init()
349 reg = A2XX_RB_DEPTH_INFO_DEPTH_BASE(align(gmem->bin_w * gmem->bin_h, 4)); in fd2_emit_tile_init()
373 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.c86 stride = gmem->bin_w * rsc->cpp; in emit_mrt()
138 stride = cpp * gmem->bin_w; in emit_zs()
167 stride = 1 * gmem->bin_w; in emit_zs()
261 uint32_t x2 = tile->xoff + tile->bin_w - 1; in fd5_emit_tile_prep()
297 stride = gmem->bin_w * rsc->cpp; in emit_mem2gmem_surf()
335 OUT_RING(ring, A5XX_RB_CNTL_WIDTH(gmem->bin_w) | in fd5_emit_tile_mem2gmem()
390 OUT_RING(ring, A5XX_RB_CNTL_WIDTH(gmem->bin_w) | in fd5_emit_tile_renderprep()