From 47eb74ae00bd2d3b26d5154b99332af062107265 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Wed, 24 Jul 2019 09:59:25 +0200 Subject: v3d: subclass pipe_streamout_output_target to record TF vertices written Reviewed-by: Eric Anholt --- src/gallium/drivers/v3d/v3dx_draw.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/drivers/v3d/v3dx_draw.c') diff --git a/src/gallium/drivers/v3d/v3dx_draw.c b/src/gallium/drivers/v3d/v3dx_draw.c index c78ccdef867..23c184be85d 100644 --- a/src/gallium/drivers/v3d/v3dx_draw.c +++ b/src/gallium/drivers/v3d/v3dx_draw.c @@ -563,6 +563,11 @@ v3d_tf_statistics_record(struct v3d_context *v3d, /* XXX: Only count if we didn't overflow. */ v3d->tf_prims_generated += prims; + for (int i = 0; i < v3d->streamout.num_targets; i++) { + struct v3d_stream_output_target *target = + v3d_stream_output_target(v3d->streamout.targets[i]); + target->recorded_vertex_count += info->count; + } } static void -- cgit v1.2.3