Lines Matching defs:batch
75 /* Nothing beyond the batch itself */
92 panfrost_get_index_buffer(struct panfrost_batch *batch,
101 panfrost_batch_read_rsrc(batch, rsrc, PIPE_SHADER_VERTEX);
107 pan_pool_alloc_aligned(&batch->pool.base,
124 panfrost_get_index_buffer_bounded(struct panfrost_batch *batch,
130 struct panfrost_context *ctx = batch->ctx;
156 return panfrost_get_index_buffer(batch, info, draw);
189 * Helper to add a PIPE_CLEAR_* to batch->draws and batch->resolve together,
191 * generally make sense, except for clears which add to batch->clear and
192 * batch->resolve together.
195 panfrost_draw_target(struct panfrost_batch *batch, unsigned target)
197 batch->draws |= target;
198 batch->resolve |= target;
202 * Draw time helper to set batch->{read, draws, resolve} based on current blend
207 panfrost_set_batch_masks_blend(struct panfrost_batch *batch)
209 struct panfrost_context *ctx = batch->ctx;
212 for (unsigned i = 0; i < batch->key.nr_cbufs; ++i) {
213 if (!blend->info[i].no_colour && batch->key.cbufs[i])
214 panfrost_draw_target(batch, PIPE_CLEAR_COLOR0 << i);
219 panfrost_set_batch_masks_zs(struct panfrost_batch *batch)
221 struct panfrost_context *ctx = batch->ctx;
226 batch->read |= PIPE_CLEAR_DEPTH;
229 panfrost_draw_target(batch, PIPE_CLEAR_DEPTH);
232 panfrost_draw_target(batch, PIPE_CLEAR_STENCIL);
235 batch->read |= PIPE_CLEAR_STENCIL;
240 panfrost_track_image_access(struct panfrost_batch *batch,
247 panfrost_batch_write_rsrc(batch, rsrc, stage);
258 panfrost_batch_read_rsrc(batch, rsrc, stage);