panfrost: LogicOp fixes and non 8-bit format support

Graphics / Mesa 3D Graphics Library / Mesa - Icecream95 [keemail.me] - 28 February 2020 11:52 EST

With the previous LogicOp commit almost half of the blend modes were broken because the surplus bits were not cleared after an inot.

v2:- Remove u8 "fast path" as 8-bit is not well optimised yet- Don't mask for 32-bit formats as that triggers an assert

Fixes: 068806c9f6b ("panfrost: LogicOp support")

339f127f2b3 panfrost: LogicOp fixes and non 8-bit format support
src/gallium/drivers/panfrost/nir/nir_lower_blend.c | 27 ++++++++++++++++------
src/gallium/drivers/panfrost/nir/nir_lower_blend.h | 1 +
src/gallium/drivers/panfrost/pan_blend_shaders.c | 2 ++
3 files changed, 23 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share