freedreno: batch query prep-work
authorRob Clark <robdclark@gmail.com>
Thu, 28 Jun 2018 12:16:12 +0000 (08:16 -0400)
committerRob Clark <robdclark@gmail.com>
Wed, 18 Jul 2018 14:19:03 +0000 (10:19 -0400)
commit9e30e7490da0a89a1760fc23d150e21310066d0c
tree1ced42dc710600f6a153445fa0883ccb7f7e8c56
parent37b724ff723e96ebd3397e9d3bc464428afc5f08
freedreno: batch query prep-work

For batch queries we have N different query_type's for one query, so
mapping a single query_type to a sample_provider doesn't really work
out.  Instead add a new constructor to construct a query directly
from a sample_provider.

Also, the sample buffer size needs to be determined at runtime, as
it depends on the number of query_types.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_query_acc.c
src/gallium/drivers/freedreno/freedreno_query_acc.h