pan/midgard: Turn Z/S stores into zs_output_pan intrinsics
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 31 Jan 2020 08:34:48 +0000 (09:34 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Feb 2020 15:41:55 +0000 (15:41 +0000)
commitf5619f50738c0ea2bee49d982e88f18496d7514a
treeb612def891615b71b4d3a75eb03ec37eae5b235c
parent59488cbbaca1268841fe5ba42d0a1202b33be23b
pan/midgard: Turn Z/S stores into zs_output_pan intrinsics

Midgard can't write depth and stencil separately. It has to happen in
a single store operation containing both. Let's add a panfrost specific
intrinsic and turn all depth/stencil stores into a packed depth+stencil
one.

Note that this intrinsic is not yet handled in emit_intrinsic(), but
we'll address that later.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3697>
src/compiler/nir/nir_intrinsics.py
src/panfrost/midgard/midgard_compile.c