panfrost: Set depth_enabled when stencil is enabled
authorIcecream95 <ixn@keemail.me>
Fri, 17 Jul 2020 09:23:03 +0000 (21:23 +1200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jul 2020 16:28:52 +0000 (16:28 +0000)
commitca44c009b5e9a368bbf3e3a41ba5a0f2a1f130e8
treeb21f106a464ca3b2d83f17ec0470849c5c56c961
parent2b796c768526e0728df10201fd311db2311f9412
panfrost: Set depth_enabled when stencil is enabled

Fixes square circles in the KiCad 3D viewer.

v2: Cleanup a bit, add a comment, and handle the fs->writes_stencil case
to be pedantic (Alyssa).

Reported-by: Urja Rannikko <urjaman@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5946>
src/gallium/drivers/panfrost/pan_cmdstream.c