diff options
author | Iago Toral Quiroga <[email protected]> | 2019-07-24 09:59:25 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2019-07-26 08:29:41 +0200 |
commit | 47eb74ae00bd2d3b26d5154b99332af062107265 (patch) | |
tree | 261c2375888cbc2803e10c418b4563012c30a5b7 /src/gallium/drivers/v3d/v3dx_draw.c | |
parent | 39df568ca1c62929044bce4967ad0f17eeb35d36 (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.c | 5 |
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 |