panfrost: LogicOp support
authorIcecream95 <ixn@keemail.me>
Thu, 20 Feb 2020 04:59:16 +0000 (17:59 +1300)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 20 Feb 2020 12:41:54 +0000 (07:41 -0500)
commit068806c9f6be9bab84ed0d4868f16705cf4c7e6d
tree40743feb9f8bea7dc3aa2c5d2d1ff259b47474a0
parent5bfd363be4c957c1f7b5c1f3069346f2bce2cd5a
panfrost: LogicOp support

The generated shaders are definitely not optimal, but for a feature
hardly anyone uses, it's probably good enough.

The XScreensaver demos quasicrystal, blitspin, bouboule, crystal and
munch now seem to work, with no obvious problems.

Currently this only works for 8-bit textures.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3887>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3887>
src/gallium/drivers/panfrost/nir/nir_lower_blend.c
src/gallium/drivers/panfrost/nir/nir_lower_blend.h
src/gallium/drivers/panfrost/pan_blend_cso.c
src/gallium/drivers/panfrost/pan_blend_shaders.c