panfrost: Use ctx->wallpaper_batch in panfrost_blit_wallpaper()
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Sep 2019 16:52:21 +0000 (18:52 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 13 Sep 2019 14:25:06 +0000 (16:25 +0200)
commitbc0f6c0b152a70a0092cd79dde1de3e5f93aa924
tree0558bc38ee3f56cfeff92a0a5930a37690f2d0ab
parentaa851a62b964c1c73d699739ce07d6ba773605d7
panfrost: Use ctx->wallpaper_batch in panfrost_blit_wallpaper()

We'll soon be able to flush a batch that's not currently bound to the
context, which means ctx->pipe_framebuffer will not necessarily be the
FBO targeted by the wallpaper draw. Let's prepare for this case and
use ctx->wallpaper_batch in panfrost_blit_wallpaper().

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