llvmpipe/setup: move line stats collection earlier.
authorDave Airlie <airlied@redhat.com>
Fri, 10 Apr 2020 00:15:50 +0000 (10:15 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Apr 2020 04:26:20 +0000 (14:26 +1000)
commitdc261cdd4238038c91f9fe4232fad7b5a20050d7
treef8c0528dd8eb44d2e615425a523f6341f2a4da18
parent80fa8304c807b2ef28bf9e37bdd7afadfde216ce
llvmpipe/setup: move line stats collection earlier.

You have to count the stats pre-culling here.

Fixes:
KHR-GL45.pipeline_statistics_query_tests_ARB.functional_primitives_vertices_submitted_and_clipping_input_output_primitives

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
src/gallium/drivers/llvmpipe/lp_setup_line.c