diff options
author | Zack Rusin <[email protected]> | 2013-06-06 08:49:09 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-06-10 22:04:28 -0400 |
commit | 0a3779d95537343505200ad096acf135dcd81b80 (patch) | |
tree | fffde02ddbdc14609680b5783c6617469c8308a9 /src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c | |
parent | 2b2e7bb13361fa93c49c4872cc5070a66a7b1746 (diff) |
draw: fix clipper invocation statistics
We need to figure out the number of invocations of the clipper
before the emit, because in the emit we are after clipping
where the number of primitives will be equal to number of clipper
invocations minus the clipped primitives. So our computations
were always off by the number of clipped primitives.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c index 6d1bd116ba7..84f86ae75ee 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c @@ -317,6 +317,8 @@ static void fetch_pipeline_generic( struct draw_pt_middle_end *middle, */ draw_pt_so_emit( fpme->so_emit, vert_info, prim_info ); + draw_stats_clipper_primitives(draw, prim_info); + /* * if there's no position, need to stop now, or the latter stages * will try to access non-existent position output. |