summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_context.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-07-11 16:23:10 -0400
committerRob Clark <[email protected]>2016-07-30 09:23:42 -0400
commit10baf05b2caaa0900c71ac64c91301e953176516 (patch)
treeba06ed1147ca112b69e11e805315332fa870fbed /src/gallium/drivers/freedreno/freedreno_context.h
parentba3009688892713b711ca6e9420d813f0bdce43f (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.h b/src/gallium/drivers/freedreno/freedreno_context.h
index 6fafa394042..74f53ee554f 100644
--- a/src/gallium/drivers/freedreno/freedreno_context.h
+++ b/src/gallium/drivers/freedreno/freedreno_context.h
@@ -182,7 +182,7 @@ struct fd_context {
struct list_head current_queries;
/* current query result bo and tile stride: */
- struct fd_bo *query_bo;
+ struct pipe_resource *query_buf;
uint32_t query_tile_stride;
/* table with PIPE_PRIM_MAX entries mapping PIPE_PRIM_x to