mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
llvmpipe/setup: move point stats collection earlier.
You have to count the stats pre-culling here. Just likedc261cdd42did for lines. VK-GL-CTS dEQP-VK.query_pool.statistics_query.clipping_primitives*point_list Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7705> (cherry picked from commit2ed54033de)
This commit is contained in:
parent
904811faac
commit
ad4d87a537
2 changed files with 5 additions and 5 deletions
|
|
@ -625,7 +625,7 @@
|
|||
"description": "llvmpipe/setup: move point stats collection earlier.",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -447,6 +447,10 @@ try_setup_point( struct lp_setup_context *setup,
|
|||
bbox.x1, bbox.y1);
|
||||
}
|
||||
|
||||
if (lp_context->active_statistics_queries) {
|
||||
lp_context->pipeline_statistics.c_primitives++;
|
||||
}
|
||||
|
||||
if (!u_rect_test_intersection(&setup->draw_regions[viewport_index], &bbox)) {
|
||||
if (0) debug_printf("offscreen\n");
|
||||
LP_COUNT(nr_culled_tris);
|
||||
|
|
@ -469,10 +473,6 @@ try_setup_point( struct lp_setup_context *setup,
|
|||
|
||||
LP_COUNT(nr_tris);
|
||||
|
||||
if (lp_context->active_statistics_queries) {
|
||||
lp_context->pipeline_statistics.c_primitives++;
|
||||
}
|
||||
|
||||
if (draw_will_inject_frontface(lp_context->draw) &&
|
||||
setup->face_slot > 0) {
|
||||
point->inputs.frontfacing = v0[setup->face_slot][0];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue