freedreno: use prsc for hw queries
authorRob Clark <robdclark@gmail.com>
Mon, 11 Jul 2016 20:23:10 +0000 (16:23 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 30 Jul 2016 13:23:42 +0000 (09:23 -0400)
commit10baf05b2caaa0900c71ac64c91301e953176516
treeba06ed1147ca112b69e11e805315332fa870fbed
parentba3009688892713b711ca6e9420d813f0bdce43f
freedreno: use prsc for hw queries

Switch to using a pipe_resource (rather than an fd_bo directly) for hw
query result buffers.  This is first step towards making queries work
properly with reordered batches, since we'll need the additional
dependency tracking to know which batches to flush.

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