panfrost: Prepare things to avoid flushes on FB switch
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Sep 2019 17:07:12 +0000 (19:07 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 13 Sep 2019 14:25:06 +0000 (16:25 +0200)
commit4166ca92e273dbd2180c74da68c0467cf3fd1860
treee1eb451c592b76c35b08b36a6c43d0e5338f5ff8
parente5c7701a0a9be29efd8a8947ae55392455a3b6e7
panfrost: Prepare things to avoid flushes on FB switch

panfrost_attach_vt_xxx() functions are now passed a batch, and the
generated FB desc is kept in panfrost_batch so we can switch FBs
without forcing a flush. The postfix->framebuffer field is restored
on the next attach_vt_framebuffer() call if the batch already has an
FB desc.

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_job.h