panfrost/mfbd: Respect per-job depth write flag
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 12 Mar 2019 23:16:37 +0000 (23:16 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 14 Mar 2019 22:47:11 +0000 (22:47 +0000)
commit8c26890ac251526bf74777faf62b0c8b84b0c19f
treecac92ba21af4c7fc70c6e106de643ec065901549
parent9bf6024c6bccae34fb992db6ede6485c045cafde
panfrost/mfbd: Respect per-job depth write flag

While a depth buffer may be supplied, it only needs to be written to if
the depth writemask is set for any draw AND if the depth buffer is not
immediately invalidated (as is the case for scanout). This refactors
panfrost_job to provide a depth write requirement, which is now
implemented for MFBD depth buffers.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_job.h
src/gallium/drivers/panfrost/pan_mfbd.c
src/gallium/drivers/panfrost/pan_sfbd.c