mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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:
parent
594b47d917
commit
9981b6ef0f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue