summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-09 08:32:49 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-12 12:42:59 -0700
commit60d80157d17a015d54c117e2e488b3272174cee5 (patch)
treecb8b48c98503991436eaf76bb20c9ed4c93e2fee /src
parent2efa025b055965c64301b5e497cdf2250d26b9ee (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/pan_compute.c2
1 files changed, 2 insertions, 0 deletions
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