| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ |
| freedreno_gmem.c | 47 * GMEM is the small (ie. 256KiB for a200, 512KiB for a220, etc) tile buffer 48 * inside the GPU. All rendering happens to GMEM. Larger render targets 50 * stencil, if enabled) buffers to fit within GMEM. Before rendering a tile, 52 * to restore the previous tiles contents (system mem -> GMEM), and after all 54 * contents (GMEM -> system mem). 56 * The code in this file handles dealing with GMEM and tiling. 80 * GMEM Cache: 82 * Caches GMEM state based on a given framebuffer state. The key is 83 * meant to be the minimal set of data that results in a unique gmem 84 * configuration, avoiding multiple keys arriving at the same gmem 279 struct fd_gmem_stateobj *gmem = local 535 struct fd_gmem_stateobj *gmem = NULL; local 742 struct fd_gmem_stateobj *gmem = lookup_gmem_state(batch, false, false); local 777 struct fd_gmem_stateobj *gmem = lookup_gmem_state(batch, !!pfb->zsbuf, true); local [all...] |
| freedreno_gmem.h | 70 void __fd_gmem_destroy(struct fd_gmem_stateobj *gmem); 73 fd_gmem_reference(struct fd_gmem_stateobj **ptr, struct fd_gmem_stateobj *gmem) 77 if (pipe_reference(&(*ptr)->reference, &gmem->reference)) 80 *ptr = gmem;
|
| gmemtool.c | 32 /* NOTE, non-interesting gmem keys (ie. things that are small enough to fit 117 "\t-g, --gpu=GPU - use GMEM size/alignment/etc settings " 165 /* Setup a fake screen with enough GMEM related configuration 175 /* And finally run thru all the GMEM keys: */ 179 struct fd_gmem_stateobj *gmem = gmem_stateobj_init(&screen, &key); local 180 dump_gmem_state(gmem); 182 assert((gmem->bin_w * gmem->nbins_x) >= key.width); 183 assert((gmem->bin_h * gmem->nbins_y) >= key.height) [all...] |
| freedreno_batch.c | 67 batch->gmem = alloc_ring(batch, 0x1000, FD_RINGBUFFER_PRIMARY); 70 batch->gmem = alloc_ring(batch, 0x100000, FD_RINGBUFFER_PRIMARY); 154 fd_ringbuffer_del(batch->gmem);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/ |
| freedreno_gmem.c | 41 * GMEM is the small (ie. 256KiB for a200, 512KiB for a220, etc) tile buffer 42 * inside the GPU. All rendering happens to GMEM. Larger render targets 44 * stencil, if enabled) buffers to fit within GMEM. Before rendering a tile, 46 * to restore the previous tiles contents (system mem -> GMEM), and after all 48 * contents (GMEM -> system mem). 50 * The code in this file handles dealing with GMEM and tiling. 81 struct fd_gmem_stateobj *gmem) 87 gmem->cbuf_base[i] = align(total, gmem_align); 88 total = gmem->cbuf_base[i] + cbuf_cpp[i] * bin_w * bin_h; 93 gmem->zsbuf_base[0] = align(total, gmem_align) 110 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 346 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 456 struct fd_gmem_stateobj *gmem = &ctx->gmem; local [all...] |
| freedreno_batch.c | 64 batch->gmem = fd_submit_new_ringbuffer(batch->submit, size, 148 fd_ringbuffer_del(batch->gmem); 151 debug_assert(!batch->gmem);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a5xx/ |
| fd5_gmem.c | 47 struct pipe_surface **bufs, struct fd_gmem_stateobj *gmem) 63 if (gmem) { 87 if (gmem) { 88 stride = gmem->bin_w * gmem->cbuf_cpp[i]; 89 size = stride * gmem->bin_h; 90 base = gmem->cbuf_base[i]; 104 COND(gmem, 0x800) | /* XXX 0x1000 for RECTLIST clear, 0x0 for BLIT.. */ 108 if (gmem || (i >= nr_bufs) || !bufs[i]) { 135 struct fd_gmem_stateobj *gmem) 238 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 266 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 310 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 473 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 530 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 573 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 660 struct fd_gmem_stateobj *gmem = &ctx->gmem; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a5xx/ |
| fd5_gmem.c | 47 struct pipe_surface **bufs, const struct fd_gmem_stateobj *gmem) 63 if (gmem) { 87 if (gmem) { 88 stride = gmem->bin_w * gmem->cbuf_cpp[i]; 89 size = stride * gmem->bin_h; 90 base = gmem->cbuf_base[i]; 106 COND(gmem, 111 if (gmem || (i >= nr_bufs) || !bufs[i]) { 138 const struct fd_gmem_stateobj *gmem) 240 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 268 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 311 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 426 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 478 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 535 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 577 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 664 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a4xx/ |
| fd4_gmem.c | 135 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 137 if ((gmem->maxpw * gmem->maxph) > 32) 140 if ((gmem->maxpw > 15) || (gmem->maxph > 15)) 143 return fd_binning_enabled && ((gmem->nbins_x * gmem->nbins_y) > 2); 146 /* transfer from gmem to system memory (ie. normal RAM) */ 152 struct fd_ringbuffer *ring = batch->gmem; 193 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 331 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 601 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 668 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 714 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 762 struct fd_gmem_stateobj *gmem = &ctx->gmem; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a4xx/ |
| fd4_gmem.c | 147 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 149 if ((gmem->maxpw * gmem->maxph) > 32) 152 if ((gmem->maxpw > 15) || (gmem->maxph > 15)) 155 return fd_binning_enabled && ((gmem->nbins_x * gmem->nbins_y) > 2); 158 /* transfer from gmem to system memory (ie. normal RAM) */ 164 struct fd_ringbuffer *ring = batch->gmem; 205 const struct fd_gmem_stateobj *gmem = batch->gmem_state variable in typeref:struct:fd_gmem_stateobj 338 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 569 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 606 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 672 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 716 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 768 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a6xx/ |
| fd6_gmem.c | 53 struct fd_gmem_stateobj *gmem) 81 uint32_t base = gmem ? gmem->cbuf_base[i] : 0; 163 struct fd_gmem_stateobj *gmem) 171 uint32_t base = gmem ? gmem->zsbuf_base[0] : 0; 227 uint32_t base = gmem ? gmem->zsbuf_base[1] : 0; 266 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 277 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 341 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 412 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 523 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 645 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 805 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 969 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 1067 struct fd_gmem_stateobj *gmem = &ctx->gmem; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a2xx/ |
| fd2_gmem.c | 65 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 70 * gmem->num_vsc_pipes == 0 means empty batch (TODO: does it still happen?) 72 if (gmem->num_vsc_pipes > 8 || !gmem->num_vsc_pipes) 81 return fd_binning_enabled && ((gmem->nbins_x * gmem->nbins_y) > 2); 84 /* transfer from gmem to system memory (ie. normal RAM) */ 142 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 285 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 486 struct fd_gmem_stateobj *gmem = &ctx->gmem; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a3xx/ |
| fd3_gmem.c | 131 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 147 if (gmem->minx || gmem->miny) 150 if ((gmem->maxpw * gmem->maxph) > 32) 153 if ((gmem->maxpw > 15) || (gmem->maxph > 15)) 156 return fd_binning_enabled && ((gmem->nbins_x * gmem->nbins_y) > 2) 165 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 543 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 805 struct fd_gmem_stateobj *gmem = &ctx->gmem; local 934 struct fd_gmem_stateobj *gmem = &batch->ctx->gmem; local 988 struct fd_gmem_stateobj *gmem = &ctx->gmem; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/ |
| fd2_gmem.c | 66 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 71 * gmem->num_vsc_pipes == 0 means empty batch (TODO: does it still happen?) 73 if (gmem->num_vsc_pipes > 8 || !gmem->num_vsc_pipes) 82 return fd_binning_enabled && ((gmem->nbins_x * gmem->nbins_y) > 2); 85 /* transfer from gmem to system memory (ie. normal RAM) */ 140 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 197 OUT_RING(ring, fui((float)gmem->bin_w / 2.0)); /* XSCALE */ 198 OUT_RING(ring, fui((float)gmem->bin_w / 2.0)); /* XOFFSET * 285 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 491 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a6xx/ |
| fd6_gmem.c | 76 const struct fd_gmem_stateobj *gmem) 101 uint32_t base = gmem ? gmem->cbuf_base[i] : 0; 147 const struct fd_gmem_stateobj *gmem) 154 uint32_t base = gmem ? gmem->zsbuf_base[0] : 0; 196 uint32_t base = gmem ? gmem->zsbuf_base[1] : 0; 234 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 236 if ((gmem->maxpw * gmem->maxph) > 32 251 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 386 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 465 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 670 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 787 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 892 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 932 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 1032 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 1191 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 1375 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/ |
| fd3_gmem.c | 144 const struct fd_gmem_stateobj *gmem = batch->gmem_state; local 160 if (gmem->minx || gmem->miny) 163 if ((gmem->maxpw * gmem->maxph) > 32) 166 if ((gmem->maxpw > 15) || (gmem->maxph > 15)) 169 return fd_binning_enabled && ((gmem->nbins_x * gmem->nbins_y) > 2); 178 const struct fd_gmem_stateobj *gmem = batch->gmem_state variable in typeref:struct:fd_gmem_stateobj 381 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 564 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 796 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 828 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 956 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj 1011 const struct fd_gmem_stateobj *gmem = batch->gmem_state; variable in typeref:struct:fd_gmem_stateobj [all...] |
| /xsrc/external/mit/libdrm/dist/freedreno/msm/ |
| msm_pipe.c | 61 *value = msm_pipe->gmem; 193 msm_pipe->gmem = get_param(pipe, MSM_PARAM_GMEM_SIZE); 202 INFO_MSG(" GMEM size: 0x%08x", msm_pipe->gmem);
|
| msm_priv.h | 57 uint32_t gmem; member in struct:msm_pipe
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/ |
| nv50_program.h | 112 struct nv50_gmem_state gmem[NV50_MAX_GLOBALS]; member in struct:nv50_program::__anon1412
|
| nv50_compute.c | 380 struct nv50_gmem_state *gmem = &nv50->compprog->cp.gmem[i]; local 386 if (gmem->valid && !gmem->image && nv50->buffers[gmem->slot].buffer) { 387 struct pipe_shader_buffer *buffer = &nv50->buffers[gmem->slot]; 405 } else if (gmem->valid && gmem->image && nv50->images[gmem->slot].resource) { 406 struct pipe_image_view *view = &nv50->images[gmem->slot] [all...] |
| /xsrc/external/mit/MesaLib/dist/src/freedreno/drm/ |
| msm_pipe.c | 82 *value = msm_pipe->gmem; 242 msm_pipe->gmem = get_param(pipe, MSM_PARAM_GMEM_SIZE); 254 INFO_MSG(" GMEM size: 0x%08x", msm_pipe->gmem);
|
| msm_priv.h | 57 uint32_t gmem; member in struct:msm_pipe
|
| /xsrc/external/mit/MesaLib.old/dist/src/freedreno/drm/ |
| msm_pipe.c | 81 *value = msm_pipe->gmem; 230 msm_pipe->gmem = get_param(pipe, MSM_PARAM_GMEM_SIZE); 242 INFO_MSG(" GMEM size: 0x%08x", msm_pipe->gmem);
|
| msm_priv.h | 51 uint32_t gmem; member in struct:msm_pipe
|
| /xsrc/external/mit/MesaLib/dist/src/freedreno/decode/scripts/ |
| parse-submits.lua | 20 function push_mrt(fmt, w, h, samples, base, flag, gmem) 30 mrt.gmem = gmem 97 -- across multiple buffers. Since we ignore GMEM draws for window- 142 if cleared[mrt.gmem] then 145 if restored[mrt.gmem] then 148 if resolved[mrt.gmem] then 203 -- push_mrt() because we could have GMEM 207 -- try to match up the GMEM addr with the MRT/DEPTH state, 257 -- TODO it would be nice to not hard-code GMEM addr [all...] |