panfrost: Take into account off-screen FBOs
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 4 Jul 2019 07:59:30 +0000 (09:59 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 4 Jul 2019 08:48:09 +0000 (10:48 +0200)
commit0cc02c9ea6198d498d8cebad524c3875d2d692f0
tree2c85e95ac851c0c684783f6d5c2a5d2006bfaeba
parentf39a7fd627847a196ad119db9364936e21e94db9
panfrost: Take into account off-screen FBOs

In that case, ctx->pipe_framebuffer.cbufs[0] can be NULL.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Fixes: 5375d009be18 ("panfrost: Pass referenced BOs to the SUBMIT ioctls")
src/gallium/drivers/panfrost/pan_drm.c