panfrost: Use transient memory for occlusion queries
These only last a frame anyway. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user