panfrost: Move the fence creation in panfrost_flush()
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Sep 2019 17:14:25 +0000 (19:14 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 13 Sep 2019 14:25:06 +0000 (16:25 +0200)
commit2fc91a16abe0e517dfb46517dc4795857f0a9343
tree881eb9ea39390473971ec16813617a6a488da918
parent835439b84fc0830447bc4c8c672c0acd237b2801
panfrost: Move the fence creation in panfrost_flush()

panfrost_flush() is about to be reworked to flush all pending batches,
but we want the fence to block on the last one. Let's move the fence
creation logic in panfrost_flush() to prepare for this situation.

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