panfrost: Allow testing if a specific batch is targeting a scanout FB
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 1 Sep 2019 08:54:38 +0000 (10:54 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 13 Sep 2019 14:25:06 +0000 (16:25 +0200)
commite46d95d51bc11301b603f1beb9b1341b3623a46b
tree5e5ed06ae0bc02fd126aa18d0c038916dfb61617
parent40e20324e0c304960b86f4721270e7c1d5379318
panfrost: Allow testing if a specific batch is targeting a scanout FB

Rename panfrost_is_scanout() into panfrost_batch_is_scanout(), pass it
a batch instead of a context and move the code to pan_job.c.

With this in place, we can now test if a batch is targeting a scanout
FB even if this batch is not bound to the context.

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_job.c
src/gallium/drivers/panfrost/pan_job.h
src/gallium/drivers/panfrost/pan_mfbd.c