[Mesa-dev] [PATCH 4/9] panfrost: Flush when using transform feedback
Alyssa Rosenzweig
alyssa.rosenzweig at collabora.com
Fri Aug 9 20:00:47 UTC 2019
This is a huge hack to workaround incomplete BO flushing logic, but it's
enough for the dEQP transform feedback tests, and doing the resource
management to get this right is out-of-scope for this patch series.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
src/gallium/drivers/panfrost/pan_context.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 8e7155f9e0a..5e182fec564 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -2519,6 +2519,7 @@ panfrost_get_query_result(struct pipe_context *pipe,
case PIPE_QUERY_PRIMITIVES_GENERATED:
case PIPE_QUERY_PRIMITIVES_EMITTED:
+ panfrost_flush(pipe, NULL, PIPE_FLUSH_END_OF_FRAME);
vresult->u64 = query->end - query->start;
break;
--
2.20.1
More information about the mesa-dev
mailing list