Home | History | Annotate | Download | only in state_tracker

Lines Matching refs:sobj

87    struct st_transform_feedback_object *sobj =
91 for (i = 0; i < ARRAY_SIZE(sobj->draw_count); i++)
92 pipe_so_target_reference(&sobj->draw_count[i], NULL);
95 for (i = 0; i < sobj->num_targets; i++) {
96 pipe_so_target_reference(&sobj->targets[i], NULL);
99 for (i = 0; i < ARRAY_SIZE(sobj->base.Buffers); i++) {
100 _mesa_reference_buffer_object(ctx, &sobj->base.Buffers[i], NULL);
114 struct st_transform_feedback_object *sobj =
119 max_num_targets = MIN2(ARRAY_SIZE(sobj->base.Buffers),
120 ARRAY_SIZE(sobj->targets));
124 struct st_buffer_object *bo = st_buffer_object(sobj->base.Buffers[i]);
131 if (!sobj->targets[i] ||
132 sobj->targets[i] == sobj->draw_count[stream] ||
133 sobj->targets[i]->buffer != bo->buffer ||
134 sobj->targets[i]->buffer_offset != sobj->base.Offset[i] ||
135 sobj->targets[i]->buffer_size != sobj->base.Size[i]) {
139 sobj->base.Offset[i],
140 sobj->base.Size[i]);
142 pipe_so_target_reference(&sobj->targets[i], NULL);
143 sobj->targets[i] = so_target;
146 sobj->num_targets = i+1;
148 pipe_so_target_reference(&sobj->targets[i], NULL);
153 cso_set_stream_outputs(st->cso_context, sobj->num_targets,
154 sobj->targets, offsets);
172 struct st_transform_feedback_object *sobj =
180 cso_set_stream_outputs(st->cso_context, sobj->num_targets,
181 sobj->targets, offsets);
190 struct st_transform_feedback_object *sobj =
202 for (i = 0; i < ARRAY_SIZE(sobj->draw_count); i++)
203 pipe_so_target_reference(&sobj->draw_count[i], NULL);
205 for (i = 0; i < ARRAY_SIZE(sobj->targets); i++) {
210 if (!sobj->targets[i] || sobj->draw_count[stream])
213 pipe_so_target_reference(&sobj->draw_count[stream], sobj->targets[i]);
222 struct st_transform_feedback_object *sobj =
225 out->count_from_stream_output = sobj->draw_count[stream];