Lines Matching defs:batch
644 struct agx_batch *batch,
657 unsigned minx = CLAMP((int) (trans_x - abs_scale_x), 0, batch->width);
658 unsigned miny = CLAMP((int) (trans_y - abs_scale_y), 0, batch->height);
659 unsigned maxx = CLAMP((int) (trans_x + abs_scale_x), 0, batch->width);
660 unsigned maxy = CLAMP((int) (trans_y + abs_scale_y), 0, batch->height);
693 struct agx_scissor_packed *ptr = batch->scissor.bo->ptr.cpu;
694 unsigned index = (batch->scissor.count++);
712 agx_upload_depth_bias(struct agx_batch *batch,
715 struct agx_depth_bias_packed *ptr = batch->depth_bias.bo->ptr.cpu;
716 unsigned index = (batch->depth_bias.count++);
740 /* XXX: eliminate this flush with batch tracking logic */
744 ctx->batch->width = state->width;
745 ctx->batch->height = state->height;
746 ctx->batch->nr_cbufs = state->nr_cbufs;
747 ctx->batch->cbufs[0] = state->cbufs[0];
748 ctx->batch->zsbuf = state->zsbuf;
821 /* BOs added to the batch in the uniform upload path */
1019 .nr_cbufs = ctx->batch->nr_cbufs,
1023 struct pipe_surface *surf = ctx->batch->cbufs[i];
1074 struct agx_ptr ptr = agx_pool_alloc_aligned(&ctx->batch->pipeline_pool,
1111 agx_batch_add_bo(ctx->batch, tex->desc);
1112 agx_batch_add_bo(ctx->batch, agx_resource(tex->base.texture)->bo);
1131 agx_batch_add_bo(ctx->batch, bo);
1182 struct agx_ptr ptr = agx_pool_alloc_aligned(&ctx->batch->pipeline_pool,
1221 struct agx_ptr ptr = agx_pool_alloc_aligned(&ctx->batch->pipeline_pool,
1228 struct agx_ptr sampler = agx_pool_alloc_aligned(&ctx->batch->pool, AGX_SAMPLER_LENGTH, 64);
1229 struct agx_ptr texture = agx_pool_alloc_aligned(&ctx->batch->pool, AGX_TEXTURE_LENGTH, 64);
1316 struct agx_ptr ptr = agx_pool_alloc_aligned(&ctx->batch->pipeline_pool,
1337 cfg.buffer = agx_pool_upload_aligned(&ctx->batch->pool, unk, sizeof(unk), 16);
1516 struct agx_pool *pool = &ctx->batch->pool;
1529 zbias = agx_upload_depth_bias(ctx->batch, &ctx->rast->base);
1535 ctx->batch, &ctx->viewport,
1566 agx_index_buffer_ptr(struct agx_batch *batch,
1574 agx_batch_add_bo(batch, bo);
1578 return agx_pool_upload_aligned(&batch->pool,
1609 struct agx_batch *batch = ctx->batch;
1615 ctx->batch->draw |= ~0;
1621 agx_batch_add_bo(batch, ctx->vs->bo);
1622 agx_batch_add_bo(batch, ctx->fs->bo);
1629 ptrdiff_t encoder_use = batch->encoder_current - (uint8_t *) batch->encoder->ptr.cpu;
1630 assert((encoder_use + 1024) < batch->encoder->size && "todo: how to expand encoder?");
1632 uint8_t *out = agx_encode_state(ctx, batch->encoder_current,
1641 uint64_t ib = agx_index_buffer_ptr(batch, draws, info);
1674 batch->encoder_current = out;