summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3dx_draw.c
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-07-24 09:59:25 +0200
committerIago Toral Quiroga <[email protected]>2019-07-26 08:29:41 +0200
commit47eb74ae00bd2d3b26d5154b99332af062107265 (patch)
tree261c2375888cbc2803e10c418b4563012c30a5b7 /src/gallium/drivers/v3d/v3dx_draw.c
parent39df568ca1c62929044bce4967ad0f17eeb35d36 (diff)
v3d: subclass pipe_streamout_output_target to record TF vertices written
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/v3d/v3dx_draw.c')
-rw-r--r--src/gallium/drivers/v3d/v3dx_draw.c5
1 files changed, 5 insertions, 0 deletions
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