From: Alyssa Rosenzweig Date: Fri, 12 Jul 2019 23:38:11 +0000 (-0700) Subject: panfrost: Use transient memory for occlusion queries X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9981b6ef0fa387675e81a2966637080bb74f7c01;p=mesa.git panfrost: Use transient memory for occlusion queries These only last a frame anyway. Signed-off-by: Alyssa Rosenzweig --- 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;