llvmpipe: fix wrong results for queries not in a scene 92/7092/1
authorRoland Scheidegger <sroland@vmware.com>
Thu, 20 Jun 2013 18:31:18 +0000 (20:31 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 22 Jun 2013 15:09:37 +0000 (17:09 +0200)
commitd282f4ea9b99e4eefec8ce0664cdf49d53d7b052
treef1e7cafbc6257b729cc479e2919c4ed9eb3423fa
parenta415aa9489270dcda616dc8e9fd01d9c0f3a4678
llvmpipe: fix wrong results for queries not in a scene

The result isn't always 0 in this case (depends on query type),
so instead of special casing this just use the ordinary path (should result
in correct values thanks to initialization in query_begin/end), just
skipping the fence wait.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_query.c