| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ |
| freedreno_batch.c | 39 alloc_ring(struct fd_batch *batch, unsigned sz, enum fd_ringbuffer_flags flags) 41 struct fd_context *ctx = batch->ctx; 57 return fd_submit_new_ringbuffer(batch->submit, sz, flags); 61 batch_init(struct fd_batch *batch) 63 struct fd_context *ctx = batch->ctx; 65 batch->submit = fd_submit_new(ctx->pipe); 66 if (batch->nondraw) { 67 batch->gmem = alloc_ring(batch, 0x1000, FD_RINGBUFFER_PRIMARY); 68 batch->draw = alloc_ring(batch, 0x100000, 0) 126 struct fd_batch *batch = CALLOC_STRUCT(fd_batch); local 277 batch_reset_dependencies(batch); variable 280 batch_reset_resources(batch); variable 283 batch_fini(batch); variable 284 batch_init(batch); variable 352 fd_batch_finish_queries(batch); variable 354 batch_flush_dependencies(batch); variable 357 batch_reset_resources(batch); variable 374 fd_gmem_render_tiles(batch); variable 378 cleanup_submit(batch); variable 379 fd_batch_unlock_submit(batch); variable [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/ |
| freedreno_batch.c | 39 batch_init(struct fd_batch *batch) 41 struct fd_context *ctx = batch->ctx; 45 util_queue_fence_init(&batch->flush_fence); 59 batch->submit = fd_submit_new(ctx->pipe); 60 if (batch->nondraw) { 61 batch->draw = fd_submit_new_ringbuffer(batch->submit, size, 64 batch->gmem = fd_submit_new_ringbuffer(batch->submit, size, 66 batch->draw = fd_submit_new_ringbuffer(batch->submit, size 110 struct fd_batch *batch = CALLOC_STRUCT(fd_batch); local 294 struct fd_batch *batch = job; local 305 struct fd_batch *batch = job; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/iris/ |
| iris_batch.c | 29 * collect into a "batch buffer". Typically, many draw calls are grouped 30 * into a single batch to amortize command submission overhead. 36 * virtual memory address before executing our batch. If a BO is not in 64 /* Terminating the batch takes either 4 bytes for MI_BATCH_BUFFER_END 71 iris_batch_reset(struct iris_batch *batch); 74 num_fences(struct iris_batch *batch) 76 return util_dynarray_num_elements(&batch->exec_fences, 84 dump_fence_list(struct iris_batch *batch) 86 fprintf(stderr, "Fence list (length %u): ", num_fences(batch)); 88 util_dynarray_foreach(&batch->exec_fences 128 struct iris_batch *batch = v_batch; local [all...] |
| iris_batch.h | 41 /* Our target batch size - flush approximately at this point. */ 62 /** What batch is this? (e.g. IRIS_BATCH_RENDER/COMPUTE) */ 69 /** Size of the primary batch if we've moved on to a secondary. */ 77 /** Which engine this batch targets - a I915_EXEC_RING_MASK value */ 87 * A list of iris_syncpts associated with this batch. 90 * that this batch has completed. The others are likely to be sync-points 91 * to wait on before executing the batch. 101 /** A sync-point for the last batch that was submitted. */ 125 /** Have we emitted any draw calls to this batch? */ 129 void iris_init_batch(struct iris_batch *batch, [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/i915/ |
| i915_batchbuffer.h | 37 i915_winsys_batchbuffer_space(struct i915_winsys_batchbuffer *batch) 39 return batch->size - (batch->ptr - batch->map); 43 i915_winsys_batchbuffer_check(struct i915_winsys_batchbuffer *batch, 46 return dwords * 4 <= i915_winsys_batchbuffer_space(batch); 50 i915_winsys_batchbuffer_dword_unchecked(struct i915_winsys_batchbuffer *batch, 53 *(unsigned *)batch->ptr = dword; 54 batch->ptr += 4; 58 i915_winsys_batchbuffer_float(struct i915_winsys_batchbuffer *batch, float f [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/i915/ |
| i915_batchbuffer.h | 37 i915_winsys_batchbuffer_space(struct i915_winsys_batchbuffer *batch) 39 return batch->size - (batch->ptr - batch->map); 43 i915_winsys_batchbuffer_check(struct i915_winsys_batchbuffer *batch, 46 return dwords * 4 <= i915_winsys_batchbuffer_space(batch); 50 i915_winsys_batchbuffer_dword_unchecked(struct i915_winsys_batchbuffer *batch, 53 *(unsigned *)batch->ptr = dword; 54 batch->ptr += 4; 58 i915_winsys_batchbuffer_float(struct i915_winsys_batchbuffer *batch, [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/crocus/ |
| crocus_fine_fence.c | 6 crocus_fine_fence_reset(struct crocus_batch *batch) 8 u_upload_alloc(batch->fine_fences.uploader, 10 &batch->fine_fences.ref.offset, &batch->fine_fences.ref.res, 11 (void **)&batch->fine_fences.map); 12 WRITE_ONCE(*batch->fine_fences.map, 0); 13 batch->fine_fences.next++; 17 crocus_fine_fence_init(struct crocus_batch *batch) 19 batch->fine_fences.ref.res = NULL; 20 batch->fine_fences.next = 0 [all...] |
| crocus_batch.c | 29 * collect into a "batch buffer". Typically, many draw calls are grouped 30 * into a single batch to amortize command submission overhead. 36 * virtual memory address before executing our batch. If a BO is not in 66 /* Terminating the batch takes either 4 bytes for MI_BATCH_BUFFER_END 72 static void crocus_batch_reset(struct crocus_batch *batch); 75 num_fences(struct crocus_batch *batch) 77 return util_dynarray_num_elements(&batch->exec_fences, 85 dump_fence_list(struct crocus_batch *batch) 87 fprintf(stderr, "Fence list (length %u): ", num_fences(batch)); 89 util_dynarray_foreach(&batch->exec_fences 127 struct crocus_batch *batch = v_batch; local 151 struct crocus_batch *batch = v_batch; local 192 struct crocus_batch *batch = &ice->batches[name]; local [all...] |
| crocus_pipe_control.c | 58 crocus_emit_pipe_control_flush(struct crocus_batch *batch, 62 const struct intel_device_info *devinfo = &batch->screen->devinfo; 78 crocus_emit_end_of_pipe_sync(batch, reason, 83 batch->screen->vtbl.emit_raw_pipe_control(batch, reason, flags, NULL, 0, 0); 95 crocus_emit_pipe_control_write(struct crocus_batch *batch, 100 batch->screen->vtbl.emit_raw_pipe_control(batch, reason, flags, bo, offset, imm); 116 crocus_emit_depth_stall_flushes(struct crocus_batch *batch) 118 UNUSED const struct intel_device_info *devinfo = &batch->screen->devinfo [all...] |
| crocus_blorp.c | 53 stream_state(struct crocus_batch *batch, 59 uint32_t offset = ALIGN(batch->state.used, alignment); 61 if (offset + size >= STATE_SZ && !batch->no_wrap) { 62 crocus_batch_flush(batch); 63 offset = ALIGN(batch->state.used, alignment); 64 } else if (offset + size >= batch->state.bo->size) { 66 MIN2(batch->state.bo->size + batch->state.bo->size / 2, 68 crocus_grow_buffer(batch, true, batch->state.used, new_size) 90 struct crocus_batch *batch = blorp_batch->driver_batch; local 98 struct crocus_batch *batch = blorp_batch->driver_batch; local 120 struct crocus_batch *batch = blorp_batch->driver_batch; local 143 struct crocus_batch *batch = blorp_batch->driver_batch; local 157 struct crocus_batch *batch = blorp_batch->driver_batch; local 181 struct crocus_batch *batch = blorp_batch->driver_batch; local 198 struct crocus_batch *batch = blorp_batch->driver_batch; local 230 struct crocus_batch *batch = blorp_batch->driver_batch; local 252 struct crocus_batch *batch = blorp_batch->driver_batch; local 261 struct crocus_batch *batch = blorp_batch->driver_batch; local 275 struct crocus_batch *batch = blorp_batch->driver_batch; local [all...] |
| crocus_batch.h | 49 /* Our target batch size - flush approximately at this point. */ 89 /** What batch is this? (e.g. CROCUS_BATCH_RENDER/COMPUTE) */ 95 /** Size of the primary batch if we've moved on to a secondary. */ 114 /** Whether INTEL_BLACKHOLE_RENDER is enabled in the batch (aka first 120 * A list of crocus_syncobjs associated with this batch. 123 * that this batch has completed. The others are likely to be sync-points 124 * to wait on before executing the batch. 146 /** A seqno (and syncobj) for the last batch that was submitted. */ 171 /** Have we emitted any draw calls to this batch? */ 174 /** Batch contains fence signal operation. * [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/iris/ |
| iris_batch.h | 44 /* Terminating the batch takes either 4 bytes for MI_BATCH_BUFFER_END or 12 51 /* Our target batch size - flush approximately at this point. */ 65 /** What batch is this? (e.g. IRIS_BATCH_RENDER/COMPUTE) */ 73 /** Size of the primary batch being submitted to execbuf (in bytes). */ 84 /** A list of all BOs referenced by this batch */ 88 /** Bitset of whether this batch writes to BO `i'. */ 92 /** Whether INTEL_BLACKHOLE_RENDER is enabled in the batch (aka first 98 * A list of iris_syncobjs associated with this batch. 101 * that this batch has completed. The others are likely to be sync-points 102 * to wait on before executing the batch [all...] |
| iris_batch.c | 29 * collect into a "batch buffer". Typically, many draw calls are grouped 30 * into a single batch to amortize command submission overhead. 36 * virtual memory address before executing our batch. If a BO is not in 68 iris_batch_reset(struct iris_batch *batch); 71 num_fences(struct iris_batch *batch) 73 return util_dynarray_num_elements(&batch->exec_fences, 81 dump_fence_list(struct iris_batch *batch) 83 fprintf(stderr, "Fence list (length %u): ", num_fences(batch)); 85 util_dynarray_foreach(&batch->exec_fences, 100 dump_bo_list(struct iris_batch *batch) 128 struct iris_batch *batch = v_batch; local 154 struct iris_batch *batch = v_batch; local 177 struct iris_batch *batch = &ice->batches[name]; local [all...] |
| iris_fine_fence.c | 6 iris_fine_fence_reset(struct iris_batch *batch) 8 u_upload_alloc(batch->fine_fences.uploader, 10 &batch->fine_fences.ref.offset, &batch->fine_fences.ref.res, 11 (void **)&batch->fine_fences.map); 12 WRITE_ONCE(*batch->fine_fences.map, 0); 13 batch->fine_fences.next++; 17 iris_fine_fence_init(struct iris_batch *batch) 19 batch->fine_fences.ref.res = NULL; 20 batch->fine_fences.next = 0 [all...] |
| /xsrc/external/mit/xf86-video-intel-old/dist/src/xvmc/ |
| intel_batchbuffer.c | 88 unsigned int size = xvmc_driver->batch.ptr - 89 xvmc_driver->batch.init_ptr; 91 *(unsigned int*)xvmc_driver->batch.ptr = 0; 92 xvmc_driver->batch.ptr += 4; 94 *(unsigned int*)xvmc_driver->batch.ptr = MI_BATCH_BUFFER_END; 95 xvmc_driver->batch.ptr += 4; 102 if((xvmc_driver->batch.buf = 104 "batch buffer", BATCH_SIZE, 0x1000)) == NULL) { 105 fprintf(stderr, "unable to alloc batch buffer\n"); 110 drm_intel_gem_bo_map_gtt(xvmc_driver->batch.buf) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/d3d12/ |
| d3d12_batch.cpp | 39 d3d12_init_batch(struct d3d12_context *ctx, struct d3d12_batch *batch) 43 batch->bos = _mesa_set_create(NULL, _mesa_hash_pointer, 45 batch->sampler_views = _mesa_set_create(NULL, _mesa_hash_pointer, 47 batch->surfaces = _mesa_set_create(NULL, _mesa_hash_pointer, 49 batch->objects = _mesa_set_create(NULL, 53 if (!batch->bos || !batch->sampler_views || !batch->surfaces || !batch->objects) 56 util_dynarray_init(&batch->zombie_samplers, NULL) [all...] |
| /xsrc/external/mit/xf86-video-intel/dist/xvmc/ |
| intel_batchbuffer.c | 55 unsigned int size = xvmc_driver->batch.ptr - 56 xvmc_driver->batch.init_ptr; 58 *(unsigned int *)xvmc_driver->batch.ptr = 0; 59 xvmc_driver->batch.ptr += 4; 61 *(unsigned int *)xvmc_driver->batch.ptr = MI_BATCH_BUFFER_END; 62 xvmc_driver->batch.ptr += 4; 67 dri_bo *bo = xvmc_driver->batch.buf; 69 xvmc_driver->batch.ptr = xvmc_driver->batch.init_ptr = bo->virtual; 70 xvmc_driver->batch.size = bo->size [all...] |
| /xsrc/external/mit/xf86-video-intel-2014/dist/xvmc/ |
| intel_batchbuffer.c | 55 unsigned int size = xvmc_driver->batch.ptr - 56 xvmc_driver->batch.init_ptr; 58 *(unsigned int *)xvmc_driver->batch.ptr = 0; 59 xvmc_driver->batch.ptr += 4; 61 *(unsigned int *)xvmc_driver->batch.ptr = MI_BATCH_BUFFER_END; 62 xvmc_driver->batch.ptr += 4; 67 dri_bo *bo = xvmc_driver->batch.buf; 69 xvmc_driver->batch.ptr = xvmc_driver->batch.init_ptr = bo->virtual; 70 xvmc_driver->batch.size = bo->size [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/ |
| brw_batch.c | 45 * Target sizes of the batch and state buffers. We create the initial 50 * should flush. Each time we flush the batch, we recreate both buffers 62 num_fences(struct brw_batch *batch) 64 return util_dynarray_num_elements(&batch->exec_fences, 70 dump_validation_list(struct brw_batch *batch) 72 fprintf(stderr, "Validation list (length %d):\n", batch->exec_count); 74 for (int i = 0; i < batch->exec_count; i++) { 75 uint64_t flags = batch->validation_list[i].flags; 76 assert(batch->validation_list[i].handle == 77 batch->exec_bos[i]->gem_handle) 95 struct brw_batch *batch = &brw->batch; local 118 struct brw_batch *batch = &brw->batch; local 138 struct brw_batch *batch = &brw->batch; local 238 struct brw_batch *batch = &brw->batch; local 261 struct brw_batch *batch = &brw->batch; local 320 struct brw_batch *batch = &brw->batch; local 410 struct brw_batch *batch = &brw->batch; local 547 struct brw_batch *batch = &brw->batch; local 780 struct brw_batch *batch = &brw->batch; local 1073 struct brw_batch *batch = &brw->batch; local [all...] |
| brw_batch.h | 25 void brw_batch_free(struct brw_batch *batch); 52 return brw->batch.aperture_space + extra_space <= 56 bool brw_batch_references(struct brw_batch *batch, struct brw_bo *bo); 63 void brw_use_pinned_bo(struct brw_batch *batch, struct brw_bo *bo, 66 uint64_t brw_batch_reloc(struct brw_batch *batch, 71 uint64_t brw_state_reloc(struct brw_batch *batch, 78 ((uintptr_t)((_batch).map_next - (_batch).batch.map)) 97 brw->batch.emit = USED_BATCH(brw->batch); 98 brw->batch.total = n 106 struct brw_batch *batch = &brw->batch; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/i965/ |
| intel_batchbuffer.c | 45 * Target sizes of the batch and state buffers. We create the initial 50 * should flush. Each time we flush the batch, we recreate both buffers 62 dump_validation_list(struct intel_batchbuffer *batch) 64 fprintf(stderr, "Validation list (length %d):\n", batch->exec_count); 66 for (int i = 0; i < batch->exec_count; i++) { 67 uint64_t flags = batch->validation_list[i].flags; 68 assert(batch->validation_list[i].handle == 69 batch->exec_bos[i]->gem_handle); 72 batch->validation_list[i].handle, 73 batch->exec_bos[i]->name 87 struct intel_batchbuffer *batch = &brw->batch; local 110 struct intel_batchbuffer *batch = &brw->batch; local 142 struct intel_batchbuffer *batch = &brw->batch; local 237 struct intel_batchbuffer *batch = &brw->batch; local 260 struct intel_batchbuffer *batch = &brw->batch; local 309 struct intel_batchbuffer *batch = &brw->batch; local 399 struct intel_batchbuffer *batch = &brw->batch; local 530 struct intel_batchbuffer *batch = &brw->batch; local 755 struct intel_batchbuffer *batch = &brw->batch; local 1037 struct intel_batchbuffer *batch = &brw->batch; local [all...] |
| intel_batchbuffer.h | 25 void intel_batchbuffer_free(struct intel_batchbuffer *batch); 51 return brw->batch.aperture_space + extra_space <= 55 bool brw_batch_references(struct intel_batchbuffer *batch, struct brw_bo *bo); 62 void brw_use_pinned_bo(struct intel_batchbuffer *batch, struct brw_bo *bo, 65 uint64_t brw_batch_reloc(struct intel_batchbuffer *batch, 70 uint64_t brw_state_reloc(struct intel_batchbuffer *batch, 77 ((uintptr_t)((_batch).map_next - (_batch).batch.map)) 96 brw->batch.emit = USED_BATCH(brw->batch); 97 brw->batch.total = n 105 struct intel_batchbuffer *batch = &brw->batch; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/panfrost/ |
| pan_job.c | 47 panfrost_batch_idx(struct panfrost_batch *batch) 49 return batch - batch->ctx->batches.slots; 52 /* Adds the BO backing surface to a batch if the surface is non-null */ 55 panfrost_batch_add_surface(struct panfrost_batch *batch, struct pipe_surface *surf) 59 panfrost_batch_write_rsrc(batch, rsrc, PIPE_SHADER_FRAGMENT); 66 struct panfrost_batch *batch) 72 batch->ctx = ctx; 74 batch->seqnum = ++ctx->batches.seqnum; 76 batch->first_bo = INT32_MAX 161 struct panfrost_batch *batch = NULL; local 205 struct panfrost_batch *batch = panfrost_get_batch(ctx, local 219 struct panfrost_batch *batch; local 261 struct panfrost_batch *batch = &ctx->batches.slots[i]; local 792 struct panfrost_batch *batch = panfrost_get_batch_for_fbo(ctx); local 826 struct panfrost_batch *batch = &ctx->batches.slots[i]; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/winsys/i915/drm/ |
| i915_drm_batchbuffer.c | 30 i915_drm_batchbuffer(struct i915_winsys_batchbuffer *batch) 32 return (struct i915_drm_batchbuffer *)batch; 36 i915_drm_batchbuffer_reset(struct i915_drm_batchbuffer *batch) 38 struct i915_drm_winsys *idws = i915_drm_winsys(batch->base.iws); 40 if (batch->bo) 41 drm_intel_bo_unreference(batch->bo); 42 batch->bo = drm_intel_bo_alloc(idws->gem_manager, 44 batch->actual_size, 47 memset(batch->base.map, 0, batch->actual_size) 57 struct i915_drm_batchbuffer *batch = CALLOC_STRUCT(i915_drm_batchbuffer); local 100 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local 165 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local 221 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/winsys/i915/drm/ |
| i915_drm_batchbuffer.c | 30 i915_drm_batchbuffer(struct i915_winsys_batchbuffer *batch) 32 return (struct i915_drm_batchbuffer *)batch; 36 i915_drm_batchbuffer_reset(struct i915_drm_batchbuffer *batch) 38 struct i915_drm_winsys *idws = i915_drm_winsys(batch->base.iws); 40 if (batch->bo) 41 drm_intel_bo_unreference(batch->bo); 42 batch->bo = drm_intel_bo_alloc(idws->gem_manager, 44 batch->actual_size, 47 memset(batch->base.map, 0, batch->actual_size) 57 struct i915_drm_batchbuffer *batch = CALLOC_STRUCT(i915_drm_batchbuffer); local 100 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local 165 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local 221 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local [all...] |