llvmpipe: Drop PIPE_QUERY_TIME_ELAPSED support.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 9 Dec 2012 10:15:19 +0000 (10:15 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 20 Dec 2012 16:33:49 +0000 (16:33 +0000)
commitab2f573634d21cf5d2c0843960b98e890d495793
tree03ebcde34434e1d1d3e7b5233d29856952d4f149
parent3160b0b9fc2b49b0e9fe684b955eebf3691024ff
llvmpipe: Drop PIPE_QUERY_TIME_ELAPSED support.

It was slightly wrong: we were computing the longest duration of
the query among all the rasterizer tasks.

Regardless, for tile-based implementations such as llvmpipe, time differences
will never be very useful, because rendering before/during/after the query
is all interleaved.  And this is expected, see ARB_timer_query spec, issue 10.

In particular, piglit ext_timer_query-time-elapsed still fails, because
it makes assumptions that don't hold true in in tiled architectures. Not
sure how to fix that though.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/llvmpipe/lp_query.c
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_screen.c