panfrost: Use a pipe_framebuffer_state as the batch key
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 1 Sep 2019 08:24:30 +0000 (10:24 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 13 Sep 2019 14:25:06 +0000 (16:25 +0200)
commit1b5873b73cdfe288a9defdcc1455c2809f3437fc
tree3bb058f36c539cd41504d5f93e2251ac907ad30e
parent92765f85e1bb677b9d61b4f4a3f87c6b64649e12
panfrost: Use a pipe_framebuffer_state as the batch key

This way we have all the fb_state information directly attached to a
batch and can pass only the batch to functions emitting CMDs, which is
needed if we want to be able to queue CMDs to a batch that's not
currently 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_job.c
src/gallium/drivers/panfrost/pan_job.h