llvmpipe: add per-sample depth/stencil test
authorDave Airlie <airlied@redhat.com>
Thu, 19 Mar 2020 05:54:08 +0000 (15:54 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:20:37 +0000 (06:20 +0000)
commit5e949b16c166c6e433307f25dd476d1f35fd6b7e
tree015c2fc895d6936ce995bf4c4856f4697c47c489
parentd297f2ecf1b14f573dc425fae192b1013d175493
llvmpipe: add per-sample depth/stencil test

The current depth stencil test code has some optimisations using
the mask when there is only one depth value, multisample requires
per-sample zstencil testing, and for that case just pass in the
mask that needs updating.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>
src/gallium/drivers/llvmpipe/lp_bld_depth.c
src/gallium/drivers/llvmpipe/lp_bld_depth.h
src/gallium/drivers/llvmpipe/lp_state_fs.c