| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/virgl/ |
| H A D | virgl_staging_mgr.c | 35 virgl_staging_alloc_buffer(struct virgl_staging_mgr *staging, unsigned min_size) argument 37 struct virgl_winsys *vws = staging->vws; 42 vws->resource_reference(vws, &staging->hw_res, NULL); 46 size = align(MAX2(staging->default_size, min_size), 4096); 48 staging->hw_res = vws->resource_create(vws, 60 if (staging->hw_res == NULL) 63 staging->map = vws->resource_map(vws, staging->hw_res); 64 if (staging->map == NULL) { 65 vws->resource_reference(vws, &staging 76 virgl_staging_init(struct virgl_staging_mgr * staging,struct pipe_context * pipe,unsigned default_size) argument 86 virgl_staging_destroy(struct virgl_staging_mgr * staging) argument 93 virgl_staging_alloc(struct virgl_staging_mgr * staging,unsigned size,unsigned alignment,unsigned * out_offset,struct virgl_hw_res ** outbuf,void ** ptr) argument [all...] |
| H A D | virgl_staging_mgr.h | 25 /* virgl staging buffer manager, heavily inspired by u_upload_mgr. */ 40 unsigned default_size; /* Minimum size of the staging buffer, in bytes. */ 42 unsigned size; /* Current staging buffer size. */ 43 uint8_t *map; /* Pointer to the mapped staging buffer. */ 48 * Init the staging manager. 50 * \param staging Pointer to the staging manager to initialize. 52 * \param default_size Minimum size of the staging buffer, in bytes. 55 virgl_staging_init(struct virgl_staging_mgr *staging, struct pipe_context *pipe, 59 * Destroy the staging manage [all...] |
| H A D | virgl_context.h | 85 struct virgl_staging_mgr staging; member in struct:virgl_context 103 /* The total size of staging resources used in queued copy transfers. */
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/virgl/tests/ |
| H A D | virgl_staging_mgr_test.cpp | 131 virgl_staging_init(&staging, ctx, staging_size); 136 virgl_staging_destroy(&staging); 142 struct virgl_staging_mgr staging; member in class:VirglStagingMgr 168 virgl_staging_alloc(&staging, alloc_sizes[i], alignment, &out_offset, 201 virgl_staging_alloc(&staging, staging_size - 1, 1, &out_offset, 210 virgl_staging_alloc(&staging, 2, 1, &out_offset, 233 virgl_staging_alloc(&staging, staging_size - 1, 1, &out_offset, 242 virgl_staging_alloc(&staging, 1, 16, &out_offset, 267 virgl_staging_alloc(&staging, 5123, 1, &out_offset, 277 virgl_staging_alloc(&staging, 1934 [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/lima/ |
| H A D | lima_resource.h | 59 void *staging; member in struct:lima_transfer
|
| H A D | lima_resource.c | 503 trans->staging = malloc(ptrans->stride * ptrans->box.height * ptrans->box.depth); 506 lima_load_tiled_image(trans->staging, bo->map + res->levels[level].offset, 512 return trans->staging; 543 if (trans->staging) { 546 lima_store_tiled_image(bo->map + res->levels[ptrans->level].offset, trans->staging, 551 free(trans->staging); 625 * from/to target instead of creating a staging memory for tiled
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/ |
| H A D | u_transfer_helper.c | 73 void *staging; /* staging buffer */ member in struct:u_transfer 74 struct pipe_resource *ss; /* staging resource for MSAA resolves */ 156 * pctx->transfer_map() to map the staging resource, to handle cases of 262 trans->staging = malloc(ptrans->layer_stride); 263 if (!trans->staging) 279 util_format_z32_float_s8x24_uint_pack_z_float(trans->staging, 284 util_format_z32_float_s8x24_uint_pack_s_8uint(trans->staging, 291 util_format_z24_unorm_s8_uint_pack_separate(trans->staging, 310 util_format_rgtc1_unorm_pack_rgba_8unorm(trans->staging, [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/ |
| H A D | r600_buffer_common.c | 308 void *data, struct r600_resource *staging, 326 transfer->b.staging = NULL; 328 transfer->staging = staging; 367 * So don't ever use staging buffers. 417 struct r600_resource *staging = NULL; local in function:r600_buffer_transfer_map 422 &offset, (struct pipe_resource**)&staging, 425 if (staging) { 428 ptransfer, data, staging, offset); 437 /* Use a staging buffe 303 r600_buffer_get_transfer(struct pipe_context * ctx,struct pipe_resource * resource,unsigned usage,const struct pipe_box * box,struct pipe_transfer ** ptransfer,void * data,struct r600_resource * staging,unsigned offset) argument 444 struct r600_resource *staging; local in function:r600_buffer_transfer_map [all...] |
| H A D | r600_texture.c | 132 /* Copy from a full GPU texture to a transfer's staging one. */ 137 struct pipe_resource *dst = &rtransfer->staging->b.b; 150 /* Copy from a transfer's staging texture to a full GPU one. */ 156 struct pipe_resource *src = &rtransfer->staging->b.b; 1166 struct r600_texture **staging) 1170 struct r600_texture **flushed_depth_texture = staging ? 1171 staging : &rtex->flushed_depth_texture; 1174 if (!staging) { 1216 resource.usage = staging ? PIPE_USAGE_STAGING : PIPE_USAGE_DEFAULT; 1220 if (staging) 1164 r600_init_flushed_depth_texture(struct pipe_context * ctx,struct pipe_resource * texture,struct r600_texture ** staging) argument 1438 struct r600_texture *staging; local in function:r600_texture_transfer_map [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/ |
| H A D | r600_buffer_common.c | 306 void *data, struct r600_resource *staging, 324 transfer->b.staging = NULL; 326 transfer->staging = staging; 369 * So don't ever use staging buffers. 419 struct r600_resource *staging = NULL; local in function:r600_buffer_transfer_map 424 &offset, (struct pipe_resource**)&staging, 427 if (staging) { 430 ptransfer, data, staging, offset); 439 /* Use a staging buffe 301 r600_buffer_get_transfer(struct pipe_context * ctx,struct pipe_resource * resource,unsigned usage,const struct pipe_box * box,struct pipe_transfer ** ptransfer,void * data,struct r600_resource * staging,unsigned offset) argument 446 struct r600_resource *staging; local in function:r600_buffer_transfer_map [all...] |
| H A D | r600_texture.c | 133 /* Copy from a full GPU texture to a transfer's staging one. */ 138 struct pipe_resource *dst = &rtransfer->staging->b.b; 151 /* Copy from a transfer's staging texture to a full GPU one. */ 157 struct pipe_resource *src = &rtransfer->staging->b.b; 1155 struct r600_texture **staging) 1159 struct r600_texture **flushed_depth_texture = staging ? 1160 staging : &rtex->flushed_depth_texture; 1163 if (!staging) { 1205 resource.usage = staging ? PIPE_USAGE_STAGING : PIPE_USAGE_DEFAULT; 1209 if (staging) 1153 r600_init_flushed_depth_texture(struct pipe_context * ctx,struct pipe_resource * texture,struct r600_texture ** staging) argument 1427 struct r600_texture *staging; local in function:r600_texture_transfer_map [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/ |
| H A D | lima_resource.h | 73 void *staging; member in struct:lima_transfer
|
| H A D | lima_resource.c | 678 trans->staging = malloc(ptrans->stride * ptrans->box.height * ptrans->box.depth); 684 trans->staging + i * ptrans->stride * ptrans->box.height, 693 return trans->staging; 763 if (trans->staging) { 778 trans->staging + i * ptrans->stride * ptrans->box.height, 790 trans->staging + i * ptrans->stride * ptrans->box.height, 810 if (trans->staging) 811 free(trans->staging); 908 .staging = (void *)data, 929 * using staging buffe [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/radeonsi/ |
| H A D | si_buffer.c | 341 void *data, struct si_resource *staging, 359 transfer->b.staging = NULL; 361 transfer->staging = staging; 388 * So don't ever use staging buffers. 462 struct si_resource *staging = NULL; local in function:si_buffer_transfer_map 477 &offset, (struct pipe_resource**)&staging, 480 if (staging) { 483 ptransfer, data, staging, offset); 492 /* Use a staging buffe 336 si_buffer_get_transfer(struct pipe_context * ctx,struct pipe_resource * resource,unsigned usage,const struct pipe_box * box,struct pipe_transfer ** ptransfer,void * data,struct si_resource * staging,unsigned offset) argument 498 struct si_resource *staging; local in function:si_buffer_transfer_map [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_transfer.c | 132 } else if (trans->staging) { 139 trans->staging, ptrans->box.x, ptrans->box.y, 147 trans->staging, ptrans->stride, 153 FREE(trans->staging); 426 trans->staging = MALLOC(size); 427 if (!trans->staging) 432 etna_texture_untile(trans->staging, 438 util_copy_box(trans->staging, rsc->base.format, ptrans->stride, 450 return trans->staging;
|
| H A D | etnaviv_context.h | 72 void *staging; member in struct:etna_transfer
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_transfer.c | 132 } else if (trans->staging) { 140 trans->staging + z * ptrans->layer_stride, 150 trans->staging, ptrans->stride, 156 FREE(trans->staging); 458 trans->staging = MALLOC(size); 459 if (!trans->staging) 465 etna_texture_untile(trans->staging + z * ptrans->layer_stride, 472 util_copy_box(trans->staging, rsc->base.format, ptrans->stride, 484 return trans->staging;
|
| H A D | etnaviv_context.h | 71 void *staging; member in struct:etna_transfer
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/ |
| H A D | si_buffer.c | 313 struct si_resource *staging, unsigned offset) 333 transfer->b.staging = NULL; 334 transfer->staging = staging; 358 * So don't ever use staging buffers. 415 struct si_resource *staging = NULL; local in function:si_buffer_transfer_map 429 (struct pipe_resource **)&staging, (void **)&data); 431 if (staging) { 433 return si_buffer_get_transfer(ctx, resource, usage, box, ptransfer, data, staging, 443 /* Use a staging buffe 310 si_buffer_get_transfer(struct pipe_context * ctx,struct pipe_resource * resource,unsigned usage,const struct pipe_box * box,struct pipe_transfer ** ptransfer,void * data,struct si_resource * staging,unsigned offset) argument 447 struct si_resource *staging; local in function:si_buffer_transfer_map [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/ |
| H A D | u_transfer_helper.c | 73 void *staging; /* staging buffer */ member in struct:u_transfer 74 struct pipe_resource *ss; /* staging resource for MSAA resolves */ 156 * pctx->transfer_map() to map the staging resource, to handle cases of 262 trans->staging = malloc(ptrans->layer_stride); 263 if (!trans->staging) 279 util_format_z32_float_s8x24_uint_pack_z_float(trans->staging, 284 util_format_z32_float_s8x24_uint_pack_s_8uint(trans->staging, 291 util_format_z24_unorm_s8_uint_pack_separate(trans->staging, 310 util_format_rgtc1_unorm_pack_rgba_8unorm(trans->staging, [all...] |
| H A D | u_threaded_context.h | 278 /* If positive, prefer DISCARD_RANGE with a staging buffer over any other 289 struct pipe_resource *staging; member in struct:threaded_transfer 291 /* Offset into the staging buffer, because the backing buffer is
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/panfrost/ |
| H A D | pan_resource.h | 101 } staging; member in struct:panfrost_transfer
|
| H A D | pan_resource.c | 365 /* AFBC<-->staging is expensive */ 741 * the 3D pipe for this. Let's wrap u_blitter to blit to/from staging textures. 801 blit.src.resource = trans->staging.rsrc; 802 blit.src.format = pan_blit_format(trans->staging.rsrc->format); 804 blit.src.box = trans->staging.box; 821 blit.dst.resource = trans->staging.rsrc; 822 blit.dst.format = pan_blit_format(trans->staging.rsrc->format); 824 blit.dst.box = trans->staging.box; 858 /* We don't have s/w routines for AFBC, so use a staging texture */ 860 struct panfrost_resource *staging local in function:panfrost_ptr_map [all...] |
| /xsrc/external/mit/MesaLib/dist/src/panfrost/bifrost/valhall/ |
| H A D | valhall.py | 172 def __init__(self, name, opcode, opcode2, srcs = [], dests = [], immediates = [], modifiers = [], staging = None): 180 self.staging = staging 195 assert(len(dests) == 0 or not staging) 257 # Get staging registers 258 staging = [build_staging(i, el) for i, el in enumerate(el.findall('sr'))] 270 instr = Instruction(name, opcode, opcode2, srcs = sources, dests = dests, immediates = imms, modifiers = modifiers, staging = staging)
|
| H A D | asm.py | 205 expected_op_count = len(ins.srcs) + len(ins.dests) + len(ins.immediates) + len(ins.staging) 210 for i, (op, sr) in enumerate(zip(operands, ins.staging)): 211 die_if(op[0] != '@', f'Expected staging register, got {op}') 218 die_if(sr_count < 1, f'Expected staging register, got {op}') 219 die_if(sr_count > 7, f'Too many staging registers {sr_count}') 223 'Expected consecutive staging registers, got {op}') 228 die_if(sr_count != sr.count, f"Expected 4 staging registers, got {sr_count}") 231 operands = operands[len(ins.staging):] 237 if len(ins.dests) == 0 and len(ins.staging) == 0:
|