From: Alyssa Rosenzweig Date: Fri, 9 Aug 2019 15:32:49 +0000 (-0700) Subject: panfrost: Force flush every compute job X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60d80157d17a015d54c117e2e488b3272174cee5;p=mesa.git panfrost: Force flush every compute job This is of course suboptimal for performance, forcing each glDispatchCompute call to be submitted separately to the kernel and finish to completion. However, for the initial bring-up of compute jobs, this simplifies quite a bit. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_compute.c b/src/gallium/drivers/panfrost/pan_compute.c index 43fef8d8cfa..78f3a885073 100644 --- a/src/gallium/drivers/panfrost/pan_compute.c +++ b/src/gallium/drivers/panfrost/pan_compute.c @@ -130,6 +130,8 @@ panfrost_launch_grid(struct pipe_context *pipe, /* Queue the job */ panfrost_scoreboard_queue_compute_job(batch, transfer); + + panfrost_flush(pipe, NULL, PIPE_FLUSH_END_OF_FRAME); } void