panfrost: Decouple Gallium clear from FBD clear
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 26 Feb 2019 23:51:34 +0000 (23:51 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 4 Mar 2019 04:58:55 +0000 (04:58 +0000)
commit40ffee4448835e04d139657aafdb5919aa5af941
tree5ae2231dc0f0e66f1fcf80a8bf150a07fc400e6b
parent59c9623d0a75d5201ad48351af26aad1bc0b7073
panfrost: Decouple Gallium clear from FBD clear

The operations of gallium->clear() and the hardware callbacks are
fundamentally independent. This routine decouples them by routing shared
information via panfrost_job, allowing the hardware half to be deferred
to the fragment job generation.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_job.h