diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-12 16:38:11 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-15 08:03:34 -0700 |
commit | 9981b6ef0fa387675e81a2966637080bb74f7c01 (patch) | |
tree | f8b25cb6a26c3ceedab2263c89fb175ca5815c0b /src/gallium/drivers/panfrost | |
parent | 594b47d91754a0298c315bfdceef0d3e6174ee9a (diff) |
panfrost: Use transient memory for occlusion queries
These only last a frame anyway.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 710752f6cb5..d8faaa39bc2 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2538,7 +2538,7 @@ panfrost_begin_query(struct pipe_context *pipe, struct pipe_query *q) case PIPE_QUERY_OCCLUSION_PREDICATE: case PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE: { /* Allocate a word for the query results to be stored */ - query->transfer = panfrost_allocate_chunk(ctx, sizeof(unsigned), HEAP_DESCRIPTOR); + query->transfer = panfrost_allocate_transient(ctx, sizeof(unsigned)); ctx->occlusion_query = query; |