Lines Matching refs:tgt
3972 struct crocus_stream_output_target *tgt = (void *)so;
3976 u_box_1d(tgt->offset_offset, 4, &box);
3977 void *val = so->context->buffer_map(so->context, &tgt->offset_res->base.b,
3984 return result / tgt->stride;
3991 struct crocus_stream_output_target *tgt,
3998 struct crocus_stream_output_target *tgt = (void *)so;
4002 compute_vertices_written_so_far(ice, tgt, &tgt->prev_count, &vert_written);
4065 aggregate_stream_counter(struct crocus_batch *batch, struct crocus_stream_output_target *tgt,
4068 uint64_t *prim_counts = tgt->prim_map;
4070 if (crocus_batch_references(batch, tgt->offset_res->bo)) {
4080 tgt->count.offset_start = tgt->count.offset_end = 0;
4085 struct crocus_stream_output_target *tgt)
4087 if (!tgt->offset_res) {
4089 &tgt->offset_offset,
4090 (struct pipe_resource **)&tgt->offset_res,
4091 &tgt->prim_map);
4092 tgt->count.offset_start = tgt->count.offset_end = 0;
4095 if (tgt->count.offset_end + 16 >= 4096) {
4096 aggregate_stream_counter(batch, tgt, &tgt->prev_count);
4097 aggregate_stream_counter(batch, tgt, &tgt->count);
4102 tgt->offset_res->bo,
4103 tgt->count.offset_end + tgt->offset_offset, false);
4104 tgt->count.offset_end += 8;
4109 struct crocus_stream_output_target *tgt,
4114 aggregate_stream_counter(&ice->batches[0], tgt, counter);
4156 struct crocus_stream_output_target *tgt =
4158 if (tgt) {
4159 struct crocus_resource *res = (void *) tgt->base.buffer;
4181 struct crocus_stream_output_target *tgt =
4184 if (!tgt)
4190 tgt->count.offset_start = tgt->count.offset_end;
4191 tgt->count.accum = 0;
4194 if (tgt->offset_res) {
4195 compute_vertices_written_so_far(ice, tgt, &tgt->count, &ice->state.svbi);
4196 tgt->count.offset_start = tgt->count.offset_end;
4201 crocus_stream_store_prims_written(batch, tgt);
4205 struct crocus_stream_output_target *tgt =
4207 if (tgt) {
4209 crocus_stream_store_prims_written(batch, tgt);
4213 if (tgt->offset_res) {
4214 tgt->prev_count = tgt->count;
4224 struct crocus_stream_output_target *tgt =
4229 if (tgt)
4230 tgt->zero_offset = true;
4234 else if (tgt)
4236 tgt->offset_res->bo,
4237 tgt->offset_offset);
4239 struct crocus_stream_output_target *tgt =
4241 if (tgt)
4243 tgt->offset_res->bo,
4244 tgt->offset_offset, false);
4407 struct crocus_stream_output_target *tgt =
4409 if (tgt)
4410 max_vertex = MIN2(max_vertex, tgt->base.buffer_size / tgt->stride);
6564 struct crocus_stream_output_target *tgt =
6567 if (!tgt) {
6574 struct crocus_resource *res = (void *) tgt->base.buffer;
6575 uint32_t start = tgt->base.buffer_offset;
6577 uint32_t end = ALIGN(start + tgt->base.buffer_size, 4);
6585 sob.SurfacePitch = tgt->stride;
6592 sob.SurfaceSize = MAX2(tgt->base.buffer_size / 4, 1) - 1;
6594 rw_bo(crocus_resource_bo(&tgt->offset_res->base.b), tgt->offset_offset);
6595 if (tgt->zero_offset) {
6597 tgt->zero_offset = false;