panfrost: allocate bo for occlusion query results
authorUrja Rannikko <urjaman@gmail.com>
Tue, 22 Oct 2019 12:05:07 +0000 (12:05 +0000)
committerUrja Rannikko <urjaman@gmail.com>
Sat, 26 Oct 2019 14:38:25 +0000 (14:38 +0000)
commitdff99ce7d57f6d6d10b2089afacbcdc7660b1423
tree769530b0bedab1346da69d7b1dadaeed8aab2155
parent728a9757006c564d11a550f559ca3a89e496b813
panfrost: allocate bo for occlusion query results

This memory needs to still be available after all the drawing is done
and forgotten about, so cannot be transient.
Also clear the result so that no rendering returns a zero.

Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h