panfrost: Add a panfrost_freeze_batch() helper
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 15 Sep 2019 10:14:22 +0000 (12:14 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 3 Oct 2019 20:55:38 +0000 (16:55 -0400)
commit40a07bfbd746cca261194aba19a48589e0e32db6
tree54c5baa32c72edad92c20880e1fc5554c1271023
parent819738e4af1ab0625e17c6fa555e5e23d737c5a0
panfrost: Add a panfrost_freeze_batch() helper

We'll soon need to freeze a batch not only when it's flushed, but also
when another batch depends on us, so let's add a helper to avoid
duplicating the logic.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_job.c